cobjList.jsp 44 KB

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