{"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\\ypMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\examMenu\\ypMenu.vue","mtime":1673848073977},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport ypDialog from \"./components/ypDialog.vue\";\nimport paperMenu from '@/api/examination/paperMenu.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n  mixins: [TableMixin],\n  name: 'roomMenu',\n  components: {\n    ypDialog: ypDialog\n  },\n  data: function data() {\n    return {\n      url: {\n        delete: '/exam/paper/base/'\n      },\n      tableData: [],\n      total: 0,\n      multipleSelection: [],\n      currentPage: 4,\n      querys: [{\n        group: 'main',\n        operation: 'LIKE',\n        parentGroup: '',\n        property: 'type_',\n        relation: 'AND',\n        value: '1'\n      }, {\n        group: 'main',\n        operation: 'LIKE',\n        parentGroup: '',\n        property: 'b.name_',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'EQUAL',\n        parentGroup: '',\n        property: 'b.way_type_ ',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'time',\n        operation: 'BETWEEN',\n        parentGroup: '',\n        property: 's.plan_start_time_',\n        relation: 'AND',\n        value: ''\n      }, {\n        group: 'main',\n        operation: 'NOT_IN',\n        parentGroup: '',\n        property: 's.status_',\n        relation: 'AND',\n        value: '0'\n      }, {\n        group: 'main',\n        operation: 'EQUAL',\n        parentGroup: '',\n        property: 'b.paper_type_',\n        relation: 'AND',\n        value: ''\n      }],\n      //课目\n      subjects: '',\n      subjectsList: [],\n      //难度\n      difficultyList: [],\n      ksztList: [],\n      khlxList: [],\n      sjztList: [],\n      fileList: []\n    };\n  },\n  created: function created() {\n    this.ksztList = dictUtils.getDictItemsFromCache('kszt');\n    this.khlxList = dictUtils.getDictItemsFromCache('khlx');\n    this.zjfsList = dictUtils.getDictItemsFromCache('zjfs');\n    this.sjztList = dictUtils.getDictItemsFromCache('sjzt');\n  },\n  computed: _objectSpread({}, mapState({\n    token: function token(state) {\n      return state.login.currentUser.token;\n    }\n  })),\n  methods: {\n    loadData: function loadData(page) {\n      var _this = 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      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      paperMenu.getPaper(this.queryParam, function (res) {\n        _this.total = res.total;\n        _this.tableData = res.rows;\n\n        _this.tableData.forEach(function (e) {\n          _this.sjztList.forEach(function (k) {\n            if (e.status == k.value) {\n              e.statusName = k.name;\n            }\n          });\n\n          _this.khlxList.forEach(function (k) {\n            if (e.paperType == k.value) {\n              e.paperTypeName = k.name;\n            }\n          });\n\n          _this.zjfsList.forEach(function (z) {\n            if (e.wayType == z.value) {\n              e.wayTypeName = z.name;\n            }\n          });\n        });\n\n        _this.$set(_this.tableData);\n\n        _this.loading = false;\n      }); // \t}\n      // })\n    },\n    preview: function preview(val) {\n      console.log(val.id);\n      this.$refs.ypDialog.add(val.id);\n    },\n    tableRowClassName: function tableRowClassName(_ref) {\n      var row = _ref.row,\n          rowIndex = _ref.rowIndex;\n\n      if (rowIndex % 2 == 0) {\n        return 'warning-row';\n      } else {\n        return '';\n      }\n    },\n    // 打开搜索更多\n    openMore: function openMore() {\n      this.showMore = !this.showMore;\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 _this2 = this;\n\n      var formData = new FormData();\n      formData.append('file', file);\n      questionListMenu.importExcel(formData, function (res) {\n        if (res.state) {\n          _this2.$notify({\n            type: 'success',\n            message: '导入成功',\n            duration: 2000\n          });\n\n          _this2.loadData(1)();\n        } else {\n          _this2.$notify({\n            type: 'error',\n            message: res.message,\n            duration: 2000,\n            offset: 80\n          });\n\n          _this2.loadData(1);\n        }\n      });\n    },\n    exportFile: function exportFile() {\n      questionListMenu.export(this.queryParam, function (res) {\n        if (res) {}\n      });\n    }\n  }\n};",null]}