objList.jsp 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071
  1. <%@ taglib prefix="ss" uri="/ssTag" %>
  2. <%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
  3. <%@ taglib uri="/ssTag" prefix="ss"%>
  4. <%pageContext.setAttribute("wdpageinformation","{'hastab':'0'}");%>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta http-equiv="pragma" content="no-cache">
  9. <meta http-equiv="cache-control" content="no-cache">
  10. <meta http-equiv="expires" content="0">
  11. <script>window.loginStatus="${empty sessionScope['ssUser']?'0':'1'}"</script>
  12. <ss:skin file='main.css'/>
  13. <script type="text/javascript" src="/ss/jquery/jquery.js"></script>
  14. <script type="text/javascript" src="/ss/artdialog/artDialogUtil.js"></script>
  15. <script type="text/javascript" src="/ss/js/base.js"></script>
  16. <script> if(!window.wd) var wd={}; if(!wd.display) wd.display={}; wd.display.wdDialogId="objList"; if(!wd.app) wd.app={}; wd.app.name='pms';</script>
  17. <script type="text/javascript" src="/ss/js/masklayer.js"></script>
  18. <script type="text/javascript" src="/ss/js/wdDialogInit.js"></script>
  19. <script type="text/javascript" src="/ss/js/common.js"></script>
  20. <script type="text/javascript" src="/ss/js/display.js"></script>
  21. <script type="text/javascript" src="/ss/js/edit.js"></script>
  22. <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.js"></script>
  23. <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.iframehelper.min.js"></script>
  24. <link rel="stylesheet" type="text/css" href="/ss/window/theme/dhtmlxwindows.css">
  25. <link rel="stylesheet" type="text/css" href="/ss/window/theme/dhx_blue/dhtmlxwindows_dhx_blue.css">
  26. <script type="text/javascript" src="/ss/window/dhtmlxcommon.js"></script>
  27. <script type="text/javascript" src="/ss/window/dhtmlxwindows.js"></script>
  28. <script type="text/javascript" src="/ss/window/dhtmlxcontainer.js"></script>
  29. <script type="text/javascript" src="/ss/js/common.js"></script>
  30. <script type="text/javascript" src="/ss/js/display.js"></script>
  31. <script type="text/javascript" src="/ss/js/edit.js"></script>
  32. <ssDlg setPval="true"/> <%-- setValue="true" close="true"。Lin --%>
  33. <script type="text/javascript" src="/ss/jquery/jquery.ellipsis.js"></script>
  34. <%-- 新UI引入的JS --%>
  35. <script src="/js/load.js"></script> <%-- ="/newUI/ss/js/base.js"。Lin(新UI) --%>
  36. <script src="/js/pageC.js"></script> <%-- 对象变动、修改、查看页,左则选项卡宽度 在里面定义 Ben(20251213) --%>
  37. <%-- 改为 <data@ss name="prt"/>。Lin
  38. <tab@ss name="print" enable="viewobject.funcMap.play.print"/> --%>
  39. <ss:data name='prt'/><%-- 初始化弹出窗口的打印按钮的后台数据 Ben--%>
  40. <%--批量打印--%>
  41. <%-- 去掉,改为 <jsp@ss file="/ss/prtIcon.jsp"/>。Lin
  42. 不用 "wdBatchPrint",统一用 "wdPrint" -- 写在 prtIcon.jsp 里
  43. <equal@ss val="${empty prt}" val2="false">
  44. <script>
  45. $(function(){
  46. try{
  47. var wdDialogId=wd.display.getwdDialogId();
  48. var win=wd.topWindow.dhxWins.window(wdDialogId);
  49. win.button("wdBatchPrint").show();
  50. win.button("wdBatchPrint").onclick=function(){
  51. <varServ@ss dlg="true" name="${prt.service}" dest="${prt.dest}" parm="${prt.param}" title="${prt.title}" width="${prt.width}" height="${prt.height}" minHeight="${prt.minHeight}" maxHeight="${prt.maxHeight}"/>
  52. }
  53. }catch(e){
  54. console.log(e);
  55. }
  56. })
  57. </script>
  58. </equal@ss>
  59. --%>
  60. <%@include file="/ss/clip/prtIcon.jsp"%><%-- 引入初始化弹出窗口的打印按钮的JS Ben--%>
  61. <script>
  62. window.ss.dom.formElemConfig = window.ss.dom.formElemConfig || {};
  63. </script>
  64. </head>
  65. <body>
  66. <div id="app">
  67. <form class="page-container" id="myForm" action="<ss:serv name='${currentService.service}' dest='${currentService.dest}' parm='${currentService.param}'/>" method="post">
  68. <input type="hidden" name="isAnd" value='${isAnd}'/>
  69. <input name="management" type="hidden" value="${management}"/>
  70. <input name="isFulltext" type="hidden" value="${isFulltext}"/>
  71. <%--搜索条件start--%>
  72. <div class="search-bar">
  73. <ss-breadcrumb></ss-breadcrumb>
  74. <div class="search-bar-contaienr">
  75. <%--新UI 单对象查询翻页end Ben --%>
  76. <%--关键词--%>
  77. <%-- 再去掉 -- 只支持一行。Lin
  78. <ss:rpt name='searchableFields' id='fieldsList'>
  79. --%>
  80. <ss:rpt name='fieldsList' id='searchItem'>
  81. <%
  82. ss.obj.ObjFieldB f= (ss.obj.ObjFieldB)pageContext.getAttribute("searchItem");
  83. pageContext.setAttribute("searchItemValue",request.getParameter(f.name));
  84. %>
  85. <%--codebook 使用select下拉--%>
  86. <ss:equal val='${empty searchItem.cbName}' val2='false'>
  87. <%-- 旧的objecPicker
  88. <input type="text" name="${searchItem.name}" value="${searchItemValue}"/>
  89. <input type="text" name="${searchItem.name}Name" placeholder="${searchItem.desc}" style="width:${searchItem.width};min-width: 108px;"/>
  90. <ss:equal val='${empty cadcadingInputs[searchItem.name]}' val2='true'>
  91. <ss:objp name='${searchItem.name}' cb='${searchItem.cbName}' inp='true' filterField='${searchItem.filterFieldStr}'/>
  92. </ss:equal> --%>
  93. <%-- 新UI --%>
  94. <!-- <ss-objp
  95. v-model="${searchItem.name}"
  96. name="${searchItem.name}"
  97. :options="${searchItem.name}Option"
  98. placeholder="${searchItem.desc}"
  99. width="120"
  100. input="true"
  101. ></ss-objp> -->
  102. <ss-objp
  103. v-model="${searchItem.name}"
  104. name="${searchItem.name}"
  105. :opt="${searchItem.name}Option"
  106. placeholder="${searchItem.desc}"
  107. width="150px"
  108. inp="true"
  109. url="/service?ssServ=loadObjpOpt&objectpickerdropdown1=1"
  110. cb="${searchItem.cbName}"
  111. ></ss-objp>
  112. <script>
  113. /**
  114. * objectPicker(如:性别码)
  115. * optUrl:加载下拉菜单option选项的url
  116. */
  117. window.ss.dom.formElemConfig.${searchItem.name}={desc:'${searchItem.desc}',value:'${searchItemValue}',optUrl:'123456',type: 2};//放当前页面表单元素配置的变量
  118. </script>
  119. </ss:equal>
  120. <%--codebook 使用input输入框--%>
  121. <ss:equal val='${empty searchItem.cbName}' val2='true'>
  122. <%--日期--%>
  123. <ss:equal val='${searchItem.type}' valList='3,11'> <%-- 改 equal:val1='true' val2='${searchItem.type == "time"}'。Lin --%>
  124. <!-- <div class="input-inside"> -->
  125. <%--年度--%>
  126. <%--
  127. <ss:equal val='${searchItem.enrolDate}' val2='true'>
  128. <input type='hidden' placeholder="${searchItem.desc}" name='${searchItem.name}'
  129. value="<ss:txt val='${searchItemValue}'/>"/>
  130. <div><input type="text" name="${searchItem.name}_year" autocomplete="off" />
  131. <input name="${searchItem.name}_month" type="button" value="春季" ssVal="3"/>
  132. <input name="${searchItem.name}_month" type="button" value="秋季" ssVal="9"/>
  133. </div><script>(function(){wd.edit.onoffInit('radio','${searchItem.name}_month','',false,null,null,null,'edit');})();</script>
  134. <script>(function(){
  135. wd.display.initEnrolDate('${searchItem.name}','edit');
  136. })()
  137. </script>
  138. </ss:equal>
  139. --%>
  140. <%--日期--%>
  141. <ss:equal val='${searchItem.type==11}' val2='true'>
  142. <%--<input type='text' autocomplete="off" placeholder="${searchItem.desc}" name='${searchItem.name}'
  143. value='<ss:txt val='${searchItemValue}'/>' format="${searchItem.fmt}"/>
  144. <input type="button" ssType="date" ssName="${searchItem.name}"/>--%>
  145. <!-- <ss-date-picker
  146. v-model="${searchItem.name}"
  147. name="${searchItem.name}"
  148. type="date"
  149. placeholder="${searchItem.desc}"
  150. width="120px"
  151. ></ss-date-picker> -->
  152. <ss-search-date-picker
  153. v-model="${searchItem.name}"
  154. name="${searchItem.name}"
  155. type="date"
  156. placeholder="${searchItem.desc}"
  157. width="100px"
  158. fmt="${searchItem.fmt}"
  159. ></ss-search-date-picker>
  160. <script>
  161. //日期类型(出生日期)
  162. window.ss.dom.formElemConfig.${searchItem.name}={desc:'${searchItem.desc}',value:'${searchItemValue}',type:3, name:'${searchItem.name}'};//放当前页面表单元素配置的变量
  163. </script>
  164. </ss:equal>
  165. <!-- </div> -->
  166. </ss:equal>
  167. <%--文本--%>
  168. <%-- 改 equal:val1='false' val2='${searchItem.type == "time"}'。Lin --%>
  169. <ss:notEqual val='${searchItem.type}' valList='3,11'>
  170. <%--<input name='${searchItem.name}' placeholder="${searchItem.desc}" type='text'
  171. value='<ss:txt val='${searchItemValue}'/>'/>
  172. <input type="hidden" ssType="and" ssName="${searchItem.name}"/>--%>
  173. <%--<script>wd.edit.addClearTextButton("${searchItem.name}");</script>--%>
  174. <ss-search-input
  175. name="${searchItem.name}"
  176. placeholder="${searchItem.desc}"
  177. v-model="${searchItem.name}"
  178. width="100px"
  179. >
  180. </ss-search-input>
  181. </ss:notEqual>
  182. </ss:equal>
  183. </ss:rpt>
  184. <%-- 再去掉 -- 只支持一行。Lin
  185. </ss:rpt>
  186. --%>
  187. <%--
  188. <ss:rpt name='cadcadingName' id='item'>
  189. <ss:ccp name='${item}'/>
  190. </ss:rpt>
  191. --%>
  192. <ss:equal val='${hasKeyWord}' val2='true'>
  193. <%--
  194. <input name="ssKeyword" value="${ssKeyword}" type="text" placeholder="关键词"/>
  195. <script>wd.edit.addClearTextButton("ssKeyword");</script>
  196. --%>
  197. <!-- <ss-search-input
  198. name="ssKeyword"
  199. placeholder="关键词"
  200. v-model="form.keyword"
  201. width="120"
  202. >
  203. </ss-search-input> -->
  204. <ss-search-input
  205. name="ssKeyword"
  206. placeholder="关键词"
  207. v-model="ssKeyword"
  208. width="100px"
  209. @search="search"
  210. >
  211. </ss-search-input>
  212. <script>
  213. //关键词
  214. window.ss.dom.formElemConfig.ssKeyword={value:'${ssKeyword}',name:"ssKeyword",desc:"关键词",type:31};//放当前页面表单元素配置的变量
  215. </script>
  216. </ss:equal>
  217. <ss-search-button
  218. text="所有"
  219. icon-class="nav-icon-search"
  220. :opt="searchButtonConfig"
  221. :check-id="searchButtonConfigCheckId"
  222. ></ss-search-button>
  223. <%-- 新UI 单对象查询 选项卡、翻页start Ben --%>
  224. <ss:equal val='${"1"==isReady && !isMultipleObject}' val2='true'>
  225. <%--
  226. <ss:equal val='${hasScope}' val2='true'>
  227. <ul style="list-style: none;display: inline-block;">
  228. <li ssType="searchScope" ssVal=99>所有</li>
  229. <li ssType="searchScope" ssVal=2>管理</li>
  230. <li ssType="searchScope" ssVal=1>创建</li>
  231. <li ssType="searchScope" ssVal=3>已办</li>
  232. <li ssType="searchScope" ssVal=55>停用</li>
  233. </ul>
  234. </ss:equal>
  235. --%>
  236. </ss:equal>
  237. <%--
  238. <input type="submit" name="ssSearch" value="搜索" class="content-invertButton"/>
  239. --%>
  240. <!-- <ss-search-button text="搜索" @click="console.log('这里改成提交表单')">
  241. </ss-search-button> -->
  242. <script>
  243. <%-- 根按钮(管理按钮) --%>
  244. window.ss.dom.btnElemConfig = window.ss.dom.btnElemConfig || {};
  245. </script>
  246. <%--多对像搜索隐藏全文按钮--%>
  247. <%--
  248. <ss:equal val='${isMultipleObject}' val2='false'>
  249. --%><%--
  250. <input type="hidden" ssType="fts" ssName="fts" value="全文"/>--%> <%-- wdType="isFulltext" wdName="isFulltext"。Lin --%>
  251. <%--</ss:equal>--%>
  252. <%--根按钮(管理按钮)start--%>
  253. <ss:rpt name='buttonList' id='button'>
  254. <ss:auth serv='${button.service}'>
  255. <ss:equal val='${empty button.pluginList}' val2='true'>
  256. <%--
  257. <input type="button" name="${button.name}" value="${button.buttonName}" class="content-button"
  258. onclick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${button.service}' dest='${button.dest}' parm='${button.param}'/>",title:"${button.title}",width:"${button.width}",height:"${button.height}",minHeight:"${button.minHeight}",maxHeight:"${button.maxHeight+100}",showTitle:"${button.showTitle}"});'/>
  259. --%>
  260. <!-- <ss-search-button
  261. text="${button.name}"
  262. icon-class="nav-icon-add"
  263. ></ss-search-button> -->
  264. <script>
  265. function ${button.id}handleClick() {
  266. wd.display.showComponent({
  267. show:["wdDialog"],
  268. url:"<ss:serv name='${button.service}' dest='${button.dest}' parm='${button.param}'/>",
  269. title:"${button.title}",
  270. width:"${button.width}",
  271. height:"${button.height}",
  272. minHeight:"${button.minHeight}",
  273. maxHeight:"${button.maxHeight+100}",
  274. showTitle:"${button.showTitle}"
  275. });
  276. }
  277. window.ss.dom.btnElemConfig.${button.id}={
  278. desc:"${button.buttonName}",
  279. id:"${button.id}",
  280. dropOptions:[],
  281. onclick: () => {
  282. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${button.service}' dest='${button.dest}' parm='${button.param}'/>",title:"${button.title}",width:"${button.width}",height:"${button.height}",minHeight:"${button.minHeight}",maxHeight:"${button.maxHeight+100}",showTitle:"${button.showTitle}"});
  283. }
  284. };
  285. </script>
  286. <ss-search-button
  287. text="${button.buttonName}"
  288. icon-class="nav-icon-add"
  289. :opt="[]"
  290. :check-id="0"
  291. onclick="${button.id}handleClick()"
  292. ></ss-search-button>
  293. </ss:equal>
  294. <ss:equal val='${empty button.pluginList}' val2='false'>
  295. <ss:rpt name='${button.pluginList}' id='plugin'>
  296. <span style="display:none;" class="${button.id}children" value="${plugin.plugin.desc}"
  297. onclick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${plugin.service}' dest='${plugin.dest}' parm='${plugin.param}'/>",title:"${plugin.title}",width:"${plugin.width}",height:"${plugin.height}",minHeight:"${plugin.minHeight}",maxHeight:"${plugin.maxHeight}",showTitle:"${plugin.showTitle}"});'>
  298. </span>
  299. </ss:rpt>
  300. <%-- <input type="button" id="${button.id}" name="${button.name}" value="${button.buttonName}" class="content-button" onclick='void(0)'/>
  301. <span style=" display:inline-table; width: 60px; ">
  302. <input type="button" id="${button.id}" name="${button.name}" value="${button.buttonName}" class="content-button" onclick='void(0)'/>
  303. <span class="icon-dimPoint" style="margin-right: 7px;margin-top: -25px;position: relative;">
  304. </span>
  305. </span>
  306. <script>wd.display.attachButton("${button.id}","${button.id}children",null,false,true)</script>--%>
  307. <%-- 新UI start Ben --%>
  308. <!-- <ss-search-button
  309. text="${plugin.plugin.desc}"
  310. icon-class="nav-icon-add"
  311. :options="${button.id}DropOptions"
  312. ></ss-search-button> -->
  313. <%-- :opt改为取vue.data中的变量,而不取window.ss.dom.btnElemConfig(因为取不到),onclick改为:onclick xu(20251209) --%>
  314. <ss-search-button
  315. text="${button.buttonName}"
  316. icon-class="nav-icon-add"
  317. :opt="btnElemConfig.${button.id}.dropOptions"
  318. check-id="${management}"
  319. onclick="${button.id}handleClick()"
  320. ></ss-search-button>
  321. <script>
  322. function ${button.id}handleClick() {
  323. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${plugin.service}' dest='${plugin.dest}' parm='${plugin.param}'/>",title:"${plugin.title}",width:"${plugin.width}",height:"${plugin.height}",minHeight:"${plugin.minHeight}",maxHeight:"${plugin.maxHeight}",showTitle:"${plugin.showTitle}"});
  324. }
  325. window.ss.dom.btnElemConfig.${button.id}={id:"${button.id}",dropOptions:[],
  326. onclick: () => {
  327. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${plugin.service}' dest='${plugin.dest}' parm='${plugin.param}'/>",title:"${plugin.title}",width:"${plugin.width}",height:"${plugin.height}",minHeight:"${plugin.minHeight}",maxHeight:"${plugin.maxHeight}",showTitle:"${plugin.showTitle}"});
  328. }
  329. };
  330. <%-- 循环生成按钮数组 --%>
  331. <ss:rpt name='${button.pluginList}' id='plugin'>
  332. window.ss.dom.btnElemConfig.${button.id}.dropOptions.push(
  333. {
  334. desc:'${plugin.plugin.desc}',<%-- 按钮名 --%>
  335. callback: function(){
  336. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${plugin.service}' dest='${plugin.dest}' parm='${plugin.param}'/>",title:"${plugin.title}",width:"${plugin.width}",height:"${plugin.height}",minHeight:"${plugin.minHeight}",maxHeight:"${plugin.maxHeight}",showTitle:"${plugin.showTitle}"});
  337. }
  338. }
  339. );
  340. </ss:rpt>
  341. </script>
  342. <%-- 新UI end Ben --%>
  343. </ss:equal>
  344. </ss:auth>
  345. </ss:rpt>
  346. <%--管理按钮end--%>
  347. </div>
  348. </div>
  349. <%-- <div class="search-bar">
  350. <ss-breadcrumb></ss-breadcrumb>
  351. <div class="search-bar-contaienr">
  352. <!-- <ss-objp
  353. v-model="csd"
  354. name="csd"
  355. :options="[{ label: '广东', value: '1' },{ label: '广西', value: '2' }]"
  356. placeholder="省份"
  357. width="150"
  358. input="true"
  359. ></ss-objp> -->
  360. <!-- <ss-search-input
  361. name="keyword"
  362. placeholder="关键词"
  363. v-model="form.keyword"
  364. width="200px"
  365. >
  366. </ss-search-input> -->
  367. <template v-for="item in formElemConfig">
  368. <template v-if="item.type == systemType.SEARCHDATE">
  369. <ss-search-date-picker
  370. v-model="item.value"
  371. :name="item.name"
  372. type="date"
  373. :placeholder="item.desc"
  374. width="100px"
  375. ></ss-search-date-picker>
  376. </template>
  377. <template v-if="item.type == systemType.SEARCHTIME">
  378. <ss-search-date-picker
  379. v-model="item.value"
  380. :name="item.name"
  381. type="time"
  382. :placeholder="item.desc"
  383. width="100px"
  384. ></ss-search-date-picker>
  385. </template>
  386. <template v-if="item.type == systemType.SEARCHDATETIME">
  387. <ss-search-date-picker
  388. v-model="item.value"
  389. :name="item.name"
  390. type="datetime"
  391. :placeholder="item.desc"
  392. width="200px"
  393. ></ss-search-date-picker>
  394. </template>
  395. <template v-if="item.type == systemType.OBJPICKER">
  396. <ss-objp
  397. v-model="item.value"
  398. :name="item.name"
  399. :options="item.options"
  400. :placeholder="item.desc"
  401. width="150"
  402. input="true"
  403. ></ss-objp>
  404. </template>
  405. <template v-if="item.type == systemType.SEARCHINPUT">
  406. <ss-search-input
  407. :name="item.name"
  408. :placeholder="item.desc"
  409. v-model="item.value"
  410. width="100px"
  411. >
  412. </ss-search-input>
  413. </template>
  414. </template>
  415. <ss-search-button
  416. text="所有"
  417. icon-class="nav-icon-search"
  418. :options="searchButtonConfig"
  419. :check-id="searchButtonConfigCheckId"
  420. ></ss-search-button>
  421. <template v-for="item in btnElemConfig">
  422. <ss-search-button
  423. :text="item.desc"
  424. icon-class="nav-icon-add"
  425. :options="item.dropOptions"
  426. :check-id="item.dropOptionsCheckId"
  427. onclick="item.onclick"
  428. ></ss-search-button>
  429. </template>
  430. <!-- <ss-search-button
  431. text="新增(无下拉)"
  432. icon-class="nav-icon-add"
  433. onclick="console.log('点击了')"
  434. ></ss-search-button> -->
  435. </div>
  436. </div> --%>
  437. <%--搜索条件end--%>
  438. <%--个人统计表start${!isMultipleObject}--%>
  439. <ss:equal val='${"1"!=isReady && !isMultipleObject}' val2='true'>
  440. <input name="addgrtjUrl" type="hidden" value='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='addPcht' parm='{"wdConfirmationCaptchaService":"0","dxm":"${ssObjName}","use_grtjmbid":"${use_grtjmbid}"}' dest='pchtSet'/>",title:"挑选统计图指标",width:800,height:580});'/>
  441. <input name="grtjSizeUrl" type="hidden" value="<ss:serv name='savePstatSize' parm='{"wdConfirmationCaptchaService":"0","dxm":"${ssObjName}","grtjSize":"ssVal{grtjSize}","use_grtjmbid":"${use_grtjmbid}"}'/>"/>
  442. <input name="getgrtjJsonUrl" type="hidden" value="<ss:serv name='getgrtjJson' parm='{"wdConfirmationCaptchaService":"0"}'/>"/>
  443. <input name="getEChartData" type="hidden" value="<ss:serv name='wrPchtPlay' parm='{"wdConfirmationCaptchaService":"0"}'/>"/> <%-- name='getEChartData' --%>
  444. <div class="graph scrollbar" style="padding-right: 16px;display: block;width: 100%;height: 100%;overflow: auto;text-align: left;-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;font-size: 0px;box-sizing: border-box;padding:15px 20px">
  445. <ss:rpt name='${grtjList}' id='item'>
  446. <div class="graph-list plugin-invertDiv" grtjid="${item.grtjid}" grtjlbm="${item.grtjlbm}" style="min-width:120px;min-height:65px;width:${item.kd}px;height:${item.gd}px;overflow: auto;position: relative;margin: 2px;" onclick="checkChart(this)">
  447. <ss:equal val='${item.grtjlbm}' val2='1'>
  448. <div class="graph-list-body" id="tjt-${item.grtjid}" style="height:48px;width: 100%;">${item.mc} </div>
  449. <span class="graph-list-mask" style="position: absolute;display: flex;width: 100%;height: 48px;top: 0px;left: 0px;">
  450. <span class="shortcutPlugin-icon plugin-icon" style="margin-left:5px;position: relative;left: 0;top: 0px;width: 48px;height: 48px;" onclick='refreshTjt("${item.grtjid}")'>
  451. </span>
  452. <div style="display:inline-block;position: relative;left: 0;top: 0px;width: 200px;height: 48px;background-color: white;font-size: 16px;font-weight: bold;display: flex;align-items: center;">${item.mc} </div>
  453. <span class="icon-set-statistics" style="position: absolute;right: 0px;top: 0px;width: 48px;height: 48px;"
  454. onclick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='initPchtSet' parm='{"wdConfirmationCaptchaService":"0","grtjid":"${item.grtjid}","dxm":"${ssObjName}"}' dest='pchtSet'/>",title:"挑选统计图指标",width:800,height:580});'>
  455. </span>
  456. </span>
  457. </ss:equal>
  458. <ss:equal val='${item.grtjlbm}' val2='51'> <%-- 为什么会写成 <ss:equal???Lin --%>
  459. <span class="graph-list-body" style="height:40px;width: 100%;">${item.mc}</span>
  460. <span class="icon-set" style="position: absolute;right: 0px;top: 0px;width: 70px;height: 40px;"
  461. onclick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='initPformSet' parm='{"wdConfirmationCaptchaService":"0","grtjid":"${item.grtjid}","dxm":"${ssObjName}"}' dest='pformSet'/>",title:"挑选统计表",width:800,height:580});'>
  462. </span>
  463. <%-- Start 抄自下方的的原统计表列表。原对象首页的下半部分,已被去掉。Lin --%>
  464. <table class="scrollbar" style="max-height: 100%;width: 100%;">
  465. <tbody style="width: 100%;padding: 0px 16px 0px 11px;box-sizing: border-box;" ssFith='{list:true,rowHeight:35}'>
  466. <ss:rpt name='${item.grtjmxList}' id='item2'>
  467. <tr>
  468. <ss:equal val='${empty item2.page}' val2='true'> <%-- 使用表格模板工具。Lin --%>
  469. <td class="hLine"
  470. onClick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='stat_tableDesign_bb' parm='{"wdConfirmationCaptchaService":"0","bgmbid":"${item2.bgmbid}"}' dest='bgmb_xsmb'/>",title:"显示模板",width:1010,height:750});'>
  471. </ss:equal>
  472. <ss:equal val='${empty item2.page}' val2='false'> <%-- 高级表格。Lin --%>
  473. <td class="hLine"
  474. onClick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${item2.serv}' dest='${item2.page}'/>",title:"${item2.mc}",width:"${item2.width}",height:"${item2.height}",minHeight:"${item2.height}",maxHeight:"${item2.height}",showTitle:"${item2.mc}"});'>
  475. </ss:equal>
  476. <div class="longCardList-info" style="font-size: 0px;display: inline-block;float: left;">
  477. <span class="longCardList-highlight" style="margin-bottom: 3px;">
  478. <a>${item2.mc}</a>
  479. </span>
  480. <div id="${item2.bgmbid}" class="longCardList-dim growHeightDiv" width='750'>
  481. <ss:txt val='${item2.ms}'/>
  482. </div>
  483. <script type="text/javascript" charset="utf-8" src="/ss/js/growHeight.js"></script>
  484. <script type="text/javascript" charset="utf-8" src="/ss/js/display.js"></script>
  485. <script type="text/javascript" charset="utf-8" >
  486. wd.display.initGrowHigh('${item2.bgmbid}','80px',{},null,false);
  487. </script>
  488. <div id="lmms${item2.bgmbid}$" class="longCardList" width='750' height='18px'>
  489. <ss:txt val='${item2.lmms}'/>
  490. </div>
  491. <script type="text/javascript" charset="utf-8" src="/ss/js/growHeight.js"></script>
  492. <script type="text/javascript" charset="utf-8" src="/ss/js/display.js"></script>
  493. <script type="text/javascript" charset="utf-8" >
  494. wd.display.initGrowHigh('lmms${item2.bgmbid}','80px',{},null,false);
  495. </script>
  496. </div>
  497. </td>
  498. </tr>
  499. </ss:rpt>
  500. </tbody>
  501. </table>
  502. </ss:equal>
  503. <%-- <span class="graph-list-resize plugin-drag" style="position: absolute;right: 0px;bottom: 0px;"></span> --%>
  504. <%-- <span class="vLine" style="height: 40px;width: 1px;position: absolute;right: 70px;top: 0px"></span> --%>
  505. <%-- <span class="hLine-highlight" style="width: 100%;height: 0px;position: absolute;top: 40px;left: 0px;"></span> --%>
  506. </div>
  507. </ss:rpt>
  508. <div>
  509. <div class="button icon-add graphButton" style="height: 60px;line-height: 82px;float: right;margin-top: 0px;margin-right: 0px;"
  510. <%-- 再改为 WebC.REQ_objName,避免与数据表里的 对象名 字段重名。用到再确认。Lin
  511. 传到 objList.ss.jsp 的是 ${ssObjName},传给 pformSet 的是 dxm(统计指标.对象名、个人统计.对象名)
  512. onClick='<serv@ss dlg="true" dest="env_search_bgmb_zj" parm="{dxm:&quot;${dxm}&quot;}" title="添加表格模板"/>'> --%>
  513. onClick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='addPform' parm='{"wdConfirmationCaptchaService":"0","dxm":"${ssObjName}"}' dest='pformSet'/>",title:"设置统计表",width:800,height:580});'>
  514. 增加表
  515. </div>
  516. <div class="button icon-add graphButton" style="height: 60px;float: right;margin-top: 0px;margin-right: 0px;line-height: 82px;"
  517. onClick='wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='addPcht' parm='{"wdConfirmationCaptchaService":"0","dxm":"${ssObjName}","use_grtjmbid":"${use_grtjmbid}"}' dest='pchtSet'/>",title:"设置统计图",width:800,height:580});'>
  518. 增加图</div>
  519. </div>
  520. </div>
  521. </ss:equal>
  522. <%--个人统计表end--%>
  523. <div style="clear: both;"></div>
  524. <script type="text/javascript" src="/ss/js/myEcharts.js"></script>
  525. <script type="text/javascript" src="/ss/env/env_search.js"></script><%-- 旧UI初始化查询列表的js,新UI做好后,要被删掉的 --%>
  526. <%-- 新UI初始化查询列表数据的JS --%>
  527. <script>
  528. window.ss.dom.listConfig = window.ss.dom.listConfig || {};
  529. //二级对象 草稿箱
  530. window.ss.dom.listConfig.draftbox = [];
  531. <%-- 草稿箱start --%>
  532. <ss:rpt name='cgxList' id='item'>
  533. {
  534. let item = {};
  535. window.ss.dom.listConfig.draftbox.push(item);
  536. <%-- 下面的titlexxx是原来td的一个属性,不知道有啥用 --%>
  537. <ss:equal val='${not empty item.service.play && empty item.service.update && empty item.service.change}' val2='true'>
  538. item.titlexxx="${item.service.play.title}";
  539. item.onclick=function (){
  540. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${item.service.play.service}' dest='${item.service.play.dest}' parm='${item.service.play.param}'/>",title:"${item.service.play.title}",width:"${item.service.play.width}",height:"${item.service.play.height}",minHeight:"${item.service.play.minHeight}",maxHeight:"${item.service.play.maxHeight}"});
  541. };
  542. </ss:equal>
  543. <ss:equal val='${item.service.lbm}' val2='1'>
  544. <ss:equal val='${empty item.service.update}' val2='false'>
  545. item.titlexxx="${item.service.update.title}";
  546. item.onclick=function (){
  547. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${item.service.update.service}' dest='${item.service.update.dest}' parm='${item.service.update.param}'/>",title:"${item.service.update.title}",width:"${item.service.update.width}",height:"${item.service.update.height}",minHeight:"${item.service.update.minHeight}",maxHeight:"${item.service.update.maxHeight}"});
  548. };
  549. </ss:equal>
  550. </ss:equal>
  551. <ss:equal val='${item.service.lbm}' val2='11'>
  552. <ss:equal val='${empty item.service.change}' val2='false'>
  553. item.titlexxx="${item.service.change.title}";
  554. item.onclick=function (){
  555. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${item.service.change.service}' dest='${item.service.change.dest}' parm='${item.service.change.param}'/>",title:"${item.service.change.title}",width:"${item.service.change.width}",height:"${item.service.change.height}",minHeight:"${item.service.change.minHeight}",maxHeight:"${item.service.change.maxHeight}"});
  556. };
  557. </ss:equal>
  558. </ss:equal>
  559. item.buttons=[];
  560. <ss:equal val='${item.service.lbm}' val2='1'>
  561. item.buttons.push(
  562. {
  563. class: "cart-list-setting",
  564. title: "增加",
  565. onclick: () => {
  566. console.log("点击了增加");
  567. }
  568. }
  569. );
  570. </ss:equal>
  571. <ss:equal val='${item.service.lbm}' val2='11'>
  572. item.buttons.push(
  573. {
  574. class: "cart-list-setting",
  575. title: "变动",
  576. onclick: () => {
  577. console.log("点击了变动");
  578. }
  579. }
  580. );
  581. </ss:equal>
  582. <ss:equal val='${item.service.lbm}' val2='51'>
  583. item.buttons.push(
  584. {
  585. class: "cart-list-setting",
  586. title: "停用",
  587. onclick: () => {
  588. console.log("点击了停用");
  589. }
  590. }
  591. );
  592. </ss:equal>
  593. <ss:equal val='${item.service.lbm}' val2='55'>
  594. item.buttons.push(
  595. {
  596. class: "cart-list-setting",
  597. title: "启用",
  598. onclick: () => {
  599. console.log("点击了启用");
  600. }
  601. }
  602. </ss:equal>
  603. <ss:equal val='${item.service.lbm}' valList='51,55'>
  604. item.buttons.push(
  605. {
  606. class: "cart-list-setting",
  607. title: "还原",
  608. onclick: () => {
  609. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='deleteSq' parm='{"wdConfirmationCaptchaService":"0","sqid":"${item.sqid}"}' dest='info'/>",title:"提示信息",width:715,height:483});
  610. }
  611. }
  612. </ss:equal>
  613. console.log('###item.thumbnail:${item.thumbnail}');
  614. <%--缩略图--%>
  615. <ss:equal val='${empty item.thumbnail}' val2='false'>
  616. <ss:equal val='${item.service.state}' val2='0'>
  617. item.thumb="${sessionScope['ssUser'].skinDir}image/object/default-${item.ssObjName}.png" onerror="javascript:this.src='${sessionScope['ssUser'].skinDir}image/default-photo.png';this.onerror=null;";
  618. </ss:equal>
  619. <ss:notEqual val='${item.service.state}' val2='0'>
  620. item.thumb="<ss:serv name='dlByHttp' parm='{"wdConfirmationCaptchaService":"0","path":"${item.thumbnail.value}","type":"img"}'/>";
  621. </ss:notEqual>
  622. </ss:equal>
  623. <%-- 列标题 --%>
  624. <ss:equal val='${empty item.first}' val2='false'> <%-- 改 equal:val1="true" val2="${not empty item.first}"。Lin --%>
  625. <%--不带codebook--%>
  626. <ss:equal val='${empty item.first.field.cbName}' val2='true'>
  627. item.title="<ss:txt val='${item.first.value}' miniDate='false' fmt='${item.first.field.fmt}'/>";
  628. </ss:equal>
  629. <%--带codebook--%>
  630. <ss:equal val='${empty item.first.field.cbName}' val2='false'>
  631. item.title="<ss:cbTrans cb='${item.first.field.cbName}' val='${item.first.value}'/>";
  632. </ss:equal>
  633. </ss:equal>
  634. <%--列标题:缺标题显示属性start--%>
  635. <ss:equal val='${empty item.first && not empty item.third}' val2='true'>
  636. item.title='';
  637. <ss:rpt name='${item.third}' id='itemList'>
  638. <ss:rpt name='${itemList}' id='item2'>
  639. item.title+='${item2.field.desc}:';
  640. <%--不带codebook--%>
  641. <ss:equal val='${empty item2.field.cbName}' val2='true'>
  642. item.title+='<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/>&nbsp;';
  643. </ss:equal>
  644. <%--带codebook--%>
  645. <ss:equal val='${empty item2.field.cbName}' val2='false'>
  646. item.title+='<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/>&nbsp;';
  647. </ss:equal>
  648. </ss:rpt>
  649. </ss:rpt>
  650. </ss:equal>
  651. <%--缺标题显示属性end--%>
  652. <%--正文或摘要--%>
  653. <ss:equal val='${empty item.second}' val2='false'>
  654. item.summary='${item.second.value}';
  655. </ss:equal>
  656. <%-- 列表底部的对象属性(tags) --%>
  657. <ss:equal val='${empty item.first || empty item.third}' val2='false'>
  658. item.tags=[];
  659. <ss:rpt name='${item.third}' id='itemList'>
  660. <ss:rpt name='${itemList}' id='item2'>
  661. {
  662. let v;
  663. <%--不带codebook--%>
  664. <ss:equal val='${empty item2.field.cbName}' val2='true'>
  665. v='<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/>';
  666. </ss:equal>
  667. <%--带codebook--%>
  668. <ss:equal val='${empty item2.field.cbName}' val2='false'>
  669. v='<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/>';
  670. </ss:equal>
  671. item.tags.push({'${item2.field.desc}':v});
  672. }
  673. </ss:rpt>
  674. </ss:rpt>
  675. </ss:equal>
  676. <%-- 对象变动前后属性列表 --%>
  677. item.changeItems=[];
  678. <ss:rpt name='${item.forth}' id='item3'>
  679. item.changeItems.push({name:'${item3.name}',oldValue:'${item3.oldValue}',newValue:'${item3.newValue}'});
  680. </ss:rpt>
  681. }
  682. </ss:rpt>
  683. <%-- 草稿箱end --%>
  684. //在用或停用的对象列表
  685. window.ss.dom.listConfig.list = [];
  686. <ss:rpt name='objectList' id='item'><%-- 循环一次生成一行列表 start --%>
  687. {
  688. let item = {};//列表的其中一行的属性
  689. window.ss.dom.listConfig.list.push(item);
  690. <ss:equal val='${item.service.state}' val2='0'><%-- 借阅 --%>
  691. item.onclick=function(){
  692. wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='ydsq_tj' parm='{"wdConfirmationCaptchaService":"0","ssObjId":"${item.ssObjId}","ssObjName":"${item.ssObjName}"}' dest='ydsq_tj'/>",title:"借阅",width:613,height:387});
  693. }
  694. </ss:equal>
  695. <ss:equal val='${empty item.service.play}' val2='false'><%-- 有权查看,不需要借阅的情况 --%>
  696. item.titlexxx="${item.service.play.title}";
  697. item.onclick=function(){
  698. wd.display.showComponent({getSize:1,width:((${item.service.play.width}+DOM_SIZE_objInfoTabWidth)+""),show:["wdDialog"],url:"<ss:serv name='${item.service.play.service}' dest='${item.service.play.dest}' parm='${item.service.play.param}'/>",title:"${item.service.play.title}",height:"${item.service.play.height}",minHeight:"${item.service.play.minHeight}",maxHeight:"${item.service.play.maxHeight}"});
  699. }
  700. </ss:equal>
  701. <ss:equal val='${empty item.thumbnail}' val2='false'><%-- 缩略图 --%>
  702. <ss:equal val='${item.service.state}' val2='0'><%-- 借阅 --%>
  703. item.thumb="${sessionScope['ssUser'].skinDir}image/object/default-${item.ssObjName}.png";
  704. </ss:equal>
  705. <ss:notEqual val='${item.service.state}' val2='0'>
  706. console.log('@@@图片:${item.thumbnail.value}');
  707. item.thumb="<ss:serv name='dlByHttp' parm='{"wdConfirmationCaptchaService":"0","path":"${item.thumbnail.value}","type":"img"}'/>";
  708. </ss:notEqual>
  709. </ss:equal>
  710. <%-- 标题 --%>
  711. <ss:equal val='${empty item.first}' val2='false'> <%-- 改 equal:val1="true" val2="${not empty item.first}"。Lin --%>
  712. <%--不带codebook--%>
  713. <ss:equal val='${empty item.first.field.cbName}' val2='true'>
  714. item.title="<ss:txt val='${item.first.value}' miniDate='false' fmt='${item.first.field.fmt}'/>";
  715. </ss:equal>
  716. <%--带codebook--%>
  717. <ss:equal val='${empty item.first.field.cbName}' val2='false'>
  718. item.title="<ss:cbTrans cb='${item.first.field.cbName}' val='${item.first.value}'/>";
  719. </ss:equal>
  720. </ss:equal>
  721. <%--缺标题显示属性当标题start--%>
  722. <ss:equal val='${empty item.first && not empty item.third}' val2='true'>
  723. item.title='';
  724. <ss:rpt name='${item.third}' id='itemList'>
  725. <ss:rpt name='${itemList}' id='item2'>
  726. item.title+='${item2.field.desc}:';<%--属性名--%>
  727. <%--不带codebook--%><%--属性值--%>
  728. <ss:equal val='${empty item2.field.cbName}' val2='true'>
  729. item.title+="<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/>&nbsp;";
  730. </ss:equal>
  731. <%--带codebook--%><%--属性值--%>
  732. <ss:equal val='${empty item2.field.cbName}' val2='false'>
  733. item.title+="<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/>&nbsp;";
  734. </ss:equal>
  735. </ss:rpt>
  736. </ss:rpt>
  737. </ss:equal>
  738. <%--缺标题显示属性当标题end--%>
  739. <%-- 摘要 --%>
  740. <ss:equal val='${empty item.second}' val2='false'>
  741. item.summary = '${item.second.value}';
  742. </ss:equal>
  743. <%-- 列表底部的对象标签组 --%>
  744. <ss:equal val='${empty item.first || empty item.third}' val2='false'>
  745. item.tags=[];
  746. <ss:rpt name='${item.third}' id='itemList'>
  747. <ss:rpt name='${itemList}' id='item2'>
  748. {
  749. let v;
  750. <%--不带codebook--%>
  751. <ss:equal val='${empty item2.field.cbName}' val2='true'>
  752. v='<ss:txt val='${item2.value}' miniDate='false' fmt='${item2.field.fmt}'/>';
  753. </ss:equal>
  754. <%--带codebook--%>
  755. <ss:equal val='${empty item2.field.cbName}' val2='false'>
  756. v='<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/>';
  757. </ss:equal>
  758. item.tags.push({${item2.field.desc}:v});
  759. }
  760. </ss:rpt>
  761. </ss:rpt>
  762. </ss:equal>
  763. <%--按钮--%>
  764. <ss:equal val='${empty item.service.btnList}' val2='false'>
  765. item.buttons=[];
  766. <ss:rpt name='${item.service.btnList}' id='btn'>
  767. item.buttons.push(
  768. {
  769. id:"${btn.btnID}",
  770. titlexxx:"${btn.title}",
  771. class: "cart-list-setting",
  772. title: "${btn.name}",
  773. onclick: () => {
  774. <%--列表的变动按钮就在这里,下面的width会根据不同业务对象而不同
  775. 弹窗参数加上getSize=1,使showComponent弹窗方法不再通过ajax从后台取宽高 --%>
  776. wd.display.showComponent({getSize:1,width:((${btn.width}+DOM_SIZE_objInfoTabWidth)+""),show:["wdDialog"],url:"<ss:serv name='${btn.service}' dest='${btn.dest}' parm='${btn.param}'/>",title:"${btn.title}",height:"${btn.height}",minHeight:"${btn.minHeight}",maxHeight:"${btn.maxHeight}"});
  777. }
  778. }
  779. );
  780. <%--
  781. <ss:equal val='${index}' val2='0'>
  782. </ss:equal>
  783. <ss:notEqual val='${index}' val2='0'>
  784. </ss:notEqual>
  785. 改为不区分是否第1个变动按钮,都输出相同json数据 --%>
  786. </ss:rpt>
  787. </ss:equal>
  788. }
  789. </ss:rpt><%-- 循环一次生成一行列表 end --%>
  790. </script>
  791. <%--搜索结果start--%>
  792. <div class="content-area item-content-area" style="gap: 20px">
  793. <template v-for="(item, i) in listConfig.draftbox" :key="i">
  794. <ss-folder-card v-if="item.children" :item="item"></ss-folder-card>
  795. <ss-list-card v-else :item="item"></ss-list-card>
  796. </template>
  797. <template v-for="(item, i) in listConfig.list" :key="i">
  798. <ss-folder-card v-if="item.children" :item="item"></ss-folder-card>
  799. <ss-list-card v-else :item="item"></ss-list-card>
  800. </template>
  801. <ss-page
  802. v-show="${ssPaging.rowNum}"
  803. :total="${ssPaging.rowNum==null?0:ssPaging.rowNum}"
  804. :size="${ssPaging.rowNumPer==null?wdRowCountPerPage:ssPaging.rowNumPer}"
  805. :page="${ssPaging.pageNo==null?1:ssPaging.pageNo}"
  806. @change="handlePageChange" >
  807. </ss-page>
  808. </div>
  809. </form>
  810. </div>
  811. </body>
  812. </html>
  813. <script type="module">
  814. <%-- 打印新UI相关json对象 --%>
  815. function objectPickMockAjax(url) {
  816. return new Promise((resolve) => {
  817. setTimeout(() => {
  818. resolve([
  819. { label: '学校领导', value: '190'},
  820. { label: '业务部', value: '101241' },
  821. { label: '男', value: '1' },
  822. { label: '女', value: '2' }
  823. ]);
  824. }, 1000);
  825. });
  826. }
  827. // 定义 objPickerLoad 函数
  828. async function objPickerLoad(url, optionsName) {
  829. const result = await objectPickMockAjax(url);
  830. return result;
  831. }
  832. window.ss.dom.formElemConfig.testtime = {
  833. type: '34',
  834. desc: '时间',
  835. name: 'testtime',
  836. value: '',
  837. };
  838. window.ss.dom.formElemConfig.testdatetime = {
  839. type: '35',
  840. desc: '日期时间',
  841. name: 'testdatetime',
  842. value: '',
  843. };
  844. console.log(window.ss.dom.formElemConfig);
  845. const data = {
  846. systemType: window.ss.dom.TYPE,
  847. listConfig:window.ss.dom.listConfig,
  848. formElemConfig:window.ss.dom.formElemConfig,
  849. btnElemConfig:window.ss.dom.btnElemConfig,
  850. searchButtonConfigCheckId:'${management}',
  851. searchButtonConfig:[
  852. {
  853. id:"99",
  854. desc: "所有",
  855. callback: () => {
  856. $("[name=pageNo]").val('1');
  857. $("[name=management]").val('99');
  858. $("#myForm").submit();
  859. },
  860. },
  861. {
  862. id:"2",
  863. desc: "管理",
  864. callback: () => {
  865. $("[name=pageNo]").val('1');
  866. $("[name=management]").val('2');
  867. $("#myForm").submit();
  868. },
  869. },
  870. {
  871. id:"1",
  872. desc: "创建",
  873. callback: () => {
  874. $("[name=pageNo]").val('1');
  875. $("[name=management]").val('1');
  876. $("#myForm").submit();
  877. },
  878. },
  879. {
  880. id:"3",
  881. desc: "已办",
  882. callback: () => {
  883. $("[name=pageNo]").val('1');
  884. $("[name=management]").val('3');
  885. $("#myForm").submit();
  886. },
  887. },
  888. {
  889. id:"55",
  890. desc: "停用",
  891. callback: () => {
  892. $("[name=pageNo]").val('1');
  893. $("[name=management]").val('55');
  894. $("#myForm").submit();
  895. },
  896. },
  897. ],
  898. }
  899. if (window.ss.dom.formElemConfig) {
  900. Object.entries(window.ss.dom.formElemConfig).forEach(([key, config]) => {
  901. data[key] = config.value;
  902. // 处理 objPicker
  903. if (config.type === window.ss.dom.TYPE.OBJPICKER) {
  904. data[key + "ObjPicker"] = true;
  905. data[key + "Option"] = [];
  906. data[key + "Url"] = config.optUrl;
  907. }
  908. })
  909. }
  910. console.log('data:'+JSON.stringify(data));
  911. SS.ready(function () {
  912. window.ss.dom.initializeFormApp({
  913. el: "#app",
  914. data(){
  915. return data;
  916. },
  917. methods: {
  918. handlePageChange({pageNo, rowNumPer, rowNum}) {
  919. // 更新隐藏表单值
  920. document.getElementsByName('pageNo')[0].value = pageNo;
  921. document.getElementsByName('rowNumPer')[0].value = rowNumPer;
  922. document.getElementsByName('rowNum')[0].value = rowNum;
  923. // 提交表单
  924. document.getElementById('myForm').submit();
  925. },
  926. search(){
  927. document.getElementById('myForm').submit();
  928. }
  929. },
  930. mounted(){
  931. const self = this;
  932. // 在这里可以使用 Vue 实例
  933. Object.entries(this.$data).forEach(([key, value]) => {
  934. // 处理 objPicker
  935. if (key.includes('ObjPicker')) {
  936. const originalKey = key.replace('ObjPicker', '');
  937. if (value) {
  938. objPickerLoad(value, key).then(result => {
  939. if(self.formElemConfig[originalKey]) {
  940. self.formElemConfig[originalKey].name = originalKey;
  941. self.formElemConfig[originalKey].options = result;
  942. }
  943. });
  944. }
  945. }
  946. });
  947. }
  948. });
  949. });
  950. <%-- 原有的清令牌 --%>
  951. tokenCleanser("<ss:serv name='ss.clearPageToken'/>", {tokenList:"<%= pageContext.getAttribute(ss.page.PageC.PAGE_tokenList)%>"});
  952. </script>