列车添加载荷参数
This commit is contained in:
parent
870856f3d7
commit
a3485c94f7
@ -1 +1 @@
|
||||
Subproject commit 7d576a6c69ccbcdcdf14219f992602ccf0b1b30f
|
||||
Subproject commit 8919d6e5d6de5d46332eb5eb6b6c052215fa0ad2
|
@ -390,6 +390,7 @@ export interface TrainConfig {
|
||||
idlingA: number;
|
||||
idlingR: number;
|
||||
idlingD: number;
|
||||
trainLoad?: number;
|
||||
};
|
||||
trainEndsA: {
|
||||
radarCheckSpeedDiff: number;
|
||||
|
@ -45,6 +45,7 @@ export interface TrainConfigData {
|
||||
idlingA: number;
|
||||
idlingR: number;
|
||||
idlingD: number;
|
||||
trainLoad?: number;
|
||||
}
|
||||
|
||||
export interface TrainCreateParams {
|
||||
|
@ -328,6 +328,14 @@
|
||||
hint=""
|
||||
/>
|
||||
</div>
|
||||
<div class="col-3 q-px-sm">
|
||||
<q-input
|
||||
outlined
|
||||
v-model.number="model.configData.trainLoad"
|
||||
label="载荷参数"
|
||||
hint=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -513,6 +521,7 @@ const model = reactive({
|
||||
idlingA: 0,
|
||||
idlingR: 0,
|
||||
idlingD: 0,
|
||||
trainLoad: 0,
|
||||
},
|
||||
length: 0,
|
||||
wheelDiameter: 0,
|
||||
@ -573,6 +582,7 @@ function initModel() {
|
||||
idlingA: trainState.idlingA,
|
||||
idlingR: trainState.idlingR,
|
||||
idlingD: trainState.idlingD,
|
||||
trainLoad: trainState.trainLoad,
|
||||
};
|
||||
model.length = trainState.trainLength;
|
||||
model.wheelDiameter = trainState.wheelDiameter;
|
||||
|
@ -10,7 +10,7 @@ function getHost(): string {
|
||||
// return '192.168.3.47:9091';
|
||||
// return '192.168.3.37:9091';
|
||||
//return '192.168.33.207:9091'; // 张骞
|
||||
// return '192.168.33.93:9091';
|
||||
return '192.168.33.93:9091';
|
||||
// return '192.168.3.37:9091'; //卫志宏
|
||||
// return 'test.joylink.club/bjrtsts-service'; // 测试
|
||||
return '192.168.33.233:9091';
|
||||
|
@ -255,6 +255,14 @@
|
||||
hint=""
|
||||
/>
|
||||
</div>
|
||||
<div class="col-4 q-px-sm">
|
||||
<q-input
|
||||
outlined
|
||||
v-model.number="editInfo.trainConfigData.trainLoad"
|
||||
label="载荷参数"
|
||||
hint=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -579,6 +587,7 @@ function onReset() {
|
||||
editInfo.trainConfigData.idlingA = 0;
|
||||
editInfo.trainConfigData.idlingR = 0;
|
||||
editInfo.trainConfigData.idlingD = 0;
|
||||
editInfo.trainConfigData.trainLoad = 0;
|
||||
createForm.value?.resetValidation();
|
||||
}
|
||||
|
||||
@ -635,6 +644,7 @@ interface EditCreateItem extends TrainCreateParams {
|
||||
idlingA: number;
|
||||
idlingR: number;
|
||||
idlingD: number;
|
||||
trainLoad: number;
|
||||
};
|
||||
}
|
||||
|
||||
@ -667,6 +677,7 @@ const editInfo = reactive<EditCreateItem>({
|
||||
idlingA: 0,
|
||||
idlingR: 0,
|
||||
idlingD: 0,
|
||||
trainLoad: 0,
|
||||
},
|
||||
});
|
||||
function editData(row: TrainItem) {
|
||||
@ -705,6 +716,7 @@ function editData(row: TrainItem) {
|
||||
editInfo.trainConfigData.idlingA = res.trainConfigData.idlingA;
|
||||
editInfo.trainConfigData.idlingR = res.trainConfigData.idlingR;
|
||||
editInfo.trainConfigData.idlingD = res.trainConfigData.idlingD;
|
||||
editInfo.trainConfigData.trainLoad = res.trainConfigData.trainLoad || 0;
|
||||
}
|
||||
createFormShow.value = true;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user