From afd5c86b170c2fc63896a2475097cf1654a3c889 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 27 十一月 2024 23:02:07 +0800 Subject: [PATCH] 业务类型树查询接口新增UIDataTree用来专门返回key:list形式的参数,修改多处Map<String,String>为Map<String,Object>。 --- Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue index b8ecc68..ab8905f 100644 --- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue +++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue @@ -270,6 +270,7 @@ const queryFields = !validatenull(this.currentDefineVO.queryColumns) ? this.currentDefineVO.queryColumns.map(item => item.field) : []; return this.currentDefineVO.cols[0].map(item => { const search = queryFields.includes(item.field); // 鍒ゆ柇 field 鏄惁鍦� queryColumns 閲� + item.type = this.columnType[item.fieldType] || item.fieldType; if (this.currentDefineVO.btmType == 'fileobject' && item.field == 'name') { //鏄枃浠� item.formatter = function (d) { @@ -280,13 +281,17 @@ if (typeof formatter == "string" && formatter != '') { formatter = eval("(" + formatter + ")"); } - item.type = this.columnType[item.fieldType] || item.fieldType; + if (['date', 'datetime', 'time'].includes(item.type)) { + item.valueFormat = item.dateFormate; + item.format = item.dateFormate; + } return { ...item, prop: item.field, label: item.title, search: search, - formatter: formatter + formatter: formatter, + overHidden: true }; }); }, @@ -311,7 +316,7 @@ if (Object.keys(this.paramVOS).length>0) { for (let j in this.paramVOS) { if (this.paramVOS[j] && this.paramVOS[j].constructor === Object) continue; - if (['type', 'context', 'content', "getdataurl", "getdatamethod", "url", "method", "uploadfileurl", "title", 'querytemplate', 'querytype', 'usesourcedata'].includes(j)) continue; + if (['type', 'context', 'content', "getdataurl", "getdatamethod", "url", "method", "uploadfileurl", "title", 'querytemplate', 'querytype', 'usesourcedata','component'].includes(j)) continue; sourceDataMap['sourceData["' + j + '"]'] = this.paramVOS[j] } } -- Gitblit v1.9.3