singleManage前端配置生效
This commit is contained in:
parent
725708fe34
commit
af094314d4
@ -27,7 +27,7 @@
|
||||
<span :id="data.id" slot-scope="{ data }" class="custom-tree-node">
|
||||
<span>{{ data.labelName }}</span>
|
||||
<span v-if="data.type">
|
||||
<el-select :key="data.id" v-model="data.userId" placeholder="请选择" clearable size="mini" @change="nodeMemberChange($event, data)">
|
||||
<el-select :key="data.id" v-model="data.userId" :disabled="singleMember && roles !== data.type" placeholder="请选择" clearable size="mini" @change="nodeMemberChange($event, data)">
|
||||
<el-option
|
||||
v-for="item in simulationUserList"
|
||||
:key="item.userId"
|
||||
@ -73,6 +73,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
show: false,
|
||||
singleMember: false,
|
||||
direction: 'ltr',
|
||||
queryMember: '',
|
||||
room: {
|
||||
@ -163,6 +164,10 @@ export default {
|
||||
},
|
||||
username() {
|
||||
return this.$store.state.user.nickname;
|
||||
},
|
||||
roles() {
|
||||
console.log(this.$store.state.training.userRole, '-----------------');
|
||||
return this.$store.state.training.roles;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -358,6 +363,9 @@ export default {
|
||||
if (list && list.length) { // 人员变化监控
|
||||
this.checkRoleChange(list);
|
||||
}
|
||||
},
|
||||
'$store.state.training.domConfig': function(val) {
|
||||
this.singleMember = val.singleMember;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user