{"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\\subMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\subMenu.vue","mtime":1675655021227},{"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.regexp.split\";\nimport \"core-js/modules/es6.regexp.search\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { TableMixin } from '@/mixins/tableMixin';\nimport subMenuDialog from \"./components/subMenuDialog.vue\";\nimport SubjectClassDialog from \"./components/SubjectClassDialog.vue\";\nimport subMenu from '@/api/examination/subMenu.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport equSysMenu from '@/api/examination/equSysMenu.js';\nexport default {\n name: 'subMenu',\n components: {\n subMenuDialog: subMenuDialog,\n SubjectClassDialog: SubjectClassDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/exam/subject/info/'\n },\n search: '',\n tableData: [],\n filterText: '',\n treeData: [],\n treeNode: {\n code: '',\n id: '0',\n name: '课目分类管理',\n type: 0,\n children: []\n },\n defaultProps: {\n children: 'children',\n label: 'name'\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: 'trainType',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'typeId',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'po.full_id_ ',\n relation: 'AND',\n value: ''\n }],\n TrainTypeList: [],\n TrainLevelList: [],\n positionList: [],\n sortList: {},\n fileList: [],\n equSys: [],\n currentKey: '',\n // parentId: ''\n orgId: '',\n majorId: '',\n positionId: '',\n expandAll: false\n };\n },\n created: function created() {\n this.TrainTypeList = dictUtils.getDictItemsFromCache('xllb');\n this.TrainLevelList = dictUtils.getDictItemsFromCache('xljb');\n this.getEqu();\n },\n mounted: function mounted() {},\n methods: {\n expandHandle: function expandHandle() {\n console.log(this.$refs.tree.store);\n this.expandAll = !this.expandAll;\n this.expandNodes(this.$refs.tree.store.root);\n },\n // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n expandNodes: function expandNodes(node) {\n node.expanded = this.expandAll;\n\n for (var i = 0; i < node.childNodes.length; i++) {\n node.childNodes[i].expanded = this.expandAll;\n\n if (node.childNodes[i].childNodes.length > 0) {\n this.expandNodes(node.childNodes[i]);\n }\n }\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n // 保存排序\n savePropertyf: function savePropertyf() {\n var _this = this;\n\n subMenu.saveSort(this.sortList, function (res) {\n if (res.state) {\n _this.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this.loadData();\n } else {\n _this.$message.warning(res.message);\n }\n });\n },\n getEqu: function getEqu() {\n var _this2 = this;\n\n this.currentKey = null;\n equSysMenu.geteqTree({\n pageBean: {\n pageSize: -1,\n page: -1\n }\n }, function (res) {\n _this2.treeData = res.value;\n _this2.currentKey = res.value[0].id;\n _this2.orgId = res.value[0].id;\n _this2.querys[3].value = _this2.currentKey;\n\n _this2.$set(_this2.querys);\n\n _this2.$set(_this2.treeData);\n\n _this2.loadData(1);\n });\n },\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n reload: function reload() {\n this.loadData();\n },\n handleAdd: function handleAdd() {\n this.$refs.formModal.add(this.orgId, this.majorId, this.positionId);\n },\n handleDbClick: function handleDbClick(val) {\n this.$refs.formModal.edit(val, this.orgId, this.majorId, this.positionId);\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.loadData(1);\n },\n handleNodeClick: function handleNodeClick(data) {\n console.log(data);\n\n if (data.type == 1) {\n this.orgId = data.id;\n this.majorId = '';\n this.positionId = '';\n } else if (data.type == 2) {\n this.orgId = data.parentId;\n this.majorId = data.id;\n this.positionId = '';\n } else if (data.type == 3) {\n this.orgId = data.orgId;\n this.majorId = data.parentId;\n this.positionId = data.id;\n } // this.parentId = data.parentId\n\n\n this.querys[3].value = data.id;\n this.loadData(1);\n },\n // 获取岗位信息\n getPostion: function getPostion() {\n var _this3 = this;\n\n var obj = {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n };\n subMenu.getPosition(obj, function (res) {\n _this3.positionList = res.rows;\n });\n },\n // 获取list\n loadData: function loadData(page) {\n var _this4 = 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 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 if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n subMenu.getSubjects(this.queryParam, function (res) {\n _this4.total = res.total;\n _this4.tableData = res.rows;\n\n _this4.tableData.forEach(function (item) {\n _this4.TrainLevelList.forEach(function (ee) {\n if (item.trainLevel == ee.value) {\n item['trainLevelName'] = ee.name;\n }\n });\n\n _this4.TrainTypeList.forEach(function (ee) {\n if (item.trainType == ee.value) {\n item['trainTypeName'] = ee.name;\n }\n });\n\n _this4.positionList.forEach(function (ee) {\n if (item.positionId == ee.id) {\n item['positionName'] = ee.name;\n }\n });\n });\n\n _this4.$set(_this4.tableData);\n\n _this4.loading = false;\n });\n },\n // 获取树\n getTreen: function getTreen() {\n var _this5 = this;\n\n subMenu.getSubTree({\n id: '0'\n }, function (res) {\n _this5.treeData[0].children = res.value;\n\n _this5.$set(_this5.treeData);\n });\n },\n // 新增\n append: function append(data, type) {\n if (type != 'father') {\n this.$refs.SubClassModal.add(data);\n } else {\n this.$refs.SubClassModal.add(data);\n }\n },\n // 修改\n upDateinfo: function upDateinfo(data, type) {\n this.$refs.SubClassModal.edit(data);\n },\n // 删除单个\n remove: function remove(item) {\n var _this6 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n distinguishCancelAndClose: true,\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n subMenu.deleteSubjectClass(item.id).then(function (res) {\n if (res.data.state) {\n _this6.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n\n _this6.loadData(1);\n }\n });\n }).catch(function (action) {\n _this6.$notify({\n type: 'info',\n message: action === 'cancel' ? '已取消删除' : '停留在当前页面'\n });\n });\n },\n searchName: function searchName() {\n var _this7 = this;\n\n var querys = {\n name: ''\n };\n querys.name = this.search;\n subMenu.getSubTree(querys, function (res) {\n _this7.treeData[0].children = res.value;\n\n _this7.$set(_this7.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 _this8 = this;\n\n var formData = new FormData();\n formData.append('file', file);\n subMenu.importExcel(formData, function (res) {\n if (res.state) {\n _this8.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n\n _this8.loadData(1)();\n } else {\n _this8.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this8.loadData(1);\n }\n });\n },\n exportFile: function exportFile() {\n subMenu.export(this.queryParam, function (res) {\n if (res) {}\n });\n }\n }\n};",null]}