|
@@ -5,24 +5,24 @@
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<template>
|
|
<template>
|
|
-<div>
|
|
|
|
- <el-dialog
|
|
|
|
- :visible.sync="showDialog"
|
|
|
|
- :title="title"
|
|
|
|
- :modal-append-to-body="false"
|
|
|
|
- style="text-align: left"
|
|
|
|
- width="1200px"
|
|
|
|
- @close="closeDialog"
|
|
|
|
- :close-on-click-modal="false"
|
|
|
|
- >
|
|
|
|
- <div class="user-panel" v-loading="loading">
|
|
|
|
- <el-form
|
|
|
|
- ref="form"
|
|
|
|
- :model="formModel"
|
|
|
|
- :rules="ruleValidate"
|
|
|
|
- :label-width="'130px'"
|
|
|
|
- :inline="true"
|
|
|
|
- >
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <el-dialog
|
|
|
|
+ :visible.sync="showDialog"
|
|
|
|
+ :title="title"
|
|
|
|
+ :modal-append-to-body="false"
|
|
|
|
+ style="text-align: left"
|
|
|
|
+ width="1200px"
|
|
|
|
+ @close="closeDialog"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ >
|
|
|
|
+ <div class="user-panel" v-loading="loading">
|
|
|
|
+ <el-form
|
|
|
|
+ ref="form"
|
|
|
|
+ :model="formModel"
|
|
|
|
+ :rules="ruleValidate"
|
|
|
|
+ :label-width="'130px'"
|
|
|
|
+ :inline="true"
|
|
|
|
+ >
|
|
<el-form-item label="所属公司" prop="companyId">
|
|
<el-form-item label="所属公司" prop="companyId">
|
|
<el-select-tree
|
|
<el-select-tree
|
|
:props="props"
|
|
:props="props"
|
|
@@ -33,48 +33,57 @@
|
|
></el-select-tree>
|
|
></el-select-tree>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="地区" prop="regionId">
|
|
<el-form-item label="地区" prop="regionId">
|
|
- <el-select-tree
|
|
|
|
- :props="props"
|
|
|
|
- :options="regionData"
|
|
|
|
- v-model="formModel.regionId"
|
|
|
|
- size="mediumn"
|
|
|
|
- width="400px"
|
|
|
|
- ></el-select-tree>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-select-tree
|
|
|
|
+ :props="props"
|
|
|
|
+ :options="regionData"
|
|
|
|
+ v-model="formModel.regionId"
|
|
|
|
+ size="mediumn"
|
|
|
|
+ width="400px"
|
|
|
|
+ ></el-select-tree>
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
<el-form-item label="路线名称" prop="name">
|
|
<el-form-item label="路线名称" prop="name">
|
|
- <el-input
|
|
|
|
- v-model="formModel.name"
|
|
|
|
- placeholder="请输入路线名称"
|
|
|
|
- style="width:400px"
|
|
|
|
- ></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="开始时间" prop="startTime">
|
|
|
|
- <el-time-select
|
|
|
|
- v-model="formModel.startTime"
|
|
|
|
- placeholder="开始时间"
|
|
|
|
- value-format="HH:mm"
|
|
|
|
- style="width:400px"
|
|
|
|
- :picker-options="{
|
|
|
|
- start: '00:00',
|
|
|
|
- step: '00:30',
|
|
|
|
- end: '23:30'
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="formModel.name"
|
|
|
|
+ placeholder="请输入路线名称"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="开始时间" prop="startTime">
|
|
|
|
+ <el-time-select
|
|
|
|
+ v-model="formModel.startTime"
|
|
|
|
+ placeholder="开始时间"
|
|
|
|
+ value-format="HH:mm"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ :picker-options="{
|
|
|
|
+ start: '00:00',
|
|
|
|
+ step: '00:30',
|
|
|
|
+ end: '23:30',
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
</el-time-select>
|
|
</el-time-select>
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="结束时间" prop="endTime">
|
|
|
|
- <el-time-select
|
|
|
|
- v-model="formModel.endTime"
|
|
|
|
- placeholder="结束时间"
|
|
|
|
- style="width:400px"
|
|
|
|
- :picker-options="{
|
|
|
|
- start: '00:00',
|
|
|
|
- step: '00:30',
|
|
|
|
- end: '23:30'
|
|
|
|
- }">
|
|
|
|
- </el-time-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="结束时间" prop="endTime">
|
|
|
|
+ <el-time-select
|
|
|
|
+ v-model="formModel.endTime"
|
|
|
|
+ placeholder="结束时间"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ :picker-options="{
|
|
|
|
+ start: '00:00',
|
|
|
|
+ step: '00:30',
|
|
|
|
+ end: '23:30',
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
|
|
+ </el-time-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="间隔时间(分钟)" prop="interval">
|
|
|
|
+ <el-input-number
|
|
|
|
+ v-model="formModel.interval"
|
|
|
|
+ placeholder="请输入间隔时间"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ :min="0"
|
|
|
|
+ ></el-input-number>
|
|
|
|
+ </el-form-item>
|
|
<h3>车辆站点信息</h3>
|
|
<h3>车辆站点信息</h3>
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
<el-row class="button-group">
|
|
<el-row class="button-group">
|
|
@@ -88,73 +97,122 @@
|
|
>
|
|
>
|
|
</el-row>
|
|
</el-row>
|
|
<el-table :data="formModel.stationList">
|
|
<el-table :data="formModel.stationList">
|
|
- <el-table-column type="index" label="序号" width="55"></el-table-column>
|
|
|
|
- <el-table-column prop="name" label="站点名称">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ type="index"
|
|
|
|
+ label="序号"
|
|
|
|
+ width="55"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column prop="name" label="站点名称" width="300px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-form-item
|
|
<el-form-item
|
|
:prop="'stationList.' + scope.$index + '.name'"
|
|
:prop="'stationList.' + scope.$index + '.name'"
|
|
:rules="ruleValidate['name']"
|
|
:rules="ruleValidate['name']"
|
|
>
|
|
>
|
|
- <el-input placeholder="站点名称" style="width:200px" v-model="scope.row.name"></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="站点名称"
|
|
|
|
+ v-model="scope.row.name"
|
|
|
|
+ style="width: 250px"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="classify" label="站点类型">
|
|
|
|
- <template slot-scope="{row}">
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-select v-model="row.classify" placeholder="请选择" style="width:150px;">
|
|
|
|
- <el-option
|
|
|
|
- v-for="result in stationClassify"
|
|
|
|
- :key="result.id"
|
|
|
|
- :label="result.name"
|
|
|
|
- :value="result.value"
|
|
|
|
- ></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ <el-table-column prop="classify" label="站点类型" width="130px">
|
|
|
|
+ <template slot-scope="{ row }">
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="row.classify"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ style="width: 120px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="result in stationClassify"
|
|
|
|
+ :key="result.id"
|
|
|
|
+ :label="result.name"
|
|
|
|
+ :value="result.value"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="location" label="站点定位">
|
|
<el-table-column prop="location" label="站点定位">
|
|
- <template slot-scope="{row}">
|
|
|
|
|
|
+ <template slot-scope="{ row }">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-input placeholder="经纬度" style="width:200px" v-model="row.location"></el-input>
|
|
|
|
- <i class="el-icon-map-location my-font" @click="handleLocation(row)"></i>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="经纬度"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ v-model="row.location"
|
|
|
|
+ ></el-input>
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-map-location my-font"
|
|
|
|
+ @click="handleLocation(row)"
|
|
|
|
+ ></i>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="name" label="半径(米)" width="120px">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-form-item
|
|
|
|
+ :prop="'stationList.' + scope.$index + '.radius'"
|
|
|
|
+ :rules="ruleValidate['radius']"
|
|
|
|
+ >
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="半径"
|
|
|
|
+ v-model="scope.row.radius"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" width="200">
|
|
<el-table-column label="操作" width="200">
|
|
- <template slot-scope="{row}">
|
|
|
|
|
|
+ <template slot-scope="{ row }">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <i class="el-icon-delete my-font" @click="handleDelete(row)"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-delete my-font"
|
|
|
|
+ @click="handleDelete(row)"
|
|
|
|
+ ></i>
|
|
<i class="el-icon-top my-font" @click="handleUp(row)"></i>
|
|
<i class="el-icon-top my-font" @click="handleUp(row)"></i>
|
|
- <i class="el-icon-bottom my-font" @click="handleDown(row)"></i>
|
|
|
|
- <i class="el-icon-document-add my-font" @click="handleInsert(row)"></i>
|
|
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-bottom my-font"
|
|
|
|
+ @click="handleDown(row)"
|
|
|
|
+ ></i>
|
|
|
|
+ <i
|
|
|
|
+ class="el-icon-document-add my-font"
|
|
|
|
+ @click="handleInsert(row)"
|
|
|
|
+ ></i>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<div slot="empty">
|
|
<div slot="empty">
|
|
- <el-button icon="el-icon-circle-plus-outline" :plain="true" @click="handleAdd()">新增</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ icon="el-icon-circle-plus-outline"
|
|
|
|
+ :plain="true"
|
|
|
|
+ @click="handleAdd()"
|
|
|
|
+ >新增</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</el-table>
|
|
</el-table>
|
|
-
|
|
|
|
-
|
|
|
|
- </el-form>
|
|
|
|
- <div class="el-table__empty-block" v-if="formModel.stationList.length!=0">
|
|
|
|
- <el-button icon="el-icon-circle-plus-outline" @click="handleAdd()">新增</el-button>
|
|
|
|
|
|
+ </el-form>
|
|
|
|
+ <div
|
|
|
|
+ class="el-table__empty-block"
|
|
|
|
+ v-if="formModel.stationList.length != 0"
|
|
|
|
+ >
|
|
|
|
+ <el-button icon="el-icon-circle-plus-outline" @click="handleAdd()"
|
|
|
|
+ >新增</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
|
- <el-button @click="closeDialog">取 消</el-button>
|
|
|
|
- <el-button type="primary" @click="handleSubmit" :loading="submitting"
|
|
|
|
- >确 定</el-button
|
|
|
|
- >
|
|
|
|
- </span>
|
|
|
|
- </el-dialog>
|
|
|
|
- <el-dialog
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="closeDialog">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="handleSubmit" :loading="submitting"
|
|
|
|
+ >确 定</el-button
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <el-dialog
|
|
:visible.sync="showMapDialog"
|
|
:visible.sync="showMapDialog"
|
|
title="地图选点"
|
|
title="地图选点"
|
|
:modal-append-to-body="true"
|
|
:modal-append-to-body="true"
|
|
:append-to-body="true"
|
|
:append-to-body="true"
|
|
- style="text-align:left;"
|
|
|
|
|
|
+ style="text-align: left"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
>
|
|
>
|
|
<el-amap
|
|
<el-amap
|
|
@@ -166,17 +224,25 @@
|
|
:events="events"
|
|
:events="events"
|
|
class="amap-demo"
|
|
class="amap-demo"
|
|
>
|
|
>
|
|
- <el-amap-marker vid="amapDemo" :position="pointPosition"></el-amap-marker>
|
|
|
|
|
|
+ <el-amap-marker
|
|
|
|
+ vid="amapDemo"
|
|
|
|
+ :position="pointPosition"
|
|
|
|
+ ></el-amap-marker>
|
|
</el-amap>
|
|
</el-amap>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
- <div style="position:absolute;left:20px;bottom:20px;">
|
|
|
|
- <el-input placeholder="当前经纬度" v-model="selectedRow.location"
|
|
|
|
- style="width:400px;">
|
|
|
|
|
|
+ <div style="position: absolute; left: 20px; bottom: 20px">
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="当前经纬度"
|
|
|
|
+ v-model="selectedRow.location"
|
|
|
|
+ style="width: 400px"
|
|
|
|
+ >
|
|
<template slot="prepend">经纬度</template>
|
|
<template slot="prepend">经纬度</template>
|
|
- <el-button slot="append" icon="el-icon-search" @click="handleRegeo">定位</el-button>
|
|
|
|
|
|
+ <el-button slot="append" icon="el-icon-search" @click="handleRegeo"
|
|
|
|
+ >定位</el-button
|
|
|
|
+ >
|
|
</el-input>
|
|
</el-input>
|
|
</div>
|
|
</div>
|
|
- <el-button @click="showMapDialog=false;">取 消</el-button>
|
|
|
|
|
|
+ <el-button @click="showMapDialog = false">取 消</el-button>
|
|
<el-button type="primary" @click="handleSelectPoint()">确 定</el-button>
|
|
<el-button type="primary" @click="handleSelectPoint()">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -255,15 +321,13 @@ export default {
|
|
companyId: "",
|
|
companyId: "",
|
|
goodsId: "",
|
|
goodsId: "",
|
|
stationList: [],
|
|
stationList: [],
|
|
- removeStationList: []
|
|
|
|
|
|
+ removeStationList: [],
|
|
},
|
|
},
|
|
ruleValidate: {
|
|
ruleValidate: {
|
|
companyId: [
|
|
companyId: [
|
|
{ required: true, message: "所属单位不能为空", trigger: "blur" },
|
|
{ required: true, message: "所属单位不能为空", trigger: "blur" },
|
|
],
|
|
],
|
|
- name: [
|
|
|
|
- { required: true, message: "车牌号不能为空", trigger: "blur" },
|
|
|
|
- ],
|
|
|
|
|
|
+ name: [{ required: true, message: "车牌号不能为空", trigger: "blur" }],
|
|
startTime: [
|
|
startTime: [
|
|
{ required: true, message: "开始时间不能为空", trigger: "blur" },
|
|
{ required: true, message: "开始时间不能为空", trigger: "blur" },
|
|
],
|
|
],
|
|
@@ -273,6 +337,12 @@ export default {
|
|
regionId: [
|
|
regionId: [
|
|
{ required: true, message: "地区不能为空", trigger: "blur" },
|
|
{ required: true, message: "地区不能为空", trigger: "blur" },
|
|
],
|
|
],
|
|
|
|
+ interval: [
|
|
|
|
+ { required: true, message: "间隔时间不能为空", trigger: "blur" },
|
|
|
|
+ ],
|
|
|
|
+ radius: [
|
|
|
|
+ { required: true, message: "半径不能为空", trigger: "blur" },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
showDialog: true,
|
|
showDialog: true,
|
|
loading: false,
|
|
loading: false,
|
|
@@ -296,13 +366,13 @@ export default {
|
|
amapManager,
|
|
amapManager,
|
|
zoom: 12,
|
|
zoom: 12,
|
|
events: {
|
|
events: {
|
|
- click: e => {
|
|
|
|
|
|
+ click: (e) => {
|
|
var pt = e.lnglat; //点击选择新地址为中心点
|
|
var pt = e.lnglat; //点击选择新地址为中心点
|
|
console.log(pt);
|
|
console.log(pt);
|
|
|
|
|
|
this.pointPosition = [pt.lng, pt.lat];
|
|
this.pointPosition = [pt.lng, pt.lat];
|
|
this.selectedRow.location = pt.lng + "," + pt.lat;
|
|
this.selectedRow.location = pt.lng + "," + pt.lat;
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
// 配置项(必选)
|
|
// 配置项(必选)
|
|
@@ -313,7 +383,7 @@ export default {
|
|
uploadUrlXls: Constant.serverUrl + "/bus/stationInfo/importXls",
|
|
uploadUrlXls: Constant.serverUrl + "/bus/stationInfo/importXls",
|
|
uploadXlsData: {
|
|
uploadXlsData: {
|
|
subFolder: "station",
|
|
subFolder: "station",
|
|
- routeId:this.businessKey,
|
|
|
|
|
|
+ routeId: this.businessKey,
|
|
},
|
|
},
|
|
sceneData: [],
|
|
sceneData: [],
|
|
regionData: [],
|
|
regionData: [],
|
|
@@ -328,7 +398,7 @@ export default {
|
|
var formData = new FormData();
|
|
var formData = new FormData();
|
|
formData.append("catalogName", "站点类型");
|
|
formData.append("catalogName", "站点类型");
|
|
|
|
|
|
- dataDictionaryApi.findByCatalogName(formData).then(response => {
|
|
|
|
|
|
+ dataDictionaryApi.findByCatalogName(formData).then((response) => {
|
|
var jsonData = response.data;
|
|
var jsonData = response.data;
|
|
this.stationClassify = jsonData.data;
|
|
this.stationClassify = jsonData.data;
|
|
});
|
|
});
|
|
@@ -339,7 +409,7 @@ export default {
|
|
self.companyResult = jsonData.data;
|
|
self.companyResult = jsonData.data;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
regionInfoApi.list().then((response) => {
|
|
regionInfoApi.list().then((response) => {
|
|
var jsonData = response.data;
|
|
var jsonData = response.data;
|
|
this.regionData = jsonData.data;
|
|
this.regionData = jsonData.data;
|
|
@@ -427,25 +497,25 @@ export default {
|
|
routeId: this.businessKey,
|
|
routeId: this.businessKey,
|
|
classify: "",
|
|
classify: "",
|
|
location: "",
|
|
location: "",
|
|
- delFlag: 0
|
|
|
|
|
|
+ delFlag: 0,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
handleInsert(row) {
|
|
handleInsert(row) {
|
|
var stationList = this.formModel.stationList;
|
|
var stationList = this.formModel.stationList;
|
|
var index = stationList.indexOf(row);
|
|
var index = stationList.indexOf(row);
|
|
|
|
|
|
- if(index>=0){
|
|
|
|
- stationList.splice(index+1,0,{
|
|
|
|
|
|
+ if (index >= 0) {
|
|
|
|
+ stationList.splice(index + 1, 0, {
|
|
sortNo: index + 2,
|
|
sortNo: index + 2,
|
|
name: "",
|
|
name: "",
|
|
routeId: this.businessKey,
|
|
routeId: this.businessKey,
|
|
classify: "",
|
|
classify: "",
|
|
location: "",
|
|
location: "",
|
|
- delFlag: 0
|
|
|
|
|
|
+ delFlag: 0,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- handleRegeo(){
|
|
|
|
|
|
+ handleRegeo() {
|
|
var row = this.selectedRow;
|
|
var row = this.selectedRow;
|
|
|
|
|
|
if (row.location != null && row.location.length > 0) {
|
|
if (row.location != null && row.location.length > 0) {
|
|
@@ -469,18 +539,18 @@ export default {
|
|
var stationList = this.formModel.stationList;
|
|
var stationList = this.formModel.stationList;
|
|
var index = stationList.indexOf(row);
|
|
var index = stationList.indexOf(row);
|
|
|
|
|
|
- if(index>0){
|
|
|
|
|
|
+ if (index > 0) {
|
|
stationList.splice(index, 1);
|
|
stationList.splice(index, 1);
|
|
- stationList.splice(index-1,0,row);
|
|
|
|
|
|
+ stationList.splice(index - 1, 0, row);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleDown(row) {
|
|
handleDown(row) {
|
|
var stationList = this.formModel.stationList;
|
|
var stationList = this.formModel.stationList;
|
|
var index = stationList.indexOf(row);
|
|
var index = stationList.indexOf(row);
|
|
|
|
|
|
- if(index<stationList.length-1){
|
|
|
|
|
|
+ if (index < stationList.length - 1) {
|
|
stationList.splice(index, 1);
|
|
stationList.splice(index, 1);
|
|
- stationList.splice(index+1,0,row);
|
|
|
|
|
|
+ stationList.splice(index + 1, 0, row);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeUpload(file, fileList) {
|
|
beforeUpload(file, fileList) {
|
|
@@ -538,7 +608,7 @@ export default {
|
|
} 个文件`
|
|
} 个文件`
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- refurbishList(){
|
|
|
|
|
|
+ refurbishList() {
|
|
var self = this;
|
|
var self = this;
|
|
(function () {
|
|
(function () {
|
|
if (self.businessKey.length == 0) {
|
|
if (self.businessKey.length == 0) {
|
|
@@ -560,7 +630,7 @@ export default {
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
self.$message.error(error + "");
|
|
self.$message.error(error + "");
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
"el-select-tree": SelectTree,
|
|
"el-select-tree": SelectTree,
|
|
@@ -580,6 +650,9 @@ export default {
|
|
|
|
|
|
if (jsonData.result) {
|
|
if (jsonData.result) {
|
|
self.formModel = jsonData.data;
|
|
self.formModel = jsonData.data;
|
|
|
|
+ if(self.formModel.interval == null){
|
|
|
|
+ self.formModel.interval = 40;
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
self.$message.error(jsonData.message + "");
|
|
self.$message.error(jsonData.message + "");
|
|
}
|
|
}
|