| | |
| | | </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" |
| | |
| | | </template> |
| | | <script> |
| | | import problemApi from '@/api/fysp/problemApi.js'; |
| | | import CompGenericWrapper from './CompGenericWrapper.vue'; |
| | | import { $fysp } from '@/api/index.js'; |
| | | import fileUtil from '@/utils/fileUtils.js'; |
| | | import { useCloned } from '@vueuse/core'; |
| | | import { ElMessage } from 'element-plus'; |
| | | export default { |
| | | emits: ['submit'], |
| | | emits: ['submit', 'cancel'], |
| | | components: { |
| | | CompGenericWrapper |
| | | }, |
| | | watch: { |
| | | oldChangeFileList: { |
| | |
| | | this.fileList = useCloned(beforeEditImgList).cloned.value; |
| | | this.oldFileList = useCloned(beforeEditImgList).cloned.value; |
| | | }, |
| | | onCancel() { |
| | | this.$emit("cancel") |
| | | }, |
| | | onSubmit() { |
| | | if (!this.pictureValidate()) { |
| | | return; |