From 4904a627daa8c2cc50e5629ebc2428cdd8fb76ad Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Thu, 9 Jun 2022 16:54:26 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=86=BB=E7=BB=93?= 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 + .../src/components/CollectionType/index.vue | 356 +++++++++--------- .../components/uploadFileChangeDown/file.vue | 9 +- 4 files changed, 185 insertions(+), 182 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 7720a2d63..e1f8e11ff 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -712,6 +712,7 @@ module.exports = { uploadTime: 'Upload time', enclosure: 'Enclosure', // 认证 + Frozenstatus: 'Frozen status, can only be viewed', chinese: 'chinese', integerOrDecimal: 'integer Or Decimal', OneDecimalPlace: 'One Decimal Place', diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 14fbf2d2a..4633d006b 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -723,6 +723,7 @@ module.exports = { uploadTime: '上传时间', enclosure: '附件', // 认证 + Frozenstatus: '冻结状态,仅可以查看', chinese: '中文', integerOrDecimal: '整数或小数', OneDecimalPlace: '一位小数', diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue index b09722ca4..b07eb64da 100644 --- a/jero-web/src/components/CollectionType/index.vue +++ b/jero-web/src/components/CollectionType/index.vue @@ -3,8 +3,8 @@
-
-
+
+
@@ -95,9 +95,9 @@
-
-
-
+
+
+
@@ -109,9 +109,9 @@
-
-
-
+
+
+
@@ -123,11 +123,11 @@
-
-
-
+
+
+
+ @click="clickButtonToUpload(item)"> {{ (item.dataValue === 'null' || item.dataValue === '' || item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} @@ -135,9 +135,9 @@
-
-
-
+
+
+
@@ -146,7 +146,7 @@
-
+
@@ -238,110 +238,8 @@
-
-
- - - - - - - - - - - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
-
-
- - - - {{ item.label }} - - - -
-
-
- -
-
-
+
+
@@ -412,7 +310,7 @@
-
-
- - {{ (item.dataValue === 'null' || item.dataValue === '' || - item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} - -
-
-
- -
-
-
- - - - {{ itemin.label }} - - - -
-
- - {{ (item.dataValue === 'null' || item.dataValue === '' || - item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} - -
-
-
- -
-
-
+
@@ -472,29 +336,12 @@
-
- - {{ (item.dataValue === 'null' || item.dataValue === '' || - item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} - -
- -
-
-
- - - - {{ itemin.label }} - - - -
-
+ +
+
+
@@ -584,7 +431,158 @@
+ @click="clickButtonToUpload(item)"> + {{ (item.dataValue === 'null' || item.dataValue === '' || + item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} + +
+
+
+ +
+
+
+ + + + {{ itemin.label }} + + + +
+
+ + {{ (item.dataValue === 'null' || item.dataValue === '' || + item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} + +
+
+
+ +
+
+
+ + + + {{ item.label }} + + + +
+
+ + {{ (item.dataValue === 'null' || item.dataValue === '' || + item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} + +
+
+
+ +
+
+
+ + + + {{ itemin.label }} + + + +
+
+ + + + + + + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ {{ (item.dataValue === 'null' || item.dataValue === '' || item.dataValue == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} @@ -707,7 +705,6 @@ export default { .add_flex_item{ width: 30%; flex: 1; - margin-right: 15px; } .selectWid{ min-width: 150px; @@ -717,7 +714,6 @@ export default { } .add-width{ width: 30%; - margin-right: 15px; } .add--number{ width: 101%; diff --git a/jero-web/src/components/uploadFileChangeDown/file.vue b/jero-web/src/components/uploadFileChangeDown/file.vue index 1b228aa76..3f08521d0 100644 --- a/jero-web/src/components/uploadFileChangeDown/file.vue +++ b/jero-web/src/components/uploadFileChangeDown/file.vue @@ -59,6 +59,7 @@ export default { } }, created() { + console.log(this.detailDate,'detailDate') const token = Vue.ls.get(ACCESS_TOKEN) this.headers = { 'X-Access-Token': token } this.containerId = 'container-ty-' + new Date().getTime() @@ -95,8 +96,6 @@ export default { } }, beforeUpload(file) { - - console.log(file) // let thisFileType = this.thisFileType.replace(/\s+/g, ""); this.fileTypeSatus = true //TODO 客户要求不拦截文件 @@ -125,6 +124,12 @@ export default { window.open(url, '_blank') }, handleChange(info) { + // this.detailDate.list.forEach((item) => { + // if(item.isLock === '1'){ + // this.$message.warning(this.$t('Frozenstatus')) + // return + // } + // }) if(info.fileList.length > 1) { this.$message.warning(this.$t('onlyOnefileUploaded')) return