|
|
@@ -191,12 +191,17 @@ export default {
|
|
|
"isaddoldleader":isaddoldleader
|
|
|
}
|
|
|
})
|
|
|
- this.tool.showMessage(res,()=>{
|
|
|
- this.queryGroup()
|
|
|
- this.visible1 = false
|
|
|
- this.$emit('onSuccess')
|
|
|
- this.$store.dispatch('changeDetailDrawer',false)
|
|
|
- })
|
|
|
+ if (res.code == 0 && isaddoldleader == '0'){
|
|
|
+ this.changeLeader = false
|
|
|
+ }else {
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.queryGroup()
|
|
|
+ this.visible1 = false
|
|
|
+ this.$emit('onSuccess')
|
|
|
+ this.$store.dispatch('changeDetailDrawer',false)
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
async deleteGroupAccount (item) {
|
|
|
const res = await this.$api.requested({
|