{"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\\ndpdMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\ndpdMenu.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 \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\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//\nimport req from \"@/request.js\";\nimport { TableMixin } from '@/mixins/tableMixin';\nimport moment from 'moment';\nimport ndpdMenuDialog from \"./components/ndpdMenuDialog.vue\";\nimport SubjectClassDialog from \"./components/SubjectClassDialog.vue\";\nimport ndpdMenu from '@/api/examination/ndpdMenu.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n  name: 'ndpdMenu',\n  components: {\n    ndpdMenuDialog: ndpdMenuDialog,\n    SubjectClassDialog: SubjectClassDialog\n  },\n  mixins: [TableMixin],\n  data: function data() {\n    return {\n      url: {\n        delete: '/exam/year/assessmentSub/'\n      },\n      search: '',\n      tableData: [],\n      treeData: [],\n      defaultProps: {\n        children: 'children',\n        label: 'name'\n      },\n      id: null,\n      parentId: '',\n      //上级id\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: 'LIKE',\n        parentGroup: '',\n        property: 'subjectIds',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'EQUAL',\n        parentGroup: '',\n        property: 'year',\n        relation: 'AND',\n        value: moment().format('YYYY')\n      }],\n      sortList: {},\n      subjectsList: [],\n      currentKey: null,\n      type: '',\n      filterText: '',\n      expandAll: false\n    };\n  },\n  created: function created() {\n    this.getTreen();\n    this.getSubjects();\n    this.TrainTypeList = dictUtils.getDictItemsFromCache('xllb');\n    this.TrainLevelList = dictUtils.getDictItemsFromCache('xljb');\n  },\n  mounted: function mounted() {},\n  watch: {\n    filterText: function filterText(val) {\n      this.$refs.tree.filter(val);\n    },\n    currentKey: {\n      handler: function handler(value) {\n        var _this = this;\n\n        if (value) {\n          this.$nextTick(function () {\n            _this.$refs.tree.setCurrentKey(_this.currentKey);\n          });\n        }\n      },\n      immediate: true,\n      valType: false\n    }\n  },\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 _this2 = this;\n\n      ndpdMenu.updateAssess(this.sortList, function (res) {\n        if (res.state) {\n          _this2.$notify({\n            type: 'success',\n            message: res.message,\n            duration: 2000\n          });\n\n          _this2.loadData();\n        } else {\n          _this2.$message.warning(res.message);\n        }\n      });\n    },\n    //获取课目\n    getSubjects: function getSubjects() {\n      var _this3 = this;\n\n      var params = {\n        pageBean: {\n          pageSize: -1,\n          page: -1\n        }\n      };\n      ndpdMenu.getSubjects(params, function (res) {\n        if (res.rows) {\n          _this3.subjectsList = res.rows;\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.loadData(1);\n    },\n    handleAdd: function handleAdd() {\n      if (this.type == 2) {\n        this.$refs.formModal.add(this.id, this.parentId);\n      } else {\n        this.$message({\n          message: '请先选择岗位后再添加',\n          type: 'warning'\n        });\n      }\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      this.parentId = data.id;\n      this.type = data.type;\n      this.id = data.id;\n\n      if (data.id == '0') {\n        this.querys[0].value = '';\n        this.loadData(1);\n      } else {\n        this.querys[0].value = this.id;\n        this.loadData(1);\n      }\n    },\n    // 获取树\n    getTreen: function () {\n      var _getTreen = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        var _this4 = this;\n\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                this.currentKey = null;\n                _context.next = 3;\n                return ndpdMenu.getPositionPage({}, function (res) {\n                  _this4.treeData = res;\n                  _this4.currentKey = res[0].id;\n                  _this4.querys[0].value = _this4.currentKey;\n                  _this4.id = _this4.currentKey;\n\n                  _this4.$set(_this4.querys[1]);\n\n                  _this4.$set(_this4.treeData);\n\n                  _this4.loadData(1);\n                });\n\n              case 3:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this);\n      }));\n\n      function getTreen() {\n        return _getTreen.apply(this, arguments);\n      }\n\n      return getTreen;\n    }(),\n    // 获取list\n    loadData: function loadData(page) {\n      var _this5 = 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      ndpdMenu.queryAssess(this.queryParam, function (res) {\n        _this5.total = res.total;\n        _this5.tableData = res.rows;\n\n        _this5.$set(_this5.tableData);\n\n        _this5.loading = false;\n      });\n    } // // 新增\n    // append(data, type) {\n    // \tif (type != 'father') {\n    // \t\tthis.$refs.SubClassModal.add(data)\n    // \t} else {\n    // \t\tthis.$refs.SubClassModal.add(data)\n    // \t}\n    // },\n    // // 修改\n    // upDateinfo(data, type) {\n    // \tthis.$refs.SubClassModal.edit(data)\n    // },\n\n  }\n};",null]}