@@ -64,6 +69,19 @@
+
+
+
+
+
+
+
@@ -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
+ }
+ });
+ },
},
}