{"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\\ShiftUserManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\ShiftUserManager.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 \"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//\nimport uc from \"@/api/uc.js\";\nimport EipUserDialog from \"../../components/dialog/EipUserDialog\";\nexport default {\n  name: \"shift-user-manager\",\n  components: {\n    EipUserDialog: EipUserDialog\n  },\n  data: function data() {\n    return {\n      title: \"添加用户\",\n      dialogVisible: false,\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 10,\n        total: 0\n      },\n      deleteUrl: window.context.uc + \"/uc/shiftRule/v1/removeShiftUser\",\n      selectId: \"\"\n    };\n  },\n  methods: {\n    loadData: function loadData(param, cb) {\n      var _this = this;\n\n      if (!param.querys) {\n        param.querys = [];\n      }\n\n      param.querys.push({\n        property: \"su.shift_id_\",\n        value: this.selectId,\n        group: \"common\",\n        relation: \"AND\",\n        operation: \"EQUAL\"\n      });\n      uc.getShiftUsers(param).then(function (data) {\n        _this.data = data.rows;\n        _this.pageResult = {\n          page: data.page,\n          pageSize: data.pageSize,\n          total: data.total\n        };\n      }).finally(function () {\n        cb && cb();\n      });\n    },\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n    },\n    showUserDialog: function showUserDialog() {\n      this.$refs.eipUserDialog.showDialog();\n    },\n    openDialog: function openDialog(id) {\n      this.dialogVisible = true;\n      this.selectId = id;\n    },\n    confirm: function confirm(selection) {\n      var _this2 = this;\n\n      if (!selection || selection.length == 0) {\n        this.$message.error(\"请至少选择一个用户\");\n        return;\n      }\n\n      var shiftUser = [];\n      selection.forEach(function (item) {\n        shiftUser.push({\n          userId: item.id,\n          shiftId: _this2.selectId\n        });\n      });\n      uc.saveShiftUser(shiftUser).then(function (data) {\n        if (data.state) {\n          _this2.$message({\n            type: 'success',\n            message: \"添加成功\"\n          });\n\n          _this2.$refs.htTable.load();\n        }\n      });\n    }\n  }\n};",null]}