Commit ace1bbc2 by liuyang

2024-09-23 页数最大调整为500,列表显示版本号、最后修改时间,表格列支持排序,增加预览功能,查询条件增加修改时间

parent 3eab31b3
......@@ -66,6 +66,9 @@
<isNotEmpty prepend=" AND " property="operStatus">
OPER_STATUS = #operStatus#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
LEFT(UPDATED_TIME,8) = replace(#updatedTime#,'-','')
</isNotEmpty>
</sql>
<sql id="customCondition">
......
......@@ -401,7 +401,8 @@ $(function () {
IPLATUI.EFGrid = {
"result": {
pageable: {
pageSize: 20
pageSize: 20,
pageSizes: [20, 50, 100, 200, 500],
},
loadComplete: function (grid) {
......@@ -474,6 +475,8 @@ $(function () {
$("#CHANGE_RECORD").on("click", changeResord);
// 复制附件
$("#COPY_FILE").on("click", copyFile);
// 预览
$("#PREVIEW").on("click", preview);
},
onDelete: function (e) {
// 阻止默认请求,使用自定义删除
......@@ -492,6 +495,11 @@ $(function () {
+ 'onclick="changeFile(\'' + item.docId + '\',\''+item.bizId+'\')" target="_blank">附件变更</a>';
return template;
}
}, {
field: "docVersion",
template: function (model) {
return "v" + model.docVersion;
}
}
],
},
......@@ -655,7 +663,7 @@ const selectTreeNode = (tree, treeOrgId) => {
* @param nodeData
*/
let setTreeNodeValue = function (nodeData) {
IPLATUI.EFTree.categoryTree.selectTreeNode.fileId = nodeData.label;
IPLATUI.EFTree.categoryTree.selectTreeNode.fileId = nodeData.id;
IPLATUI.EFTree.categoryTree.selectTreeNode.parentId = nodeData.parentId;
IPLATUI.EFTree.categoryTree.selectTreeNode.fileName = nodeData.text;
IPLATUI.EFTree.categoryTree.selectTreeNode.companyCode = nodeData.companyCode;
......@@ -907,3 +915,12 @@ function saveFunc() {
}
})
}
/**
* 预览
*/
let preview = function () {
let fileId = IPLATUI.EFTree.categoryTree.selectTreeNode.fileId;
let url = "HGWD002A?inqu_status-0-fileId=" + fileId;
window.open(url, '_blank');
}
\ No newline at end of file
......@@ -62,16 +62,19 @@
<EF:EFInput cname="登录用户" ename="userId" blockId="inqu_status" row="0" colWidth="3" value="${loginName}" type="hidden"/>
<EF:EFInput cname="业务类型" ename="bizType" blockId="inqu_status" row="0" type="hidden" value="WD"/>
<EF:EFInput cname="文件名称" ename="docName" blockId="inqu_status" row="0" colWidth="3" />
<EF:EFDatePicker blockId="inqu_status" row="0" ename="updatedTime" cname="修改时间" role="date"
format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息" fitHeight="true">
<EF:EFGrid blockId="result" autoDraw="no" personal="true" serviceName="HGWD099" queryMethod="query"
<EF:EFGrid blockId="result" autoDraw="no" personal="true" sort="all" serviceName="HGWD099" queryMethod="query"
deleteMethod="delete">
<EF:EFColumn ename="id" cname="ID" hidden="true"/>
<EF:EFColumn ename="docId" cname="文件ID" enable="false" width="180" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" enable="false" width="140" align="center"/>
<EF:EFColumn ename="operator" cname="操作" enable="false" width="140" align="center" sort="false"/>
<EF:EFColumn ename="docName" cname="文件名称" enable="false" width="180"/>
<EF:EFColumn ename="docType" cname="文件类型" enable="false" width="110" align="center"/>
<EF:EFColumn ename="docVersion" cname="版本号" enable="false" width="90" align="center" sort="true"/>
<EF:EFComboColumn ename="status" cname="状态" enable="false" width="100" align="center"
defaultValue="0" hidden="false">
<EF:EFCodeOption codeName="hggp.hgwd.status"/>
......@@ -79,6 +82,9 @@
<EF:EFColumn ename="createdTime" cname="创建时间" enable="false" width="140" align="center"
parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss"/>
<EF:EFColumn ename="updatedTime" cname="修改时间" enable="false" width="140" align="center"
parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss"/>
</EF:EFGrid>
</EF:EFRegion>
</div>
......
......@@ -258,7 +258,7 @@ let showDownloadRecord = function (fileId, docId) {
* 预览
*/
let preview = function () {
let url = "HGWD002A?inqu_status-0-fileId" + $("#inqu_status-0-fileId").val();
let url = "HGWD002A?inqu_status-0-fileId=" + $("#inqu_status-0-fileId").val();
window.open(url, '_blank');
// let params = {
// "inqu_status-0-fileId": $("#inqu_status-0-fileId").val()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment