修复配置界面中下拉选择检索条件,js使用el表达式赋值时存在html特殊字符未转换问题;

导入字符串字段增加escapeHtml4转换;
域名校验不使用完整的域名格式校验。

(cherry picked from commit a1f8e1779a)
This commit is contained in:
duandongmei
2019-01-21 08:46:57 +00:00
committed by 王鑫
parent e412d22569
commit f8a90c0c8f
3 changed files with 10 additions and 4 deletions

View File

@@ -304,7 +304,7 @@ function abbr(name, maxLength){
/*筛选按钮初始化*/
function filterActionInit() {
escapIntypeHtml();
var isFilterAction = $("#isFilterAction").val();
if(isFilterAction=="true") {
fiterPanleShow();
@@ -322,7 +322,12 @@ function filterActionInit() {
}
});
}
/*******配置界面中下拉选择检索条件js使用el表达式赋值时存在html特殊字符未转换问题*********/
function escapeIntypeHtml(){
//首先使用html()方法将检索内容特殊字符转换再次使用text()将转换后的正常字符串赋值给intype
$("#intype").val($("#intype").html($("#intype").val()).text());
$("#intype").html('');
}
function tzheight(){
var hei=document.documentElement.clientHeight;
hei=hei-91;