From 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期五, 23 二月 2024 12:19:55 +0800
Subject: [PATCH] 修改

---
 web/packages/components/zt-dialog/src/zt-dialog.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/web/packages/components/zt-dialog/src/zt-dialog.vue b/web/packages/components/zt-dialog/src/zt-dialog.vue
index d160bcb..b8b85eb 100644
--- a/web/packages/components/zt-dialog/src/zt-dialog.vue
+++ b/web/packages/components/zt-dialog/src/zt-dialog.vue
@@ -25,7 +25,7 @@
           <el-button type="warning" @click="formSubmit('zc')">鏆傚瓨</el-button>
           <el-button type="warning" @click="formSubmit('bl')">鍔炵悊</el-button>
         </template>
-        <el-button v-else-if="editAble && hasConfirm" type="primary" @click="formSubmit('qd')" v-preventReClick>{{
+        <el-button v-else-if="hasConfirm" type="primary" @click="formSubmit('qd')" v-preventReClick>{{
           $t('confirm') }}
         </el-button>
         <el-button v-else-if="editAble" type="warning" @click="formSubmit('bc')">淇濆瓨
@@ -60,7 +60,7 @@
       },
       editAble: {
         type: Boolean,
-        default: false
+        default: true
       },
       hasSubmit: {
         type: Boolean,
@@ -96,6 +96,8 @@
     methods: {
       init(id, row, isView) {
         this.isView = isView
+
+
         this.$nextTick(() => {
           // 娓呯┖琛ㄥ崟鏍¢獙
           console.log(this.$parent.$refs.dataForm, id, row, isView, 'this.$parent.$refs.dataForm')
@@ -103,7 +105,6 @@
             this.$parent.$refs.dataForm.resetFields()
           }
 
-          this.editAble = isView !== true // 鏄惁鍙紪杈�
 
           this.$parent.dataForm = cloneDeep(this.dataFormBack)
           if (this.$parent.dataForm) {

--
Gitblit v1.9.1