| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-show=" |
| | | problem && |
| | | problem.guid && |
| | | deepCopyProblem.advice && |
| | | deepCopyProblem.advice != '' |
| | | " |
| | | label="问题建议修正" |
| | | prop="_adviseEdit" |
| | | :disabled="false" |
| | |
| | | <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, |
| | |
| | | this.pictureValidate(); |
| | | }, |
| | | deep: true |
| | | }, |
| | | problem: { |
| | | handler(nv, ov) { |
| | | this.initOptions(); |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | } |
| | | return true; |
| | | }, |
| | | onCancel() { |
| | | this.$emit("cancel") |
| | | }, |
| | | onSubmit() { |
| | | this.$refs.formRef.validate((valid) => { |
| | | if (valid && this.pictureValidate()) { |