|
|
@@ -166,9 +166,9 @@
|
|
166
|
166
|
<u--textarea v-model="formData.recycleBottomDesc" clearable count autoHeight maxlength="250"
|
|
167
|
167
|
height="100" confirmType="done"></u--textarea>
|
|
168
|
168
|
<view class="imgs_scroll">
|
|
169
|
|
- <ImgsRowScroll v-if="formData.recycleBottomPicList.length > 0" :isShowDeleteIcon="true"
|
|
|
169
|
+ <ImgsRowScroll v-if="formData.recycleBottomFileList.length > 0" :isShowDeleteIcon="true"
|
|
170
|
170
|
@deleteImgInfo="getDeleteRecycleBottomPicInfo" imgMode="aspectFill"
|
|
171
|
|
- :totalWidth="400" :images="formData.recycleBottomPicList" :previewEnabled="true"
|
|
|
171
|
+ :totalWidth="400" :images="formData.recycleBottomFileList" :previewEnabled="true"
|
|
172
|
172
|
:imageWidth="150" :imageHeight="150"></ImgsRowScroll>
|
|
173
|
173
|
<u-upload @afterRead="afterReadRecycleBottom" name="1" multiple :maxCount="1"
|
|
174
|
174
|
accept="image"></u-upload>
|
|
|
@@ -300,7 +300,7 @@ export default {
|
|
300
|
300
|
recyclePerson: '',
|
|
301
|
301
|
recyclePersonId: '',
|
|
302
|
302
|
recycleBottomDesc: '',
|
|
303
|
|
- recycleBottomPicList: [],//回收留底图
|
|
|
303
|
+ recycleBottomFileList: [],//回收留底图
|
|
304
|
304
|
recycleTime: this.$dayjs().format('YYYY-MM-DD'),
|
|
305
|
305
|
indentifyCode: '',
|
|
306
|
306
|
targetAudience: '',
|
|
|
@@ -528,7 +528,7 @@ export default {
|
|
528
|
528
|
recyclePerson: '',
|
|
529
|
529
|
recyclePersonId: '',
|
|
530
|
530
|
recycleBottomDesc: '',
|
|
531
|
|
- recycleBottomPicList: [],//回收留底图
|
|
|
531
|
+ recycleBottomFileList: [],//回收留底图
|
|
532
|
532
|
recycleTime: this.$dayjs().format('YYYY-MM-DD'),
|
|
533
|
533
|
indentifyCode: '',
|
|
534
|
534
|
targetAudience: '',
|
|
|
@@ -674,13 +674,13 @@ export default {
|
|
674
|
674
|
},
|
|
675
|
675
|
// 获取删除回收留底图信息
|
|
676
|
676
|
getDeleteRecycleBottomPicInfo(info) {
|
|
677
|
|
- this.formData.recycleBottomPicList = info.newImages
|
|
|
677
|
+ this.formData.recycleBottomFileList = info.newImages
|
|
678
|
678
|
},
|
|
679
|
679
|
// 新增回收留底图
|
|
680
|
680
|
async afterReadRecycleBottom(event) {
|
|
681
|
681
|
event.file.forEach(item => {
|
|
682
|
682
|
uni.$u.api.uploadFile(item.url).then((res) => {
|
|
683
|
|
- this.formData.recycleBottomPicList.push(res.data.url);
|
|
|
683
|
+ this.formData.recycleBottomFileList.push(res.data.url);
|
|
684
|
684
|
uni.$u.toast("文件上传成功");
|
|
685
|
685
|
}).catch(() => {
|
|
686
|
686
|
uni.$u.toast("上传文件失败");
|