{"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\\examMenu\\myTaskMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\myTaskMenu.vue","mtime":1672113883920},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport myTaskMenu from '@/api/examination/myTaskMenu.js';\nimport subMenu from '@/api/examination/subMenu.js';\nexport default {\n  name: 'dpsjMenu',\n  components: {},\n  mixins: [TableMixin],\n  data: function data() {\n    return {\n      showMore: false,\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: 'sp.plan_start_time_',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'IN',\n        parentGroup: '',\n        property: 's.status_',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'IN',\n        parentGroup: '',\n        property: 'paperStatus',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'LIKE',\n        parentGroup: '',\n        property: 'b.paper_type_',\n        relation: 'AND',\n        value: ''\n      }],\n      tableData: [],\n      CourseList: [],\n      spaceList: [],\n      TestStatusList: [],\n      examineeList: [],\n      ksztList: [],\n      //考试状态\n      sjztList: [],\n      //试卷状态\n      activeName: 'first',\n      subjectsList: [],\n      khlxList: [] //考核类型\n\n    };\n  },\n  created: function created() {\n    this.getSubjects();\n    this.ksztList = dictUtils.getDictItemsFromCache('kszt');\n    this.sjztList = dictUtils.getDictItemsFromCache('sjzt');\n    this.khlxList = dictUtils.getDictItemsFromCache('khlx');\n  },\n  mounted: function mounted() {},\n  methods: {\n    // 打开搜索更多\n    openMore: function openMore() {\n      this.showMore = !this.showMore;\n    },\n    // 重置\n    clearQuerys: function clearQuerys() {\n      this.querys[0].value = '';\n      this.querys[1].value = '';\n    },\n    // 获取list\n    loadData: function loadData(page) {\n      var _this = this;\n\n      if (page) {\n        this.queryParam.pageBean.page = page;\n      }\n\n      if (this.activeName == 'first') {\n        this.querys[3].value = '1,2,8';\n      } else if (this.activeName == 'second') {\n        this.querys[3].value = '3,4';\n      } else if (this.activeName == 'third') {\n        this.querys[3].value = '5';\n      } else if (this.activeName == 'fourth') {\n        this.querys[3].value = '6,7,8';\n      }\n\n      this.loading = true;\n      this.tableData = [];\n      this.queryParam.querys = [];\n      this.queryParam.sorter = [{\n        direction: \"ASC\",\n        property: \"status\"\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      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      myTaskMenu.myPaper(this.queryParam, function (res) {\n        _this.total = res.total;\n        _this.tableData = res.rows;\n\n        _this.tableData.forEach(function (t) {\n          _this.ksztList.forEach(function (k) {\n            if (t.status == k.value) {\n              t.statusName = k.name;\n            }\n          });\n\n          _this.sjztList.forEach(function (k) {\n            if (t.paperStatus == k.value) {\n              t.paperStatusName = k.name;\n            }\n          });\n\n          _this.khlxList.forEach(function (k) {\n            if (t.paperType == k.value) {\n              t.paperTypeName = k.name;\n            }\n          });\n        });\n\n        _this.$set(_this.tableData);\n\n        _this.loading = false;\n      });\n    },\n    toPreview: function toPreview(val) {\n      this.$router.push({\n        name: 'previewTestPaper',\n        params: {\n          id: val.id\n        }\n      });\n    },\n    handleClick: function handleClick(command, val) {\n      var _this2 = this;\n\n      console.log(command, val);\n\n      if (command == 0) {\n        myTaskMenu.applyExamPaper(val.id, function (res) {\n          if (res.state) {\n            _this2.$message({\n              message: '申请成功',\n              type: 'success'\n            });\n          }\n        });\n      }\n    },\n    handleTab: function handleTab() {\n      this.loadData(1);\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      subMenu.getSubjects(params, function (res) {\n        if (res.rows) {\n          _this3.subjectsList = res.rows;\n        }\n      });\n    }\n  }\n};",null]}