diff --git a/src/components/configure/RtuConfig.vue b/src/components/configure/RtuConfig.vue index 45792e4..1f7b5f9 100644 --- a/src/components/configure/RtuConfig.vue +++ b/src/components/configure/RtuConfig.vue @@ -401,27 +401,12 @@ export default { data() { return { - querySite: "", - rtuCode: "", - querySiteList: [], - siteNameList: [ - "遥测站设置", - "中心站设置", - "传感器型号选择", - "气象传感通信设置", - "工业相机设置", - "水文传感通信", - "从机设置", - "数据滤波", - "水位计", - "雨量计", - "流量计", - "蒸发皿", - "土壤沉降仪", - "4-20mA设置", - "其他设置" - ], - formAll: [], + querySite:'', + rtuCode:'', + querySiteList:[], + siteNameList:['遥测站设置','中心站设置','传感器型号选择','气象传感通信设置','工业相机设置','水文传感通信','从机设置', + '数据滤波','水位计','雨量计','流量计','蒸发皿','土壤沉降仪','4-20mA设置','其他设置'], + formAll:[], // siteNameList:[], formAllBody: [], activeIndex: "0", @@ -867,12 +852,12 @@ }); } }, - created() { - this.getSiteList().then(res => { + created(){ + this.getSiteList().then(res=>{ this.initPage(this.querySiteList[0]); }); this.formControl(); - } + }, // beforeRouteLeave (to, from, next) { // // 导航离开该组件的对应路由时调用 // // 可以访问组件实例 `this` @@ -885,30 +870,19 @@ };