没有综合演练不显示联机
master分支构建发布到公网服务器 / Build-Publish (push) Successful in 7m34s Details

This commit is contained in:
joylink_fanyuhong 2024-04-22 17:15:20 +08:00
parent 31376bc221
commit c97def5fca
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,7 @@
</template>
</el-collapse>
</el-tab-pane>
<el-tab-pane label="联机" name="second">
<el-tab-pane v-if="canLiji" label="联机" name="second">
<el-form ref="ruleForm" v-loading="loading" :model="ruleForm" :rules="rules" label-width="100px">
<el-form-item label="仿真号" prop="inputGroup">
<el-input v-model="ruleForm.inputGroup" placeholder="请输入仿真号" style="width: 200px;" />
@ -68,6 +68,7 @@ export default {
return {
loading: false,
param: '',
canLiji: false,
collapse: '1',
subsetList: [],
subsetMap: {},
@ -307,7 +308,11 @@ export default {
initMapSystem() {
queryMapFunctionList({mapId: this.$route.params.mapId, detail: true}).then(resp => {
this.systemList = resp.data;
this.canLiji = false;
this.systemList.forEach(item => {
if (item.name === '综合演练') {
this.canLiji = true;
}
if (item.subset && this.subsetList.includes(item.subset) && item.name !== '实训室') {
this.subsetMap[item.subset].push(item);
} else if (item.subset && item.name !== '实训室') {