From a5f50dfcf02265042a7757fafad593d558d3893f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 24 Mar 2023 15:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=96=87=E6=A1=A3=E5=BA=93-=E5=A4=9A?= =?UTF-8?q?=E9=98=B6=E6=AE=B5=E5=AE=9E=E6=96=BD-=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 2 +- jero-web/src/common/lang/zh-cn.js | 1 + .../src/components/libraryAddForm/index.vue | 323 ++++++++++-------- .../library/docDetail/index.vue | 2 +- .../views/regulatoryEarlyWarning/index.vue | 6 +- 5 files changed, 189 insertions(+), 145 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index fa166a0a9..9bf2aa79d 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1709,5 +1709,5 @@ module.exports = { cause:'cause', implementationrecords:'Fault handling measures and emergency response implementation records', onlyDataWithListStatusDraftCanBeDeleted:'Only data with a list status of Draft can be deleted', - + implementationDateTwo:'Implementation Date', } \ 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 fd9000355..83a9c7fd1 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1809,4 +1809,5 @@ module.exports = { cause:'原因', implementationrecords:'故障处置措施和应急响应实施记录', onlyDataWithListStatusDraftCanBeDeleted:'只能删除清单状态为草稿的数据', + implementationDateTwo:'实施日期', } \ No newline at end of file diff --git a/jero-web/src/components/libraryAddForm/index.vue b/jero-web/src/components/libraryAddForm/index.vue index 2f3f5c3d5..0002a45f7 100644 --- a/jero-web/src/components/libraryAddForm/index.vue +++ b/jero-web/src/components/libraryAddForm/index.vue @@ -233,9 +233,9 @@
-
- {{$t('DetailsPhasedImplementation')}} -
+
+ {{$t('DetailsPhasedImplementation')}} +
{{ $t('newlyAdded') }} @@ -252,9 +252,18 @@ {{$t('edit')}} - {{$t("deleteLib")}} + {{$t('deleteLib')}} + + {{$t('Statutenumberclause')}} + + + {{$t('implementationDateTwo')}} + + + {{$t('Typeofimplementation')}} +
- - - -
-
- {{$t('Statutenumberclause')}} -
- - - -
-
- -
-
- {{$t('Typeofimplementation')}} -
- - - -
-
- -
-
- {{$t('ImplementationDate')}} -
- - - - -
-
- -
+ + + +
- {{$t('remarks')}} + * + {{$t('Statutenumberclause')}} +
+ + + +
+
+ +
+
+ * + {{$t('Typeofimplementation')}} +
+ + + +
+
+
+ + +
+
+ * + {{$t('implementationDateTwo')}} +
+ + + + +
+
+
+ + +
+
+ {{$t('remarks')}}
-
-
-
+ + + - - - -
-
- {{$t('Statutenumberclause')}} + :title="$t('edit')" + :width="900" + :visible="tablevisibleGrad" + :confirm-loading="confirmLoading" + :maskClosable="false" + @cancel="tablevisibleGrad = false" + > + + + +
+
+ * + {{$t('Statutenumberclause')}} +
+ + +
- - - -
- - -
-
- {{$t('Typeofimplementation')}} + + +
+
+ * + {{$t('Typeofimplementation')}} +
+ + +
- - - -
- - -
-
- {{$t('ImplementationDate')}} + + + + +
+
+ * + {{$t('implementationDateTwo')}} +
+ + + +
- - - - -
- - -
-
- {{$t('remarks')}} + + + + +
+
+ {{$t('remarks')}} +
+ + +
- - - -
- - - - - + + + + + @@ -449,6 +472,11 @@ rules: {}, tablerules: { standNumberOrClause: [ + { + required: true, + message: this.$t('Statutenumberclause') + this.$t('cannotEmpty'), + trigger: 'blur' + }, { // required: true, max: 200, @@ -456,6 +484,20 @@ trigger: 'blur' } ], + implementationType:[ + { + required: true, + message: this.$t('Typeofimplementation') + this.$t('cannotEmpty'), + trigger: 'change' + }, + ], + implementationDate:[ + { + required: true, + message: this.$t('implementationDateTwo') + this.$t('cannotEmpty'), + trigger: 'change' + }, + ], remarks: [ { // required: true, @@ -495,25 +537,27 @@ ], columnsGrading: [ { - title: this.$t('Statutenumberclause'), dataIndex: 'standNumberOrClause', align: 'left', ellipsis: true, - width: 160 + width: 160, + scopedSlots: { title: 'standNumberOrClause' } }, { - title: this.$t('Typeofimplementation'), + // title: this.$t('Typeofimplementation'), dataIndex: 'implementationTypeText', align: 'left', ellipsis: true, - width: 150 + width: 150, + scopedSlots: { title: 'Typeofimplementation' } }, { - title: this.$t('ImplementationDate'), + // title: this.$t('implementationDateTwo'), dataIndex: 'implementationDate', align: 'left', ellipsis: true, - width: 150 + width: 150, + scopedSlots: { title: 'implementationDateTwo' } }, { title: this.$t('remarks'), @@ -530,45 +574,44 @@ scopedSlots: { customRender: 'Gradoperation' } } ], - dataGrad: [], + dataGrad: [] } }, mounted() { }, methods: { - tablehandleSubmit(){ + tablehandleSubmit() { this.$refs.tableruleFormedit.validate((valid) => { - if(valid){ + if (valid) { this.tablevisibleGrad = false - console.log(this.tabledataGrad) this.dataGradto[this.tabledataIndex] = this.tabledataGrad - this.dataGradto= [... this.dataGradto] + this.dataGradto = [...this.dataGradto] } }) }, - deleteLib(val,index) { + deleteLib(val, index) { let _this = this this.$confirm({ content: _this.$t('ConfirmDelete'), onOk() { - _this.dataGradto.splice(index,1) + _this.dataGradto.splice(index, 1) _this.dataGradto = [..._this.dataGradto] } }) }, - newlyAdded(){ + newlyAdded() { this.tabledataGrad = {} this.visibleGrad = true }, - handeredit(result,index){ + handeredit(result, index) { this.tablevisibleGrad = true this.tabledataIndex = index this.tabledataGrad = JSON.parse(JSON.stringify(result)) }, - handleSubmit(){ + handleSubmit() { this.$refs.tableruleForm.validate(valid => { - if (valid){ + if (valid) { this.dataGradto.push(this.tabledataGrad) this.visibleGrad = false } @@ -638,7 +681,7 @@ this.tabledataGrad.implementationDate = this.tabledataGrad.implementationDate ? moment(this.tabledataGrad.implementationDate).format('YYYY-MM-DD') : '' console.log(this.tabledataGrad.implementationDate) }, - implementationTypeChange(val){ + implementationTypeChange(val) { this.tabledataGrad.implementationTypeText = val }, onChange(item) { @@ -759,7 +802,7 @@ } }) }, - postTable(){ + postTable() { let params = this.dataGradto postAction(this.url.getDocumentInfo, params).then((res) => { if (res.success) { diff --git a/jero-web/src/views/documentManage/library/docDetail/index.vue b/jero-web/src/views/documentManage/library/docDetail/index.vue index fa7898358..b6c149e5a 100644 --- a/jero-web/src/views/documentManage/library/docDetail/index.vue +++ b/jero-web/src/views/documentManage/library/docDetail/index.vue @@ -376,7 +376,7 @@ width: 150 }, { - title: this.$t('ImplementationDate'), + title: this.$t('implementationDateTwo'), dataIndex: 'implementationDate', align: 'left', ellipsis: true, diff --git a/jero-web/src/views/regulatoryEarlyWarning/index.vue b/jero-web/src/views/regulatoryEarlyWarning/index.vue index d4952cef3..a52d07cb6 100644 --- a/jero-web/src/views/regulatoryEarlyWarning/index.vue +++ b/jero-web/src/views/regulatoryEarlyWarning/index.vue @@ -42,7 +42,7 @@ {{text}} - + {{text}} @@ -53,7 +53,7 @@ {{text}} - + {{text}} @@ -64,7 +64,7 @@ {{text}} - + {{text}}