车辆段生成联锁数据

This commit is contained in:
fan 2021-09-13 16:26:08 +08:00
parent de040bdc45
commit b1042ee52b
3 changed files with 12 additions and 1 deletions

View File

@ -728,3 +728,10 @@ export function queryOverunSectionList(mapId) {
method: 'get'
});
}
// 自动生成车辆段停车场连锁关系
export function generateDepotCiData(mapId, stationCode) {
return request({
url: `/api/mapBuild/${mapId}/ci/generateAndSaveDepot?stationCode=${stationCode}`,
method: 'post'
});
}

View File

@ -2,7 +2,7 @@ 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 = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://192.168.8.107:9000'; // 袁琪
// BASE_API = 'http://192.168.8.177:9000'; // 旭强
// BASE_API = 'http://192.168.2.183:9000'; // 张赛

View File

@ -24,6 +24,7 @@
<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-menu>
</el-dropdown>
<el-button v-if="isSave" type="text" style="padding: 3px 0" :disabled="$attrs.mapSaveing" @click="saveMapEvent">{{ $t('map.save') }}</el-button>
@ -238,6 +239,9 @@ export default {
},
generateCIEvent() {
this.$emit('generateCIEvent');
},
generateDepotCiEvent() {
this.$emit('generateDepotCiEvent');
}
}
};