| | |
| | | }, |
| | | data() { |
| | | return { |
| | | initPropsCount: 0, |
| | | // 初始预览图片index |
| | | initialIndex: -1, |
| | | // 图片选择最大数量 |
| | |
| | | }, |
| | | deep: true |
| | | }, |
| | | problem: { |
| | | initPropsCount: { |
| | | handler(nv, ov) { |
| | | if (nv >= 3) { |
| | | this.initOptions(); |
| | | } |
| | | }, |
| | | immediate: true |
| | | }, |
| | | problem: { |
| | | handler(nv, ov) { |
| | | if (nv != null && nv != undefined) { |
| | | this.initPropsCount++; |
| | | } |
| | | }, |
| | | immediate: true |
| | | }, |
| | | topTask: { |
| | | handler(nv, ov) { |
| | | if (nv != null && nv != undefined) { |
| | | this.initPropsCount++; |
| | | } |
| | | }, |
| | | immediate: true |
| | | }, |
| | | subtask: { |
| | | handler(nv, ov) { |
| | | if (nv != null && nv != undefined) { |
| | | this.initPropsCount++; |
| | | } |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | return array; |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.initOptions(); |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | onProAdviseChange(value) { |
| | | this.deepCopyProblem._adviseEdit = this.deepCopyProblem.advice; |
| | | }, |
| | | handlePictureCardPreview(uploadFile) { |
| | | this.initialIndex = this.fileList.indexOf(uploadFile) |
| | | this.initialIndex = this.fileList.indexOf(uploadFile); |
| | | this.previewDialogVisible = true; |
| | | this.previewDialogImageUrl = uploadFile.url; |
| | | }, |