数据操作 配置 点击响应范围调整&生成车辆段联锁数据后关闭弹框

This commit is contained in:
fan 2021-09-13 17:51:12 +08:00
parent 8c8fa154d3
commit c0831fd403
4 changed files with 19 additions and 14 deletions

View File

@ -2,8 +2,8 @@ export function getBaseUrl() {
let BASE_API;
if (process.env.NODE_ENV === 'development') {
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
BASE_API = 'http://192.168.8.152:9000'; // 袁琪
BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.152:9000'; // 袁琪
// BASE_API = 'http://192.168.8.177:9000'; // 旭强
// BASE_API = 'http://192.168.2.183:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康

View File

@ -1,8 +1,8 @@
<template>
<el-dialog v-loading="loading" v-dialogDrag title="生成车段联锁数据" :visible.sync="dialogTableVisible" class="view_box" width="460px" :before-close="doClose" :modal-append-to-body="false" append-to-body :modal="false">
<el-dialog v-loading="loading" v-dialogDrag title="生成车段联锁数据" :visible.sync="dialogTableVisible" class="view_box" width="460px" :before-close="doClose" :modal-append-to-body="false" append-to-body :modal="false">
<div>
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="160px" class="demo-ruleForm">
<el-form-item label="生成数据的车段" prop="stationCode">
<el-form-item label="生成数据的车段" prop="stationCode">
<el-select v-model="ruleForm.stationCode" size="small" placeholder="请选择">
<el-option
v-for="item in depotList"
@ -32,7 +32,7 @@ export default {
dialogTableVisible: false,
depotList: [],
rules: {
stationCode: [{ required: true, message: '请选择车段', trigger: 'change' }]
stationCode: [{ required: true, message: '请选择车段', trigger: 'change' }]
}
};
},
@ -59,7 +59,12 @@ export default {
generateDepotCiData(this.$route.params.mapId, this.ruleForm.stationCode).then(resp => {
this.loading = false;
this.$messageBox(`生成联锁数据成功:共生成${resp.data}条进路数据!`);
}).catch(() => { this.$message.error('生成联锁失败!'); this.loading = false; });
this.dialogTableVisible = false;
}).catch(() => {
this.$message.error('生成联锁失败!');
this.loading = false;
this.dialogTableVisible = false;
});
}
});
}

View File

@ -310,7 +310,7 @@ export default {
this.$refs.ciConfig.show();
},
generateDepotCiEvent() {
this.$refs.depotStation.doShow();
this.$refs.depotStation.doShow();
},
handleSelectControlPage(model) {
if (this.$refs.mapOperate) {

View File

@ -13,18 +13,18 @@
<el-dropdown class="operate-button" trigger="click">
<span class="el-dropdown-link">配置</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item><span @click="showCenterConfig">行调配置</span></el-dropdown-item>
<el-dropdown-item><span @click="showLocalConfig">现地配置</span></el-dropdown-item>
<el-dropdown-item><span @click="showScreenConfig">大屏配置</span></el-dropdown-item>
<el-dropdown-item><span @click="showDepotConfig">车辆段配置</span></el-dropdown-item>
<el-dropdown-item><div @click="showCenterConfig">行调配置</div></el-dropdown-item>
<el-dropdown-item><div @click="showLocalConfig">现地配置</div></el-dropdown-item>
<el-dropdown-item><div @click="showScreenConfig">大屏配置</div></el-dropdown-item>
<el-dropdown-item><div @click="showDepotConfig">车辆段配置</div></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-dropdown class="operate-button" trigger="click">
<span class="el-dropdown-link">数据操作</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item><span :disabled="$attrs.mapSaveing" @click="verifyMapEvent">{{ $t('map.dataVerification') }}</span></el-dropdown-item>
<el-dropdown-item><span :disabled="$attrs.mapSaveing" @click="generateCIEvent">生成联锁</span></el-dropdown-item>
<el-dropdown-item><span :disabled="$attrs.mapSaveing" @click="generateDepotCiEvent">生成车联段联锁</span></el-dropdown-item>
<el-dropdown-item><div :disabled="$attrs.mapSaveing" @click="verifyMapEvent">{{ $t('map.dataVerification') }}</div></el-dropdown-item>
<el-dropdown-item><div :disabled="$attrs.mapSaveing" @click="generateCIEvent">生成联锁</div></el-dropdown-item>
<el-dropdown-item><div :disabled="$attrs.mapSaveing" @click="generateDepotCiEvent">生成车辆段联锁</div></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button v-if="isSave" type="text" style="padding: 3px 0" :disabled="$attrs.mapSaveing" @click="saveMapEvent">{{ $t('map.save') }}</el-button>