target/classes/public/js/saleChance/sale.chance.js

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

layui.use(['table','layer'],function(){
    var layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        table = layui.table;


    //营销机会列表展示,加载数据表格
    var  tableIns = table.render({
        //容器元素id
        elem: '#saleChanceList',
        //访问数据地址,对应后台的数据接口
        url : ctx+'/sale_chance/list',
        //单元格最最小宽度
        cellMinWidth : 95,
        //开启分页
        page : true,
        //容器高度
        height : "full-125",
        //每页显示数量的选择项
        limits : [10,15,20,25],
        //默认每页显示的数量
        limit : 10,
        //开启头部工具栏
        toolbar: "#toolbarDemo",
        id : "saleChanceListTable",
        //表头
        cols : [[
            //filed:要求filed属性值与返回的数据中对应的属性字段名一致
            {type: "checkbox", fixed:"center"},
            {field: "id", title:'编号',sort:true,fixed:"true"},
            {field: 'chanceSource', title: '机会来源',align:"center"},
            {field: 'customerName', title: '客户名称',  align:'center'},
            {field: 'cgjl', title: '成功几率', align:'center'},
            {field: 'overview', title: '概要', align:'center'},
            {field: 'linkMan', title: '联系人',  align:'center'},
            {field: 'linkPhone', title: '联系电话', align:'center'},
            {field: 'description', title: '描述', align:'center'},
            {field: 'createMan', title: '创建人', align:'center'},
            {field: 'createDate', title: '创建时间', align:'center'},
            {field: 'uname', title: '指派人', align:'center'},
            {field: 'assignTime', title: '分配时间', align:'center'},
            {field: 'state', title: '分配状态', align:'center',templet:function(d){
                    //调用函数,返回格式化结果
                    return formatterState(d.state);
                }},
            {field: 'devResult', title: '开发状态', align:'center',templet:function (d) {
                    return formatterDevResult(d.devResult);
                }},
            {title: '操作', templet:'#saleChanceListBar',fixed:"right",align:"center", minWidth:150}
        ]]
    });

    /*
        格式化状态值
     */
    function formatterState(state){
        if(state==0){
            return "<div style='color:yellow '>未分配</div>";
        }else if(state==1){
            return "<div style='color: green'>已分配</div>";
后面还有 163 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。