|
|
@@ -362,6 +362,10 @@
|
|
|
v-model="ele.roll_film_combine_id"
|
|
|
style="width: 200px"
|
|
|
:disabled="!formData.company_id || !formData.car_file_id"
|
|
|
+ @on-change="
|
|
|
+ ($event) =>
|
|
|
+ is_ready ? handleSelectCombine($event, index) : ''
|
|
|
+ "
|
|
|
>
|
|
|
<Option
|
|
|
v-for="item in SureRollFilmCombineList"
|
|
|
@@ -488,29 +492,32 @@
|
|
|
v-show="formData.basic_type_item_id && img_type.indexOf('1') != -1"
|
|
|
>
|
|
|
<div class="total_img">
|
|
|
- <div v-show="imgData['1']" class="img_content">
|
|
|
+ <div
|
|
|
+ class="img_content"
|
|
|
+ v-for="(item, index) in imgData['1']"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<img
|
|
|
- @click="looks(imgData['1'])"
|
|
|
- :src="$store.state.ip + imgData['1']"
|
|
|
- alt=""
|
|
|
+ @click="looks(imgData['1'], true)"
|
|
|
+ :src="$store.state.ip + item"
|
|
|
+ alt=""
|
|
|
/>
|
|
|
<Icon
|
|
|
- v-show="type != 3"
|
|
|
- size="20"
|
|
|
- @click="imgData['1'] = ''"
|
|
|
- class="delete-img"
|
|
|
- type="ios-close-circle"
|
|
|
+ v-show="type != 3"
|
|
|
+ size="20"
|
|
|
+ @click="imgData['1'].splice(index, 1)"
|
|
|
+ class="delete-img"
|
|
|
+ type="ios-close-circle"
|
|
|
/>
|
|
|
</div>
|
|
|
<Upload
|
|
|
- multiple
|
|
|
- :headers="headers"
|
|
|
- v-show="!imgData['1']"
|
|
|
- :show-upload-list="false"
|
|
|
- :max-size="3072"
|
|
|
- :on-success="(res) => handleSuccess(res, '1')"
|
|
|
- :before-upload="handleError"
|
|
|
- :action="$store.state.ip + '/api/uploadConstructionFile'"
|
|
|
+ multiple
|
|
|
+ :headers="headers"
|
|
|
+ :show-upload-list="false"
|
|
|
+ :max-size="3072"
|
|
|
+ :on-success="(res) => handleSuccess(res, '1')"
|
|
|
+ :before-upload="handleError"
|
|
|
+ :action="$store.state.ip + '/api/uploadConstructionFile'"
|
|
|
>
|
|
|
<div class="upd_file">
|
|
|
<Icon type="ios-cloud-upload-outline" class="ico" size="50" />
|
|
|
@@ -871,7 +878,7 @@ export default {
|
|
|
status: 0
|
|
|
},
|
|
|
imgData: {
|
|
|
- '1': '',
|
|
|
+ '1': [],
|
|
|
'2': '',
|
|
|
'3': [],
|
|
|
'4': '',
|
|
|
@@ -1052,9 +1059,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
handleSuccess(res, type) {
|
|
|
- if (res.code == 200) {
|
|
|
+ if (res.code === 200) {
|
|
|
if (type === '3') {
|
|
|
this.imgData['3'].push(res.data.url);
|
|
|
+ } else if (type === '1') {
|
|
|
+ this.imgData['1'].push(res.data.url);
|
|
|
} else {
|
|
|
this.imgData[type] = res.data.url;
|
|
|
}
|
|
|
@@ -1078,7 +1087,7 @@ export default {
|
|
|
this.SureRollFilmCombineList = this.rollFilmCombineList.filter(v => (this.formData.company_id ? v.company_id == this.formData.company_id : true))
|
|
|
}
|
|
|
this.imgData = {
|
|
|
- '1': '',
|
|
|
+ '1': [],
|
|
|
'2': '',
|
|
|
'3': [],
|
|
|
'4': '',
|
|
|
@@ -1141,7 +1150,7 @@ export default {
|
|
|
this.constructionPersonList = arr2.concat(arr1);
|
|
|
this.formData.img.forEach(v => {
|
|
|
if (v.src) {
|
|
|
- if (v.type === 3) {
|
|
|
+ if (v.type == 3 || v.type == 1) {
|
|
|
this.imgData[v.type] = v.src.split(',');
|
|
|
} else {
|
|
|
this.imgData[v.type] = v.src
|
|
|
@@ -1214,7 +1223,7 @@ export default {
|
|
|
if (this.imgData[v] && this.imgData[v].length != 0) {
|
|
|
|
|
|
let obj = {};
|
|
|
- if (v === '3') {
|
|
|
+ if (v === '3' || v === '1') {
|
|
|
|
|
|
obj.type = v;
|
|
|
obj.src = this.imgData[v].toString();
|