img
This commit is contained in:
parent
1d4e1a94cd
commit
e64d72623c
|
|
@ -78,9 +78,9 @@
|
|||
<view class="item item_bottom_border" style="height: fit-content;" >
|
||||
<view class="title">照片</view>
|
||||
<view style="flex: 3;">
|
||||
<!-- <u-upload :action="vuex_apifile" :header="header" ref="uUpload" :file-list="fileList" max-count="9" @on-success="imgUpSuccess" ></u-upload> -->
|
||||
<u-upload :action="vuex_apifile" :header="header" ref="uUpload" :file-list="fileList" max-count="9" @on-success="imgUpSuccess" @on-remove="imgRemove"></u-upload>
|
||||
|
||||
<imgUpload :count="9" :header="header" :url="vuex_apifile" @obtain_img="imgUpdata" :list="fileList"></imgUpload>
|
||||
<!-- <imgUpload :count="9" :header="header" :url="vuex_apifile" @obtain_img="imgUpdata" :list="fileList"></imgUpload> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn" v-if="showBtns">
|
||||
|
|
@ -158,10 +158,20 @@
|
|||
this.getAreaRange();
|
||||
},
|
||||
methods: {
|
||||
imgUpdata(data){
|
||||
this.formData.imgs = data;
|
||||
},
|
||||
imgRemove(index,list,inde){
|
||||
// debugger;
|
||||
// console.log(index)
|
||||
this.formData.imgs.splice(index,1);
|
||||
console.log(this.formData.imgs)
|
||||
|
||||
},
|
||||
imgUpSuccess(data,index,list){
|
||||
// debugger;
|
||||
// console.log(data);
|
||||
// console.log(index);
|
||||
// console.log(list);
|
||||
this.formData.imgs.push(data.id);
|
||||
},
|
||||
showPicker() {
|
||||
this.$refs.dept_Picker._show();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue