| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026 |
- <%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
- <%@ taglib uri="/ssTag" prefix="ss"%>
- <%pageContext.setAttribute("wdpageinformation","{'hastab':'0'}");%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <script>window.loginStatus="${empty sessionScope['ssUser']?'0':'1'}"</script>
- <ss:skin file='main.css'/>
- <script type="text/javascript" src="/ss/jquery/jquery.js"></script>
- <script type="text/javascript" src="/ss/artdialog/artDialogUtil.js"></script>
- <script type="text/javascript" src="/ss/js/base.js"></script>
- <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>
- <script type="text/javascript" src="/ss/js/masklayer.js"></script>
- <script type="text/javascript" src="/ss/js/wdDialogInit.js"></script>
- <script type="text/javascript" src="/ss/js/common.js"></script>
- <script type="text/javascript" src="/ss/js/display.js"></script>
- <script type="text/javascript" src="/ss/js/edit.js"></script>
- <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.js"></script>
- <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.iframehelper.min.js"></script>
- <link rel="stylesheet" type="text/css" href="/ss/window/theme/dhtmlxwindows.css">
- <link rel="stylesheet" type="text/css" href="/ss/window/theme/dhx_blue/dhtmlxwindows_dhx_blue.css">
- <script type="text/javascript" src="/ss/window/dhtmlxcommon.js"></script>
- <script type="text/javascript" src="/ss/window/dhtmlxwindows.js"></script>
- <script type="text/javascript" src="/ss/window/dhtmlxcontainer.js"></script>
- <script type="text/javascript" src="/ss/js/common.js"></script>
- <script type="text/javascript" src="/ss/js/display.js"></script>
- <script type="text/javascript" src="/ss/datePicker/WdatePicker.js"></script>
- <script type="text/javascript" src="/ss/js/edit.js"></script>
- <ssDlg setPval="true"/> <%-- setValue="true" close="true"。Lin --%>
- <script type="text/javascript" src="/ss/js/growHeight.js"></script>
- <script type="text/javascript" src="/ss/jquery/jquery.ellipsis.js"></script>
- <script type="text/javascript" src="/ss/datePicker/WdatePicker.js"></script>
- <script type="text/javascript" src="/ss/js/edit.js"></script>
- <script type="text/javascript" src="/ss/echarts/echarts.js"></script>
- <%-- 新UI引入的JS --%>
- <script src="/js/load.js"></script> <%-- ="/newUI/ss/js/base.js"。Lin(新UI) --%>
- <style>
- <%--巨大div--%>
- <%--报表样式--%>
- <%--内容--%>
- <%--调大小手柄--%>
- <%--设置报表--%>
- <%--page--%>
- .pagination{
- margin-right: 20px;
- }
- .icon-openFolder{
- line-height: 40px !important;
- }
- </style>
- <%-- 改为 <data@ss name="prt"/>。Lin
- <tab@ss name="print" enable="viewobject.funcMap.play.print"/> --%>
- <ss:data name='prt'/>
- <%--批量打印--%>
- <%-- 去掉,改为 <jsp@ss file="/ss/prtIcon.jsp"/>。Lin
- 不用 "wdBatchPrint",统一用 "wdPrint" -- 写在 prtIcon.jsp 里
- <equal@ss val="${empty prt}" val2="false">
- <script>
- $(function(){
- try{
- var wdDialogId=wd.display.getwdDialogId();
- var win=wd.topWindow.dhxWins.window(wdDialogId);
- win.button("wdBatchPrint").show();
- win.button("wdBatchPrint").onclick=function(){
- <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}"/>
- }
- }catch(e){
- console.log(e);
- }
- })
- </script>
- </equal@ss>
- --%>
- <%@include file="/ss/clip/prtIcon.jsp"%>
- <script>
- window.SS.dom.formElemConfig = window.SS.dom.formElemConfig || {};
- </script>
- </head>
- <body>
- <div id="app" >
- <form class="page-container" id="myForm" action="<ss:serv name='${currentService.service}' dest='${currentService.dest}' parm='${currentService.param}'/>" method="post">
- <input type="hidden" name="isAnd" value='${isAnd}' />
- <input name="management" type="hidden" value="${management}" />
- <input name="isFulltext" type="hidden" value="${isFulltext}" />
- <%--搜索条件start--%>
- <div class="search-bar">
- <ss-breadcrumb></ss-breadcrumb>
- <div class="search-bar-contaienr">
- <%--关键词--%>
- <%-- 再去掉 -- 只支持一行。Lin
- <ss:rpt name='searchableFields' id='fieldsList'>
- --%>
- <ss:rpt name='fieldsList' id='searchItem'>
- <%
- ss.obj.ObjFieldB f= (ss.obj.ObjFieldB)pageContext.getAttribute("searchItem");
- pageContext.setAttribute("searchItemValue",request.getParameter(f.getName()));
- %>
- <%--codebook 使用select下拉--%>
- <ss:equal val='${empty searchItem.cbName}' val2='false'>
- <%--<input type="text" name="${searchItem.name}" value="${searchItemValue}"/>
- <input type="text" name="${searchItem.name}Name" placeholder="${searchItem.desc}" style="width:${searchItem.width};min-width: 108px;"/>
- <ss:equal val='${empty cadcadingInputs[searchItem.name]}' val2='true'>
- <ss:objp name='${searchItem.name}' cb='${searchItem.cbName}' inp='true'/>
- </ss:equal>--%>
- <ss-objp
- v-model="${searchItem.name}"
- name="${searchItem.name}"
- :opt="${searchItem.name}Option"
- placeholder="${searchItem.desc}"
- width="120"
- inp="true"
- url="/service?ssServ=loadObjpOpt&objectpickerdropdown1=1"
- cb="${searchItem.cbName}"
- ></ss-objp>
- <script>
- /**
- * objectPicker(如:性别码)
- * optUrl:加载下拉菜单option选项的url
- */
- window.SS.dom.formElemConfig.${searchItem.name}={desc:'${searchItem.desc}',value:'${searchItemValue}',optUrl:'123456',type: 2};//放当前页面表单元素配置的变量
- </script>
- </ss:equal>
- <%--codebook 使用input输入框--%>
- <ss:equal val='${empty searchItem.cbName}' val2='true'>
- <%--日期--%>
- <ss:equal val='${searchItem.type}' valList='3,11'> <%-- 改 equal:val1="true" val2='${searchItem.type == "time"}'。Lin --%>
- <div class="input-inside">
- <%--年度--%>
- <%--
- <ss:equal val='${searchItem.enrolDate}' val2='true'>
- <input type='hidden' placeholder="${searchItem.desc}" name='${searchItem.name}'
- value='<ss:txt val='${searchItemValue}'/>'/>
- <div><input type="text" name="${searchItem.name}_year" autocomplete="off" />
- <input name="${searchItem.name}_month" type="button" value="春季" ssVal="3"/>
- <input name="${searchItem.name}_month" type="button" value="秋季" ssVal="9"/>
- </div><script>(function(){wd.edit.onoffInit('radio','${searchItem.name}_month','',false,null,null,null,'edit');})();</script>
- <script>(function(){
- wd.display.initEnrolDate('${searchItem.name}','edit');
- })()
- </script>
- </ss:equal>--%>
- <%--日期--%>
- <ss:equal val='${searchItem.type==11}' val2='true'>
- <%--<input type='text' autocomplete="off" placeholder="${searchItem.desc}" name='${searchItem.name}'
- value='<ss:txt val='${searchItemValue}'/>' format="${searchItem.fmt}"/>
- <input type="button" ssType="date" ssName="${searchItem.name}"/>--%>
- <ss-search-date-picker
- v-model="${searchItem.name}"
- name="${searchItem.name}"
- type="date"
- placeholder="${searchItem.desc}"
- width="100px"
- ></ss-search-date-picker>
- <script>
- //日期类型(如:出生日期)
- window.SS.dom.formElemConfig.${searchItem.name}={desc:'${searchItem.desc}',value:'${searchItemValue}',type:3, name:'${searchItem.name}'};//放当前页面表单元素配置的变量
- </script>
- </ss:equal>
- </div>
- </ss:equal>
- <%--文本--%>
- <ss:notEqual val='${searchItem.type}' valList='3,11'> <%-- 改 equal:val1="false" val2='${searchItem.type == "time"}'。Lin --%>
- <%--<input name='${searchItem.name}' placeholder="${searchItem.desc}" type='text'
- value='<ss:txt val='${searchItemValue}'/>'/>
- <input type="hidden" ssType="and" ssName="${searchItem.name}"/>--%>
- <%--<script>wd.edit.addClearTextButton("${searchItem.name}");</script>--%>
- <ss-search-input
- name="${searchItem.name}"
- placeholder="${searchItem.desc}"
- v-model="${searchItem.name}"
- width="100px"
- >
- </ss-search-input>
- <script>
- //日期类型(如:出生日期)
- window.SS.dom.formElemConfig.${searchItem.name}={desc:'${searchItem.desc}',value:'${searchItemValue}',type:31, name:'${searchItem.name}'};//放当前页面表单元素配置的变量
- </script>
- </ss:notEqual>
- </ss:equal>
- </ss:rpt>
- <%-- 再去掉 -- 只支持一行。Lin
- </ss:rpt>
- --%>
- <ss:rpt name='cadcadingName' id='item'><%-- 级联菜单,还不知道怎么出来的 --%>
- <ss:ccp name='${item}'/>
- </ss:rpt>
- <ss:equal val='${hasKeyWord}' val2='true'>
- <%--<input name="ssKeyword" value="${ssKeyword}" type="text" placeholder="关键词"/>
- <script>wd.edit.addClearTextButton("ssKeyword");</script>--%>
- <ss-search-input
- name="ssKeyword"
- placeholder="关键词"
- v-model="ssKeyword"
- width="100px"
- >
- </ss-search-input>
- <script>
- //关键词
- window.SS.dom.formElemConfig.ssKeyword={value:'${ssKeyword}',name:"ssKeyword",desc:"关键词",type:31};//放当前页面表单元素配置的变量
- </script>
- </ss:equal>
- <ss-search-button
- text="所有"
- icon-class="nav-icon-search"
- :opt="searchButtonConfig"
- :check-id="searchButtonConfigCheckId"
- ></ss-search-button>
- <%--<input type="submit" name="ssSearch" value="搜索" class="content-invertButton"/>--%>
- <%--跨对象搜索隐藏全文按钮--%>
- <ss:equal val='${isMultipleObject}' val2='false'>
- <%-- "全文" 按钮,"button" 改为 "hidden"。
- 原来的会加上 style="display: none;",不知在哪加的???Lin
- objList.ss.jsp 里,原来就有 type="hidden"
- --%>
- <input type="hidden" ssType="fts" ssName="fts" value="全文"/> <%-- wdType="isFulltext" wdName="isFulltext"。Lin --%>
- </ss:equal>
- <%--管理按钮start--%>
- <script>
- <%-- 根按钮(管理按钮) --%>
- window.SS.dom.btnElemConfig = window.SS.dom.btnElemConfig || {};
- </script>
- <ss:rpt name='buttonList' id='button'>
- <ss:equal val='${dataType}' valList='normal,update,change,bdplay'> <%-- 增加,查看时隐去管理按钮。原来会去掉管理按钮,不知在哪去掉的???Lin --%>
- <ss:auth serv='${button.service}'>
- <ss:equal val='${empty button.pluginList}' val2='true'>
- <%--<input type="button" name="${button.name}" value="${button.buttonName}" class="content-button"
- 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}"});'/>--%>
-
- <script>
- function ${button.id}handleClick() {
- 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}"
- });
- }
- window.SS.dom.btnElemConfig.${button.id}={
- desc:"${button.buttonName}",
- id:"${button.id}",
- dropOptions:[],
- onclick: () => {
- wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='${button.service}' dest='${button.dest}' parm='${button.param}'/>",title:"${button.title}",width:"${button.width}",height:"${button.height}",minHeight:"${button.minHeight}",maxHeight:"${button.maxHeight+100}",showTitle:"${button.showTitle}"});
- }
- };
- </script>
- <ss-search-button
- text="${button.buttonName}"
- icon-class="nav-icon-add"
- :opt="[]"
- :check-id="0"
- onclick="${button.id}handleClick()"
- ></ss-search-button>
- </ss:equal>
- <ss:equal val='${empty button.pluginList}' val2='false'>
- <ss:rpt name='${button.pluginList}' id='plugin'>
- <%--<span style="display:none;" class="${button.id}children" value="${plugin.plugin.desc}"
- 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}"});'>
- </span>
- </ss:rpt>
- <input type="button" id="${button.id}" name="${button.name}" value="${button.buttonName}" class="content-button" onclick='void(0)'/>
- <script>wd.display.attachButton("${button.id}","${button.id}children",null,false,true)</script>
- --%>
- <%-- window.SS.dom.btnElemConfig.${button.id}.onclick --%>
- <%-- :opt改为取vue.data中的变量,而不取window.ss.dom.btnElemConfig(因为取不到),onclick改为:onclick xu(20251209) --%>
- <ss-search-button
- text="${button.buttonName}"
- icon-class="nav-icon-add"
- :opt="btnElemConfig.${button.id}.dropOptions"
- check-id="${management}"
- onclick="${button.id}handleClick()"
- ></ss-search-button>
- <script><%-- 新UI生成按钮下拉菜单 --%>
- function ${button.id}handleClick() {
- 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}"});
- }
- window.SS.dom.btnElemConfig.${button.id}={id:"${button.id}",dropOptions:[],
- 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}"});
- }
- };
- <%-- 循环生成按钮数组 --%>
- <ss:rpt name='${button.pluginList}' id='plugin'>
- window.SS.dom.btnElemConfig.${button.id}.dropOptions.push(
- {
- desc:'${plugin.plugin.desc}',<%-- 按钮名 --%>
- callback: function(){
- 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}"});
- }
- }
- );
- </ss:rpt>
- </script>
- <%-- 新UI end Ben --%>
- </ss:rpt>
- </ss:equal>
- </ss:auth>
- </ss:equal>
- </ss:rpt>
- <%--管理按钮end--%>
- <%--</div>--%>
- <%--管理类别start--%>
- <%-- <ss:equal val='${dataType}' valList='normal,update,change,bdplay'>--%>
- <%-- <ss:equal val='${"1"==isReady && !isMultipleObject && isTopObject}' val2='true'>--%>
- <%-- <div class="hLine" style="height: 48px;margin: 0px 17px 0px 11px;padding-left: 14px;padding-top:11px;box-sizing: border-box;">--%>
- <%-- <ul style="list-style: none;display: inline-block;">--%>
- <%--<%– 再改,management(String) 为 scopeType(int) -- 0 为未指定,99 为所有(原为 "0")。Lin--%>
- <%-- <li wdType="manage" wdVal="0">所有</li> –%>--%>
- <%-- <li ssType="searchScope" ssVal=99>所有</li>--%>
- <%-- <%– <li wdType="manage" wdVal="2">管理</li>–%>--%>
- <%--<%– 再改,management(String) 为 scopeType(int) -- 0 为未指定,99 为所有(原为 "0")。Lin--%>
- <%-- <li wdType="manage" wdVal="1">创建</li> –%>--%>
- <%-- <li ssType="searchScope" ssVal=1>创建</li>--%>
- <%-- <%–<li wdType="manage" wdVal="3">已办</li>–%>--%>
- <%--<%– 再改,management(String) 为 scopeType(int) -- 0 为未指定,99 为所有(原为 "0")。Lin--%>
- <%-- <li wdType="manage" wdVal="55">停用</li> –%>--%>
- <%-- <li ssType="searchScope" ssVal=55>停用</li>--%>
- <%-- </ul>--%>
- <%-- </div>--%>
- <%-- </ss:equal>--%>
- <%-- </ss:equal>--%>
- <%--管理类别end--%>
- <%--翻页--%>
- <%-- <%@include file="/ss/clip/paging.jsp"%> --%>
- </div>
- </div>
- <%--搜索条件end--%>
- <%--个人统计表start${!isMultipleObject}--%>
- <ss:equal val='${"1"!=isReady && !isMultipleObject}' val2='true'>
- <%-- 再改为 WebC.REQ_objName,避免与数据表里的 对象名 字段重名。用到再确认。Lin
- 传到 objList.ss.jsp 的是 ${ssObjName},传给 addPstat 的是 dxm(统计指标.对象名、个人统计.对象名)
- <input name="addgrtjUrl" type="hidden" value="<serv@ss name='add_grtj' parm='{dxm:"${dxm}"}'/>"/> --%>
- <input name="addgrtjUrl" type="hidden" value="<ss:serv name='addPcht' parm='{"wdConfirmationCaptchaService":"0","dxm":"${ssObjName}"}'/>"/>
- <input name="grtjSizeUrl" type="hidden"
- value="<ss:serv name='savePstatSize' parm='{"wdConfirmationCaptchaService":"0","grtjSize":"ssVal{grtjSize}"}'/>"/> <%-- name='save_grtjSize'。Lin --%>
- <input name="getgrtjJsonUrl" type="hidden" value="<ss:serv name='getgrtjJson' parm='{"wdConfirmationCaptchaService":"0"}'/>"/>
- <div class="graph scrollbar" style="padding-right: 16px;">
- <ss:rpt name='${grtjList}' id='item'>
- <div class="graph-list" grtjid="${item.grtjid}" style="width:${item.kd};height:${item.gd};">
- <div class="graph-list-body" style="height: 100%;">${item.mc}</div>
- <span class="graph-list-mask"></span>
- <span class="graph-list-resize"></span>
- <span class="vLine" style="height: 40px;width: 1px;position: absolute;right: 70px;top: 0px"></span>
- <span class="hLine-highlight" style="width: 100%;height: 0px;position: absolute;top: 40px;left: 0px;"></span>
- <span class="icon-set" style="position: absolute;right: 0px;top: 0px;width: 70px;height: 40px;"
- <%-- 再改为 WebC.REQ_objName,避免与数据表里的 对象名 字段重名。用到再确认。Lin
- onclick='<serv@ss dlg="true" name="getZbInfo" dest="grtj_sz" parm="{grtjid:"${item.grtjid}",dxm:"${dxm}"}"/>'> --%>
- 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});'>
- </span>
- </div>
- </ss:rpt>
- <div>
- <%--<div class="graphButton button icon-add" style="height: 60px;line-height: 82px;float: right;margin-right: 0px;margin-top: 0px;">增加</div>
- <input name="initTj" onclick='@service{name:"initTj",dest:"sys_info",show:"wdDialog"}@' value="初始化" type="button" />--%>
- </div>
- </div>
- </ss:equal>
- <%--个人统计表end--%>
- <div style="clear: both;"></div>
- <script type="text/javascript" src="/ss/env/env_search.js"></script>
- <%--搜索结果start--%>
- <%--<div class="longCardList-div" style="box-sizing: border-box;" ssFith="true">
- <table class="scrollbar" style="max-height: 100%;width: 100%;">
- <tbody style="width: 100%;padding: 0px 16px 0px 11px;box-sizing: border-box;" ssFith='{list:true,rowHeight:35}'>--%><%-- 去掉 id="wdTbody0",好像没用到。Lin --%>
- <%-- <ss:rpt name='bgmbList' id='item'>--%>
- <%-- <tr>--%>
- <%-- <td class="hLine"--%>
- <%-- 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});'>--%>
- <%-- <div class="longCardList-info bb" style="font-size: 0px;display: inline-block;float: left;">--%>
- <%-- <span class="longCardList-highlight" style="margin-bottom: 3px;">--%>
- <%-- <a>${item.mc}</a>--%>
- <%-- </span>--%>
- <%-- <div id="${item.bgmbid}" class="longCardList-dim growHeightDiv" width='750' height='45px'>--%>
- <%-- <ss:txt val='${item.ms}'/>--%>
- <%-- </div>--%>
- <%-- <script type="text/javascript" charset="utf-8" src="/ss/js/growHeight.js"></script>--%>
- <%--<script type="text/javascript" charset="utf-8" src="/ss/js/display.js"></script>--%>
- <%--<script type="text/javascript" charset="utf-8" >--%>
- <%--wd.display.initGrowHigh('${item.bgmbid}','80px',{},null,false);--%>
- <%--</script>--%>
- <%-- <div id="${item.bgmbid}${index}" class="longCardList" width='750' height='18px'>--%>
- <%-- <ss:txt val='${item.lmms}'/>--%>
- <%-- </div>--%>
- <%-- <script type="text/javascript" charset="utf-8" src="/ss/js/growHeight.js"></script>--%>
- <%--<script type="text/javascript" charset="utf-8" src="/ss/js/display.js"></script>--%>
- <%--<script type="text/javascript" charset="utf-8" >--%>
- <%--wd.display.initGrowHigh('${item.bgmbid}${index}','80px',{},null,false);--%>
- <%--</script>--%>
- <%-- </div>--%>
- <%-- <a class="button icon-change"--%>
- <%-- 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});'>--%>
- <%-- 变动--%>
- <%-- </a>--%>
- <%-- </td>--%>
- <%-- </tr>--%>
- <%-- </ss:rpt>--%>
- <%-- 新UI初始化查询列表数据的JS --%>
- <script>
- <%-- 打印新UI相关json对象 --%>
- window.SS.dom.listConfig = window.SS.dom.listConfig || {};
- //二级对象 草稿箱
- window.SS.dom.listConfig.draftbox = [];
- <%-- 草稿箱start --%>
- <ss:rpt name='cgxList' id='item'>
- {
- let item = {};
- window.SS.dom.listConfig.draftbox.push(item);
- item.tags=[];<%-- item.tags如果值为空,则会vue组件初始化失败,把item.tags的初始化变为提到条件之外,变成一定会初始化 Ben --%>
- <%-- 查看事件 --%>
- <ss:equal val='${empty item.service.play}' val2='false'>
- item.onclick=function (){
- 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}"});
- };
- </ss:equal>
- <ss:equal val='${item.service.lbm==1 && not empty item.service.update}' val2='true'>
- item.onclick=function (){
- 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}"});
- };
- </ss:equal>
- <ss:equal val='${item.service.lbm==11 && not empty item.service.change}' val2='true'>
- item.onclick=function (){
- 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}"});
- };
- </ss:equal>
- <ss:equal val='${dataType}' valList='normal,change'>
- <ss:equal val='${item.service.lbm}' valList='51,55'>
- item.onclick=function (){
- 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});
- };
- </ss:equal>
- </ss:equal>
- <%-- 增加,审核时查看 基本情况变动。Start。Lin --%>
- <ss:equal val='${dataType}' val2='bdplay'>
- <ss:equal val='${item.service.lbm}' val2='11'>
- item.onclick=function (){
- 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});
- };
- </ss:equal>
- </ss:equal>
- <%-- 增加,审核时查看 基本情况变动。End。Lin --%>
- <%--图标--%>
- <ss:equal val='${item.service.lbm}' val2='1'>
- item.titlexxx="增加";
- item.icon="icon-add";
- </ss:equal>
- <ss:equal val='${item.service.lbm}' val2='11'>
- item.titlexxx="变动";
- item.icon="icon-change";
- </ss:equal>
- <ss:equal val='${item.service.lbm}' val2='51'>
- item.titlexxx="停用";
- item.icon="icon-disable";
- </ss:equal>
- <ss:equal val='${item.service.lbm}' val2='55'>
- item.titlexxx="启用";
- item.icon="icon-enable";
- </ss:equal>
- <%--缩略图--%>
- <ss:equal val='${empty item.thumbnail}' val2='false'>
- <ss:equal val='${item.service.state}' val2='0'>
- item.thumb="${sessionScope['ssUser'].skinDir}image/object/default-${item.ssObjName}.png";
- </ss:equal>
- <ss:notEqual val='${item.service.state}' val2='0'>
- item.thumb="<ss:serv name='dlByHttp' parm='{"wdConfirmationCaptchaService":"0","path":"${item.thumbnail.value}","type":"img"}'/>";
- </ss:notEqual>
- item.errorThumb='${sessionScope['ssUser'].skinDir}image/object/default.png';
- </ss:equal>
- <%--标题--%>
- <ss:equal val='${empty item.first}' val2='false'> <%-- 改 equal:val1="true" val2="${not empty item.first}"。Lin --%>
- <%--不带codebook--%>
- <ss:equal val='${empty item.first.field.cbName}' val2='true'>
- item.title='<ss:txt val='${item.first.value}' fmt='${item.first.field.fmt}'/>';
- </ss:equal>
- <%--带codebook--%>
- <ss:equal val='${empty item.first.field.cbName}' val2='false'>
- item.title='<ss:cbTrans cb='${item.first.field.cbName}' val='${item.first.value}'/>';
- </ss:equal>
- </ss:equal>
- <%--缺标题显示属性start--%>
- <ss:equal val='${empty item.first && not empty item.third}' val2='true'>
- <ss:rpt name='${item.third}' id='itemList'>
- <ss:rpt name='${itemList}' id='item2'>
- item.title='${item2.field.desc}:';
- <%--不带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='true'>
- item.title+='<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/> ';
- </ss:equal>
- <%--带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='false'>
- item.title+='<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/> ';
- </ss:equal>
- </ss:rpt>
- </ss:rpt>
- </ss:equal>
- <%--正文或摘要--%>
- <ss:equal val='${empty item.second}' val2='false'>
- item.summary='${item.second.value}';
- </ss:equal>
- <%-- 列表底部的对象属性(tags) --%>
- <ss:equal val='${empty item.first || empty item.third}' val2='false'>
- <%-- item.tags=[]; item.tags如果值为空,则会vue组件初始化失败,把item.tags的初始化变为提到条件之外,变成一定会初始化 Ben --%>
- <ss:rpt name='${item.third}' id='itemList'>
- <ss:rpt name='${itemList}' id='item2'>
- {
- let v;
- <%--不带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='true'>
- v='<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/>';
- </ss:equal>
- <%--带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='false'>
- v='<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/>';
- </ss:equal>
- item.tags.push({'${item2.field.desc}':v});
- }
- </ss:rpt>
- </ss:rpt>
- </ss:equal>
- <%-- 对象变动前后属性列表 --%>
- item.changeItems=[];
- <ss:rpt name='${item.forth}' id='item3'>
- item.changeItems.push({name:'${item3.name}',oldValue:'${item3.oldValue}',newValue:'${item3.newValue}',
- onclick:function (){
- <ss:equal val='${item3.field["type"]}' val2='8'> <%-- ="html" --%>
- 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});
- </ss:equal>
- <ss:equal val='${item3.field["type"]}' valList='5,6'> <%-- ="picture,photo" --%>
- 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});
- </ss:equal>
- <ss:equal val='${item3.field["type"]}' valList='2,3,1,9'> <%-- ="number,time,text,cms" --%>
- <%-- 原代码这里什么也没 --%>
- </ss:equal>
- }
- });
- </ss:rpt>
- <%-- 二级对象申请查看页面 --%>
- <ss:equal val='${dataType}' val2='bdplay'>
- item.buttons=[];
- item.buttons.push(
- {
- id:"${btn.btnID}",
- titlexxx:"申请查看",
- class: "cart-list-setting",
- title: "申请查看",
- onclick: () => {
- 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}"});
- }
- }
- );
- </ss:equal>
- }
- </ss:rpt>
- <%-- 草稿箱end --%>
- //在用或停用的对象列表
- window.SS.dom.listConfig.list = [];
- <ss:rpt name='objectList' id='item'><%-- 循环一次生成一行列表 start --%>
- {
- let item = {};//列表的其中一行的属性
- window.SS.dom.listConfig.list.push(item);
- item.tags=[];<%-- item.tags如果值为空,则会vue组件初始化失败,把item.tags的初始化变为提到条件之外,变成一定会初始化 Ben --%>
- <ss:equal val='${item.service.state}' val2='0'><%-- 借阅 --%>
- item.onclick=function(){
- 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});
- }
- </ss:equal>
- <ss:equal val='${empty item.service.play}' val2='false'><%-- 查看播放 --%>
- item.titlexxx='${item.service.play.title}';
- item.onclick=function(){
- 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}"});
- }
- </ss:equal>
- <%-- 缩略图 --%>
- <ss:equal val='${empty item.thumbnail}' val2='false'>
- <ss:equal val='${item.service.state}' val2='0'> <%-- 改 equal:val1="${item.service.state==0}" val2="true"。Lin --%>
- item.thumb="${sessionScope['ssUser'].skinDir}image/object/default-${item.ssObjName}.png";
- item.errorThumb='${sessionScope['ssUser'].skinDir}image/object/default.png';
- </ss:equal>
- <ss:notEqual val='${item.service.state}' val2='0'>
- item.thumb="<ss:serv name='dlByHttp' parm='{"wdConfirmationCaptchaService":"0","path":"${item.thumbnail.value}","type":"img"}'/>";
- </ss:notEqual>
- </ss:equal>
- <%-- 标题 --%>
- <ss:equal val='${empty item.first}' val2='false'>
- <%--不带codebook--%>
- <ss:equal val='${empty item.first.field.cbName}' val2='true'>
- item.title="<ss:txt val='${item.first.value}' fmt='${item.first.field.fmt}' miniDate='false'/>";
- </ss:equal>
- <%--带codebook--%>
- <ss:equal val='${empty item.first.field.cbName}' val2='false'>
- item.title="<ss:cbTrans cb='${item.first.field.cbName}' val='${item.first.value}'/>";
- </ss:equal>
- </ss:equal>
- <%--缺标题显示属性start--%>
- <ss:equal val='${empty item.first && not empty item.third}' val2='true'>
- item.title='';
- <ss:rpt name='${item.third}' id='itemList'>
- <ss:rpt name='${itemList}' id='item2'>
- item.title+='${item2.field.desc}:';<%--属性名--%>
- <%--不带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='true'>
- item.title+="<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/> ";
- </ss:equal>
- <%--带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='false'>
- item.title+="<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/> ";
- </ss:equal>
- </ss:rpt>
- </ss:rpt>
- </ss:equal>
- <%--缺标题显示属性end--%>
- <%-- 摘要 --%>
- <ss:equal val='${empty item.second}' val2='false'>
- item.summary = '${item.second.value}';
- </ss:equal>
- <%-- 列表底部的对象标签组 --%>
- <ss:equal val='${empty item.first || empty item.third}' val2='false'>
- <%--item.tags=[]; item.tags如果值为空,则会vue组件初始化失败,把item.tags的初始化变为提到条件之外,变成一定会初始化 Ben --%>
- <ss:rpt name='${item.third}' id='itemList'>
- <ss:rpt name='${itemList}' id='item2'>
- {
- let v;
- <%--不带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='true'>
- v='<ss:txt val='${item2.value}' fmt='${item2.field.fmt}' miniDate='false'/>';
- </ss:equal>
- <%--带codebook--%>
- <ss:equal val='${empty item2.field.cbName}' val2='false'>
- v='<ss:cbTrans cb='${item2.field.cbName}' val='${item2.value}'/>';
- </ss:equal>
- item.tags.push({${item2.field.desc}:v});
- }
- </ss:rpt>
- </ss:rpt>
- </ss:equal>
- <%--按钮--%>
- item.buttons=[];
- <ss:equal val='${empty item.service.change}' val2='false'>
- item.buttons.push(
- {
- id:"${'chg'==item.service.change.function.name?'change':'enable'}",
- titlexxx:"${item.service.change.title}",
- class: "cart-list-setting",
- title: "${'submRes'==item.service.change.function.name?'启用':'变动'}",
- onclick: () => {
- 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}"});
- }
- }
- );
- </ss:equal>
- <ss:equal val='${empty item.service.update}' val2='false'>
- item.buttons.push(
- {
- id:"update",
- titlexxx:"${item.service.update.title}",
- class: "cart-list-setting",
- title: "修改",
- onclick: () => {
- 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}"});
- }
- }
- );
- </ss:equal>
- }
- </ss:rpt><%-- 循环一次生成一行列表 end --%>
- </script>
-
- <%-- <div class="search-bar">--%>
- <%-- <ss-breadcrumb></ss-breadcrumb>--%>
- <%-- <div class="search-bar-contaienr">--%>
- <!-- <ss-objp
- v-model="csd"
- name="csd"
- :opt="[{ label: '广东', value: '1' },{ label: '广西', value: '2' }]"
- placeholder="省份"
- width="150"
- input="true"
- ></ss-objp> -->
- <!-- <ss-search-input
- name="keyword"
- placeholder="关键词"
- v-model="form.keyword"
- width="200px"
- >
- </ss-search-input> -->
- <%-- <template v-for="item in formElemConfig">
-
- <template v-if="item.type == systemType.SEARCHDATE">
- <ss-search-date-picker
- v-model="item.value"
- :name="item.name"
- type="date"
- :placeholder="item.desc"
- width="100px"
- ></ss-search-date-picker>
- </template>
- <template v-if="item.type == systemType.SEARCHTIME">
- <ss-search-date-picker
- v-model="item.value"
- :name="item.name"
- type="time"
- :placeholder="item.desc"
- width="100px"
- ></ss-search-date-picker>
- </template>
- <template v-if="item.type == systemType.SEARCHDATETIME">
- <ss-search-date-picker
- v-model="item.value"
- :name="item.name"
- type="datetime"
- :placeholder="item.desc"
- width="200px"
- ></ss-search-date-picker>
- </template>
- <template v-if="item.type == systemType.OBJPICKER">
- <ss-objp
- v-model="item.value"
- :name="item.name"
- :opt="item.options"
- :placeholder="item.desc"
- width="150"
- input="true"
- ></ss-objp>
- </template>
- <template v-if="item.type == systemType.SEARCHINPUT">
- <ss-search-input
- :name="item.name"
- :placeholder="item.desc"
- v-model="item.value"
- width="100px"
- >
- </ss-search-input>
- </template>
- </template>
-
- <ss-search-button
- text="所有"
- icon-class="nav-icon-search"
- :opt="searchButtonConfig"
- :check-id="searchButtonConfigCheckId"
- ></ss-search-button>
- <template v-for="item in btnElemConfig">
-
- <ss-search-button
- :text="item.desc"
- icon-class="nav-icon-add"
- :opt="item.dropOptions"
- :check-id="item.dropOptionsCheckId"
- :onclick="item.onclick"
- ></ss-search-button>
- </template> --%>
- <!-- <ss-search-button
- text="新增(无下拉)"
- icon-class="nav-icon-add"
- onclick="console.log('点击了')"
- ></ss-search-button> -->
- <%-- </div>--%>
- <%-- </div>--%>
- <div class="content-area item-content-area" style="gap: 20px">
- <template v-for="(item, i) in listConfig.draftbox" :key="i">
- <ss-folder-card v-if="item.children" :item="item"></ss-folder-card>
- <ss-list-card v-else :item="item"></ss-list-card>
- </template>
- <template v-for="(item, i) in listConfig.list" :key="i">
- <ss-folder-card v-if="item.children" :item="item"></ss-folder-card>
- <ss-list-card v-else :item="item"></ss-list-card>
- </template>
-
- <ss-page
- v-show="${ssPaging.rowNum}"
- :total="${ssPaging.rowNum==null?0:ssPaging.rowNum}"
- :size="${ssPaging.rowNumPer==null?wdRowCountPerPage:ssPaging.rowNumPer}"
- :page="${ssPaging.pageNo==null?1:ssPaging.pageNo}"
- @change="handlePageChange" >
- </ss-page>
-
- </div>
- <input name='wdComponentID' type='hidden' value='cobjList'/>
- </form>
- </div>
- <script>
- var all=$("tr[searchid][searchpid='']");
- for(var i=0;i<all.length;i++){
- var searchid=$(all[i]).attr("searchid");
- var child=$("tr[searchpid='"+searchid+"' ]").length;
- console.log(child);
- $("tr[searchid][searchpid='']").eq(i).find('.listnumber').html(child);
- }
- </script>
- <script type="text/javascript">var wdRecordValue='${wdRecordValue}';</script>
- <script type="text/javascript" src="/ss/js/wdRecord.js"></script>
- <script type="text/javascript">(function(){wdRecord("cobjList");})();</script>
- <script type="text/javascript" src="/ss/js/wdFitHeight.js"></script>
- <script type="text/javascript">initWdFitHeight(100)</script>
- <script type="text/javascript">initWdFitHeightFunction=function(){initWdFitHeight(100);};</script>
- <ss:equal val="${empty resizeComponent}" val2="false">
- <script>{var iframe=wd.display.getFrameOfWindow();
- if(iframe&&iframe.contentWindow==window)
- wd.display.resizeComponent(${resizeComponent.width}, ${resizeComponent.height}, ${empty resizeComponent.minHeight?'null':resizeComponent.minHeight}, ${empty resizeComponent.maxHeight?'null':resizeComponent.maxHeight});}</script>
- </ss:equal>
- <ss:help/>
- </body>
- <script type="text/javascript">
- try{wd.display.showMsgPopup('${msg}');
- }catch(err){console.error(err);}
- </script>
- <ss:equal val="${empty wdclosewindowparam}" val2="false">
- <script type="text/javascript">
- try{wd.display.setCloseWindowParam('${wdclosewindowparam}');
- }catch(err){console.error(err);}
- </script>
- </ss:equal>
- </html>
- <script type="module">
- <%-- 打印新UI相关json对象 --%>
- console.log('搜索条件:'+JSON.stringify(window.SS.dom.formElemConfig));
- console.log('按钮:'+JSON.stringify(window.SS.dom.btnElemConfig));
- console.log('列表:'+JSON.stringify(window.SS.dom.listConfig));
- function objectPickMockAjax(url) {
- return new Promise((resolve) => {
- setTimeout(() => {
- resolve([
- { label: '学校领导', value: '190'},
- { label: '业务部', value: '101241' },
- { label: '男', value: '1' },
- { label: '女', value: '2' }
- ]);
- }, 1000);
- });
- }
- // 定义 objPickerLoad 函数
- async function objPickerLoad(url, optionsName) {
- const result = await objectPickMockAjax(url);
- return result;
- }
-
- console.log(window.SS.dom.formElemConfig);
- const data = {
- systemType: window.SS.dom.TYPE,
- listConfig:window.SS.dom.listConfig,
- formElemConfig:window.SS.dom.formElemConfig,
- btnElemConfig:window.SS.dom.btnElemConfig,
-
- searchButtonConfigCheckId:'${management}',
- searchButtonConfig:[
- {
- id:"99",
- desc: "所有",
- callback: () => {
- $("[name=pageNo]").val('1');
- $("[name=management]").val('99');
- $("#myForm").submit();
-
- },
- },
- {
- id:"2",
- desc: "管理",
- callback: () => {
- $("[name=pageNo]").val('1');
- $("[name=management]").val('2');
- $("#myForm").submit();
- },
- },
- {
- id:"1",
- desc: "创建",
- callback: () => {
- $("[name=pageNo]").val('1');
- $("[name=management]").val('1');
- $("#myForm").submit();
- },
- },
- {
- id:"3",
- desc: "已办",
- callback: () => {
- $("[name=pageNo]").val('1');
- $("[name=management]").val('3');
- $("#myForm").submit();
- },
- },
- {
- id:"55",
- desc: "停用",
- callback: () => {
- $("[name=pageNo]").val('1');
- $("[name=management]").val('55');
- $("#myForm").submit();
- },
- },
- ],
- }
- if (window.SS.dom.formElemConfig) {
- Object.entries(window.SS.dom.formElemConfig).forEach(([key, config]) => {
- data[key] = config.value;
- // 处理 objPicker
- if (config.type === window.SS.dom.TYPE.OBJPICKER) {
- data[key + "ObjPicker"] = true;
- data[key + "Option"] = [];
- data[key + "Url"] = config.optUrl;
- }
- })
-
- }
- console.log('data:'+JSON.stringify(data));
- SS.ready(function () {
- try{
- window.ss.dom.initializeFormApp({
- el: "#app",
- data(){
- return data;
- },
- methods: {
- handlePageChange({pageNo, rowNumPer, rowNum}) {
- // 更新隐藏表单值
- document.getElementsByName('pageNo')[0].value = pageNo;
- document.getElementsByName('rowNumPer')[0].value = rowNumPer;
- document.getElementsByName('rowNum')[0].value = rowNum;
- // 提交表单
- document.getElementById('myForm').submit();
- }
- },
- mounted(){
- const self = this;
- // 在这里可以使用 Vue 实例
- Object.entries(this.$data).forEach(([key, value]) => {
- // 处理 objPicker
- if (key.includes('ObjPicker')) {
- const originalKey = key.replace('ObjPicker', '');
- if (value) {
- objPickerLoad(value, key).then(result => {
- if(self.formElemConfig[originalKey]) {
- self.formElemConfig[originalKey].name = originalKey;
- self.formElemConfig[originalKey].options = result;
- }
- });
- }
- }
- }
- );
- }
-
- });
- }
- catch(e){
- console.log("cobjList error:",e)
- }
- });
- tokenCleanser("<ss:serv name='ss.clearPageToken'/>", {tokenList:"<%= pageContext.getAttribute(ss.page.PageC.PAGE_tokenList)%>"});
- </script>
|