|
|
@@ -76,7 +76,7 @@
|
|
|
center>
|
|
|
<span style="text-align: center;vertical-align: middle;!important;">是否参与该数据的后续工作</span>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="setLeader(0)" size="small">取 消</el-button>
|
|
|
+ <el-button @click="setLeader(0)" size="small">不参与</el-button>
|
|
|
<el-button type="primary" @click="setLeader(1)" size="small">参 与</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
@@ -87,6 +87,7 @@
|
|
|
|
|
|
<script>
|
|
|
import member from '@/template/menber/index.vue'
|
|
|
+import {Message} from "element-ui";
|
|
|
export default {
|
|
|
props:['ownertable','justsaler','status','isGroup'],
|
|
|
components:{
|
|
|
@@ -152,8 +153,6 @@ export default {
|
|
|
},
|
|
|
/*新负责人列表*/
|
|
|
async queryGroupNew (ownertable,ownerid) {
|
|
|
- console.log(ownertable,'ownertable')
|
|
|
- console.log(ownerid,'ownerid')
|
|
|
this.list = []
|
|
|
/*this.param.content.where.justsaler = this.justsaler?this.justsaler:0*/
|
|
|
const res = await this.$api.requested({
|
|
|
@@ -163,7 +162,6 @@ export default {
|
|
|
"ownerid":ownerid
|
|
|
}
|
|
|
})
|
|
|
- console.log(res.data,'负责人列表')
|
|
|
res.data? res.data.length > 0?this.list = res.data:this.list=[
|
|
|
{
|
|
|
ismyteam:1,
|
|
|
@@ -189,12 +187,23 @@ 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'){
|
|
|
+ Message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'error',
|
|
|
+ duration:3000,
|
|
|
+ showClose:true
|
|
|
+ });
|
|
|
+ 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({
|