From 610f294797a64ffbc7aed14757ef8406b63b472a Mon Sep 17 00:00:00 2001 From: wangqing Date: Thu, 10 Jun 2021 16:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 2 +- src/components/form/InputMap/index.vue | 2 ++ src/utils/expression.js | 6 ++--- src/views/form/statistics/filter.vue | 32 +++++++++++++++++--------- 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index b3390d7..ae73484 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -17,7 +17,7 @@ const toLogin = () => { const api = axios.create({ baseURL: process.env.VUE_APP_API_ROOT, - timeout: 10000, + timeout: 30000, responseType: 'json', withCredentials: false, headers: { diff --git a/src/components/form/InputMap/index.vue b/src/components/form/InputMap/index.vue index dce01f4..fe37058 100644 --- a/src/components/form/InputMap/index.vue +++ b/src/components/form/InputMap/index.vue @@ -111,6 +111,7 @@ export default { }, handleSubmit() { this.setVal() + this.$emit('input', this.text) this.box = false }, handleClear() { @@ -207,6 +208,7 @@ export default { }, handleClose() { window.poiPicker.clearSearchResults() + this.box = false }, addClick() { this.map.on('click', e => { diff --git a/src/utils/expression.js b/src/utils/expression.js index e9f3b0e..cbced89 100644 --- a/src/utils/expression.js +++ b/src/utils/expression.js @@ -55,9 +55,9 @@ export function evalExpression(context, expression) { let value = itemExpArr[2] // 比较是否成立 console.log(varName) - let filedValue = _.get(context, varName) - console.log(filedValue) - flag = expressionOperator[sp](filedValue, value) + let fieldValue = _.get(context, varName) + console.log(fieldValue) + flag = expressionOperator[sp](fieldValue, value) console.log(flag) // & 一个不成立直接调出循环 返回成功 if (and && !flag) { diff --git a/src/views/form/statistics/filter.vue b/src/views/form/statistics/filter.vue index 1dbaf92..c36cf76 100644 --- a/src/views/form/statistics/filter.vue +++ b/src/views/form/statistics/filter.vue @@ -3,7 +3,7 @@

点击添加筛选项:

-

选择

- + @@ -35,7 +35,7 @@

包含

- + @@ -44,7 +44,7 @@
- 取 消 + 取 消 确 定 @@ -54,6 +54,7 @@