From 6a7fed691de242a0644f7c7d05afdeea9b738f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=BD=A6=E6=B3=BD?= Date: Tue, 4 Apr 2023 17:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E8=AE=A4=E8=AF=81=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E8=AF=A6=E6=83=85-=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/editModel.vue | 27 ++++++++++++++----- .../certificationListMaintenance.vue | 3 +++ 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/jero-web/src/views/virtualAuthenticationList/components/editModel.vue b/jero-web/src/views/virtualAuthenticationList/components/editModel.vue index fb2cdaa5a..40573f3b0 100644 --- a/jero-web/src/views/virtualAuthenticationList/components/editModel.vue +++ b/jero-web/src/views/virtualAuthenticationList/components/editModel.vue @@ -1,7 +1,7 @@ @@ -172,7 +177,9 @@ export default { }, data() { return { + title: '', visible: false, + button: true, confirmLoading: false, formInline: {}, disabled: false, @@ -245,8 +252,9 @@ export default { serialNumberClick(){ this.$refs.codeNumber.add() }, - editModel(item) { + editModel(item,data) { this.visible = true + this.title = this.$t('edit') this.$nextTick(() => { this.formInline = item || {} if (this.formInline.deliverableType) { @@ -254,6 +262,11 @@ export default { } this.$refs.ruleForm.clearValidate() }) + if(data=1) { + this.title = this.$t('view') + this.disabled = true, + this.button = false + } }, handleSubmit() { this.$refs.ruleForm.validate(valid => { diff --git a/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue b/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue index a6ba3ebd8..594b44857 100644 --- a/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue +++ b/jero-web/src/views/virtualAuthenticationList/virtualAuthenticationListDesign/certificationListMaintenance.vue @@ -540,6 +540,9 @@ edit(item) { this.$refs.editModelRef.editModel(JSON.parse(JSON.stringify(item))) }, + view(item) { + this.$refs.editModelRef.editModel(JSON.parse(JSON.stringify(item)),1) + }, deleteLib(val) { let _this = this this.$confirm({