Commit e56ee466 by huangchunlan

宽带产品管理

parent a958f3e7
......@@ -327,6 +327,13 @@
this.regular = item
}
},
HTMLEncode(text) {
let temp = document.createElement("div");
temp.innerHTML = text;
let output = temp.innerText || temp.textContent;
temp = null;
return output;
},
search() {
this.$refs.table.refresh({search: true})
},
......@@ -339,6 +346,7 @@
})
},
modifyfunction(data) {
console.log(data);
universitySchool().then(res => {
this.universitySchool = res.data;
if (data != undefined) {
......@@ -348,12 +356,11 @@
}
})
}
//console.log(this.universitySchool)
})
if (data != undefined) {
this.productIntroduction = data.productIntroduction
this.productSetMealIntroduction = data.productSetMealIntroduction
this.productRf2 = data.productRf2
this.productIntroduction = data.productIntroduction.replace(/&lt/g, '<').replace(/&gt/g, '>')
this.productSetMealIntroduction = data.productSetMealIntroduction.replace(/&lt/g, '<').replace(/&gt/g, '>')
this.productRf2 = data.productRf2.replace(/&lt/g, '<').replace(/&gt/g, '>')
this.modelData.productMealPrice = data.productMealPrice
this.modelData.productUniversity = data.productUniversity
this.modelData.productRhPrice=data.productRhPrice
......@@ -382,6 +389,9 @@
this.universityName = '请选择'
this.regularName = "请选择";
}
this.productIntroduction=this.HTMLEncode(this.productIntroduction)
this.productSetMealIntroduction=this.HTMLEncode(this.productSetMealIntroduction);
this.productRf2=this.HTMLEncode(this.productRf2)
this.modifyvisible = true;
},
createfunctionOk() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment