{"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\\imMange\\groupMange.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\imMange\\groupMange.vue","mtime":1675071992960},{"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/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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/instantMessag.js';\nexport default {\n data: function data() {\n return {\n loadings: {\n updAcutasLoading: false,\n sequence: false\n },\n data: [],\n currentRow: null,\n params: {\n \"pageBean\": {\n \"page\": 1,\n \"pageSize\": 10,\n \"showTotal\": true\n },\n \"params\": {}\n },\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n }\n };\n },\n mounted: function mounted() {\n this.$validator = this.$root.$validator;\n this.header = {\n 'Authorization': \"Bearer \".concat(this.$store.state.login.currentUser.token)\n };\n },\n methods: {\n handleCommond: function handleCommond(param) {\n switch (param.command) {\n case \"edit\":\n this.editRow(param.row);\n break;\n\n case \"del\":\n console.log(param);\n this.deleteRow(param.row.id);\n break;\n }\n },\n editRow: function editRow(row) {\n this.currentRow = row;\n this.openAddPanl();\n },\n deleteRow: function deleteRow(id) {\n var _this = this;\n\n this.$confirm('是否删除该数据?', '提示', {\n confirmButtonText: '删除',\n cancelButtonText: '取消',\n type: 'danger'\n }).then(function () {\n var data = new FormData();\n data.append(\"id\", id);\n uc.deleteFgroupList(data).then(function (res) {\n if (res.state) {\n _this.loadData(_this.pageResult);\n\n _this.$message.success('数据已删除');\n }\n });\n }).catch(function () {});\n },\n openAddPanl: function openAddPanl() {\n var _this$currentRow,\n _this2 = this;\n\n this.$prompt('请输入分组名称', \"\".concat(this.currentRow ? '编辑' : '新增', \"\\u540D\\u79F0\"), {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n inputPattern: /\\S/,\n inputValue: (_this$currentRow = this.currentRow) === null || _this$currentRow === void 0 ? void 0 : _this$currentRow.name,\n inputErrorMessage: '分组名称不能为空'\n }).then(function (_ref) {\n var _this2$currentRow;\n\n var value = _ref.value;\n var data = {\n name: value,\n id: (_this2$currentRow = _this2.currentRow) === null || _this2$currentRow === void 0 ? void 0 : _this2$currentRow.id\n },\n text = _this2.currentRow ? '编辑' : '新增',\n apiFun = _this2.currentRow ? 'editFgroupList' : 'addFgroupList';\n uc[apiFun](data).then(function (res) {\n if (res.state == true) _this2.$message.success(\"\".concat(text, \"\\u5206\\u7EC4\\u5B8C\\u6210\"));\n _this2.currentRow = null;\n\n _this2.loadData(_this2.pageResult);\n });\n }).catch(function () {\n _this2.currentRow = null;\n });\n },\n loadData: function loadData(param, cb) {\n var _this3 = this;\n\n uc.getFgroupList(param).then(function (res) {\n _this3.data = res.rows;\n _this3.pageResult = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.total\n };\n _this3.$refs.htTable.loading = false;\n }).finally(function () {\n return cb();\n });\n }\n }\n};",null]}