| | |
| | | <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')">保存 |
| | |
| | | }, |
| | | editAble: { |
| | | type: Boolean, |
| | | default: false |
| | | default: true |
| | | }, |
| | | hasSubmit: { |
| | | type: Boolean, |
| | |
| | | methods: { |
| | | init(id, row, isView) { |
| | | this.isView = isView |
| | | |
| | | |
| | | this.$nextTick(() => { |
| | | // 清空表单校验 |
| | | console.log(this.$parent.$refs.dataForm, id, row, isView, 'this.$parent.$refs.dataForm') |
| | |
| | | this.$parent.$refs.dataForm.resetFields() |
| | | } |
| | | |
| | | this.editAble = isView !== true // 是否可编辑 |
| | | |
| | | this.$parent.dataForm = cloneDeep(this.dataFormBack) |
| | | if (this.$parent.dataForm) { |