车辆段生成联锁数据3

This commit is contained in:
fan 2021-09-13 16:49:55 +08:00
parent b1042ee52b
commit 8c8fa154d3
2 changed files with 8 additions and 5 deletions

View File

@ -2,8 +2,8 @@ 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.107:9000'; // 袁琪 BASE_API = 'http://192.168.8.152:9000'; // 袁琪
// BASE_API = 'http://192.168.8.177:9000'; // 旭强 // BASE_API = 'http://192.168.8.177:9000'; // 旭强
// BASE_API = 'http://192.168.2.183:9000'; // 张赛 // BASE_API = 'http://192.168.2.183:9000'; // 张赛
// BASE_API = 'http://192.168.8.140:9000'; // 杜康 // BASE_API = 'http://192.168.8.140:9000'; // 杜康

View File

@ -1,5 +1,5 @@
<template> <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> <div>
<el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="160px" class="demo-ruleForm"> <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="160px" class="demo-ruleForm">
<el-form-item label="生成数据的车联段" prop="stationCode"> <el-form-item label="生成数据的车联段" prop="stationCode">
@ -28,6 +28,7 @@ export default {
data () { data () {
return { return {
ruleForm: { stationCode: '' }, ruleForm: { stationCode: '' },
loading: false,
dialogTableVisible: false, dialogTableVisible: false,
depotList: [], depotList: [],
rules: { rules: {
@ -54,9 +55,11 @@ export default {
submitForm() { submitForm() {
this.$refs['ruleForm'].validate((valid) => { this.$refs['ruleForm'].validate((valid) => {
if (valid) { if (valid) {
this.loading = true;
generateDepotCiData(this.$route.params.mapId, this.ruleForm.stationCode).then(resp => { generateDepotCiData(this.$route.params.mapId, this.ruleForm.stationCode).then(resp => {
this.loading = false;
}).catch(() => { this.$message.error('生成联锁失败!'); }); this.$messageBox(`生成联锁数据成功:共生成${resp.data}条进路数据!`);
}).catch(() => { this.$message.error('生成联锁失败!'); this.loading = false; });
} }
}); });
} }