jinlin
2024-02-01 2df883fcbed176f83d8d144fd007e7f72fcb54d6
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) {