From dedfc9f1a3fb311874a360324447e717f3034c4a Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 15 十一月 2024 09:52:58 +0800 Subject: [PATCH] 修改bug --- ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/yesDriver.js | 22 ++++++---------------- 1 files changed, 6 insertions(+), 16 deletions(-) diff --git a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/yesDriver.js b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/yesDriver.js index d625777..12c1334 100644 --- a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/yesDriver.js +++ b/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(); -- Gitblit v1.7.1