Pu Zhibing
2025-03-28 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554
ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js
@@ -26,11 +26,20 @@
                return btn;
            }
        },
        {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:'5%',
        {title: '姓', field: 'lastName', visible: true, align: 'center', valign: 'middle',width:'5%',
            formatter: function (value, row) {
                var btn = "";
                if(row.name != '' && row.name != null) {
                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.name + '" onfocus="TUser.tooltip()">' + row.name + '</p>']
                if(row.lastName != '' && row.lastName != null) {
                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.lastName + '" onfocus="TUser.tooltip()">' + row.lastName + '</p>']
                }
                return btn;
            }
        },
        {title: '名', field: 'firstName', visible: true, align: 'center', valign: 'middle',width:'5%',
            formatter: function (value, row) {
                var btn = "";
                if(row.firstName != '' && row.firstName != null) {
                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.firstName + '" onfocus="TUser.tooltip()">' + row.firstName + '</p>']
                }
                return btn;
            }
@@ -54,15 +63,35 @@
                return btn;
            }
        },
        {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle',width:'3%',
        {title: '手机号运营商', field: 'phoneOperator', visible: true, align: 'center', valign: 'middle',width:'5%',
            formatter: function (value, row) {
                var btn = "";
                if(row.sex != '' && row.sex != null) {
                    if (row.sex == 1) {
                        btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="男" onfocus="TUser.tooltip()">男</p>']
                    }else if (row.sex == 2){
                        btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="女" onfocus="TUser.tooltip()">女</p>']
                    }
                if(row.phoneOperator != '' && row.phoneOperator != null) {
                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.phoneOperator + '" onfocus="TUser.tooltip()">' + row.phoneOperator + '</p>']
                }
                return btn;
            }
        },
        // {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle',width:'3%',
        //     formatter: function (value, row) {
        //         var btn = "";
        //         if(row.sex != '' && row.sex != null) {
        //             if (row.sex == 1) {
        //                 btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="男" onfocus="TUser.tooltip()">男</p>']
        //             }else if (row.sex == 2){
        //                 btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="女" onfocus="TUser.tooltip()">女</p>']
        //             }
        //         }
        //         return btn;
        //     }
        // },
        {title: '出生日期', field: 'birthday', visible: true, align: 'center', valign: 'middle',width:'3%',
            formatter: function (value, row) {
                var btn = "";
                if(row.birthday != '' && row.birthday != null) {
                    var birthday = row.birthday;
                    birthday = birthday.substring(0, birthday.indexOf(" "));
                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + birthday + '" onfocus="TUser.tooltip()">' + birthday + '</p>']
                }
                return btn;
            }
@@ -149,13 +178,13 @@
                  return ''
              }
            }
        },
        },/*
        {title: '车队', field: 'teamId', visible: true, align: 'center', valign: 'middle',width:'15%',editable:{
                type: 'select',
                title: '车队',
                source: YesDriver.teamList,
                emptytext: "暂无车队"
        }},
        }},*/
        {title: '关联线路', field: 'lineStr', visible: true, align: 'center', valign: 'middle',width:'7%',
            formatter: function (value, row) {
                var btn = "";