|
|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
项目 :
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select style="width: 300px" v-model="form.activity_list_id" placeholder="请选择">
|
|
|
|
|
<el-select :disabled="hasActiveId" style="width: 300px" v-model="form.activity_list_id" placeholder="请选择">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in listActivity"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
@ -84,6 +84,24 @@
|
|
|
|
|
<el-input v-model="form.path" clearable placeholder="请输入小程序路径" style="width: 300px"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:logo_id>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">logo(100*100) :</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-upload style="width: 300px" class="upload-demo" :action="action" :on-success="
|
|
|
|
|
(response, file, fileList) =>
|
|
|
|
|
successHandle(response, file, fileList, 'logo_id')
|
|
|
|
|
" :before-upload="uploadBefore" :file-list="logo_id" :on-remove="
|
|
|
|
|
(file, fileList) => removeHande(file, fileList, 'logo_id')
|
|
|
|
|
" :limit="1" list-type="picture-card">
|
|
|
|
|
<i slot="default" class="el-icon-plus"></i>
|
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
|
只能上传jpg/png文件,且不超过500kb
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:image_id>
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
@ -259,10 +277,12 @@
|
|
|
|
|
props: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isShow: false,
|
|
|
|
|
isShow: false,
|
|
|
|
|
hasActiveId:false,
|
|
|
|
|
id: "",
|
|
|
|
|
type: "",
|
|
|
|
|
image_id: [],
|
|
|
|
|
image_id: [],
|
|
|
|
|
logo_id:[],
|
|
|
|
|
video_image_id: [],
|
|
|
|
|
action: process.env.VUE_APP_UPLOAD_API,
|
|
|
|
|
video_id: [],
|
|
|
|
|
@ -274,7 +294,8 @@
|
|
|
|
|
name: "",
|
|
|
|
|
iswx:'',
|
|
|
|
|
appid:'',
|
|
|
|
|
path:'',
|
|
|
|
|
path:'',
|
|
|
|
|
logo_id:'',
|
|
|
|
|
image_id: "",
|
|
|
|
|
lat: "",
|
|
|
|
|
lng: "",
|
|
|
|
|
@ -372,6 +393,9 @@
|
|
|
|
|
}
|
|
|
|
|
if (!key) {
|
|
|
|
|
this.init();
|
|
|
|
|
}
|
|
|
|
|
if(this.form.activity_list_id){
|
|
|
|
|
this.hasActiveId = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -409,7 +433,7 @@
|
|
|
|
|
const res = await show({
|
|
|
|
|
id: this.id,
|
|
|
|
|
table_name: "map_points",
|
|
|
|
|
with_relations: ['video', 'image', "videoImage"]
|
|
|
|
|
with_relations: ['video', 'image', "videoImage","logo"]
|
|
|
|
|
});
|
|
|
|
|
this.$integrateData(this.form, res);
|
|
|
|
|
this.form.config = res.config && res.config.length>0?res.config:[{
|
|
|
|
|
@ -425,7 +449,13 @@
|
|
|
|
|
url: res.image?.url,
|
|
|
|
|
name: res.image?.original_name,
|
|
|
|
|
response: res.image
|
|
|
|
|
}] : []
|
|
|
|
|
}] : [],
|
|
|
|
|
this.logo_id = res.logo ? [{
|
|
|
|
|
url: res.logo?.url,
|
|
|
|
|
name: res.logo?.original_name,
|
|
|
|
|
response: res.logo
|
|
|
|
|
}] : [],
|
|
|
|
|
|
|
|
|
|
this.video_id = res.video ? [{
|
|
|
|
|
url: res.video?.url,
|
|
|
|
|
name: res.video?.original_name,
|
|
|
|
|
@ -458,6 +488,9 @@
|
|
|
|
|
this.form.image_id = this.image_id.length == 0 ? "" : (this.image_id[0]?.response?.id);
|
|
|
|
|
this.form.video_id = this.video_id.length == 0 ? "" : (this.video_id[0]?.response?.id);
|
|
|
|
|
this.form.video_image_id = this.video_image_id.length == 0 ? "" : (this.video_image_id[0]?.response?.id);
|
|
|
|
|
|
|
|
|
|
this.form.logo_id = this.logo_id.length == 0 ? "" : (this.logo_id[0]?.response?.id);
|
|
|
|
|
|
|
|
|
|
save(Object.assign(this.form, {
|
|
|
|
|
table_name: "map_points"
|
|
|
|
|
})).then(
|
|
|
|
|
@ -483,7 +516,8 @@
|
|
|
|
|
} else {
|
|
|
|
|
this.id = "";
|
|
|
|
|
this.type = "";
|
|
|
|
|
this.image_id = [];
|
|
|
|
|
this.image_id = [];
|
|
|
|
|
this.logo_id = []
|
|
|
|
|
this.video_id = [];
|
|
|
|
|
this.video_image_id = [];
|
|
|
|
|
this.init();
|
|
|
|
|
|