{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\Position\\JobManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\Position\\JobManager.vue","mtime":1675071993288},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 org from \"@/api/org.js\";\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\nexport default {\n  components: {\n    EipUserDialog: EipUserDialog\n  },\n  computed: {\n    demDeleteUrl: function demDeleteUrl() {\n      return window.context.uc + \"/api/job/v1/job/deleteJobByIds\";\n    },\n    saveRoleUrl: function saveRoleUrl() {\n      var preUrl = window.context.uc + \"/api/job/v1/job\";\n\n      if (this.job.id) {\n        preUrl += \"/updateJob\";\n      } else {\n        preUrl += \"/addJob\";\n      }\n\n      return preUrl;\n    },\n    requestMethod: function requestMethod() {\n      return this.job.id ? \"PUT\" : \"POST\";\n    }\n  },\n  data: function data() {\n    return {\n      dialogVisible: false,\n      dialogVisibleMenuPerm: false,\n      job: {\n        name: \"\",\n        code: \"\"\n      },\n      isSubmit: true,\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      loadDataUrl: \"\",\n      menuPerm: {},\n      allowRoles: [],\n      readOnly: false,\n      dialogTitle: \"添加职务\"\n    };\n  },\n  mounted: function mounted() {\n    this.$validator = this.$root.$validator;\n  },\n  methods: {\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n    },\n    setDemDefault: function setDemDefault(row) {\n      var _this = this;\n\n      org.setDemDefault(row.code).then(function () {\n        _this.$refs.htTable.load();\n      });\n    },\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n      this.loadDataUrl = \"\";\n    },\n    handleCloseMenuPerm: function handleCloseMenuPerm() {\n      this.dialogVisibleMenuPerm = false;\n    },\n    showDialog: function showDialog(row) {\n      var _this2 = this;\n\n      this.dialogVisible = true;\n\n      if (row) {\n        // 编辑角色\n        this.dialogTitle = \"编辑职务\";\n        this.job = JSON.parse(JSON.stringify(row));\n        setTimeout(function () {\n          return _this2.$validator.validateAll(\"editDemForm\");\n        });\n      } else {\n        this.dialogTitle = \"添加职务\";\n        this.job = _defineProperty({\n          name: \"\",\n          code: \"\",\n          description: \"\"\n        }, \"code\", '');\n      }\n    },\n    dialogCancle: function dialogCancle(dialogVisible) {\n      this[dialogVisible] = false;\n    },\n    loadData: function loadData(param, cb) {\n      var _this3 = this;\n\n      org.getJobPage(param).then(function (response) {\n        _this3.data = response.rows;\n        _this3.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }).finally(function () {\n        return cb();\n      });\n    },\n    handleCommand: function handleCommand(params) {\n      this.readOnly = false;\n\n      switch (params.command) {\n        case \"showInfo\":\n          this.readOnly = true;\n          this.showDialog(params.row);\n          break;\n\n        case \"assignMenu\":\n          this.showDialog(params.row);\n          break;\n\n        case \"setDemDefault\":\n          this.setDemDefault(params.row);\n          break;\n\n        default:\n          break;\n      }\n    },\n    beforeSaveData: function () {\n      var _beforeSaveData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                this.isSubmit = true;\n\n              case 1:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee, this);\n      }));\n\n      function beforeSaveData() {\n        return _beforeSaveData.apply(this, arguments);\n      }\n\n      return beforeSaveData;\n    }(),\n    afterSaveData: function afterSaveData() {\n      this.dialogVisible = false;\n      this.$refs.htTable.load();\n    },\n    afterDelete: function afterDelete() {\n      this.$refs.htTable.load();\n    },\n    afterLoadData: function afterLoadData(data) {\n      var _this4 = this;\n\n      // 编辑角色\n      if (this.dialogVisible) {\n        this.job = data;\n        setTimeout(function () {\n          return _this4.$validator.validateAll(\"editDemForm\");\n        });\n      }\n    }\n  }\n};",null]}