{"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\\cjglMenu\\components\\ndcjDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\cjglMenu\\components\\ndcjDialog.vue","mtime":1705466684630},{"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.function.name\";\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//\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 ndcjMenu from '@/api/examination/ndcjMenu.js';\nimport kscjMenu from '@/api/examination/kscjMenu.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'ndcjMenu',\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/exam/year/EvaluationmentSub/'\n },\n search: '',\n tableData: [],\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 parentId: null,\n //上级id\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'b.name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'b.subject_id_',\n relation: 'AND',\n value: ''\n }, {\n group: 'time',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 's.end_time_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 's.user_name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'b.paper_type_',\n relation: 'AND',\n value: '2'\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 's.paper_id_',\n relation: 'AND',\n value: ''\n }],\n sortList: {},\n subjectsList: [],\n pjdjeList: [],\n currentKey: null,\n fileList: [],\n khlxList: [],\n //考核类型\n ksztList: [],\n visible: false\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n add: function add(val) {\n this.pjdjeList = dictUtils.getDictItemsFromCache('pjdj');\n this.khlxList = dictUtils.getDictItemsFromCache('khlx');\n this.ksztList = dictUtils.getDictItemsFromCache('kszt');\n this.querys[5].value = val;\n this.visible = true;\n this.getData();\n },\n handleClose: function handleClose() {\n this.visible = false;\n },\n // 保存排序\n savePropertyf: function savePropertyf() {\n var _this = this;\n\n ndcjMenu.updateEvaluation(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.getData();\n } else {\n _this.$message.warning(res.message);\n }\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.getData();\n },\n // handleClick(val) {\n // \tthis.$router.push({\n // \t\tname: 'ndcjMenuDetails',\n // \t\tparams: val\n // \t})\n // },\n handleClick: function handleClick(val) {\n this.$router.push({\n name: 'lookPaper',\n params: val\n });\n },\n preview: function preview(command, val) {\n this.$router.push({\n name: 'marking',\n params: val\n });\n },\n handleAdd: function handleAdd() {},\n // 打开搜索更多\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n loadData: function loadData() {},\n // 获取list\n getData: function getData(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.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 if (this.querys[4].value) {\n this.queryParam.querys.push(this.querys[4]);\n }\n\n if (this.querys[5].value) {\n this.queryParam.querys.push(this.querys[5]);\n }\n\n kscjMenu.resultsQuery(this.queryParam, function (res) {\n _this2.total = res.total;\n _this2.tableData = res.rows;\n\n _this2.tableData.forEach(function (e) {\n _this2.ksztList.forEach(function (k) {\n if (e.status == k.value) {\n e.statusName = k.name;\n }\n });\n\n _this2.khlxList.forEach(function (k) {\n if (e.paperType == k.value) {\n e.paperTypeName = k.name;\n }\n });\n });\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\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 _this3 = this;\n\n var formData = new FormData();\n formData.append('file', file);\n ndcjMenu.importExcel(formData, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '导入成功',\n duration: 2000\n });\n\n _this3.getData(1)();\n } else {\n _this3.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this3.getData(1);\n }\n });\n },\n exportFile: function exportFile() {\n ndcjMenu.export(this.queryParam, function (res) {\n if (res) {}\n });\n }\n }\n};",null]}