{"remainingRequest":"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\\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":["//\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 {\n\tTableMixin\n} 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\tname: 'UnitManage',\n\tcomponents: {\n\t\tunitManageDialog,\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\turl: {\n\t\t\t\tdelete: '/device/base/company/',\n\t\t\t},\n\t\t\tcompanyType: [],\n\t\t\tcompanyTypeValue: [],\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'companyName',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'companyType',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t],\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.companyType = dictUtils.getDictItemsFromCache('dwlx')\n\t},\n\tmounted() {},\n\tmethods: {\n\t\tformatData(rows) {\n\t\t\trows.forEach((row) => {\n\t\t\t\tlet types = row.companyType.split(',')\n\t\t\t\tlet temp = types.map((item) => {\n\t\t\t\t\tlet name\n\t\t\t\t\tthis.companyType.forEach((dictItem) => {\n\t\t\t\t\t\tif (dictItem.value == item) {\n\t\t\t\t\t\t\tname = dictItem.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\treturn name\n\t\t\t\t})\n\t\t\t\trow.companyTypeShow = temp\n\t\t\t})\n\t\t\treturn rows\n\t\t},\n\t\tclearQuerys() {\n\t\t\tthis.querys[0].value = ''\n\t\t\tthis.companyTypeValue = []\n\t\t},\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.companyTypeValue.length) {\n\t\t\t\tthis.querys[1].value = this.companyTypeValue.join(',')\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tresourceManage.loadUnit(this.queryParam, (res) => {\n\t\t\t\t// console.log(res, 'res')\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = this.formatData(res.rows)\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\t},\n}\n",null]}