From 744658bdafbf78673c5f7698b85c1d0e8817029b Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 18 Mar 2024 14:01:40 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=A6=81=E7=94=A8=E4=B8=80=E4=BA=9B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8D=95=E7=9A=84=E5=AD=97=E6=AE=B5=EF=BC=8C=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=A0=87=E5=87=86=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .../selection/StandardSelection.vue | 20 +++++++++++++++- .../selection/StandardSelectionModal.vue | 1 + .../modules/MainDrafterInitBaseInfo.vue | 24 +++++++++---------- 4 files changed, 33 insertions(+), 13 deletions(-) diff --git a/.env.development b/.env.development index 1d8e6f4f..6ed6ba36 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,6 @@ NODE_ENV=development VUE_APP_TAG_FLAG=0 +VUE_APP_LOGIN_PAGE='https://iam-uat.sinotruk.com:7011/idp/oauth2/authorize?redirect_uri=http://srms-test.sinotruk.com/dashboard/analysis&state=123&client_id=SRMS&response_type=code' VUE_APP_LOGIN_PAGE='/user/login' VUE_APP_CURRENT_SYSTEM='inner' VUE_APP_LOGOUT_PAGE='/user/login' diff --git a/src/components/selection/StandardSelection.vue b/src/components/selection/StandardSelection.vue index 5ef181bd..e4045e26 100644 --- a/src/components/selection/StandardSelection.vue +++ b/src/components/selection/StandardSelection.vue @@ -7,7 +7,9 @@ @input="indexClick($event)" :disabled="disabled || selectOnly" :max-length="500" - :placeholder="placeholder"/> + :placeholder="placeholder"> + + {{this.$t('standardSelect.standardSelection')}} @@ -63,6 +65,13 @@ export default { } this.$refs.standardSelectionModal.open() }, + // 清空输入框 + clearInput () { + console.log('输入框清空了') + this.$emit('change', '') + this.$emit('nameChange', '') + this.$emit('listChange', []) + }, // 输入框输入监听 indexClick (event) { this.$emit('change', event.target.value) @@ -101,4 +110,13 @@ export default { margin-left: 10px; } } + +.close-icon { + font-size: 12px; + color: rgba(0, 0, 0, 0.25); + transition: color 0.3s; +} +.close-icon:hover { + color: rgba(0, 0, 0, 0.45); +} diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index bd2faa0a..1775cce1 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -311,6 +311,7 @@ export default { }, close () { this.visible = false + this.selectedRowKeys = [] this.ipagination = { current: 1, pageSize: 10, diff --git a/src/views/workCenter/enterpriseStandardChange/modules/MainDrafterInitBaseInfo.vue b/src/views/workCenter/enterpriseStandardChange/modules/MainDrafterInitBaseInfo.vue index 2393e8dd..f2d71df5 100644 --- a/src/views/workCenter/enterpriseStandardChange/modules/MainDrafterInitBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardChange/modules/MainDrafterInitBaseInfo.vue @@ -63,11 +63,11 @@ - + @@ -82,7 +82,7 @@ @@ -98,7 +98,7 @@ @@ -114,7 +114,7 @@ @@ -130,7 +130,7 @@ @@ -146,7 +146,7 @@ @@ -162,7 +162,7 @@ @@ -178,7 +178,7 @@