From c6904eb63bb237bcc4dd4a55a3650c4d4b7668b0 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Wed, 18 May 2022 18:14:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[add]=20=E5=8E=86=E5=8F=B2=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TaskParameterCollection.vue | 12 +- .../dialog/historicalVersion.vue | 177 ++++-------------- 2 files changed, 40 insertions(+), 149 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue b/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue index ae2641f4b..85e856662 100644 --- a/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue +++ b/jero-web/src/views/projectManagement/components/TaskParameterCollection.vue @@ -81,7 +81,7 @@ - + @@ -174,7 +174,8 @@ rowId: '', version: 0, itemId: '', - historicalVisible: false + historicalVisible: false, + historicalRow: {}, // 历史版本得数据 } }, mounted() { @@ -208,10 +209,11 @@ handleTableChange() { }, - // - historicalVersion() { + // 历史版本 + historicalVersion(historicalRow) { + console.log(historicalRow) this.historicalVisible = true - console.log('历史版本。。。。') + this.historicalRow = historicalRow }, // 配置 configure(item) { diff --git a/jero-web/src/views/projectManagement/dialog/historicalVersion.vue b/jero-web/src/views/projectManagement/dialog/historicalVersion.vue index 8897bff5a..059c6da1a 100644 --- a/jero-web/src/views/projectManagement/dialog/historicalVersion.vue +++ b/jero-web/src/views/projectManagement/dialog/historicalVersion.vue @@ -9,30 +9,27 @@ :dataSource='areaTable' :pagination='false' :loading='loading' - :scroll='{x: 600}' - @change='handleTableChange'> + :scroll='{x: 600}'> {{ text }} {{ $t('edit') }} - {{ $t('delete') }} -
- {{ $t('cancel') }} - {{ $t('submit') }} -
From faa7914004361faca5ac3b6752df55363c8f1148 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Wed, 18 May 2022 18:18:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=9C=AA=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=97=B6=E5=8A=A0=E9=81=AE=E7=BD=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + jero-web/src/components/ImportFile/index.vue | 41 +++++++++++++++++++ .../components/taskCirculationHistory.vue | 9 +++- 4 files changed, 51 insertions(+), 1 deletion(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 91b9ecd39..0a3c95358 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -840,4 +840,5 @@ module.exports = { descriptionDeliverables:'Description of deliverables', startMonth:'Start Month', endMonth:'End Month', + Importing:'Importing', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index c17fe81ea..17d47a37b 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -845,4 +845,5 @@ module.exports = { descriptionDeliverables:'交付物说明', startMonth:'开始日期', endMonth:'结束日期', + Importing:'导入中', } \ No newline at end of file diff --git a/jero-web/src/components/ImportFile/index.vue b/jero-web/src/components/ImportFile/index.vue index 009755729..be20c78e7 100644 --- a/jero-web/src/components/ImportFile/index.vue +++ b/jero-web/src/components/ImportFile/index.vue @@ -9,6 +9,14 @@ {{$t('import')}} +
+
+ +
+ {{this.$t('Importing')}}... +
+
+
@@ -53,6 +61,7 @@ data() { return { tokenHeader: { 'X-Access-Token': Vue.ls.get(ACCESS_TOKEN) }, + spinning: false, cut: '' } }, @@ -174,4 +183,36 @@ font-weight: 400 !important; color: #040B29 !important; } + + \ No newline at end of file diff --git a/jero-web/src/views/processCenter/components/taskCirculationHistory.vue b/jero-web/src/views/processCenter/components/taskCirculationHistory.vue index 04b7d45b1..7aedb1c56 100644 --- a/jero-web/src/views/processCenter/components/taskCirculationHistory.vue +++ b/jero-web/src/views/processCenter/components/taskCirculationHistory.vue @@ -83,8 +83,15 @@ let query = { actiProcInstId: this.$route.query.actiProcInstId } + this.loading = true getAction('/wkflow/processHistoryEO/list', query).then((res) => { - this.dataSource = res + if (res.success) { + this.dataSource = res.result || [] + this.loading = false + } else { + this.dataSource = [] + this.loading = false + } }) } }