houseRentingFees.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. /**
  2. * 房租补助管理初始化
  3. */
  4. var HouseRentingFees = {
  5. id: "HouseRentingFeesTable", //表格id
  6. seItem: null, //选中的条目
  7. table: null,
  8. layerIndex: -1
  9. };
  10. /**
  11. * 初始化表格的列
  12. */
  13. HouseRentingFees.initColumn = function () {
  14. return [
  15. {field: 'selectItem', radio: true},
  16. {title: '申报单位', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  17. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip',
  18. formatter : function (value,row,index) {
  19. if(row.sex==1){
  20. return value+'<span style="color:#6495ED">【男】</span>';
  21. }if(row.sex==2){
  22. return value+'<span style="color:#FF82AB">【女】</span>';
  23. }
  24. }
  25. },
  26. {title: '证件类型', field: 'cardTypeName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
  27. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
  28. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  29. {title: '联系电话', field: 'phone', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
  30. {title: '婚姻状态', field: 'marryStatusName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
  31. {title: '配偶姓名', field: 'spouseName', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip',
  32. formatter : function (value,row,index) {
  33. if(row.spouseSex==1){
  34. return value+'<span style="color:#6495ED">【男】</span>';
  35. }if(row.spouseSex==2){
  36. return value+'<span style="color:#FF82AB">【女】</span>';
  37. }
  38. }
  39. },
  40. {title: '配偶证件类型', field: 'spouseCardTypeName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  41. {title: '配偶证件号码', field: 'spouseIdCard', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
  42. {title: '配偶人才层次', field: 'spouseTalentArrangeName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  43. {title: '拟申请租住人才社区', field: 'houseTypeName', visible: true, align: 'center', valign: 'middle',width:"130px",'class': 'uitd_showTip'},
  44. {title: '承租开始日期', field: 'rentStartTime', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  45. {title: '承租截止时间', field: 'rentEndTime', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  46. {title: '承租详细地址', field: 'rentAddress', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
  47. {title: '承租金额', field: 'rentMoney', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  48. // {title: '开户银行网点', field: 'bankAddress', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
  49. // {title: '银行账号', field: 'bankAccount', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
  50. {title: '兑现金额', field: 'money', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
  51. {title: '审核状态', field: 'checkStateName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip',width:"100px",},
  52. {title: '公示状态', field: 'publicState', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip',width:"100px",
  53. formatter: function (value, row, index) {
  54. if (value == 1) {
  55. return '<span class=\'label label-success\'>待公示</span>';
  56. }
  57. if (value == 2) {
  58. return '<span class=\'label label-danger\'>公示中</span>';
  59. }
  60. if (value == 3) {
  61. return '<span class=\'label label-info\'>待兑现</span>';
  62. }
  63. if (value == 4) {
  64. return '<span class=\'label label-primary\'>已兑现</span>';
  65. }
  66. }
  67. },
  68. {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
  69. formatter : function (value,row,index){
  70. return "<span class='label label-success' onclick=\"Feng.getCheckLogModel('"+value+"','"+CONFIG.project_rentingFees+"',null)\" >" +
  71. "<i class=\"fa fa-book\"></i>日志" +
  72. "</span>";
  73. }
  74. }
  75. ];
  76. };
  77. /**
  78. * 检查是否选中
  79. */
  80. HouseRentingFees.check = function () {
  81. var selected = $('#' + this.id).bootstrapTable('getSelections');
  82. if(selected.length == 0){
  83. Feng.info("请先选中表格中的某一记录!");
  84. return false;
  85. }else{
  86. HouseRentingFees.seItem = selected[0];
  87. return true;
  88. }
  89. };
  90. /**
  91. * 打开查看房租补助详情
  92. */
  93. HouseRentingFees.openCheckHouseRentingFees = function () {
  94. if (this.check()) {
  95. var index = layer.open({
  96. type: 2,
  97. title: '房租补助详情',
  98. area: ['800px', '420px'], //宽高
  99. fix: false, //不固定
  100. maxmin: true,
  101. content: Feng.ctxPath + '/houseRentingFees/toCheckPage/' + HouseRentingFees.seItem.id,
  102. btn: ['<i class="fa fa-eye"></i>&nbsp;&nbsp;保存未提交','<i class="fa fa-check layui-bg-green"></i>&nbsp;&nbsp;提交审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
  103. btnAlign: 'c',
  104. btn1: function (index, layero) {
  105. var obj = layero.find("iframe")[0].contentWindow;
  106. obj.HouseRentingFeesInfoDlg.showCheckModal();
  107. },btn2: function(index, layero){
  108. var obj = layero.find("iframe")[0].contentWindow;
  109. obj.HouseRentingFeesInfoDlg.submitCheck();
  110. return false;
  111. },
  112. success: function (layero, index) {
  113. layer.tips('审核完成并确认无误后点击', '.layui-layer-btn1', {tips: [1, "#78BA32"], time: 0, closeBtn: 2});
  114. },
  115. end :function () {
  116. layer.closeAll('tips');
  117. HouseRentingFees.table.refresh();
  118. }
  119. });
  120. HouseRentingFees.layerIndex = index;
  121. layer.full(index);
  122. }
  123. };
  124. /**
  125. * 查询表单提交参数对象
  126. * @returns {{}}
  127. */
  128. HouseRentingFees.formParams = function() {
  129. var queryData = {};
  130. queryData['enterpriseName'] = $("#enterpriseName").val();
  131. queryData['name'] = $("#name").val();
  132. queryData['sex'] = $("#sex").val();
  133. queryData['cardType'] = $("#cardType").val();
  134. queryData['idCard'] = $("#idCard").val();
  135. queryData['talentArrange'] = $("#talentArrange").val();
  136. queryData['marryStatus'] = $("#marryStatus").val();
  137. queryData['spouseName'] = $("#spouseName").val();
  138. queryData['spouseSex'] = $("#spouseSex").val();
  139. queryData['spouseCardType'] = $("#spouseCardType").val();
  140. queryData['spouseIdcard'] = $("#spouseIdcard").val();
  141. queryData['spouseTalentArrange'] = $("#spouseTalentArrange").val();
  142. queryData['houseType'] = $("#houseType").val();
  143. queryData['checkState'] = $("#checkState").val();
  144. return queryData;
  145. }
  146. /**
  147. * 查询购房补贴列表
  148. */
  149. HouseRentingFees.search = function () {
  150. HouseRentingFees.table.refresh({query: HouseRentingFees.formParams()});
  151. };
  152. /**
  153. * 重置
  154. */
  155. HouseRentingFees.reset = function(){
  156. $("#enterpriseName").val("");
  157. $("#name").val("");
  158. $("#sex").val("");
  159. $("#cardType").val("");
  160. $("#idCard").val("");
  161. $("#talentArrange").val("");
  162. $("#marryStatus").val("");
  163. $("#spouseName").val("");
  164. $("#spouseSex").val("");
  165. $("#spouseCardType").val("");
  166. $("#spouseIdcard").val("");
  167. $("#spouseTalentArrange").val("");
  168. $("#houseType").val("");
  169. $("#checkState").val("");
  170. }
  171. /**
  172. * 显示需要处理的数据
  173. * @param type
  174. */
  175. HouseRentingFees.showDataCheckModal = function (type) {
  176. $("#hczxForm").css("display", "none");
  177. switch (type) {
  178. case 1: //公式预览
  179. $("#hczxButton").attr("onclick", "HouseRentingFees.publicExport()").text("导出");
  180. $("#exportCommonModalLabel").text("公式预览");
  181. break;
  182. case 2: //待核查征信名单-核查征信通过
  183. $("#hczxButton").attr("onclick", "HouseRentingFees.public()").text("提交");
  184. $("#exportCommonModalLabel").text("公示");
  185. $("#hczxForm").css("display", "block");
  186. $(".time").each(function () {
  187. laydate.render({
  188. elem: "#" + $(this).attr("id")
  189. , type: 'date'
  190. , format: 'yyyy年MM月dd日'
  191. });
  192. });
  193. break;
  194. case 3: //公示通过
  195. $("#hczxButton").attr("onclick", "HouseRentingFees.publicPass()").text("提交");
  196. $("#exportCommonModalLabel").text("批量公示通过");
  197. break;
  198. case 4: //兑现
  199. $("#hczxButton").attr("onclick", "HouseRentingFees.cash()").text("兑现");
  200. $("#exportCommonModalLabel").text("兑现");
  201. break;
  202. }
  203. $('#dataTable').bootstrapTable('destroy');
  204. $('#dataTable').bootstrapTable({
  205. url: Feng.ctxPath + "/houseRentingFees/selectNeedCheckData?type=" + type,
  206. method: 'POST',
  207. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  208. search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
  209. showRefresh: false, // 是否显示刷新按钮
  210. clickToSelect: true, // 是否启用点击选中行
  211. singleSelect: false, // 设置True 将禁止多选
  212. striped: true, // 是否显示行间隔色
  213. pagination: true, // 设置为 true 会在表格底部显示分页条
  214. paginationHAlign: "left",
  215. paginationDetailHAlign: "right",
  216. sidePagination: "client", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
  217. pageNumber: 1, //初始化加载第一页,默认第一页
  218. pageSize: 10, //每页的记录行数(*)
  219. pageList: [10, 25, 50, 100, 500, 1000, 1500], //可供选择的每页的行数(*)
  220. maintainSelected: true, //全表全选需要开启
  221. showColumns: false,
  222. responseHandler: function (res) {
  223. $("#exportCommonModal").modal("show");
  224. return res.obj.rows;
  225. },
  226. columns:
  227. [
  228. {field: "selectItem", checkbox: true},
  229. {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle', width: "10%"},
  230. {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', width: "30%"},
  231. {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', width: "10%"},
  232. {
  233. title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "10%",
  234. formatter: function (value, row, index) {
  235. if (value == -1) {
  236. return "<span style='color: #ed5565;'>审核不通过</span>";
  237. }
  238. if (value == 5) {
  239. return "<span style='color: #1ab394;'>审核通过</span>";
  240. }
  241. }
  242. },
  243. ]
  244. });
  245. }
  246. /**
  247. * 是否发送短信
  248. */
  249. HouseRentingFees.toggleMessage = function () {
  250. var isMessage = $("input[name='isSend']:checked").val();
  251. if (isMessage == 1) {
  252. $("#messageEdit").css("display", "block");
  253. } else if (isMessage == 2) {
  254. $("#messageEdit").css("display", "none");
  255. }
  256. }
  257. HouseRentingFees.prepareSearch = function () {
  258. var sex = $("#pub_sex").val();
  259. var checkState = $("#pub_checkState").val();
  260. var name = $("#pub_name").val();
  261. $('#dataTable').bootstrapTable("refresh", {"query": {"sex": sex, "checkState": checkState, "name": name}});
  262. }
  263. HouseRentingFees.prepareReset = function () {
  264. $("#pub_sex").val("");
  265. $("#pub_checkState").val("");
  266. $("#pub_name").val("");
  267. }
  268. /**
  269. * 公式预览
  270. */
  271. HouseRentingFees.publicExport = function () {
  272. var selected = $('#dataTable').bootstrapTable('getSelections');
  273. if (!selected || selected.length < 1) {
  274. Feng.info("请至少选择一行数据!");
  275. return;
  276. }
  277. var ids = "";
  278. for (var i = 0; i < selected.length; i++) {
  279. ids = ids + selected[i].id + ",";
  280. }
  281. var operation = function () {
  282. $("#exportCommonModal").modal("hide");
  283. window.location.href = encodeURI(encodeURI(Feng.ctxPath + "/houseRentingFees/exportPublic?ids=" + ids));
  284. }
  285. Feng.confirm("确定要公示预览吗?", operation);
  286. }
  287. /**
  288. * 公示
  289. */
  290. HouseRentingFees.public = function () {
  291. var selected = $('#dataTable').bootstrapTable('getSelections');
  292. if (!selected || selected.length < 1) {
  293. Feng.info("请至少选择一行数据!");
  294. return;
  295. }
  296. var ids = "";
  297. for (var i = 0; i < selected.length; i++) {
  298. ids = ids + selected[i].id + ",";
  299. }
  300. var isMessage = $("input[name='isSend']:checked").val();
  301. var typeName = $("#typeName").val();
  302. var address = $("#web").val();
  303. var publicStartTime = $("#publicStartTime").val();
  304. var publicEndTime = $("#publicEndTime").val();
  305. var dep = $("#dep").val();
  306. var phone = $("#fyphone").val();
  307. var email = $("#fyemail").val();
  308. if (isMessage == 1) {
  309. if (typeName == null || typeName == '') {
  310. Feng.info("请填写公示类型");
  311. return;
  312. }
  313. if (address == null || address == '') {
  314. Feng.info("请填写公示平台");
  315. return;
  316. }
  317. if (publicStartTime == null || publicStartTime == '') {
  318. Feng.info("请填写公示开始时间");
  319. return;
  320. }
  321. if (publicEndTime == null || publicEndTime == '') {
  322. Feng.info("请填写公示截止时间");
  323. return;
  324. }
  325. if (dep == null || dep == '') {
  326. Feng.info("请填写反映单位");
  327. return;
  328. }
  329. if (phone == null || phone == '') {
  330. Feng.info("请填写联系电话");
  331. return;
  332. }
  333. if (email == null || email == '') {
  334. Feng.info("请填写联系邮箱");
  335. return;
  336. }
  337. }
  338. var operation = function () {
  339. var ajax = new $ax(Feng.ctxPath + "/houseRentingFees/publicBatch", function (data) {
  340. if (data.code == 200) {
  341. Feng.success(data.msg);
  342. HouseRentingFees.table.refresh();
  343. $("#exportCommonModal").modal("hide");
  344. } else {
  345. Feng.error(data.msg);
  346. }
  347. }, function (data) {
  348. Feng.error("公示失败!" + data.responseJSON.message + "!");
  349. });
  350. ajax.set("ids", ids);
  351. ajax.set("typeName", typeName);
  352. ajax.set("address", address);
  353. ajax.set("publicStartTime", publicStartTime);
  354. ajax.set("publicEndTime", publicEndTime);
  355. ajax.set("dep", dep);
  356. ajax.set("phone", phone);
  357. ajax.set("email", email);
  358. ajax.set("isMessage", isMessage);
  359. ajax.start();
  360. }
  361. Feng.confirm("确定要公示吗?", operation);
  362. }
  363. /**
  364. * 公示后审核
  365. */
  366. HouseRentingFees.afterCheck = function () {
  367. if (this.check()) {
  368. var ajax = new $ax(Feng.ctxPath + "/houseRentingFees/validateIsCheck", function (data) {
  369. if (data.code == 200) {
  370. layer.open({
  371. type: 1,
  372. id: "neewFieldFormModel",
  373. title: '公示再审核',
  374. area: ['800px', '450px'], //宽高
  375. fix: false, //不固定
  376. shade: 0,
  377. maxmin: true,
  378. content: HouseRentingFees.creatFieldCheckModal(),
  379. btn: ['<i class="fa fa-save"></i>&nbsp;&nbsp;提交', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;关闭'],
  380. btnAlign: 'c',
  381. zIndex: layer.zIndex,
  382. success: function (layero, index) {
  383. layer.setTop(layero);
  384. },
  385. yes: function (index, layero) {
  386. var checkState = $("#checkStateModel").val();
  387. var checkMsg = $("#checkMsg").val();
  388. if (checkState == null || checkState == '') {
  389. Feng.info("请选择审核状态");
  390. return;
  391. }
  392. if (checkMsg == null || checkMsg == '') {
  393. Feng.info("请填写审核意见");
  394. return;
  395. }
  396. var ajax = new $ax(Feng.ctxPath + "/houseRentingFees/afterCheck", function (data) {
  397. if (data.code == 200) {
  398. layer.close(index);
  399. HouseRentingFees.table.refresh();
  400. Feng.success(data.msg);
  401. } else {
  402. Feng.error(data.msg);
  403. }
  404. }, function (data) {
  405. Feng.error("审核失败!" + data.responseJSON.message + "!");
  406. });
  407. ajax.setData({"id": HouseRentingFees.seItem.id, "checkState": checkState, "checkMsg": checkMsg});
  408. ajax.start();
  409. }
  410. });
  411. } else {
  412. Feng.error(data.msg);
  413. }
  414. }, function (data) {
  415. Feng.error("校验失败!" + data.responseJSON.message + "!");
  416. });
  417. ajax.set("id", HouseRentingFees.seItem.id);
  418. ajax.set("process", 2);
  419. ajax.start();
  420. }
  421. }
  422. /**
  423. *
  424. */
  425. HouseRentingFees.creatFieldCheckModal = function () {
  426. return '<form id="checkForm">\n' +
  427. ' <div class="form-group" style="margin: 10px;">\n' +
  428. ' <label for="checkState" class="control-label">审核状态</label>\n' +
  429. ' <select class="form-control" id="checkStateModel" >\n' +
  430. ' <option value="">请选择</option>\n' +
  431. ' <option value="4">审核驳回</option>\n' +
  432. ' <option value="-1">审核不通过</option>\n' +
  433. ' </select>\n' +
  434. ' </div>\n' +
  435. ' <div class="form-group" style="margin: 10px;">\n' +
  436. ' <label for="checkMsg" class="control-label" >审核意见</label>\n' +
  437. ' <textarea class="form-control" id="checkMsg" rows="6"></textarea>\n' +
  438. ' </div>\n' +
  439. ' </form>';
  440. }
  441. /**
  442. * 公示通过
  443. */
  444. HouseRentingFees.publicPass = function () {
  445. var selected = $('#dataTable').bootstrapTable('getSelections');
  446. if (!selected || selected.length < 1) {
  447. Feng.info("请至少选择一行数据!");
  448. return;
  449. }
  450. var ids = "";
  451. for (var i = 0; i < selected.length; i++) {
  452. ids = ids + selected[i].id + ",";
  453. }
  454. var operation = function () {
  455. var ajax = new $ax(Feng.ctxPath + "/houseRentingFees/publicPass", function (data) {
  456. if (data.code == 200) {
  457. Feng.success(data.msg);
  458. HouseRentingFees.table.refresh();
  459. $("#exportCommonModal").modal("hide");
  460. } else {
  461. Feng.error(data.msg);
  462. }
  463. }, function (data) {
  464. Feng.error("公示通过失败!" + data.responseJSON.message + "!");
  465. });
  466. ajax.set("ids", ids);
  467. ajax.start();
  468. }
  469. Feng.confirm("一旦提交无法修改,确定公示通过吗?", operation);
  470. }
  471. /**
  472. * 兑现
  473. */
  474. HouseRentingFees.cash = function () {
  475. var selected = $('#dataTable').bootstrapTable('getSelections');
  476. if (!selected || selected.length < 1) {
  477. Feng.info("请至少选择一行数据!");
  478. return;
  479. }
  480. var ids = "";
  481. for (var i = 0; i < selected.length; i++) {
  482. ids = ids + selected[i].id + ",";
  483. }
  484. var operation = function () {
  485. var ajax = new $ax(Feng.ctxPath + "/houseRentingFees/cash", function (data) {
  486. if (data.code == 200) {
  487. Feng.success(data.msg);
  488. HouseRentingFees.table.refresh();
  489. $("#exportCommonModal").modal("hide");
  490. } else {
  491. Feng.error(data.msg);
  492. }
  493. }, function (data) {
  494. Feng.error("兑现失败!" + data.responseJSON.message + "!");
  495. });
  496. ajax.set("ids", ids);
  497. ajax.start();
  498. }
  499. Feng.confirm("一旦兑现无法修改,确定兑现吗?", operation);
  500. }
  501. /**
  502. * 显示导出模态框
  503. */
  504. HouseRentingFees.showExportModel = function(){
  505. $("#exportForm")[0].reset();
  506. $("#basicExportModal").modal("show");
  507. }
  508. /**
  509. * 导出基础信息
  510. */
  511. HouseRentingFees.export = function(){
  512. var names = '';
  513. var values = '';
  514. $("#field_info li input").each(function(index){
  515. if($(this).is(":checked")){
  516. values = values + $(this).val() + ",";
  517. names = names + $(this).next().text() + ",";
  518. }
  519. });
  520. var queryData = HouseRentingFees.formParams();
  521. queryData['names'] = names;
  522. queryData['values'] = values;
  523. var url = Feng.setUrlParam(Feng.ctxPath + "/houseRentingFees/exportBasicInfo",queryData);
  524. $("#basicExportModal").modal('hide');
  525. window.location.href = url;
  526. }
  527. $(function () {
  528. var defaultColunms = HouseRentingFees.initColumn();
  529. var table = new BSTable(HouseRentingFees.id, "/houseRentingFees/list", defaultColunms);
  530. table.setPaginationType("server");
  531. HouseRentingFees.table = table.init();
  532. //批量加载字典表数据
  533. var arr = [
  534. {"name":"marryStatus","code":"un_marryStatus"},
  535. {"name":"talentArrange","code":"un_talentLevel"},
  536. {"name":"cardType","code":"un_cardType"},
  537. {"name":"spouseCardType","code":"un_cardType"},
  538. {"name":"spouseTalentArrange","code":"un_talentLevel"},
  539. {"name":"houseType","code":"un_renting_houseType"},
  540. {"name":"childCardType","code":"un_cardType"}];
  541. Feng.findChildDictBatch(JSON.stringify(arr));
  542. $('#checkAll').click(function () {
  543. $("#dataTable").bootstrapTable('togglePagination').bootstrapTable('checkAll').bootstrapTable('togglePagination');
  544. })
  545. $('#uncheckAll').click(function () {
  546. $("#dataTable").bootstrapTable('togglePagination').bootstrapTable('uncheckAll').bootstrapTable('togglePagination')
  547. })
  548. });