仿真右侧列车显示过滤&加载备用车置灰已上线车辆

This commit is contained in:
fan 2021-12-07 14:10:07 +08:00
parent 2e0ba39171
commit 5a5dd046eb
4 changed files with 14 additions and 4 deletions

View File

@ -20,6 +20,7 @@
<el-option
v-for="item in trainList"
:key="item.code"
:disabled="disabledTrain(item.code)"
:label="item.code"
:value="item.code"
/>
@ -103,7 +104,7 @@ export default {
watch:{},
methods: {
doShow(operate, selected) {
this.$root.$emit('dialogOpen', selected);
this.$root.$emit('dialogOpen', selected);
this.selected = selected;
//
// if (!this.dialogShow) {
@ -154,6 +155,9 @@ export default {
this.doClose();
}
}).catch(() => { this.doClose(); });
},
disabledTrain(code) {
return this.$store.state.map.activeTrainList.includes(code);
}
}
};

View File

@ -1030,6 +1030,12 @@ const map = {
}
}
});
const train = state.mapDevice[data.code];
if (train.physicalCode) {
const section = state.mapDevice[train.physicalCode];
const station = section ? state.mapDevice[section.stationCode] : {};
isExist = isExist || station.depot;
}
if (!isExist) {
state.activeTrainList.push(data.code);
state.activeTrainListChange += 1;

View File

@ -2,8 +2,9 @@ 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://114.116.51.125/jlcloud';
BASE_API = 'http://192.168.8.152:9000'; // 袁琪
// BASE_API = 'http://192.168.8.172:9200'; // 旭强
// BASE_API = 'http://192.168.8.109:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康

View File

@ -133,7 +133,6 @@ export default {
this.addModel.modelCode = '';
this.$emit('dispatch', { callback: 'delTrainMode', params: code});
},
// 14
handleConfirm() {
this.$refs['form'].validate((valid) => {
if (valid) {