@@ -230,7 +273,7 @@
theme_id:'',
name: "",
iswx:'',
- appId:'',
+ appid:'',
path:'',
image_id: "",
lat: "",
@@ -239,7 +282,16 @@
y: "",
jiaodu: "",
video_id: "",
- video_image_id: "",
+ video_image_id: "",
+ config:[{
+ key:'address',
+ name:'详细地址',
+ value:''
+ },{
+ key:'time',
+ name:'开放时间',
+ value:''
+ }],
content: "",
},
rules: {
@@ -343,14 +395,32 @@
return false;
}
},
-
+ addRow() {
+ this.form.config.push({
+ name: "",
+ key: "",
+ value: ""
+ })
+ },
+ delRow(obj, index) {
+ this.form.config.splice(index, 1);
+ },
async getDetail() {
const res = await show({
id: this.id,
table_name: "map_points",
with_relations: ['video', 'image', "videoImage"]
});
- this.$integrateData(this.form, res);
+ this.$integrateData(this.form, res);
+ this.form.config = res.config && res.config.length>0?res.config:[{
+ key:'address',
+ name:'详细地址',
+ value:''
+ },{
+ key:'time',
+ name:'开放时间',
+ value:''
+ }]
this.image_id = res.image ? [{
url: res.image?.url,
name: res.image?.original_name,