| | |
| | | :disabled="readonly" |
| | | accept="image/*" |
| | | > |
| | | <el-button type="primary" id="uploadBtnId" style="display: none"></el-button> |
| | | <el-button |
| | | type="primary" |
| | | id="uploadBtnId" |
| | | style="display: none" |
| | | ></el-button> |
| | | <el-icon> |
| | | <Plus /> |
| | | </el-icon> |
| | |
| | | <el-button type="primary" @click="onSubmit">保存</el-button> |
| | | <el-button @click="this.$emit('submited', false)">取消</el-button> |
| | | </div> |
| | | <el-dialog |
| | | title="任意图片" |
| | | width="80%" |
| | | v-model="anyPhotoDialog" |
| | | :before-close="beforeAnyPhotoDialogclose" |
| | | <ArbitraryPhoto |
| | | :max-select="3" |
| | | v-if="anyPhotoDialog" |
| | | v-model:dialog-visible="anyPhotoDialog" |
| | | @selectByAnyPhonoEvent="handleSelectedAnyPhono" |
| | | :subtask="subtask" |
| | | :defaultFile="fileList" |
| | | ref="arbitraryPhotoRef" |
| | | > |
| | | <ArbitraryPhoto |
| | | v-if="anyPhotoDialog" |
| | | @selectByAnyPhonoEvent="handleSelectedAnyPhono" |
| | | :subtask="subtask" |
| | | :defaultFile="fileList" |
| | | ref="arbitraryPhotoRef" |
| | | > |
| | | </ArbitraryPhoto> |
| | | </el-dialog> |
| | | </ArbitraryPhoto> |
| | | <el-dialog |
| | | title="台账图片" |
| | | width="80%" |
| | |
| | | return; |
| | | } |
| | | let beforeEditImgList = []; |
| | | useCloned(this.oldChangeFileList).cloned.value.forEach((oldChangeFileitem) => { |
| | | if (oldChangeFileitem.ischanged == 1) { |
| | | oldChangeFileitem.url = |
| | | $fysp.imgUrl + oldChangeFileitem.extension1 + oldChangeFileitem.guid + '.jpg'; |
| | | oldChangeFileitem.name = '1'; |
| | | beforeEditImgList.push(oldChangeFileitem); |
| | | useCloned(this.oldChangeFileList).cloned.value.forEach( |
| | | (oldChangeFileitem) => { |
| | | if (oldChangeFileitem.ischanged == 1) { |
| | | oldChangeFileitem.url = |
| | | $fysp.imgUrl + |
| | | oldChangeFileitem.extension1 + |
| | | oldChangeFileitem.guid + |
| | | '.jpg'; |
| | | oldChangeFileitem.name = '1'; |
| | | beforeEditImgList.push(oldChangeFileitem); |
| | | } |
| | | } |
| | | }); |
| | | ); |
| | | this.fileList = useCloned(beforeEditImgList).cloned.value; |
| | | this.oldFileList = useCloned(beforeEditImgList).cloned.value; |
| | | }, |
| | |
| | | |
| | | const that = this; |
| | | let deleteImgCopy = this.deleteImg; |
| | | |
| | | |
| | | if (this.changeType == 1) { |
| | | fileUtil.getImageFiles(picUrls, function (files) { |
| | | data.append('deleteImg', deleteImgCopy); |
| | |
| | | files.forEach((image) => { |
| | | data.append('images', image); |
| | | }); |
| | | |
| | | |
| | | problemApi.updateChange(data).then((res) => {}); |
| | | }); |
| | | that.$emit('submited', true); |
| | | }else { |
| | | } else { |
| | | fileUtil.getImageFiles(picUrls, function (files) { |
| | | data.append('problemId', that.problemId); |
| | | files.forEach((image) => { |