list.jsp 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <jsp:include page="../common/common-meta-include.jsp"></jsp:include>
  8. <jsp:include page="../common/common-js-include.jsp"></jsp:include>
  9. <jsp:include page="../common/common-css-include.jsp"></jsp:include>
  10. <!--[if lt IE 9]>
  11. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  12. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  13. <![endif]-->
  14. <style>
  15. .hiddenParam,
  16. .hiddenParams {
  17. display: none;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div id="app"></div>
  23. <template id="template">
  24. <div class="layui-layout layui-layout-admin pd0">
  25. <!-- 内容区域 -->
  26. <div class="right_title" style="ma">
  27. <div class="txt">年度计划<div class="top-breadcrumb"></div></div>
  28. <%-- <button class="btn btn_add" @click="add"><i class="layui-icon layui-icon-add-circle"></i> 问题填报</button>--%>
  29. <div class="layui-collapse search_form">
  30. <div class="layui-colla-item">
  31. <%-- <h2 class="layui-colla-title">筛选</h2>--%>
  32. <div class="layui-colla-content layui-show">
  33. <form class="layui-form" lay-filter="searchForm">
  34. <%-- <input name="neTemp" type="hidden" value="${neTemp }"/>--%>
  35. <%-- <input name="isZj" type="hidden" value="${isZj }"/>--%>
  36. <div class="layui-row">
  37. <div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
  38. <div class="layui-form-item">
  39. <label class="layui-form-label">项目名称</label>
  40. <div class="layui-input-block">
  41. <input type="text" name="subName" placeholder="请输入" value="${subName}" autocomplete="off" class="layui-input">
  42. </div>
  43. </div>
  44. </div>
  45. <div class="layui-col-xs6 layui-col-sm6 layui-col-md4" style="display: none">
  46. <div class="layui-form-item" style="height:28px;">
  47. <label class="layui-form-label">项目类型</label>
  48. <div class="layui-input-block">
  49. <div id="kind" name="kind"></div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
  54. <div class="layui-form-item">
  55. <label class="layui-form-label ">项目属地</label>
  56. <div class="layui-input-block">
  57. <select name="jsdd">
  58. <option value="">请选择</option>
  59. <c:forEach items="${JSDD }" var="hy">
  60. <c:if test="${subjectId == hy.code}">
  61. <option value="${hy.code }" selected="selected">${hy.title }</option>
  62. </c:if>
  63. <c:if test="${indusKind != hy.title}">
  64. <option value="${hy.code }">${hy.title }</option>
  65. </c:if>
  66. </c:forEach>
  67. </select>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="layui-col-xs6 layui-col-sm6 layui-col-md4 hiddenParams">
  72. <div class="layui-form-item">
  73. <label class="layui-form-label ">行业类别</label>
  74. <div class="layui-input-block">
  75. <select name="hyfl" lay-search="">
  76. <option value="">请选择</option>
  77. <c:forEach items="${HYFL }" var="hy">
  78. <c:if test="${indusKind == hy.title}">
  79. <option value="${hy.id }" selected="selected">${hy.title }</option>
  80. </c:if>
  81. <c:if test="${indusKind != hy.title}">
  82. <option value="${hy.id }">${hy.title }</option>
  83. </c:if>
  84. </c:forEach>
  85. </select>
  86. </div>
  87. <span class="morePan" id="toggleMore">
  88. <a id="moreText">更多</a>
  89. <a id="lessText">收起</a>
  90. </span>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="layui-row">
  95. <div class="layui-col-xs6 layui-col-sm6 layui-col-md4 hiddenParam">
  96. <div class="layui-form-item">
  97. <label class="layui-form-label">年&ensp; &ensp;&ensp;度</label>
  98. <div class="layui-input-block time_box">
  99. <input type="text" id="year" name="year" class="layui-input">
  100. </div>
  101. </div>
  102. </div>
  103. <div class="layui-col-xs6 layui-col-sm6 layui-col-md4 hiddenParam">
  104. <div class="layui-form-item">
  105. <label class="layui-form-label">项目状态</label>
  106. <div class="layui-input-block">
  107. <select name="status">
  108. <option value="0">所有</option>
  109. <option value="1">已录入</option>
  110. <option value="2">未录入</option>
  111. </select>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="layui-row">
  117. <div>
  118. <button type="button" class="layui-btn layui-btn-normal" @click="search">查询</button>
  119. <button type="button" class="layui-btn layui-btn-export" @click="exportExcel">导出</button>
  120. </div>
  121. </div>
  122. <%-- <div class="layui-row">--%>
  123. <%-- <c:if test="${currUser.statusProj == 1 }" >--%>
  124. <%-- <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">--%>
  125. <%-- <div class="layui-form-item">--%>
  126. <%-- <label class="layui-form-label " >行业单位:</label>--%>
  127. <%-- <div class="layui-input-block">--%>
  128. <%-- <select name="hydw" lay-search>--%>
  129. <%-- <option value="">--请选择--</option>--%>
  130. <%-- <c:forEach items="${HYDW }" var="hy">--%>
  131. <%-- <option value="${ hy.id}">${hy.title }</option>--%>
  132. <%-- </c:forEach>--%>
  133. <%-- </select>--%>
  134. <%-- </div>--%>
  135. <%-- </div>--%>
  136. <%-- </div>--%>
  137. <%-- </c:if>--%>
  138. <%-- <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">--%>
  139. <%-- <div class="layui-form-item">--%>
  140. <%-- <label class="layui-form-label ">年份</label>--%>
  141. <%-- <div class="layui-input-block time_box">--%>
  142. <%-- <input type="text" id="year" name="year" class="layui-input">--%>
  143. <%-- <button type="button" class="layui-btn layui-btn-normal" @click="search"><i class="layui-icon layui-icon-search"></i>查询</button>--%>
  144. <%-- <button type="button" class="layui-btn" @click="exportExcel"><i class="layui-icon layui-icon-add-circle"></i> 导出</button>--%>
  145. <%-- </div>--%>
  146. <%-- </div>--%>
  147. <%-- </div>--%>
  148. <%-- <span style="color: red;float: right;">带*号的条件可在导出时使用,其中年份仅限导出使用,年份不选择默认为当前年份</span>--%>
  149. <%-- </div>--%>
  150. </form>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <div class="table_box" style="padding-top: 0;">
  156. <div class="table_process">
  157. <table id="table1" lay-filter="test"></table>
  158. <div class="pagination-box" id="pagination"></div>
  159. </div>
  160. </div>
  161. <div style="height: 20px;"></div>
  162. </div>
  163. </template>
  164. <div id="amtYear" style="display: none;">
  165. <div class="layuimini-main" style="padding: 0 20px;margin-top: 20px">
  166. <form class="layui-form" lay-filter="amtYearForm">
  167. <div class="layui-row">
  168. <div class="layui-col-xs12 layui-col-sm12">
  169. <div class="layui-form-item">
  170. <label class="layui-form-label" style="width: 200px">年度计划投资金额(万元):</label>
  171. <div class="layui-input-block">
  172. <input name="amt_year" type="number" placeholder="请输入" autocomplete="off" class="layui-input">
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. </form>
  178. </div>
  179. </div>
  180. <%--<script type="text/html" id="subName">--%>
  181. <%-- <span title="{{d.subName}}">{{d.subName}}</span>--%>
  182. <%--</script>--%>
  183. <script type="text/html" id="toolBar">
  184. <div class="toolBar">
  185. <span lay-event="toDetail">项目信息</span>
  186. {{# if(d.unit_id == "${currUnitId}"|| "${checkEdit}"=="true") { }}
  187. {{#}}}
  188. {{# if("${checkEdit}"=="true") { }}
  189. {{# if(d.is_lock == "1") { }}
  190. {{#} else { }}
  191. {{#} }}
  192. {{#}}}
  193. </div>
  194. </script>
  195. <script>
  196. new Vue({
  197. el: "#app",
  198. template: "#template",
  199. data: {
  200. winH: 0,
  201. dataList : [],
  202. tableName : 'test',
  203. pageNo : 1,
  204. indusKind : {},
  205. propKind : {},
  206. orderType: "",
  207. kind: {},
  208. pageSize : 20
  209. },
  210. mounted : function() {
  211. this.init();
  212. },
  213. methods: {
  214. init : function() {
  215. this.winH = document.body.clientHeight
  216. layui.laydate.render({
  217. elem: '#startTime',
  218. theme: layDateTheme,
  219. });
  220. var xmlx = [];
  221. <c:forEach items="${XMLX}" var="xm">
  222. xmlx.push({value:"${xm.code}", name:"${xm.title}"});
  223. </c:forEach>
  224. this.kind = layui.xmSelect.render({
  225. el: "#kind",
  226. language:'zn',
  227. data:xmlx
  228. });
  229. layui.laydate.render({
  230. elem: '#endTime',
  231. theme: layDateTheme,
  232. });
  233. layui.laydate.render({
  234. elem: '#year',
  235. type: 'year',
  236. theme: layDateTheme,
  237. value: new Date().getFullYear()
  238. })
  239. <%--var check="${isSfgw}";--%>
  240. <%--if (check=="false"){--%>
  241. <%-- this.getData();--%>
  242. <%--}else{--%>
  243. <%-- this.loadTable();--%>
  244. <%--}--%>
  245. this.getData();
  246. window.showImage = this.showImage;
  247. window.addEventListener('message', this.receiveMessage, false);
  248. window.parent.postMessage('init loaded')
  249. $('.hiddenParams').show();
  250. $('#lessText').hide();
  251. },
  252. getData : function(){
  253. //获取年 月
  254. var self = this;
  255. var param = layui.form.getValue("searchForm");
  256. param.orderType = this.orderType || null;
  257. param.xmlx = this.kind.getValue("value").sort().join(",");
  258. param.pageNo = this.pageNo;
  259. param.pageSize = this.pageSize;
  260. App.postJson("/api/annualPlan/pageList",param, function(res){
  261. self.dataList = res.rows;
  262. self.loadTable();
  263. self.loadPage(res.total);
  264. });
  265. },
  266. showImage: function(that) {
  267. var imageUrl = $(that).find("img").eq(0).attr("realUrl");
  268. var url = $(that).find("img").eq(0).attr("src");
  269. if(imageUrl) {
  270. if (url.indexOf("word")>0||url.indexOf("excel")>0 ){
  271. window.location.href=App.getUrl(imageUrl);
  272. // App.window.open(imageUrl);
  273. }else{
  274. layer.open({
  275. type: 2,
  276. content: imageUrl,
  277. area: ['500px', '500px'],
  278. offset: 'auto'
  279. })
  280. }
  281. }
  282. },
  283. amtYear: function(obj) {
  284. var self = this;
  285. if (obj.data.amt_year==undefined){
  286. obj.data.amt_year="";
  287. }
  288. // obj.data.status_reason="";
  289. layui.form.val("amtYearForm", obj.data);
  290. layer.open({
  291. type: 1,
  292. title: "调整年度计划总值",
  293. content: $("#amtYear"),
  294. area: ['440px', '180px'],
  295. btn: ["保存", "取消"],
  296. yes: function(index) {
  297. var data = layui.form.val("amtYearForm");
  298. if(!data.amt_year){
  299. App.msg.warn("年度计划总值不能为空");
  300. return;
  301. }
  302. // reason.subId = obj.data.id;
  303. App.postJson("/api/subject/subInfo/setAmtYear",{subId:obj.data.sub_id,amt:data.amt_year}, function(res){
  304. if(res.success){
  305. App.msg.success("设置成功");
  306. self.getData();
  307. layer.close(index);
  308. }
  309. });
  310. },
  311. close: function(index) {
  312. layer.close(index);
  313. }
  314. })
  315. },
  316. toBackLock:function (obj){
  317. var self=this;
  318. App.msg.confirm("是否解除锁定年度计划?",function() {
  319. App.postJson("/api/subject/subInfo/toBackLock", {subIds: obj.data.sub_id,year:obj.data.year}, function (res) {
  320. if (res.success) {
  321. App.msg.success("设置成功");
  322. self.getData();
  323. layer.close(index);
  324. }
  325. });
  326. });
  327. },
  328. toSetLock:function (obj){
  329. var self=this;
  330. App.msg.confirm("是否锁定年度计划?",function() {
  331. App.postJson("/api/subject/subInfo/setIsLock", {subIds: obj.data.sub_id,year:obj.data.year}, function (res) {
  332. if (res.success) {
  333. App.msg.success("设置成功");
  334. self.getData();
  335. layer.close(index);
  336. }
  337. });
  338. });
  339. },
  340. yearPlan: function(obj) {
  341. if (obj.data.is_lock=="1"){
  342. App.msg.warn("该项目的年度计划被锁定,不能录入了!");
  343. return;
  344. }else{
  345. window.location.href=App.getUrl("/amtPlan/edit?subId="+obj.data.sub_id+"&year="+obj.data.year);
  346. }
  347. },
  348. toDetail : function(obj){
  349. //详情
  350. var index = layer.open({
  351. type: 2,
  352. title: "",
  353. area: ['1000px', '800px'],
  354. content: App.getUrl("//subject/subInfo/detailView?layer=true&subId="+ obj.data.sub_id),
  355. });
  356. layui.layer.full(index);
  357. },
  358. exportExcel:function (){
  359. var param = layui.form.getValue("searchForm");
  360. var self=this;
  361. var subIds=[];
  362. var subId= "";
  363. var year="";
  364. var param = layui.form.getValue("searchForm");
  365. var checkData = self.dataList.filter( item => item.LAY_CHECKED == true).forEach(item => subIds.push(item.sub_id));
  366. var checkData = self.dataList.filter( item => item.LAY_CHECKED == true).forEach(item => year=item.year);
  367. if (subIds.length==0){
  368. subId=""
  369. }else{
  370. subId=subIds.join(",")
  371. }
  372. console.log(subId);
  373. param.xmlx = this.kind.getValue("value").sort().join(",");
  374. if (param.year=="" || param.year==undefined){
  375. year=""
  376. }else {
  377. year=param.year
  378. }
  379. if (param.status=="" || param.status==undefined){
  380. status=""
  381. }else {
  382. year=param.status
  383. }
  384. if (param.xmlx=="" || param.xmlx==undefined){
  385. xmlx=""
  386. }else {
  387. xmlx=param.xmlx
  388. }
  389. if (param.xmxz=="" || param.xmxz==undefined){
  390. xmxz=""
  391. }else {
  392. xmxz=param.xmxz
  393. }
  394. if (param.hyfl=="" || param.hyfl==undefined){
  395. hyfl=""
  396. }else {
  397. hyfl=param.hyfl
  398. }
  399. if (param.unitName=="" || param.unitName==undefined){
  400. unitName=""
  401. }else {
  402. unitName=param.unitName
  403. }
  404. if (param.subName=="" || param.subName==undefined){
  405. subName=""
  406. }else {
  407. subName=param.subName
  408. }
  409. if (param.minMoney=="" || param.minMoney==undefined){
  410. minMoney=""
  411. }else {
  412. minMoney=param.minMoney
  413. }
  414. if (param.jsdd=="" || param.jsdd==undefined){
  415. jsdd=""
  416. }else {
  417. jsdd=param.jsdd
  418. }
  419. if (param.maxMoney=="" || param.maxMoney==undefined){
  420. maxMoney=""
  421. }else {
  422. maxMoney=param.maxMoney
  423. }
  424. window.location.href=App.getUrl("/annualPlan/exportExcel?subId="+subId+"&year="+param.year+"&status="+param.status+"&xmlx="+xmlx+"&xmxz="+xmxz+"&hyfl="+hyfl+"&unitName="+unitName+"&subName="+subName+"&jsdd="+jsdd+"&minMoney="+minMoney+"&maxMoney="+maxMoney);
  425. },
  426. loadTable : function(){
  427. var self = this;
  428. layui.table.render({
  429. elem: '#table1', // 指定原始表格元素选择器(推荐id选择器)
  430. even: true,
  431. autoSort: false,
  432. cols: [[ // 设置表头
  433. {checkbox:true ,fixed: 'left', width:50, align: 'center'},
  434. {type: 'numbers', fixed: 'left',title:'序号', align: 'center',width:200,templet: function(row) {
  435. if(row.numbers != null) {
  436. return '<span title="' + row.numbers + '">' + row.numbers + '</span>';
  437. }
  438. return "";
  439. }},
  440. {field: 'title', title: '项目名称', fixed: 'left', width:280,fixed: 'left',templet: function(row) {
  441. if(row.title != null) {
  442. return '<span title="' + row.title + '">' + row.title + '</span>';
  443. }
  444. return "";
  445. }},
  446. {field: 'amt', title: '总投资(万元)', width: 150,templet: function(row) {
  447. if(row.amt != null) {
  448. return '<span title="' + row.amt + '">' + row.amt + '</span>';
  449. }
  450. return "";
  451. }},
  452. {field: 'begin_date', title: '计划开工日期', width: 200,templet: function(row) {
  453. if(row.begin_date != null) {
  454. return '<span title="' + row.begin_date + '">' + row.begin_date + '</span>';
  455. }
  456. return "";
  457. }},
  458. {field: 'end_date', title: '计划投产日期', width: 200,templet: function(row) {
  459. if(row.end_date != null) {
  460. return '<span title="' + row.end_date + '">' + row.end_date + '</span>';
  461. }
  462. return "";
  463. }},
  464. {field: 'unit_name', title: '项目单位',width: 200,templet: function(row) {
  465. if(row.unit_name != null) {
  466. return '<span title="' + row.unit_name + '">' + row.unit_name + '</span>';
  467. }
  468. return "";
  469. }},
  470. {field: 'amt_jh', sort: true, title: '年度计划月累计金额(万元)', width: 200,templet: function(row) {
  471. if(row.amt_jh != null) {
  472. return '<span title="' + row.amt_jh + '">' + row.amt_jh + '</span>';
  473. }
  474. return "";
  475. }},
  476. /* {field: 'amt_year', title: '年度计划金额(万元)', width:140,templet: function(row) {
  477. if(row.amt_year != null) {
  478. return '<span title="' + row.amt_year + '">' + row.amt_year + '</span>';
  479. }
  480. return "";
  481. }},*/
  482. {title: '操作', width: 200, toolbar: '#toolBar', fixed:'right'}
  483. ]],
  484. fixed:true,
  485. data : self.dataList,
  486. limit : self.dataList.length,
  487. height:'full-300',
  488. done:function(res, curr, count) {
  489. $(".layui-table-main tr").each(function (index, val) {
  490. $($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
  491. $($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
  492. })
  493. }
  494. });
  495. layui.table.on('tool('+this.tableName+')', function(obj){
  496. var event = obj.event;
  497. self[event].call(this, obj);
  498. });
  499. layui.table.reload("table1",{
  500. initSort: {
  501. field: 'amt_jh',
  502. type: self.orderType
  503. }
  504. })
  505. layui.table.on("sort(test)", function(obj) {
  506. self.orderType = obj.type;
  507. self.getData();
  508. });
  509. },
  510. loadPage : function(totalCount){
  511. var self = this;
  512. layui.laypage.render({
  513. elem: 'pagination',
  514. count: totalCount,
  515. curr : self.pageNo,
  516. limit : self.pageSize,
  517. layout: ['count', 'prev', 'page', 'next', 'skip'],
  518. jump: function(obj, first) {
  519. //首次不执行
  520. if(!first) {
  521. self.pageNo = obj.curr;
  522. self.getData();
  523. }
  524. }
  525. });
  526. },
  527. add : function(){
  528. window.location.href= App.getUrl("/problemreport/add")
  529. },
  530. edit: function(obj) {
  531. //window.location.href=App.getUrl("/subject/subInfo/add?id=" + obj.data.id);
  532. window.location.href=App.getUrl("problemSupervision/getProSupervision?id="+ obj.data.id + "&lastUrl=" + window.location.href);
  533. },
  534. delPlan:function (obj){
  535. var self = this;
  536. App.msg.confirm("是否删除督办单位信息?",function(){
  537. App.postJson("/api/problemSupervision/del",{id : obj.data.id}, function(res){
  538. if(res.success){
  539. self.getData();
  540. }
  541. });
  542. });
  543. },
  544. submit: function(obj){
  545. var self = this;
  546. layer.confirm("确认提交项目【"+obj.data.subName+"】?", function(){
  547. App.postJson("/api/subject/subInfo/statusToSubmit", {id: obj.data.id}, function(res) {
  548. layer.closeAll();
  549. self.getData();
  550. });
  551. })
  552. },
  553. toLock:function (){
  554. var self = this;
  555. var subIds=[];
  556. var year="";
  557. var param = layui.form.getValue("searchForm");
  558. var checkData = self.dataList.filter( item => item.LAY_CHECKED == true).forEach(item => subIds.push(item.sub_id));
  559. var checkData = self.dataList.filter( item => item.LAY_CHECKED == true).forEach(item => year=item.year);
  560. if (subIds.length==0){
  561. App.msg.warn("请选择操作项!!!!");
  562. return;
  563. }
  564. App.msg.confirm("是否锁定年度计划?",function() {
  565. App.postJson("/api/subject/subInfo/setIsLock", {subIds: subIds.join(","),year:year}, function (res) {
  566. if (res.success) {
  567. App.msg.success("设置成功");
  568. self.getData();
  569. layer.close(index);
  570. }
  571. });
  572. });
  573. },
  574. toBackLockAll:function (){
  575. var self = this;
  576. var subIds=[];
  577. var year="";
  578. var param = layui.form.getValue("searchForm");
  579. var checkData = self.dataList.filter( item => item.LAY_CHECKED == true).forEach(item => year=item.year);
  580. var checkData = self.dataList.filter( item => item.LAY_CHECKED == true).forEach(item => subIds.push(item.sub_id));
  581. if (subIds.length==0){
  582. App.msg.warn("请选择操作项!!!!");
  583. return;
  584. }
  585. App.msg.confirm("是否批量解锁年度计划?",function() {
  586. App.postJson("/api/subject/subInfo/toBackLock", {subIds: subIds.join(","),year:year}, function (res) {
  587. if (res.success) {
  588. App.msg.success("设置成功");
  589. self.getData();
  590. layer.close(index);
  591. }
  592. });
  593. });
  594. },
  595. search : function(){
  596. this.pageNo = 1;
  597. this.getData();
  598. },
  599. closeWin : function(){
  600. window.history.back(-1);
  601. },
  602. receiveMessage (e) {
  603. console.log('cb receiveMessage: ', e.data)
  604. if (e.data.topBreadcrumb) {
  605. $(".top-breadcrumb").html(e.data.topBreadcrumb)
  606. }
  607. }
  608. }
  609. });
  610. $(document).ready(function() {
  611. var showMoreFlag = false; // 定义一个变量来控制显示/隐藏状态
  612. $('#toggleMore').click(function() {
  613. // 切换显示/隐藏状态
  614. showMoreFlag = !showMoreFlag;
  615. // 根据状态更新文本和图标
  616. if (showMoreFlag) {
  617. $('#moreText').hide();
  618. $('.hiddenParam').show();
  619. $('#lessText').show();
  620. } else {
  621. $('#lessText').hide();
  622. $('.hiddenParam').hide();
  623. $('#moreText').show();
  624. }
  625. });
  626. });
  627. </script>
  628. </body>
  629. </html>