|
@@ -87,7 +87,7 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :ms="24" :lg="24">
|
|
|
<el-form-item label="政策封面图">
|
|
|
- <ImageUpload :file-list="fileList" :multiple="false" />
|
|
|
+ <ImageUpload :file-list="fileList" multiple :limit="3"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -571,8 +571,8 @@ export default {
|
|
|
cid: '',
|
|
|
cpolicyId: '',
|
|
|
region: 0,
|
|
|
- fullscreenLoading:false
|
|
|
-
|
|
|
+ fullscreenLoading:false,
|
|
|
+ srcList:[]
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -790,14 +790,17 @@ export default {
|
|
|
commercialType: this.detail.commercialType
|
|
|
}),
|
|
|
(this.region = res.data.flag)
|
|
|
- this.srcList = [this.$imageUrl + this.detail.imgSrc]
|
|
|
+
|
|
|
+ // this.srcList = [this.$imageUrl + this.detail.imgSrc]
|
|
|
if (this.$parent.isShow === 5 && this.detail.imgSrc) {
|
|
|
- this.fileList = [
|
|
|
- {
|
|
|
+ this.detail.imgSrc.split(',').forEach(k=>{
|
|
|
+ this.fileList.push({
|
|
|
hover: '',
|
|
|
- url: this.detail.imgSrc
|
|
|
- }
|
|
|
- ]
|
|
|
+ url:k
|
|
|
+ })
|
|
|
+ this.srcList.push(this.$imageUrl+k)
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
await this.handletwoList()
|
|
|
// 获取条件政策
|
|
@@ -907,13 +910,17 @@ export default {
|
|
|
// this.searchForm.mainName = k.dictValue;
|
|
|
// }
|
|
|
// });
|
|
|
+ let imgUrl = []
|
|
|
+ this.fileList.forEach(k=>{
|
|
|
+ imgUrl.push(k.url)
|
|
|
+ })
|
|
|
const params = {
|
|
|
...this.detail,
|
|
|
...this.searchForm,
|
|
|
flag: region,
|
|
|
endTime: this.searchForm.endTime || '2100-01-01 00:00:00',
|
|
|
policyCustomers: arr,
|
|
|
- imgSrc: this.fileList.length ? this.fileList[0].url : ''
|
|
|
+ imgSrc: imgUrl.join(',')
|
|
|
}
|
|
|
console.log(this.fileList)
|
|
|
updatePolicy(params).then(res => {
|