{"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\\Scheduling\\groupManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\Scheduling\\groupManage.vue","mtime":1675071993381},{"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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 uc from '@/api/uc.js';\nimport utils from '@/hotent-ui-util.js';\nimport req from '@/request.js';\nimport SelectTypeDialog from '@/components/dialog/SelectTypeDialog';\nexport default {\n  components: {\n    SelectTypeDialog: SelectTypeDialog\n  },\n  computed: {\n    groupDeleteUrl: function groupDeleteUrl() {\n      return window.context.uc + '/api/userGroup/v1/userGroup/delUserGroup';\n    },\n    saveRoleUrl: function saveRoleUrl() {\n      var preUrl = window.context.uc + '/api/userGroup/v1/userGroup';\n\n      if (this.group.id) {\n        preUrl += '/updateUserGroup';\n      } else {\n        preUrl += '/addUserGroup';\n      }\n\n      return preUrl;\n    },\n    requestMethod: function requestMethod() {\n      return this.group.id ? 'PUT' : 'POST';\n    }\n  },\n  data: function data() {\n    return {\n      dialogVisible: false,\n      dialogVisibleMenuPerm: false,\n      dialogImportVisible: false,\n      fullscreenLoading: false,\n      personVisible: false,\n      group: {\n        name: '',\n        code: ''\n      },\n      isSubmit: false,\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      loadDataUrl: '',\n      menuPerm: {},\n      allowRoles: [],\n      groupData: [],\n      activeRow: {}\n    };\n  },\n  mounted: function mounted() {\n    this.$validator = this.$root.$validator;\n  },\n  methods: {\n    handleSelect: function handleSelect(data) {\n      var _this = this;\n\n      var param = JSON.stringify(data);\n      uc.addGroupMember(param, this.activeRow.code).then(function (res) {\n        _this.$refs.selecter.closeDialog();\n\n        _this.handleUsers(_this.activeRow);\n      });\n    },\n    openSelecter: function openSelecter() {\n      this.$refs.selecter.showDialog(this.activeRow);\n    },\n    handleUsers: function handleUsers(row) {\n      this.activeRow = row;\n      this.personVisible = true;\n      this.loadDataUrl = \"/api/userGroup/v1/userGroup/getGroupUsers?code=\".concat(row.code);\n    },\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.groupTable.$refs.htTable.toggleRowSelection(row);\n    },\n    handleCloseDialog: function handleCloseDialog() {\n      this.dialogVisible = false;\n    },\n    handleClose: function handleClose() {\n      this.personVisible = false;\n      this.activeRow = {};\n    },\n    showDialog: function showDialog(row) {\n      this.dialogVisible = true;\n\n      if (row) {\n        // /api/userGroup/v1/userGroup/getUserGroup\n        this.loadDataUrl = \"/api/userGroup/v1/userGroup/getUserGroup?code=\".concat(row.code);\n      } else {\n        this.group = {\n          name: '',\n          code: ''\n        };\n      }\n    },\n    dialogCancle: function dialogCancle(dialogVisible) {\n      this[dialogVisible] = false;\n      this.activeRow = {};\n    },\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      uc.getUserGroupPage(param).then(function (response) {\n        _this2.data = response.rows;\n        _this2.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }).finally(function () {\n        return cb();\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.groupTable.load();\n    },\n    afterLoadData: function afterLoadData(data) {\n      var _this3 = this;\n\n      // 编辑群组\n      if (this.dialogVisible) {\n        this.group = data;\n        setTimeout(function () {\n          return _this3.$validator.validateAll('editGroupForm');\n        });\n      } // 编辑群组\n\n\n      if (this.personVisible) {\n        this.groupData = data;\n      }\n    }\n  }\n};",null]}