{"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\\UnitManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\resourceManage\\UnitManage.vue","mtime":1686644136998},{"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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport unitManageDialog from '@/views/Device/resourceManage/components/unitManageDialog';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'UnitManage',\n components: {\n unitManageDialog: unitManageDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/device/base/company/'\n },\n companyType: [],\n companyTypeValue: [],\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'companyName',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'companyType',\n relation: 'AND',\n value: ''\n }]\n };\n },\n created: function created() {\n this.companyType = dictUtils.getDictItemsFromCache('dwlx');\n },\n mounted: function mounted() {},\n methods: {\n formatData: function formatData(rows) {\n var _this = this;\n\n rows.forEach(function (row) {\n var types = row.companyType.split(',');\n var temp = types.map(function (item) {\n var name;\n\n _this.companyType.forEach(function (dictItem) {\n if (dictItem.value == item) {\n name = dictItem.name;\n }\n });\n\n return name;\n });\n row.companyTypeShow = temp;\n });\n return rows;\n },\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.companyTypeValue = [];\n },\n loadData: function loadData(page) {\n var _this2 = 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.companyTypeValue.length) {\n this.querys[1].value = this.companyTypeValue.join(',');\n this.queryParam.querys.push(this.querys[1]);\n }\n\n resourceManage.loadUnit(this.queryParam, function (res) {\n // console.log(res, 'res')\n _this2.total = res.total;\n _this2.tableData = _this2.formatData(res.rows);\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n }\n }\n};",null]}