Pu Zhibing
2024-11-15 dedfc9f1a3fb311874a360324447e717f3034c4a
ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/yesDriver.js
@@ -14,7 +14,7 @@
 */
YesDriver.initColumn = function () {
    return [
        {field: 'selectItem', radio: true},
        {field: 'selectItem', radio: false},
        {title: '主键ID', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '添加时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'7%',
            formatter: function (value, row) {
@@ -279,21 +279,11 @@
};
YesDriver.selectUserOpt = function () {
    var selected = $('#' + this.id).bootstrapTable('getSelections');
    if (selected.length == 0) {
        Feng.info("请先选中表格中的某一记录!");
        return false;
    }
    var id = selected[0].id;
    var companyName = selected[0].companyName;
    if(companyName==undefined)companyName="";
    var nickName = selected[0].firstName + ' ' + selected[0].lastName;
    var phone = selected[0].phone;
    if ("" == id || null == id || undefined == id){
    if (selected.length == 0){
        Feng.info("请先选中表格中的某一记录!");
        return ;
    }
    var obj = $("#obj").val();
    window.parent.TAdvertisementInfoDlg.selecUserOpt2(id,companyName,nickName,phone);
    window.parent.TAdvertisementInfoDlg.selecUserOpt2(selected);
    YesDriver.close();
}
@@ -567,7 +557,7 @@
    window.location.href = Feng.ctxPath + "/tDriver/uploadDriverModel";
}
var agreement = function(){
var agreement = function(){
    this.init = function(){
        //模拟上传excel  
        $("#uploadEventBtn").unbind("click").bind("click",function(){
@@ -595,7 +585,7 @@
        }
    }
}
YesDriver.sendAjaxRequest = function(url,type,data){
YesDriver.sendAjaxRequest = function(url,type,data){
    $.ajax({
        url : url,
        type : type,
@@ -649,7 +639,7 @@
    }
};
var agreement;
var agreement;
$(function(){
    agreement = new agreement();
    agreement.init();