|
@ -77,7 +77,7 @@ |
|
|
<el-button v-if="(scope.row.state == 10||scope.row.state == 0)&&scope.row.lordFlag==0" |
|
|
<el-button v-if="(scope.row.state == 10||scope.row.state == 0)&&scope.row.lordFlag==0" |
|
|
type="text" |
|
|
type="text" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="toBecomeAdmin(scope.rowd)">指定群主</el-button> |
|
|
@click="toBecomeAdmin(scope.row)">指定群主</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
@ -174,7 +174,7 @@ export default { |
|
|
toBecomeAdmin (row) { |
|
|
toBecomeAdmin (row) { |
|
|
this.checkDto.id = row.id |
|
|
this.checkDto.id = row.id |
|
|
this.checkDto.groupId = row.groupId |
|
|
this.checkDto.groupId = row.groupId |
|
|
this.$http.post(`/property/group/checkGroupOwner`, this.checkDto).then(({ data: res }) => { |
|
|
this.$http.post(`/property/usergroup/checkGroupOwner`, this.checkDto).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
@ -184,7 +184,7 @@ export default { |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.$http['post']('/property/group/toBecomeGroupOwner', this.postForm).then(({ data: res }) => { |
|
|
this.$http.post(`/property/usergroup/toBecomeGroupOwner`, this.checkDto).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
@ -197,7 +197,7 @@ export default { |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
} else { |
|
|
} else { |
|
|
this.$http['post']('/property/group/toBecomeGroupOwner', this.postForm).then(({ data: res }) => { |
|
|
this.$http.post(`/property/usergroup/toBecomeGroupOwner`, this.checkDto).then(({ data: res }) => { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} |
|
|
} |
|
@ -210,6 +210,7 @@ export default { |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
} |
|
|
} |
|
|
}).catch(() => { }) |
|
|
}).catch(() => { }) |
|
|
|
|
|
this.getDataList() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|