|
@@ -14,14 +14,17 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="起测水位" prop="wlevel">
|
|
<el-form-item label="起测水位" prop="wlevel">
|
|
- <el-input-number
|
|
|
|
- placeholder="请输入起测水位"
|
|
|
|
|
|
+ <el-select
|
|
v-model="form.wlevel"
|
|
v-model="form.wlevel"
|
|
- @change="wlevel => plain.wlevel = wlevel"
|
|
|
|
- :precision="2"
|
|
|
|
- :step="0.1"
|
|
|
|
- :min="plain.wlevelmin"
|
|
|
|
- :max="plain.wlevelmax" />
|
|
|
|
|
|
+ placeholder="请选择停泊点策略"
|
|
|
|
+ @change="wlevel => plain.wlevel = wlevel">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in points"
|
|
|
|
+ :key="item.planid"
|
|
|
|
+ :label="`停泊点策略${item.planid}(${item.wlevel})`"
|
|
|
|
+ :value="item.wlevel">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -64,7 +67,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { getSite, getConfig } from '@/api/site/site'
|
|
import { getSite, getConfig } from '@/api/site/site'
|
|
-import { savePlainTime, getSiteSection, getPlainTime } from '@/api/site/berthing'
|
|
|
|
|
|
+import { savePlainTime, getSiteSection, getPlainTime, listPlainPoint } from '@/api/site/berthing'
|
|
import SectionChart from './chart';
|
|
import SectionChart from './chart';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -78,11 +81,12 @@ export default {
|
|
site: {},
|
|
site: {},
|
|
loading: false,
|
|
loading: false,
|
|
times: [],
|
|
times: [],
|
|
|
|
+ points: [],
|
|
plain: {
|
|
plain: {
|
|
sections: [],
|
|
sections: [],
|
|
- wlevelmax: 0,
|
|
|
|
- wlevelmin: 0,
|
|
|
|
- wlevel: 0,
|
|
|
|
|
|
+ wlevelmax: '',
|
|
|
|
+ wlevelmin: '',
|
|
|
|
+ wlevel: '',
|
|
},
|
|
},
|
|
form: {
|
|
form: {
|
|
timeId: '',
|
|
timeId: '',
|
|
@@ -91,7 +95,7 @@ export default {
|
|
siteId: '',
|
|
siteId: '',
|
|
siteName: '',
|
|
siteName: '',
|
|
type: '',
|
|
type: '',
|
|
- wlevel: 0,
|
|
|
|
|
|
+ wlevel: '',
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
wlevel: [
|
|
wlevel: [
|
|
@@ -106,6 +110,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ loadPoints() {
|
|
|
|
+ listPlainPoint({ siteId: this.siteId, page: 1, size: 10000 }).then(response => {
|
|
|
|
+ this.points = response.data.records;
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ },
|
|
loadPlainTime() {
|
|
loadPlainTime() {
|
|
getPlainTime(this.timeId).then((res) => {
|
|
getPlainTime(this.timeId).then((res) => {
|
|
const { timeId, siteId, wlevel, times } = res.data || {};
|
|
const { timeId, siteId, wlevel, times } = res.data || {};
|
|
@@ -118,6 +128,7 @@ export default {
|
|
|
|
|
|
this.siteId = siteId;
|
|
this.siteId = siteId;
|
|
this.loadSite();
|
|
this.loadSite();
|
|
|
|
+ this.loadPoints();
|
|
this.loadSection();
|
|
this.loadSection();
|
|
this.loadConfig();
|
|
this.loadConfig();
|
|
})
|
|
})
|
|
@@ -182,6 +193,7 @@ export default {
|
|
this.siteId = this.$route.query.siteId;
|
|
this.siteId = this.$route.query.siteId;
|
|
if (this.siteId) {
|
|
if (this.siteId) {
|
|
this.loadSite();
|
|
this.loadSite();
|
|
|
|
+ this.loadPoints();
|
|
this.loadSection();
|
|
this.loadSection();
|
|
this.loadConfig();
|
|
this.loadConfig();
|
|
}
|
|
}
|