riku
2024-11-21 f37d45b8998ea08a42002579ecc103244bdac17b
src/views/fysp/check/components/CompProblemAddOrUpd.vue
@@ -80,12 +80,6 @@
            </el-select>
          </el-form-item>
          <el-form-item
            v-show="
              problem &&
              problem.guid &&
              deepCopyProblem.advice &&
              deepCopyProblem.advice != ''
            "
            label="问题建议修正"
            prop="_adviseEdit"
            :disabled="false"
@@ -173,7 +167,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 +227,7 @@
import deviceApi from '@/api/fysp/deviceApi';
import { useFormConfirm } from '@/composables/formConfirm';
export default {
  emits: ['submit'],
  emits: ['submit', 'cancel'],
  components: {
    ArbitraryPhoto,
    CompDevicePhoto,
@@ -332,6 +326,11 @@
        this.pictureValidate();
      },
      deep: true
    },
    problem: {
      handler(nv, ov) {
        this.initOptions();
      }
    }
  },
  computed: {
@@ -561,6 +560,9 @@
      }
      return true;
    },
    onCancel() {
      this.$emit("cancel")
    },
    onSubmit() {
      this.$refs.formRef.validate((valid) => {
        if (valid && this.pictureValidate()) {