问题和整改的新增以及修改页面点击取消按钮添加取消事件
| | |
| | | :subtask="curSubtask.data" |
| | | :topTask="topTask" |
| | | ref="compProblemAddOrUpdRef" |
| | | @cancel="onAddProCanceled" |
| | | @submit="updateSubtask" |
| | | /> |
| | | <ArbitraryPhoto |
| | |
| | | this.mainLoading = false; |
| | | }); |
| | | }, |
| | | onAddProCanceled() { |
| | | this.proAddOrUpdDialogVisible = false; |
| | | }, |
| | | // 问题卡片组件主动发起刷新父组件数据 |
| | | updateSubtask(refresh = false) { |
| | | this.curSubtask.data.proCheckedNum++; |
| | | this.curSubtask.type = this.getSubtaskType(this.curSubtask.data); |
| | | if (this.proAddOrUpdDialogVisible) { |
| | | this.proAddOrUpdDialogVisible = false |
| | | this.proAddOrUpdDialogVisible = false; |
| | | } |
| | | this.refreshCurrSubtask(refresh); |
| | | }, |
| | |
| | | </el-row> |
| | | <div class="flex-div"> |
| | | <el-button type="primary" @click="onSubmit">保存</el-button> |
| | | <el-button @click="$emit('submit', false)">取消</el-button> |
| | | <el-button @click="onCancel">取消</el-button> |
| | | </div> |
| | | <el-image-viewer |
| | | v-if="previewDialogVisible" |
| | |
| | | import { useCloned } from '@vueuse/core'; |
| | | import { ElMessage } from 'element-plus'; |
| | | export default { |
| | | emits: ['submit'], |
| | | emits: ['submit', 'cancel'], |
| | | components: { |
| | | CompGenericWrapper |
| | | }, |
| | |
| | | this.fileList = useCloned(beforeEditImgList).cloned.value; |
| | | this.oldFileList = useCloned(beforeEditImgList).cloned.value; |
| | | }, |
| | | onCancel() { |
| | | this.$emit("cancel") |
| | | }, |
| | | onSubmit() { |
| | | if (!this.pictureValidate()) { |
| | | return; |
| | |
| | | <el-button type="primary" @click="onSubmit" v-show="!readonly" |
| | | >保存</el-button |
| | | > |
| | | <el-button @click="$emit('submit', false)" v-show="!readonly" |
| | | <el-button @click="onCancel" v-show="!readonly" |
| | | >取消</el-button |
| | | > |
| | | </el-form-item> |
| | |
| | | import deviceApi from '@/api/fysp/deviceApi'; |
| | | import { useFormConfirm } from '@/composables/formConfirm'; |
| | | export default { |
| | | emits: ['submit'], |
| | | emits: ['submit', 'cancel'], |
| | | components: { |
| | | ArbitraryPhoto, |
| | | CompDevicePhoto, |
| | |
| | | } |
| | | return true; |
| | | }, |
| | | onCancel() { |
| | | this.$emit("cancel") |
| | | }, |
| | | onSubmit() { |
| | | this.$refs.formRef.validate((valid) => { |
| | | if (valid && this.pictureValidate()) { |
| | |
| | | :subtask="subtask" |
| | | :topTask="topTask" |
| | | ref="compProblemAddOrUpdRef" |
| | | @cancel="onProCanceled" |
| | | @submit="onProSubmited" |
| | | /> |
| | | <!-- 整改 --> |
| | |
| | | :subtask="subtask" |
| | | :month="month" |
| | | :oldChangeFileList="problem.mediafileList" |
| | | @cancel="onChangeCanceled" |
| | | @submit="onChangeSubmited" |
| | | /> |
| | | <!-- 问题复现 --> |
| | |
| | | import CompProRecent from './CompProRecent.vue'; |
| | | import { useCloned } from '@vueuse/core'; |
| | | export default { |
| | | emits: ['submmit'], |
| | | emits: ['submmit', 'cancel'], |
| | | components: { |
| | | CompProblemAddOrUpd, |
| | | ComChangeEdit, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | onProCanceled() { |
| | | this.proAddOrUpdDialogVisible = false; |
| | | }, |
| | | onProSubmited(isOk) { |
| | | this.$emit('submit', isOk); |
| | | this.proAddOrUpdDialogVisible = false; |
| | | }, |
| | | onChangeCanceled() { |
| | | this.changeDialogVisible = false; |
| | | }, |
| | | onChangeSubmited(isOk) { |
| | | this.$emit('submit', isOk); |
| | | this.changeDialogVisible = false; |