仿真右侧列车显示过滤&加载备用车置灰已上线车辆
This commit is contained in:
parent
2e0ba39171
commit
5a5dd046eb
@ -20,6 +20,7 @@
|
|||||||
<el-option
|
<el-option
|
||||||
v-for="item in trainList"
|
v-for="item in trainList"
|
||||||
:key="item.code"
|
:key="item.code"
|
||||||
|
:disabled="disabledTrain(item.code)"
|
||||||
:label="item.code"
|
:label="item.code"
|
||||||
:value="item.code"
|
:value="item.code"
|
||||||
/>
|
/>
|
||||||
@ -103,7 +104,7 @@ export default {
|
|||||||
watch:{},
|
watch:{},
|
||||||
methods: {
|
methods: {
|
||||||
doShow(operate, selected) {
|
doShow(operate, selected) {
|
||||||
this.$root.$emit('dialogOpen', selected);
|
this.$root.$emit('dialogOpen', selected);
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
// 如果不是断点激活,则需要对初始值进行初始化
|
// 如果不是断点激活,则需要对初始值进行初始化
|
||||||
// if (!this.dialogShow) {
|
// if (!this.dialogShow) {
|
||||||
@ -154,6 +155,9 @@ export default {
|
|||||||
this.doClose();
|
this.doClose();
|
||||||
}
|
}
|
||||||
}).catch(() => { 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) {
|
if (!isExist) {
|
||||||
state.activeTrainList.push(data.code);
|
state.activeTrainList.push(data.code);
|
||||||
state.activeTrainListChange += 1;
|
state.activeTrainListChange += 1;
|
||||||
|
@ -2,8 +2,9 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// 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.152:9000'; // 袁琪
|
// 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.172:9200'; // 旭强
|
||||||
// BASE_API = 'http://192.168.8.109:9000'; // 张赛
|
// BASE_API = 'http://192.168.8.109:9000'; // 张赛
|
||||||
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
|
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
|
||||||
|
@ -133,7 +133,6 @@ export default {
|
|||||||
this.addModel.modelCode = '';
|
this.addModel.modelCode = '';
|
||||||
this.$emit('dispatch', { callback: 'delTrainMode', params: code});
|
this.$emit('dispatch', { callback: 'delTrainMode', params: code});
|
||||||
},
|
},
|
||||||
// 14
|
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user