From 18fa7ac43f0e29bcb7c3a422e84777575e9486a7 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 17 May 2024 11:41:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=AD=E4=BD=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/GroupList.vue | 46 +++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/packages/xbot/AppSeatManagementXbot/components/GroupList.vue b/packages/xbot/AppSeatManagementXbot/components/GroupList.vue index aeefbdda..5f1466f3 100644 --- a/packages/xbot/AppSeatManagementXbot/components/GroupList.vue +++ b/packages/xbot/AppSeatManagementXbot/components/GroupList.vue @@ -30,6 +30,11 @@ + + + @@ -89,7 +107,9 @@ export default { tableData: [], total: 0, dialog: false, - editInfo: {} + editInfo: {}, + showArea: false, + areaInfo: {} } }, created() { @@ -107,7 +127,7 @@ export default { { prop: "status", label: '群状态', align: 'center', dict: 'xbotGroupStatus'}, { prop: "managerTpUserName", label: '关联人员', align: 'center'}, { prop: "managerTpUserDeptName", label: '主部门', align: 'center'}, - { prop: "areaName", label: '所属地区', align: 'center'}, + { slot: "areaName", label: '所属地区', align: 'center'}, { slot: "option"}, // { prop: "status", label: '状态'}, ] @@ -194,7 +214,27 @@ export default { }) } }) - } + }, + changeArea(row) { + this.showArea = true + this.areaInfo = {...row} + this.$refs['form'].clearValidate(); + }, + areaConfirm() { + this.$refs['form'].validate((valid) => { + if (valid) { + this.instance.post(`app/xbotCallback/updateGroupArea?wxid=${this.areaInfo.wxid}&areaId=${this.areaInfo.areaId}&areaName=${this.areaInfo.areaName}`).then(res => { + if (res.code == 0) { + this.$message.success('所属地区设置成功') + this.showArea = false + this.getTableData() + } + }) + } else { + return false + } + }); + }, }, }