cobjList.jsp 44 KB

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