{"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\\equSysMenuDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\mainDataMenu\\components\\equSysMenuDialog.vue","mtime":1675655021211},{"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\";\nimport _defineProperty from \"D:/jenkins/workspace/examine-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport equSysMenu from '@/api/examination/equSysMenu.js';\nimport relatedJobs from \"./relatedJobs.vue\";\nexport default {\n  components: {\n    relatedJobs: relatedJobs\n  },\n  name: 'equSysMenuDialog',\n  data: function data() {\n    var _parameter;\n\n    return {\n      lxList: [],\n      //类型\n      jobPageList: [],\n      //人员类别\n      title: '新增',\n      rules: {\n        // userTypeId: [{\n        // \trequired: true,\n        // \tmessage: '请选择人员类别',\n        // \ttrigger: 'blur'\n        // }],\n        name: [{\n          required: true,\n          message: '请输入名称',\n          trigger: 'blur'\n        }] // type: [{\n        // \trequired: true,\n        // \tmessage: '请输入类型',\n        // \ttrigger: 'blur'\n        // }]\n\n      },\n      queryParam: {\n        pageBean: {\n          page: 1,\n          pageSize: -1\n        }\n      },\n      roomStatusList: [],\n      visible: false,\n      parameter: (_parameter = {\n        type: \"\",\n        name: \"\",\n        positonVos: []\n      }, _defineProperty(_parameter, \"type\", \"\"), _defineProperty(_parameter, \"userTypeId\", \"\"), _parameter),\n      positonVosList: [],\n      positonVos: []\n    };\n  },\n  created: function created() {\n    this.lxList = dictUtils.getDictItemsFromCache('lx');\n  },\n  mounted: function mounted() {},\n  methods: {\n    edit: function edit(val) {\n      var _this = this;\n\n      this.getJobPage();\n      this.title = '修改';\n      this.visible = true;\n      equSysMenu.findById(val.id, function (res) {\n        if (res) {\n          _this.parameter = res;\n          _this.positonVosList = res.positonVos;\n\n          _this.positonVosList.forEach(function (item) {\n            _this.positonVos.push(item.positionId);\n          });\n\n          console.log(_this.positonVosList);\n          console.log(_this.positonVos);\n        }\n      });\n    },\n    add: function add() {\n      this.getJobPage();\n      this.title = '新增';\n      this.visible = true;\n    },\n    selectUsers: function selectUsers() {\n      console.log(this.positonVosList);\n      this.$refs.relatedJobs.add(this.positonVosList);\n    },\n    // 关闭新增人员窗口\n    handleClose: function handleClose() {\n      var _this$parameter;\n\n      this.visible = false;\n      this.title = '新增';\n      this.parameter = (_this$parameter = {\n        type: \"\",\n        name: \"\",\n        positonVos: []\n      }, _defineProperty(_this$parameter, \"type\", \"\"), _defineProperty(_this$parameter, \"userTypeId\", \"\"), _this$parameter);\n      this.positonVosList = [];\n      this.positonVos = [];\n    },\n    getUser: function getUser(item) {\n      var _this2 = this;\n\n      this.positonVosList = [];\n      this.positonVos = [];\n      item.forEach(function (e) {\n        _this2.positonVosList.push({\n          majorId: _this2.parameter.id,\n          majorName: _this2.parameter.name,\n          positionCode: e.positionCode,\n          positionId: e.positionId,\n          positionName: e.positionName\n        });\n\n        _this2.positonVos.push(e.positionId);\n      });\n    },\n    selectSystemChanged: function selectSystemChanged(val) {\n      var _this3 = this;\n\n      var arr = JSON.parse(JSON.stringify(this.positonVosList));\n      this.positonVosList = [];\n      arr.forEach(function (p, pi) {\n        val.forEach(function (v) {\n          if (p.positionId == v) {\n            _this3.positonVosList.push(p);\n          }\n        });\n      });\n    },\n    //获取人员类别\n    getJobPage: function getJobPage() {\n      var _this4 = this;\n\n      equSysMenu.getJobPage(this.queryParam, function (res) {\n        if (res.rows) {\n          _this4.jobPageList = res.rows;\n        }\n      });\n    },\n    // 保存产品类型\n    handleSave: function handleSave() {\n      var _this5 = this;\n\n      this.parameter.positonVos = [];\n      this.$refs.formInfo.validate(function (valid) {\n        if (valid) {\n          var method;\n\n          if (_this5.title === '新增') {\n            method = equSysMenu.addEqeSys;\n          }\n\n          if (_this5.title === '修改') {\n            method = equSysMenu.editEqeSys;\n          }\n\n          _this5.parameter.positonVos = _this5.positonVosList;\n          method(_this5.parameter, function (response) {\n            if (response.state) {\n              _this5.$notify({\n                type: 'success',\n                message: _this5.title + '成功',\n                duration: 2000\n              });\n\n              _this5.handleClose();\n\n              _this5.$emit('reload');\n            } else {\n              _this5.$message.warning(response.message);\n            }\n          });\n        }\n      });\n    }\n  }\n};",null]}