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({