Commit da72affe by huangchunlan

宽带配置

parent 3b9b7ee4
...@@ -528,6 +528,13 @@ export default { ...@@ -528,6 +528,13 @@ export default {
this.chouti = item this.chouti = item
} }
}, },
HTMLEncode(text) {
let temp = document.createElement("div");
temp.innerHTML = text;
let output = temp.innerText || temp.textContent;
temp = null;
return output;
},
regularsName(item) { regularsName(item) {
if (item == '请选择') { if (item == '请选择') {
this.modelData.productIntroductionPic2 = '' this.modelData.productIntroductionPic2 = ''
...@@ -543,7 +550,6 @@ export default { ...@@ -543,7 +550,6 @@ export default {
let that = this; let that = this;
// 查询添加数据 // 查询添加数据
universityBroadbandConfigData({universityId: data.university_id}).then(res => { universityBroadbandConfigData({universityId: data.university_id}).then(res => {
console.log(res);
if (res.state == 'error') { if (res.state == 'error') {
} }
...@@ -552,9 +558,9 @@ export default { ...@@ -552,9 +558,9 @@ export default {
const schools = res.data.schoolsData const schools = res.data.schoolsData
that.modelData.schools = (schools == undefined ? [] : schools); that.modelData.schools = (schools == undefined ? [] : schools);
that.modelData.universityId= university.universityId that.modelData.universityId= university.universityId
that.productIntroduction = product.productIntroduction that.productIntroduction =this.HTMLEncode(product.productIntroduction.replace(/&lt/g, '<').replace(/&gt/g, '>'));
that.productSetMealIntroduction = product.productSetMealIntroduction that.productSetMealIntroduction = this.HTMLEncode(product.productSetMealIntroduction.replace(/&lt/g, '<').replace(/&gt/g, '>'));
that.productRf2 = product.productRf2 that.productRf2 =this.HTMLEncode(product.productRf2.replace(/&lt/g, '<').replace(/&gt/g, '>'));
that.modelData.productMealPrice = product.productMealPrice that.modelData.productMealPrice = product.productMealPrice
that.modelData.productUniversity = product.productUniversity that.modelData.productUniversity = product.productUniversity
that.modelData.productRhPrice=product.productRhPrice that.modelData.productRhPrice=product.productRhPrice
...@@ -606,6 +612,9 @@ export default { ...@@ -606,6 +612,9 @@ export default {
'expenses': university.expenses 'expenses': university.expenses
}); });
}); });
// that.productIntroduction=this.HTMLEncode(that.productIntroduction)
// that.productSetMealIntroduction=this.HTMLEncode(that.productSetMealIntroduction);
// that.productRf2=this.HTMLEncode(that.productRf2)
this.add=false; this.add=false;
}else{ }else{
setTimeout(()=>{ setTimeout(()=>{
...@@ -654,6 +663,7 @@ export default { ...@@ -654,6 +663,7 @@ export default {
this.universityName = '' this.universityName = ''
this.regularName = ""; this.regularName = "";
} }
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