Commit e56ee466 by huangchunlan

宽带产品管理

parent a958f3e7
...@@ -327,6 +327,13 @@ ...@@ -327,6 +327,13 @@
this.regular = item this.regular = item
} }
}, },
HTMLEncode(text) {
let temp = document.createElement("div");
temp.innerHTML = text;
let output = temp.innerText || temp.textContent;
temp = null;
return output;
},
search() { search() {
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}, },
...@@ -339,6 +346,7 @@ ...@@ -339,6 +346,7 @@
}) })
}, },
modifyfunction(data) { modifyfunction(data) {
console.log(data);
universitySchool().then(res => { universitySchool().then(res => {
this.universitySchool = res.data; this.universitySchool = res.data;
if (data != undefined) { if (data != undefined) {
...@@ -348,12 +356,11 @@ ...@@ -348,12 +356,11 @@
} }
}) })
} }
//console.log(this.universitySchool)
}) })
if (data != undefined) { if (data != undefined) {
this.productIntroduction = data.productIntroduction this.productIntroduction = data.productIntroduction.replace(/&lt/g, '<').replace(/&gt/g, '>')
this.productSetMealIntroduction = data.productSetMealIntroduction this.productSetMealIntroduction = data.productSetMealIntroduction.replace(/&lt/g, '<').replace(/&gt/g, '>')
this.productRf2 = data.productRf2 this.productRf2 = data.productRf2.replace(/&lt/g, '<').replace(/&gt/g, '>')
this.modelData.productMealPrice = data.productMealPrice this.modelData.productMealPrice = data.productMealPrice
this.modelData.productUniversity = data.productUniversity this.modelData.productUniversity = data.productUniversity
this.modelData.productRhPrice=data.productRhPrice this.modelData.productRhPrice=data.productRhPrice
...@@ -382,6 +389,9 @@ ...@@ -382,6 +389,9 @@
this.universityName = '请选择' this.universityName = '请选择'
this.regularName = "请选择"; this.regularName = "请选择";
} }
this.productIntroduction=this.HTMLEncode(this.productIntroduction)
this.productSetMealIntroduction=this.HTMLEncode(this.productSetMealIntroduction);
this.productRf2=this.HTMLEncode(this.productRf2)
this.modifyvisible = true; this.modifyvisible = true;
}, },
createfunctionOk() { 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