{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.search\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport equSysMenuDialog from \"./components/equSysMenuDialog.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'equSysMenu',\n components: {\n equSysMenuDialog: equSysMenuDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n search: '',\n parentId: null,\n //上级id\n url: {\n delete: '/exam/equipment/sys/'\n },\n // 删除产品信息\n treeNode: {\n code: '',\n id: 0,\n name: '装备系统管理',\n type: 0,\n children: []\n },\n treeData: [{\n code: '',\n id: '0',\n name: '装备系统管理',\n type: 0,\n children: []\n }],\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n tableData: [],\n lxList: [],\n //类型\n jobPageList: [],\n //人员类别\n // 模拟数据\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'user_type_id',\n relation: 'AND',\n value: ''\n }],\n portal: '',\n fileList: []\n };\n },\n created: function created() {\n this.getTreen();\n this.getJobPage();\n this.portal = window.context.portal; // this.zblxList = dictUtils.getDictItemsFromCache('zblx')\n // this.lxList = dictUtils.getDictItemsFromCache('lx')\n },\n mounted: function mounted() {},\n methods: {\n //获取人员类别\n getJobPage: function getJobPage() {\n var _this = this;\n\n equSysMenu.getJobPage(this.queryParam, function (res) {\n if (res.rows) {\n _this.jobPageList = res.rows;\n\n _this.loadData(1);\n }\n });\n },\n // 获取list\n loadData: function () {\n var _loadData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(page) {\n var _this2 = this;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.log(2);\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n this.queryParam.sorter = [{\n direction: \"DESC\",\n property: \"createTime\"\n }];\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 _context.next = 11;\n return equSysMenu.getEqeSys(this.queryParam, function (res) {\n _this2.total = res.total;\n _this2.tableData = res.rows; // this.tableData.forEach(item => {\n // \tthis.jobPageList.forEach(ee => {\n // \t\tif (item.userTypeId == ee.id) {\n // \t\t\titem['userTypeName'] = ee.name\n // \t\t}\n // \t})\n // \tthis.lxList.forEach(ee => {\n // \t\tif (item.type == ee.value) {\n // \t\t\titem['typeName'] = ee.name\n // \t\t}\n // \t})\n // })\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function loadData(_x) {\n return _loadData.apply(this, arguments);\n }\n\n return loadData;\n }(),\n relatedJobs: function relatedJobs(val) {\n this.$refs.relatedJobs.add(val);\n },\n append: function append(data, type) {\n this.$refs.formModal.add();\n },\n upDateinfo: function upDateinfo(data, type) {\n this.$refs.formModal.edit(data);\n },\n // 删除装备系统类型\n remove: function remove(item) {\n var _this3 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n distinguishCancelAndClose: true,\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n equSysMenu.deleteOneEqeSys(item.id).then(function (res) {\n if (res.data.state) {\n _this3.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this3.getTreen();\n\n _this3.loadData(1);\n }\n });\n }).catch(function (action) {\n _this3.$notify({\n type: 'info',\n message: action === 'cancel' ? '已取消删除' : '停留在当前页面'\n });\n });\n },\n reload: function reload() {\n this.treeData = [{\n code: '',\n id: '0',\n name: '装备系统管理',\n type: 0,\n children: []\n }];\n this.$set(this.treeData);\n this.getTreen();\n this.loadData();\n },\n handleAdd: function handleAdd() {\n this.$refs.formModal.add(this.parentId);\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.loadData(1);\n },\n // 获取树\n getTreen: function getTreen() {\n var _this4 = this;\n\n equSysMenu.geteqTree({\n id: '0'\n }, function (res) {\n _this4.treeData[0].children = res.value;\n\n _this4.$set(_this4.treeData);\n });\n },\n // 点击树查看数据\n handleNodeClick: function handleNodeClick(data) {\n this.parentId = data.id;\n\n if (data.id == 0) {\n this.querys[1].value = '';\n this.loadData(1);\n } else {\n this.querys[1].value = this.parentId;\n this.loadData(1);\n }\n },\n searchName: function searchName() {\n var _this5 = this;\n\n var querys = {\n name: ''\n };\n querys.name = this.search;\n equSysMenu.geteqTree(querys, function (res) {\n _this5.treeData[0].children = res.value;\n\n _this5.$set(_this5.treeData);\n });\n },\n //导入\n handleChange: function handleChange(file, fileList) {\n if (fileList.length > 1) {\n fileList.splice(0, 1);\n }\n\n if (file.raw.name.split('.')[1] == 'xlsx' || file.raw.name.split('.')[1] == 'xls' || file.raw.name.split('.')[1] == 'xlsm') {\n this.upLoadFile(file.raw);\n } else {\n this.$message.warning('请上传xls,xlsx,xlsm格式文件!');\n fileList.splice(0);\n }\n },\n //自定义上传方法(覆盖默认上传行为)\n upLoadFile: function upLoadFile(file) {\n var _this6 = this;\n\n var formData = new FormData();\n formData.append('file', file);\n equSysMenu.importExcel(formData, function (res) {\n if (res.state) {\n _this6.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n\n _this6.loadData(1)();\n } else {\n _this6.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this6.loadData(1);\n }\n });\n },\n exportFile: function exportFile() {\n equSysMenu.export(this.queryParam, function (res) {\n if (res) {}\n });\n }\n }\n};",null]}