hcong
2024-11-20 0e5f14cf081b8cffda12e7c1773fe1b6b69ce2eb
src/views/fysp/check/components/CompProblemAddOrUpd.vue
@@ -173,7 +173,7 @@
            <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>
@@ -233,7 +233,7 @@
import deviceApi from '@/api/fysp/deviceApi';
import { useFormConfirm } from '@/composables/formConfirm';
export default {
  emits: ['submit'],
  emits: ['submit', 'cancel'],
  components: {
    ArbitraryPhoto,
    CompDevicePhoto,
@@ -561,6 +561,9 @@
      }
      return true;
    },
    onCancel() {
      this.$emit("cancel")
    },
    onSubmit() {
      this.$refs.formRef.validate((valid) => {
        if (valid && this.pictureValidate()) {