|
|
@@ -10,7 +10,7 @@
|
|
|
<!-- <el-button type="warning">图上选择</el-button> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="追踪距离">
|
|
|
- <el-input-number v-model="form.num" controls-position="right" :min="1" :max="10000" style="width: 158px" :disabled="noDistance"></el-input-number>
|
|
|
+ <el-input-number v-model="form.num" controls-position="right" :min="1" :max="10000" style="width: 158px" :disabled="noDistance" @blur="inputNumber"></el-input-number>
|
|
|
<el-checkbox v-model="noDistance">不限距离</el-checkbox>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="追踪方式">
|
|
|
@@ -179,6 +179,7 @@ export default {
|
|
|
tablename2: layerName,
|
|
|
mode: this.trackType.join(',')
|
|
|
}
|
|
|
+ if (!this.noDistance) params['distance'] = this.form.num
|
|
|
getConnectivity(params).then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
const pipeData = res.result.pipeData || []
|
|
|
@@ -216,6 +217,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 距离数据检查
|
|
|
+ */
|
|
|
+ inputNumber() {
|
|
|
+ if (!this.form.num) this.$set(this.form, "num", 200)
|
|
|
+ },
|
|
|
// loadPipeLineChart() {
|
|
|
// let chartDom = document.getElementById('pipeChart')
|
|
|
// let myChart = echarts.init(chartDom)
|