|
@@ -203,8 +203,8 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
getPid:{
|
|
getPid:{
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
- console.log("导航池改变了!")
|
|
|
|
- console.log(newVal, oldVal)
|
|
|
|
|
|
+ //console.log("导航池改变了!")
|
|
|
|
+ //console.log(newVal, oldVal)
|
|
// 回显导航池 判断一下是单导航还是多导航
|
|
// 回显导航池 判断一下是单导航还是多导航
|
|
this.form.type1data.pid_arr = newVal;
|
|
this.form.type1data.pid_arr = newVal;
|
|
},
|
|
},
|
|
@@ -212,32 +212,32 @@ export default {
|
|
},
|
|
},
|
|
getadName:{
|
|
getadName:{
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
- console.log("广告文字改变了!")
|
|
|
|
- console.log(newVal, oldVal)
|
|
|
|
|
|
+ //console.log("广告文字改变了!")
|
|
|
|
+ //console.log(newVal, oldVal)
|
|
this.form.type3data.adName = newVal;
|
|
this.form.type3data.adName = newVal;
|
|
},
|
|
},
|
|
immediate:true,
|
|
immediate:true,
|
|
},
|
|
},
|
|
getadIntroduce:{
|
|
getadIntroduce:{
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
- console.log("广告介绍改变了!")
|
|
|
|
- console.log(newVal, oldVal)
|
|
|
|
|
|
+ //console.log("广告介绍改变了!")
|
|
|
|
+ //console.log(newVal, oldVal)
|
|
this.form.type3data.introduce = newVal;
|
|
this.form.type3data.introduce = newVal;
|
|
},
|
|
},
|
|
immediate:true,
|
|
immediate:true,
|
|
},
|
|
},
|
|
getadPrice:{
|
|
getadPrice:{
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
- console.log("广告价格改变了!")
|
|
|
|
- console.log(newVal, oldVal)
|
|
|
|
- this.form.type3data.price = newVal;
|
|
|
|
|
|
+ //console.log("广告价格改变了!")
|
|
|
|
+ //console.log(newVal, oldVal)
|
|
|
|
+ this.form.type3data.price = newVal;
|
|
},
|
|
},
|
|
immediate:true,
|
|
immediate:true,
|
|
},
|
|
},
|
|
getKey:{
|
|
getKey:{
|
|
handler(newVal, oldVal) {
|
|
handler(newVal, oldVal) {
|
|
//console.log("级联选择器key改变了!")
|
|
//console.log("级联选择器key改变了!")
|
|
- console.log("数据更新!")
|
|
|
|
|
|
+ //console.log("数据更新!")
|
|
//console.log(newVal, oldVal)
|
|
//console.log(newVal, oldVal)
|
|
//更新级联选择器
|
|
//更新级联选择器
|
|
this.form.type1data.pid_arr = this.$store.state.template.componentViewData.pid_arr;
|
|
this.form.type1data.pid_arr = this.$store.state.template.componentViewData.pid_arr;
|
|
@@ -253,6 +253,9 @@ export default {
|
|
if(this.$store.state.template.editComponentType == 3){
|
|
if(this.$store.state.template.editComponentType == 3){
|
|
this.form.type2data.adName = this.$store.state.template.webSiteData.ad.top.name;
|
|
this.form.type2data.adName = this.$store.state.template.webSiteData.ad.top.name;
|
|
this.form.type2data.price = this.$store.state.template.webSiteData.ad.top.price;
|
|
this.form.type2data.price = this.$store.state.template.webSiteData.ad.top.price;
|
|
|
|
+ if(this.$store.state.template.webSiteData.ad.top.price == 0){
|
|
|
|
+ this.form.type2data.price = "";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
immediate:true,
|
|
immediate:true,
|