{"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\\components\\ndpdMenuDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\components\\ndpdMenuDialog.vue","mtime":1705466684661},{"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/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//\nimport { TableMixin } from '@/mixins/tableMixin';\nimport equSysMenu from '@/api/examination/equSysMenu.js';\nimport moment from 'moment';\nimport userTypeMenu from '@/api/examination/userTypeMenu.js';\nimport ndpdMenu from '@/api/examination/ndpdMenu.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport questionListMenu from '@/api/examination/questionListMenu.js';\nexport default {\n components: {},\n name: 'ndpdMenuDialog',\n data: function data() {\n return {\n visible: false,\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'po.position_id_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'RIGHT_LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'RIGHT_LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: ''\n }],\n parameter: {\n year: moment().format('YYYY'),\n positionId: null,\n subjectInfoList: []\n },\n //已选\n selectUser: [],\n selectUserProps: {\n label: \"name\"\n },\n UserData: [],\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n }\n },\n total: null\n };\n },\n created: function created() {},\n mounted: function mounted() {},\n methods: {\n add: function add(val, parentId) {\n this.title = '新增';\n this.querys[0].value = parentId;\n this.parameter.positionId = parentId;\n this.trainTypeList = dictUtils.getDictItemsFromCache('xllb');\n this.visible = true;\n this.loadData(1);\n this.getSelectUser();\n },\n edit: function edit(val) {\n this.title = '修改';\n this.visible = true;\n },\n // 关闭\n handleClose: function handleClose() {\n this.visible = false;\n this.$emit('reload');\n },\n getSelectUser: function getSelectUser() {\n var _this = this;\n\n this.selectUser = [];\n var parma = {\n pageBean: {\n pageSize: -1,\n page: 1\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'po.position_id_',\n relation: 'AND',\n value: this.querys[0].value\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'year',\n relation: 'AND',\n value: this.parameter.year\n }]\n };\n ndpdMenu.queryAssess(parma, function (res) {\n _this.total = res.total;\n _this.selectUser = res.rows;\n\n _this.$refs.multipleTable.clearSelection();\n\n res.rows.forEach(function (s) {\n _this.UserData.forEach(function (u) {\n if (s.name == u.name) {\n _this.$refs.multipleTable.toggleRowSelection(u, true);\n }\n });\n });\n });\n },\n // 获取列表\n loadData: function loadData(page) {\n var _this2 = this;\n\n this.$nextTick(function () {\n _this2.$refs.multipleTable.clearSelection();\n });\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.UserData = [];\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 questionListMenu.findByMajorIds(this.queryParam, function (res) {\n _this2.total = res.total;\n _this2.UserData = res.rows;\n\n _this2.UserData.forEach(function (u) {\n _this2.trainTypeList.forEach(function (e) {\n if (u.trainType == e.value) {\n u.trainTypeName = e.name;\n }\n });\n });\n\n _this2.selectUser.forEach(function (s) {\n _this2.UserData.forEach(function (u) {\n console.log(s.name == u.name);\n\n if (s.name == u.name) {\n console.log(s.name);\n\n _this2.$refs.multipleTable.toggleRowSelection(u, true);\n }\n });\n });\n });\n this.$set(this.UserData);\n },\n // 保存\n handleSave: function handleSave() {\n var _this3 = this;\n\n // console.log(this.parameter);\n // this.parameter.subjectIds = this.subject.toString()\n this.parameter.subjectInfoList = this.selectUser;\n var method;\n\n if (this.title === '新增') {\n method = ndpdMenu.addAssess;\n }\n\n if (this.title === '修改') {\n method = ndpdMenu.editAssess;\n }\n\n method(this.parameter, function (response) {\n if (response.state) {\n _this3.$notify({\n type: 'success',\n message: _this3.title + '成功',\n duration: 2000\n });\n\n _this3.handleClose();\n\n _this3.$emit('reload');\n } else {\n _this3.$message.warning(response.message);\n }\n });\n },\n binRowKey: function binRowKey(row) {\n return row.id;\n },\n //搜索\n searchEnterFun: function searchEnterFun() {},\n handleCurrentChange: function handleCurrentChange() {},\n handleSizeChange: function handleSizeChange() {},\n manualSelection: function manualSelection(selection, row) {\n var _this4 = this;\n\n var flag = selection.some(function (item) {\n if (item.id === row.id) return true;\n });\n\n if (flag) {\n this.selectUser.push(row);\n var params = {\n year: this.parameter.year,\n positionId: this.parameter.positionId,\n subjectInfoList: [row]\n };\n ndpdMenu.addAssess(params, function (res) {\n if (res.state) {\n _this4.getSelectUser();\n\n _this4.$notify({\n type: 'success',\n message: _this4.title + '成功',\n duration: 2000\n });\n }\n });\n } else {\n this.selectUser.forEach(function (s, si) {\n if (s.name == row.name) {\n var _params = {\n year: _this4.parameter.year ? _this4.parameter.year : '',\n subjectIds: row.id ? row.id : '',\n positionId: _this4.parameter.positionId ? _this4.parameter.positionId : ''\n };\n\n _this4.$http.post(window.context.portal + \"/exam/year/assessmentSub/deleteSub\", _params).then(function (res) {\n if (res.data.state) {\n _this4.getSelectUser(); // this.selectUser.splice(si, 1)\n\n\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n }\n });\n }\n });\n }\n },\n remove: function remove(val) {\n var _this5 = this;\n\n ndpdMenu.remove(val.id, function (res) {\n // this.selectUser.splice(si, 1)\n if (res.state) {\n _this5.getSelectUser();\n\n _this5.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n }\n }); // this.$http.delete(window.context.portal +\"/exam/year/assessmentSub/\"+val.id, ).then(res => {\n // \tif (res.data.state) {\n // \t\tthis.selectUser.splice(si, 1)\n // \t\tthis.$notify({\n // \t\t\ttype: 'success',\n // \t\t\tmessage: '删除成功',\n // \t\t\tduration: 2000\n // \t\t})\n // \t}\n // })\n },\n renderContent: function renderContent(h, _ref) {\n var _this6 = this;\n\n var node = _ref.node,\n data = _ref.data,\n store = _ref.store;\n return h(\"span\", {\n \"class\": \"custom-tree-node\",\n \"on\": {\n \"mouseover\": function mouseover() {\n _this6.show = true;\n },\n \"mouseout\": function mouseout() {\n _this6.show = false;\n }\n }\n }, [h(\"span\", [data.name]), h(\"span\", [h(\"el-button\", {\n \"style\": \"width:100%;border:0;margin:0;\",\n \"attrs\": {\n \"size\": \"mini\",\n \"type\": \"text\"\n },\n \"on\": {\n \"click\": function click() {\n return _this6.remove(data);\n }\n }\n }, [\"\\u5220\\u9664\"])])]);\n }\n }\n};",null]}