中扬CRM客户关系管理系统
LSH
2024-03-29 a26763201b83e1aa7823a0fe3219445a912b47b9
#周计划
2个文件已修改
69 ■■■■ 已修改文件
src/main/webapp/static/js/weekly/weekly.js 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/weekly/weekly.html 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/weekly/weekly.js
@@ -76,35 +76,6 @@
        })
    }
    // // 渲染搜索模板
    // $.ajax({
    //     url: baseUrl+"/cstmr/all/get/kv",
    //     headers: {'token': localStorage.getItem('token')},
    //     data: {
    //         limit: 9999
    //     },
    //     method: 'POST',
    //     // async: false, // 设置为同步执行
    //     success: function (res) {
    //         htmlCstme = "<select id=\"select_cstmr\" name=\"select_cstmr\" lay-vertype=\"tips\" lay-verify=\"required\" required=\"\">"
    //         htmlCstme = htmlCstme +
    //             "                    <option style=\"display: none\"></option>\n"
    //         if (res.code === 200){
    //             for (var val in res.data) {
    //                 var cstmrVal = res.data[val]
    //                 console.log(cstmrVal)
    //                 htmlCstme = htmlCstme +
    //                     "        <option value = \""+cstmrVal.value+"\"+\n" +
    //                     "        > "+cstmrVal.name+" </option>\n"
    //             }
    //         } else {
    //             htmlCstme = htmlCstme +
    //                 "<option value=\"0\">异常</option>"
    //         }
    //         htmlCstme = htmlCstme +  "\n" + " </select>";
    //     }
    // })
    // 数据渲染
    tableIns = table.render({
        elem: '#weekly',
@@ -570,6 +541,8 @@
                    },
                    done: function (res, curr, count) {
                        $(".layui-table-cell").css('overflow', 'visible');//解决layui数据表格中嵌套下拉框显示问题
                        $(".laytable-cell-2-0-6").css('color', 'rgba(0, 0, 0, 0)');
                        $(layero).find('.layui-table-view').css('margin', '0');
                        var options = this;
                        var indexSign = 0;
@@ -612,24 +585,9 @@
                                    console.log(res)
                                    console.log($("#cstmrId").html())
                                    res.data.forEach((item) => {
                                        $("#cstmrId").append("<option value='" + item.value + "'>" + item.name + "</option>")
                                        console.log(item)
                                        $("#cstmrId").append("<option value='" + item.value  + "';"+" class=\"cstmrDetl\""+">" + item.name + "</option>")
                                    })
                                    // htmlCstme = "<select id=\"select_cstmr\" name=\"select_cstmr\" lay-vertype=\"tips\" lay-verify=\"required\" required=\"\">"
                                    // htmlCstme = htmlCstme +
                                    //     "                    <option style=\"display: none\"></option>\n"
                                    // if (res.code === 200){
                                    //     for (var val in res.data) {
                                    //         var cstmrVal = res.data[val]
                                    //         console.log(cstmrVal)
                                    //         htmlCstme = htmlCstme +
                                    //             "        <option value = \""+cstmrVal.value+"\"+\n" +
                                    //             "        > "+cstmrVal.name+" </option>\n"
                                    //     }
                                    // } else {
                                    //     htmlCstme = htmlCstme +
                                    //         "<option value=\"0\">异常</option>"
                                    // }
                                    // htmlCstme = htmlCstme +  "\n" + " </select>";
                                }
                            })
                        }
@@ -918,6 +876,8 @@
                    },
                    done: function (res, curr, count) {
                        $(".layui-table-cell").css('overflow', 'visible');//解决layui数据表格中嵌套下拉框显示问题
                        // $(".laytable-cell-2-0-6").css('color', 'rgba(0, 0, 0, 0)');
                        $(layero).find('.layui-table-view').css('margin', '0');
                        var options = this;
src/main/webapp/views/weekly/weekly.html
@@ -24,6 +24,14 @@
            margin-right: 5px;
        }
        select#select-cstmr {
            color: rgba(0, 0, 0, 1) !important; /* 使用更具体的选择器 */
        }
        .cstmrDetl{
            /*color: rgba(0, 0, 0, 0); !* 使用更具体的选择器 *!*/
        }
    </style>
</head>
<body>
@@ -208,13 +216,10 @@
<!--</script>-->
<script type="text/template" id="cstmrId">
    <select id="select-cstmr" style="width: 100%" class="layui-border select-cstmr" lay-ignore >
            <option value="">选择甲方单位</option>
    <select id="select-cstmr" style="width: 100%;color:rgba(0, 0, 0, 1) !important" class="layui-border select-cstmr" lay-ignore >
            <option value="" class="cstmrDetl">选择甲方单位</option>
<!--        style="width: 100%;color: rgba(0, 0, 0, 1)"-->
    </select>
</script>
<script>
</script>
<!--&lt;!&ndash; 表单弹窗 &ndash;&gt;-->