xinyb
2023-02-06 d92fff29d2ca94f66202c07cc4153ef5b67bcaf8
页面必录的和页面字段检查问题
1个文件已修改
16 ■■■■■ 已修改文件
WebRoot/js/panel.js 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebRoot/js/panel.js
@@ -1896,10 +1896,14 @@
                            if ((value == "" || value == "null" || value == null || value=="pb_xinzen")) {
                                // 在编辑状态下必录
                                if ((hasSta && isHasValue(col[1], "" + statu + "", ";")) || !hasSta) {
                                    try{
                                        layer.msg(this.panInfo[col[0]].title +'--不能为空!');
                                    }catch (e) {
                                        $.messager.alert(this.panInfo[col[0]].title +'--不能为空!');
                                    if (this.panInfo[col[0]] == null) {//没有检查到此字段的存在。
                                        layer.msg('页面存在必录字段没有录入,必录的字段是:' + col[0]);
                                        return false;
                                    }
                                    try {
                                        layer.msg(this.panInfo[col[0]].title + '--不能为空!');
                                    } catch (e) {
                                        $.messager.alert(this.panInfo[col[0]].title + '--不能为空!');
                                    }
                                    // try{
                                    //     $.messager.show({
@@ -2552,12 +2556,12 @@
    var sel_value = value.toLowerCase().Trim();
    var notHas = true;
    if (typeof sel_options != "undefined" && sel_options != null) {
        for ( var i = 0; i < sel_options.length; i++) {
        for (var i = 0; i < sel_options.length; i++) {
            if (sel_options[i].value.toLowerCase() == sel_value
                || sel_options[i].text.toLowerCase() == sel_value) {
                sel_options[i].selected = true;
                notHas = false;
                if(panMain[panIndex].panInfo[id].controltype==46){
                if (panMain[panIndex].panInfo[id] != null && panMain[panIndex].panInfo[id].controltype == 46) {
                    setDoc(id, ".value='" + value + "'");
                    setDoc(id, ".style.backgroundColor ='" + value + "'");
                }