日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

工作总结 2018-4-13 bootstrapTable 属性 queryParams: queryParams,//参数 get 中 %5B%5D 数组的意思...

發布時間:2023/12/16 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 工作总结 2018-4-13 bootstrapTable 属性 queryParams: queryParams,//参数 get 中 %5B%5D 数组的意思... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<table id="dataTable" data-toggle="table" data-show-columns="true" data-mobile-responsive="true"></table> function getTab() {$('#dataTable').bootstrapTable({method: 'get', //這里要設置為get,不知道為什么 設置post獲取不了url: '/AtmAtm/GetCodeList',cache: false,striped: true,pagination: true,pageList: [10, 30, 50, 100],pageSize: 10,pageNumber: 1,search: true,sidePagination: 'server',//設置為服務器端分頁queryParams: queryParams,//參數showColumns: true,showRefresh: true,minimumCountColumns: 2,clickToSelect: true,smartDisplay: true,columns: [{checkbox: 'true',title: '@LangResources.Resource.Info_SelectList'},{field: 'AtmCode',title: '@LangResources.Resource.BarCode',align: 'center',width: '120',valign: 'center',sortable: true}, {field: 'AtmNo',title: '@LangResources.Resource.AtmNo',align: 'center',width: '100',valign: 'center',sortable: true,//formatter: operateFormatter }, {field: 'TerminalNum',title: '@LangResources.Resource.TerminalNum',align: 'center',width: '100',valign: 'center',sortable: true,//formatter: operateFormatter }, {field: 'ManufacturerObj',title: '@LangResources.Resource.ProducerName',align: 'center',width: '100',valign: 'center',sortable: true,//formatter: operateFormatter }, {field: 'atmname',title: '@LangResources.Resource.Info_JiJuMingCheng',align: 'center',width: '100',valign: 'center',sortable: true,},{field: 'AtmTypeName',title: '@LangResources.Resource.AtmTypeName',align: 'center',width: '150',valign: 'center',sortable: true,//formatter: operateFormatter },{field: 'CustomerName',title: '@LangResources.Resource.CustomerName',align: 'center',width: '40',valign: 'center',sortable: true,//formatter: operateFormatter }, {field: 'Menu_CityRegion',title: '@LangResources.Resource.Menu_CityRegion',align: 'center',width: '100',valign: 'center',sortable: true,//formatter: operateFormatter }, {field: 'BlockName',title: '@LangResources.Resource.BlockName',align: 'center',width: '100',valign: 'center',sortable: true,//formatter: operateFormatter }, {field: 'StreetName',title: '@LangResources.Resource.StreetName',align: 'center',width: '40',valign: 'center',sortable: true,//formatter: operateFormatter },@*{field: 'AtmStatus',title: '@LangResources.Resource.AtmStatus',align: 'center',width: '40',valign: 'center',sortable: true,//formatter: operateFormatter},*@{field: 'JobType',title: '@LangResources.Resource.JobType',align: 'center',width: '60',valign: 'center',sortable: true,formatter: CodeFormatter},{field: 'RevertPosition',title: '@LangResources.Resource.RevertPosition',align: 'center',width: '60',valign: 'center',sortable: true,},{field: 'BillAddress',title: '@LangResources.Resource.BillAddress',align: 'center',width: '60',valign: 'center',sortable: true,},{field: 'provinceobj',title: '@LangResources.Resource.province',align: 'center',width: '60',valign: 'center',sortable: true,},{field: 'Districtobj',title: '@LangResources.Resource.District',align: 'center',width: '60',valign: 'center',sortable: true,},{field: 'DPSBinobj',title: '@LangResources.Resource.dpsbin',align: 'center',width: '60',valign: 'center',sortable: true,},{field: 'PasswordLimit',title: '@LangResources.Resource.PasswordLimit',align: 'center',width: '60',valign: 'center',sortable: true,},{field: 'Address',title: '@LangResources.Resource.Address',align: 'center',width: '100',valign: 'center',sortable: true,},{field: 'IsAt',title: '@LangResources.Resource.IsAt',align: 'center',width: '100',valign: 'center',sortable: true,},{field: 'EndMDate',title: '@LangResources.Resource.EndMDate',align: 'center',width: '100',valign: 'center',sortable: true,},{field: 'AtmSetupType',title: '@LangResources.Resource.AtmSetupType',align: 'center',width: '100',valign: 'center',sortable: true,}, {field: 'IsNon',title: 'nodv',align: 'center',width: '100',valign: 'center',sortable: true,},{field: 'Remark',title: '@LangResources.Resource.Remark',align: 'center',width: '100',valign: 'center',sortable: true,}, {field: 'StartMDates',title: '@LangResources.Resource.StartMDates',align: 'center',width: '80',valign: 'center',sortable: true,formatter: dateFormatter},{field: 'Id',title: '@LangResources.Resource.Operation',align: 'center',width: '250',valign: 'top',sortable: true,formatter: EditeOpt}], onLoadSuccess: function () {},onLoadError: function () {//mif.showErrorMessageBox("數據加載失敗!"); }});$('#dataTable').bootstrapTable('hideColumn', 'Address');} //設置傳入參數function queryParams(params) {debuggerconsole.info(params);var CustomerType = $("#CustomerType").val();var ATMModelType = $("#ATMModelType").val();var mxdrq = $("#mxdrq").val();var startdate = $("#startdate").val();var enddate = $("#enddate").val();return {"offset": params.offset,"limit": params.limit,"CustomerType": CustomerType,"ATMModelType": ATMModelType,"mxdrq": mxdrq,"startdate": startdate,"enddate": enddate,"sort": params.sort,"search": params.search,"order": params.order}return params;}

?

get請求 的參數? ?全部 保存在?

queryParams: queryParams,//參數? 里面(bootstrap 封裝好的)

?

?

?

?

http://localhost:8003/AtmAtm/GetCodeList?offset=0&limit=10&CustomerType%5B%5D=9e6f6cff-6e64-41f1-a7be-c07335764423&CustomerType%5B%5D=58194020-9eaf-4a6c-a5cc-b8fa6f628ba9&CustomerType%5B%5D=045426c5-9fd9-4c26-b4f0-dc0015ee96b8&CustomerType%5B%5D=ea0087c9-4172-4c03-92c5-4cc0cd9ac62d&CustomerType%5B%5D=40bde8fc-8a97-45e7-9907-524167975791&ATMModelType%5B%5D=a73a5fb1-bd7f-4088-9a33-3cb539e02f89&ATMModelType%5B%5D=b6cc57f2-d067-462c-9cc7-4f892932d0d5&ATMModelType%5B%5D=82e91205-1a16-11e7-b428-00163e003600&ATMModelType%5B%5D=83d5a7cc-4955-445a-b4b6-c881c4dcfcec&ATMModelType%5B%5D=1b673892-b161-4968-9066-3c3ca72bac37&ATMModelType%5B%5D=82e91099-1a16-11e7-b428-00163e003600&mxdrq=2&startdate=2014-06-29&enddate=2018-04-13&search=&order=asc&_=1523614816387

?

?

%5B%5D? 數組 的 意思?

?

在后臺?

//查詢//string[] CustomerType = (Request["CustomerType[]"] + "").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);//string[] ATMModelType = (Request["ATMModelType[]"] + "").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);string CustomerType = (Request["CustomerType[]"] + "");string ATMModelType = (Request["ATMModelType[]"] + "");

get請求? Request 的話? 這樣?

Request["CustomerType[]"]

?獲取 數組

post請求? ?的話? 這樣?

public string GetCodeList(List<string> arr) 或者 對象中某屬性

?獲取 數組

?

總結

以上是生活随笔為你收集整理的工作总结 2018-4-13 bootstrapTable 属性 queryParams: queryParams,//参数 get 中 %5B%5D 数组的意思...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。