车辆段生成联锁数据3
This commit is contained in:
parent
b1042ee52b
commit
8c8fa154d3
@ -2,8 +2,8 @@ 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.107:9000'; // 袁琪
|
||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
BASE_API = 'http://192.168.8.152:9000'; // 袁琪
|
||||
// BASE_API = 'http://192.168.8.177:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.2.183:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.8.140:9000'; // 杜康
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag title="生成车联段联锁数据" :visible.sync="dialogTableVisible" class="view_box" width="460px" :before-close="doClose" :modal-append-to-body="false" append-to-body :modal="false">
|
||||
<el-dialog v-loading="loading" v-dialogDrag title="生成车联段联锁数据" :visible.sync="dialogTableVisible" class="view_box" width="460px" :before-close="doClose" :modal-append-to-body="false" append-to-body :modal="false">
|
||||
<div>
|
||||
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="160px" class="demo-ruleForm">
|
||||
<el-form-item label="生成数据的车联段" prop="stationCode">
|
||||
@ -28,6 +28,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
ruleForm: { stationCode: '' },
|
||||
loading: false,
|
||||
dialogTableVisible: false,
|
||||
depotList: [],
|
||||
rules: {
|
||||
@ -54,9 +55,11 @@ export default {
|
||||
submitForm() {
|
||||
this.$refs['ruleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.loading = true;
|
||||
generateDepotCiData(this.$route.params.mapId, this.ruleForm.stationCode).then(resp => {
|
||||
|
||||
}).catch(() => { this.$message.error('生成联锁失败!'); });
|
||||
this.loading = false;
|
||||
this.$messageBox(`生成联锁数据成功:共生成${resp.data}条进路数据!`);
|
||||
}).catch(() => { this.$message.error('生成联锁失败!'); this.loading = false; });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user