仿真右侧列车显示过滤&加载备用车置灰已上线车辆
This commit is contained in:
parent
2e0ba39171
commit
5a5dd046eb
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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'; // 杜康
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user