{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\equSysMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\equSysMenu.vue","mtime":1705466684677},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-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//\n//\n//\n//\n\nimport req from \"@/request.js\";\nimport equSysMenu from '@/api/examination/equSysMenu.js'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nimport equSysMenuDialog from './components/equSysMenuDialog.vue'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nexport default {\n\tname: 'equSysMenu',\n\tcomponents: {\n\t\tequSysMenuDialog,\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\tsearch: '',\n\t\t\tparentId: null, //上级id\n\t\t\turl: {\n\t\t\t\tdelete: '/exam/equipment/sys/'\n\t\t\t}, // 删除产品信息\n\t\t\ttreeNode: {\n\t\t\t\tcode: '',\n\t\t\t\tid: 0,\n\t\t\t\tname: '装备系统管理',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t},\n\t\t\ttreeData: [{\n\t\t\t\tcode: '',\n\t\t\t\tid: '0',\n\t\t\t\tname: '装备系统管理',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t}],\n\t\t\tdefaultProps: {\n\t\t\t\tchildren: 'children',\n\t\t\t\tlabel: 'name'\n\t\t\t},\n\t\t\ttableData: [],\n\t\t\tlxList: [], //类型\n\t\t\tjobPageList: [], //人员类别\n\t\t\t// 模拟数据\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: 'name',\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: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'type',\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: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'user_type_id',\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\tportal: '',\n\t\t\tfileList: [],\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.getTreen()\n\t\tthis.getJobPage()\n\t\tthis.portal = window.context.portal\n\t\t// this.zblxList = dictUtils.getDictItemsFromCache('zblx')\n\t\t// this.lxList = dictUtils.getDictItemsFromCache('lx')\n\t},\n\tmounted() {},\n\tmethods: {\n\t\t//获取人员类别\n\t\tgetJobPage() {\n\t\t\tequSysMenu.getJobPage(this.queryParam, res => {\n\t\t\t\tif (res.rows) {\n\t\t\t\t\tthis.jobPageList = res.rows\n\t\t\t\t\tthis.loadData(1)\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t// 获取list\n\t\tasync loadData(page) {\n\t\t\tconsole.log(2);\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tthis.queryParam.sorter = [{\n\t\t\t\tdirection: \"DESC\",\n\t\t\t\tproperty: \"createTime\"\n\t\t\t}]\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.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tawait equSysMenu.getEqeSys(this.queryParam, res => {\n\t\t\t\tthis.total = res.total\n\t\t\t\tthis.tableData = res.rows\n\t\t\t\t// this.tableData.forEach(item => {\n\t\t\t\t// \tthis.jobPageList.forEach(ee => {\n\t\t\t\t// \t\tif (item.userTypeId == ee.id) {\n\t\t\t\t// \t\t\titem['userTypeName'] = ee.name\n\t\t\t\t// \t\t}\n\t\t\t\t// \t})\n\t\t\t\t// \tthis.lxList.forEach(ee => {\n\t\t\t\t// \t\tif (item.type == ee.value) {\n\t\t\t\t// \t\t\titem['typeName'] = ee.name\n\t\t\t\t// \t\t}\n\t\t\t\t// \t})\n\t\t\t\t// })\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t\tthis.loading = false\n\t\t\t})\n\t\t},\n\n\t\trelatedJobs(val) {\n\t\t\tthis.$refs.relatedJobs.add(val)\n\t\t},\n\t\tappend(data, type) {\n\t\t\tthis.$refs.formModal.add()\n\t\t},\n\t\tupDateinfo(data, type) {\n\t\t\tthis.$refs.formModal.edit(data)\n\t\t},\n\t\t// 删除装备系统类型\n\t\tremove(item) {\n\t\t\tthis.$confirm('确定删除选中数据?', '提示', {\n\t\t\t\t\tdistinguishCancelAndClose: true,\n\t\t\t\t\tconfirmButtonText: '确 定',\n\t\t\t\t\tcancelButtonText: '取 消',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tequSysMenu.deleteOneEqeSys(item.id).then(res => {\n\t\t\t\t\t\tif (res.data.state) {\n\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tthis.getTreen()\n\t\t\t\t\t\t\tthis.loadData(1)\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t.catch(action => {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'info',\n\t\t\t\t\t\tmessage: action === 'cancel' ? '已取消删除' : '停留在当前页面'\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t},\n\t\treload() {\n\t\t\tthis.treeData = [{\n\t\t\t\tcode: '',\n\t\t\t\tid: '0',\n\t\t\t\tname: '装备系统管理',\n\t\t\t\ttype: 0,\n\t\t\t\tchildren: []\n\t\t\t}]\n\t\t\tthis.$set(this.treeData)\n\t\t\tthis.getTreen()\n\t\t\tthis.loadData()\n\t\t},\n\t\thandleAdd() {\n\t\t\tthis.$refs.formModal.add(this.parentId)\n\t\t},\n\t\t// 重置\n\t\tclearQuerys() {\n\t\t\tthis.querys[0].value = ''\n\t\t\tthis.loadData(1)\n\t\t},\n\n\t\t// 获取树\n\t\tgetTreen() {\n\t\t\tequSysMenu.geteqTree({\n\t\t\t\tid: '0'\n\t\t\t}, res => {\n\t\t\t\tthis.treeData[0].children = res.value\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\n\t\t// 点击树查看数据\n\t\thandleNodeClick(data) {\n\t\t\tthis.parentId = data.id\n\t\t\tif (data.id == 0) {\n\t\t\t\tthis.querys[1].value = ''\n\t\t\t\tthis.loadData(1)\n\t\t\t} else {\n\t\t\t\tthis.querys[1].value = this.parentId\n\t\t\t\tthis.loadData(1)\n\t\t\t}\n\n\t\t},\n\t\tsearchName() {\n\t\t\tlet querys = {\n\t\t\t\tname: ''\n\t\t\t}\n\t\t\tquerys.name = this.search\n\t\t\tequSysMenu.geteqTree(querys, res => {\n\t\t\t\tthis.treeData[0].children = res.value\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\t\t//导入\n\t\thandleChange(file, fileList) {\n\t\t\tif (fileList.length > 1) {\n\t\t\t\tfileList.splice(0, 1)\n\t\t\t}\n\t\t\tif (file.raw.name.split('.')[1] == 'xlsx' || file.raw.name.split('.')[1] == 'xls'|| file.raw.name.split('.')[1] == 'xlsm') {\n\t\t\t\tthis.upLoadFile(file.raw)\n\t\t\t} else {\n\t\t\t\tthis.$message.warning('请上传xls,xlsx,xlsm格式文件!')\n\t\t\t\tfileList.splice(0)\n\t\t\t}\n\t\t},\n\t\t//自定义上传方法(覆盖默认上传行为)\n\t\tupLoadFile(file) {\n\t\t\tlet formData = new FormData()\n\t\t\tformData.append('file', file)\n\t\t\tequSysMenu.importExcel(formData, (res) => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\tmessage: '导入成功',\n\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t})\n\t\t\t\t\tthis.loadData(1)()\n\t\t\t\t} else {\n\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\toffset: 80,\n\t\t\t\t\t})\n\t\t\t\t\tthis.loadData(1)\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\texportFile() {\n\t\t\tequSysMenu.export(this.queryParam, res => {\n\t\t\t\tif (res) {\n\n\t\t\t\t}\n\t\t\t})\n\n\t\t}\n\t}\n}\n",null]}