From 1a4d35a08d05e014663c144771976abb0edaa933 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 26 七月 2024 17:41:30 +0800 Subject: [PATCH] 监管场景信息管理 --- pages/inspection/scene/index.js | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pages/inspection/scene/index.js b/pages/inspection/scene/index.js index cb0c7f3..a74171a 100644 --- a/pages/inspection/scene/index.js +++ b/pages/inspection/scene/index.js @@ -18,8 +18,9 @@ _fetchData(page) { const { area, onlineValue, sceneValue } = this.data; + if (!onlineValue || !sceneValue) return; area.scensetypeid = sceneValue[0]; - area.online = onlineValue; + area.online = onlineValue[0]; return searchScene(area, page).then(res => { if (res.success) { this.setData({ @@ -42,14 +43,14 @@ onLocationChange(e) { const { area } = this.data; - area.provinceName = e.detail.provinceText; - area.cityName = e.detail.cityText; - area.districtName = e.detail.districtText; - area.townName = e.detail.townText; - area.provinceCode = e.detail.provinceValue; - area.cityCode = e.detail.cityValue; - area.districtCode = e.detail.districtValue; - area.townCode = e.detail.townValue; + area.provincename = e.detail.provinceText; + area.cityname = e.detail.cityText; + area.districtname = e.detail.districtText; + area.townname = e.detail.townText; + area.provincecode = e.detail.provinceValue; + area.citycode = e.detail.cityValue; + area.districtcode = e.detail.districtValue; + area.towncode = e.detail.townValue; area.locationValue = e.detail.locationValue; this.setData({ area }); this._startLoad(); -- Gitblit v1.9.3