{"remainingRequest":"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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\n },\n 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(param, cb){\n if (!param.querys){\n param.querys = [];\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(data => {\n this.data = data.rows;\n this.pageResult = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n }\n }).finally(() => {\n cb && cb();\n })\n },\n handleClose(){\n this.dialogVisible = false;\n },\n showUserDialog(){\n this.$refs.eipUserDialog.showDialog();\n },\n openDialog(id){\n this.dialogVisible = true;\n this.selectId = id;\n },\n confirm(selection){\n if (!selection || selection.length == 0) {\n this.$message.error(\"请至少选择一个用户\");\n return;\n }\n let shiftUser = [];\n selection.forEach(item => {\n shiftUser.push({\n userId: item.id,\n shiftId: this.selectId\n })\n })\n uc.saveShiftUser(shiftUser).then(data => {\n if (data.state){\n this.$message({type:'success',message:\"添加成功\"});\n this.$refs.htTable.load();\n }\n });\n }\n }\n}\n",null]}