{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\RegionManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\RegionManage.vue","mtime":1692168359236},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { dragControllerDiv } from '@/mixins/dragControllerDiv';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport regionManageDialog from '@/views/Device/resourceManage/components/regionManageDialog';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'RegionManage',\n components: {\n regionManageDialog: regionManageDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/device/baseArea/'\n },\n areaType: [],\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'code',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'parentId',\n relation: 'AND',\n value: '0'\n }],\n treeData: [],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n treeNode: null\n };\n },\n created: function created() {\n this.areaType = dictUtils.getDictItemsFromCache('qylx');\n },\n mounted: function mounted() {\n dragControllerDiv();\n this.loadTree();\n },\n methods: {\n handleDeleteAfter: function handleDeleteAfter() {\n this.loadTree();\n },\n reload: function reload() {\n this.treeNode = null;\n this.loadTree();\n this.loadData();\n },\n handleAdd: function handleAdd() {\n if (!this.treeNode) {\n this.$message.warning('请选择上级区域!');\n return;\n }\n\n this.$refs.formModal.add(this.treeNode);\n },\n handleUpdate: function handleUpdate(row) {\n this.$refs.formModal.edit(row, this.treeNode);\n },\n handleNodeClick: function handleNodeClick(data) {\n this.treeNode = data;\n this.querys[2].value = this.treeNode.id;\n this.loadData(1);\n },\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = this.querys[2].value ? this.querys[2].value : 0;\n },\n formatData: function formatData(rows) {\n var _this = this;\n\n rows.forEach(function (row) {\n var types = row.areaType.split(',');\n var temp = types.map(function (item) {\n var name;\n\n _this.areaType.forEach(function (dictItem) {\n if (dictItem.value == item) {\n name = dictItem.name;\n }\n });\n\n return name;\n });\n row.areaTypeShow = temp;\n });\n return rows;\n },\n loadTree: function loadTree() {\n var _this2 = this;\n\n this.treeData = [];\n resourceManage.loadAreaTree({\n id: '0'\n }, function (res) {\n _this2.treeData = res.value; // this.formatData(res.rows)\n\n _this2.$set(_this2.treeData);\n });\n },\n loadData: function loadData(page) {\n var _this3 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n this.queryParam.sorter = [{\n direction: 'ASC',\n property: 'sn_'\n }];\n resourceManage.loadArea(this.queryParam, function (res) {\n _this3.total = res.total;\n _this3.tableData = res.rows;\n\n _this3.$set(_this3.tableData);\n\n _this3.loading = false;\n });\n }\n }\n};",null]}