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 :id="data.id" slot-scope="{ data }" class="custom-tree-node">
|
||||||
<span>{{ data.labelName }}</span>
|
<span>{{ data.labelName }}</span>
|
||||||
<span v-if="data.type">
|
<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
|
<el-option
|
||||||
v-for="item in simulationUserList"
|
v-for="item in simulationUserList"
|
||||||
:key="item.userId"
|
:key="item.userId"
|
||||||
@ -73,6 +73,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show: false,
|
show: false,
|
||||||
|
singleMember: false,
|
||||||
direction: 'ltr',
|
direction: 'ltr',
|
||||||
queryMember: '',
|
queryMember: '',
|
||||||
room: {
|
room: {
|
||||||
@ -163,6 +164,10 @@ export default {
|
|||||||
},
|
},
|
||||||
username() {
|
username() {
|
||||||
return this.$store.state.user.nickname;
|
return this.$store.state.user.nickname;
|
||||||
|
},
|
||||||
|
roles() {
|
||||||
|
console.log(this.$store.state.training.userRole, '-----------------');
|
||||||
|
return this.$store.state.training.roles;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -358,6 +363,9 @@ export default {
|
|||||||
if (list && list.length) { // 人员变化监控
|
if (list && list.length) { // 人员变化监控
|
||||||
this.checkRoleChange(list);
|
this.checkRoleChange(list);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'$store.state.training.domConfig': function(val) {
|
||||||
|
this.singleMember = val.singleMember;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user