fix(接口定义): 修复引用的场景场景设置被禁用的缺陷

This commit is contained in:
wxg0103 2022-11-17 19:00:22 +08:00 committed by wxg0103
parent 161336a8f7
commit 4bb57ce4ae
1 changed files with 5 additions and 2 deletions

View File

@ -43,11 +43,11 @@
:visible.sync="dialogVisible" width="400px"> :visible.sync="dialogVisible" width="400px">
<ul> <ul>
<el-tooltip :content="$t('commons.enable_scene_info')" placement="top" v-if='showEnableScenario'> <el-tooltip :content="$t('commons.enable_scene_info')" placement="top" v-if='showEnableScenario'>
<el-checkbox v-model="data.environmentEnable" @change="checkEnv" :disabled="data.disabled"> <el-checkbox v-model="data.environmentEnable" @change="checkEnv">
{{ $t('commons.enable_scene') }} {{ $t('commons.enable_scene') }}
</el-checkbox> </el-checkbox>
</el-tooltip> </el-tooltip>
<el-checkbox v-model="data.variableEnable" :disabled="data.disabled"> <el-checkbox v-model="data.variableEnable">
{{ $t('commons.variable_scene') }} {{ $t('commons.variable_scene') }}
</el-checkbox> </el-checkbox>
</ul> </ul>
@ -96,6 +96,9 @@ export default {
mounted() { mounted() {
this.allSamplers = this.filter.get('DEFINITION'); this.allSamplers = this.filter.get('DEFINITION');
}, },
created() {
console.log(this.data)
},
methods: { methods: {
handleCommand(cmd) { handleCommand(cmd) {
switch (cmd) { switch (cmd) {