From 55f74e8b6485cf64f3fff84dffe658e1a9bcd0d1 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Thu, 27 Oct 2022 11:11:16 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=94=B6=E9=9B=86=E6=B8=85=E5=8D=95=E6=9F=B1?= =?UTF-8?q?=E7=8A=B6=E5=9B=BE=EF=BC=8C=E6=94=B6=E9=9B=86=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E5=AE=BD=E5=BA=A6=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=202.=E5=8F=82=E6=95=B0=E9=A1=B9=E6=94=B6=E9=9B=86=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E5=A1=AB=E5=86=99=E4=BA=BA=E5=A2=9E=E5=8A=A0=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ImportFileOnlyList/index.vue | 6 +++ .../components/ParameterCollectionEchart.vue | 2 +- .../ParameterItemCollectionList.vue | 47 +++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/jero-web/src/components/ImportFileOnlyList/index.vue b/jero-web/src/components/ImportFileOnlyList/index.vue index 7caf6dabd..a0e0b4709 100644 --- a/jero-web/src/components/ImportFileOnlyList/index.vue +++ b/jero-web/src/components/ImportFileOnlyList/index.vue @@ -54,6 +54,10 @@ export default { type: String, default: '' }, + paramsManifestId: { + type: String, + default: '' + }, projectLibraryId: { type: String, default: '' @@ -76,6 +80,8 @@ export default { return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msTemplateId=' + this.paramsTemplateId } else if (this.projectLibraryId) { return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '&projectLibraryId=' + this.projectLibraryId + } else if (this.paramsManifestId) { + return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut + '¶msManifestId=' + this.paramsManifestId } return window._CONFIG['domianURL'] + '/' + this.url.importZipUrl + '?cut=' + this.cut } diff --git a/jero-web/src/views/projectManagement/components/ParameterCollectionEchart.vue b/jero-web/src/views/projectManagement/components/ParameterCollectionEchart.vue index 13c144e6e..89a4db7c1 100644 --- a/jero-web/src/views/projectManagement/components/ParameterCollectionEchart.vue +++ b/jero-web/src/views/projectManagement/components/ParameterCollectionEchart.vue @@ -5,7 +5,7 @@ - + {{ d.label }} diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index 1fb2a099e..5d05a0cb0 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -210,6 +210,16 @@ {{$t('sendBack')}} + +
+ +
+ +
+ + {{$t('export')}} +
@@ -453,6 +463,7 @@ import AdjustareaSofrespon from '@/components/AdjustareaSofrespon/index' import ReferenceParameter from '@/components/ReferenceParameter/index' import AssignedBy from '@/components/AssignedBy/index' + import ImportFileOnlyList from '@/components/ImportFileOnlyList/index' import axios from 'axios' import { ACCESS_TOKEN } from '@/store/mutation-types' import Vue from 'vue' @@ -465,6 +476,7 @@ ParameterLibraryAdd, AssignedBy, AdjustareaSofrespon, + ImportFileOnlyList, TaskCutOffTime, ReferenceParameter, SynchronousSubmissionLibrary, @@ -603,6 +615,7 @@ getLoginUserType: 'params/collectManifest/getLoginUserType', // 获取当前登陆人 getquerySdtList: 'params/collectManifest/querySdtList', // 获取工程接口人的列表 updateSdt: 'params/collectManifest/updateSdt', // 提交工程接口人 + importZipUrl: 'params/collectManifest/importDre', // 导入 deleteBatch: 'params/collectManifest/deleteBatch' }, loading: false, @@ -619,6 +632,7 @@ rowId: '', version: 0, confirmLoading: false, + importsVisible: false, itemId: '', selectedRowKeysValue: [], // table列表所选得数据 token: Vue.ls.get(ACCESS_TOKEN), @@ -873,6 +887,39 @@ this.textLoading = false }) }, + //填写人导出 + handleExportDre(){ + console.log(this.selectedRowKeys) + this.$message.success(this.$t('Intheexport')) + let long = localStorage.getItem('language') + this.cut = '' + if (long && long === 'zh-cn') { + this.cut = 'cn' + } else if (long && long === 'en-us') { + this.cut = 'en' + } + let query = { + paramsManifestId: this.paramsManifest.id, + cut: this.cut, + ids: this.selectedRowKeys.join(','), + exportName:this.$route.query.projectName + '(' + this.$route.query.title + ')' + } + getAction('/params/collectManifest/exportDre', query).then((res) => { + if (res && !res.success) { + this.$message.error(res.message) + } + this.textLoading = false + }) + }, + getList(){ + this.$refs.CollectionTabel.getTableList(this.queryParamQuery) + }, + iVisible(val,num) { + this.importsVisible = val + if (num == 1){ + eventBUs.$emit('searchGetData') + } + }, // 高级搜索 handleSuperQuery(params, matchType) { let sqp = {}