From 54a9e42aeba2c218676db0224288a436a2d42be0 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 20 三月 2024 17:41:38 +0800 Subject: [PATCH] UI上下文展示引擎 --- Source/ProjectWeb/src/views/base/UIContentArea.vue | 2 Source/ProjectWeb/src/App.vue | 9 Source/ProjectWeb/src/views/base/uiDefineVO.js | 682 -------------------------------------------------------- Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue | 4 4 files changed, 11 insertions(+), 686 deletions(-) diff --git a/Source/ProjectWeb/src/App.vue b/Source/ProjectWeb/src/App.vue index b32552c..9f548bf 100644 --- a/Source/ProjectWeb/src/App.vue +++ b/Source/ProjectWeb/src/App.vue @@ -50,7 +50,7 @@ } .UI-collapse{ box-sizing: border-box; - height: 100%; + height: calc(100% - 10px); } .UI-collapse > .el-collapse-item{ max-height: calc(100% - 60px); @@ -69,4 +69,11 @@ .UI-dynamic > .avue-crud{ height: 100%; } + +.el-form-item{ + margin-bottom: 15px; +} +.el-form-item--mini.el-form-item, .el-form-item--small.el-form-item{ + margin-bottom: 10px; +} </style> diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue index f90dbcd..bb99f2b 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue @@ -1,5 +1,5 @@ <template> - <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid" style="overflow: hidden"> + <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid"> <avue-crud v-model="form" :data="tableList" :option="option" @@ -653,7 +653,7 @@ handler(newval) { if(newval>50){ //鐖跺厓绱犻珮搴�-鎸夐挳楂樺害-鍒嗛〉楂樺害 - this.parentHeight=this.$el.clientHeight-this.$children[0].$children[1].$children[0].$el.clientHeight-this.$children[0].$children[2].$el.clientHeight; + this.parentHeight=this.$el.clientHeight-this.$children[0].$children[1].$children[0].$el.clientHeight-this.$children[0].$children[2].$el.clientHeight-5; console.log(this.parentHeight) } } diff --git a/Source/ProjectWeb/src/views/base/UIContentArea.vue b/Source/ProjectWeb/src/views/base/UIContentArea.vue index ad8c43a..20e49eb 100644 --- a/Source/ProjectWeb/src/views/base/UIContentArea.vue +++ b/Source/ProjectWeb/src/views/base/UIContentArea.vue @@ -1,5 +1,5 @@ <template> - <basic-container :cradStyle="cradStyle" cardBodyStyle="height:100%;box-sizing: border-box;"> + <basic-container :cradStyle="cradStyle" cardBodyStyle="height:100%;box-sizing: border-box;padding-bottom:5px;"> <el-tabs style="height: 100%;" class="UITabs" v-if="areasData.length>1" v-model="activeName" type="card" @tab-click="tabHandleClick"> <el-tab-pane style="height:100%;overflow: auto" v-for="(areaItem,index) in areasData" :key="areaItem.oid" :label="areaItem.name" :name="areasName+'-Tab-'+index"> <el-collapse class="UI-collapse" v-model="collapseActiveNames" v-if="areaItem.componentVOs.length>1"> diff --git a/Source/ProjectWeb/src/views/base/uiDefineVO.js b/Source/ProjectWeb/src/views/base/uiDefineVO.js index 23efe1c..f7d065e 100644 --- a/Source/ProjectWeb/src/views/base/uiDefineVO.js +++ b/Source/ProjectWeb/src/views/base/uiDefineVO.js @@ -1470,688 +1470,6 @@ "versionSeq": 0, "versionValue": null }, - { - "btmname": null, - "buttons": [ - { - "actionVO": { - "actionCls": "", - "actionUsedType": "business", - "bsUrl": "null", - "createTime": "2014-03-14 15:54:05.000", - "creator": "1", - "csClass": "plm.uif.actions.client.AddSaveAction", - "description": "鍒涘缓淇濆瓨鎸夐挳", - "id": "addsave", - "lastModifier": "1", - "lastModifyTime": "2014-03-14 15:54:05.000", - "licensors": null, - "name": "鍒涘缓淇濆瓨鎸夐挳", - "oid": "2AAFDEE1-B760-A0AD-6C2A-CB2C0C3407A3" - }, - "areaType": "tab", - "authorization": true, - "children": null, - "createTime": "2024-03-15 10:52:57.000", - "creator": "developer", - "csUrl": "plm.uif.actions.client.AddSaveAction", - "description": "", - "displayMode": "textandimage", - "hidden": false, - "iconPath": "", - "id": "addsave", - "lastModifier": "developer", - "lastModifyTime": "2024-03-15 10:52:57.000", - "name": "鏂板", - "oid": "A974C16B-4751-6365-8756-C11B74AA1C53", - "orderNum": 1, - "paramVOS": { - "type": "folder" - }, - "pkComponent": "0BA77BDF-7023-AE81-4EAC-7396C56FA7C9", - "pkParentOid": "", - "url": "null" - }, - { - "actionVO": { - "actionCls": "", - "actionUsedType": "business", - "bsUrl": "null", - "createTime": "2014-03-14 15:54:05.000", - "creator": "1", - "csClass": "plm.uif.actions.client.AddSaveAction", - "description": "鍒涘缓淇濆瓨鎸夐挳", - "id": "addsave", - "lastModifier": "1", - "lastModifyTime": "2014-03-14 15:54:05.000", - "licensors": null, - "name": "鍒涘缓淇濆瓨鎸夐挳", - "oid": "2AAFDEE1-B760-A0AD-6C2A-CB2C0C3407A3" - }, - "areaType": "tab", - "authorization": true, - "children": null, - "createTime": "2024-03-15 10:52:57.000", - "creator": "developer", - "csUrl": "plm.uif.actions.client.AddSaveAction", - "description": "", - "displayMode": "textandimage", - "hidden": false, - "iconPath": "", - "id": "addsave", - "lastModifier": "developer", - "lastModifyTime": "2024-03-15 10:52:57.000", - "name": "鏂板", - "oid": "A974C16B-4751-6365-8756-C11B74AA1C53", - "orderNum": 1, - "paramVOS": { - "type": "folder" - }, - "pkComponent": "0BA77BDF-7023-AE81-4EAC-7396C56FA7C9", - "pkParentOid": "", - "url": "null" - } - ], - "checkInBy": null, - "checkInTime": null, - "checkOutBy": null, - "checkOutTime": null, - "copyFromVersion": null, - "createTime": null, - "creator": null, - "customClass": null, - "data": null, - "description": "", - "extendAttr": "", - "firstR": null, - "firstV": null, - "formDefineVO": null, - "id": null, - "lastModifier": null, - "lastModifyTime": null, - "lastR": null, - "lastV": null, - "lcStatus": null, - "lcStatusText": null, - "lctid": null, - "name": "宸ヨ壓璇勫鏍�", - "nameOid": null, - "oid": "0BA77BDF-7023-AE81-4EAC-7396C56FA7C9", - "orderNum": 2, - "owner": null, - "pkLayout": "E28B0555-FAF3-4F59-0EE8-64A30A77C9CB", - "revisionOid": null, - "revisionRule": null, - "revisionSeq": 0, - "revisionValue": null, - "secretGrade": null, - "secretGradeText": null, - "tableDefineVO": null, - "treeDefineVO": { - "btmType": "folder", - "fieldSep": ",", - "linkType": "", - "loadType": "node", - "orientation": true, - "queryTemplateName": "cardtemplateflodertree", - "rootContent": "id", - "showImage": false, - "showLinkAbs": "affiliatedfolder,material", - "treeNodeExpression": "name" - }, - "treeTableDefineVO": null, - "ts": null, - "uiComponentType": "tree", - "uiComponentTypeText": "鏍�", - "uiParseClass": "", - "versionRule": null, - "versionSeq": 0, - "versionValue": null - }, - { - "btmname": null, - "buttons": [ - { - "actionVO": { - "actionCls": "", - "actionUsedType": "business", - "bsUrl": "BaseEditAction#doAction", - "createTime": "2013-11-09 10:32:41.000", - "creator": "eddieliu", - "csClass": "plm.uif.actions.client.EditAction", - "description": "淇敼涓氬姟瀵硅薄", - "id": "edit", - "lastModifier": "developer", - "lastModifyTime": "2013-11-09 10:32:41.000", - "licensors": null, - "name": "淇敼", - "oid": "F8534EFE-130B-0CB3-D477-2AC7B19B7DC4" - }, - "areaType": "tab", - "authorization": true, - "children": null, - "createTime": "2022-07-18 17:30:52.000", - "creator": "developer", - "csUrl": "plm.uif.actions.client.EditAction", - "description": "", - "displayMode": "textandimage", - "hidden": false, - "iconPath": "", - "id": "edit", - "lastModifier": "developer", - "lastModifyTime": "2022-07-18 17:30:52.000", - "name": "淇敼", - "oid": "43F34DC1-C229-359B-AED3-38CA9E7D1534", - "orderNum": 1, - "paramVOS": { - "owner": "true", - "context": "CreateAuditQuestionDocume", - "type": "document" - }, - "pkComponent": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", - "pkParentOid": "", - "url": "BaseEditAction#doAction" - }, - { - "actionVO": { - "actionCls": "", - "actionUsedType": "business", - "bsUrl": "", - "createTime": "2021-12-03 15:28:19.000", - "creator": "developer", - "csClass": "net=VCI.Plugin.631.Actions.dll", - "description": "鍒犻櫎宸ヨ壓闂", - "id": "deleteprocessquestion", - "lastModifier": "developer", - "lastModifyTime": "2021-12-03 15:28:19.000", - "licensors": null, - "name": "鍒犻櫎宸ヨ壓闂", - "oid": "FD73DF30-7269-8A85-1B62-B92435000280" - }, - "areaType": "tab", - "authorization": true, - "children": null, - "createTime": "2022-07-18 17:30:52.000", - "creator": "developer", - "csUrl": "net=VCI.Plugin.631.Actions.dll", - "description": "", - "displayMode": "textandimage", - "hidden": false, - "iconPath": "", - "id": "deleteprocessquestion", - "lastModifier": "developer", - "lastModifyTime": "2022-07-18 17:30:52.000", - "name": "鍒犻櫎", - "oid": "BE973D4A-CB99-10FC-3E31-F3010259F823", - "orderNum": 2, - "paramVOS": { - "owner": "true" - }, - "pkComponent": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", - "pkParentOid": "", - "url": "" - }, - { - "actionVO": { - "actionCls": "", - "actionUsedType": "business", - "bsUrl": "RefreshAction", - "createTime": "2014-10-16 13:07:56.000", - "creator": "developer", - "csClass": "", - "description": "鍒锋柊椤甸潰", - "id": "refresh", - "lastModifier": "developer", - "lastModifyTime": "2014-10-16 13:07:56.000", - "licensors": null, - "name": "鍒锋柊锛堥噸缃級", - "oid": "526E913C-231F-E4CF-D90D-AB968F8C8D45" - }, - "areaType": "tab", - "authorization": true, - "children": null, - "createTime": "2022-07-18 17:30:52.000", - "creator": "developer", - "csUrl": "", - "description": "", - "displayMode": "textandimage", - "hidden": false, - "iconPath": "", - "id": "refresh", - "lastModifier": "developer", - "lastModifyTime": "2022-07-18 17:30:52.000", - "name": "鍒锋柊", - "oid": "A860B3E6-8FA5-92AE-8D8A-A2AE5CC552F4", - "orderNum": 3, - "paramVOS": {}, - "pkComponent": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", - "pkParentOid": "", - "url": "RefreshAction" - } - ], - "checkInBy": null, - "checkInTime": null, - "checkOutBy": null, - "checkOutTime": null, - "copyFromVersion": null, - "createTime": null, - "creator": null, - "customClass": null, - "data": null, - "description": "璇勫闂鍒楄〃", - "extendAttr": "", - "firstR": null, - "firstV": null, - "formDefineVO": null, - "id": null, - "lastModifier": null, - "lastModifyTime": null, - "lastR": null, - "lastV": null, - "lcStatus": null, - "lcStatusText": null, - "lctid": null, - "name": "璇勫闂鍒楄〃", - "nameOid": null, - "oid": "E00C3C31-D27F-E3AC-6C2B-1882EE8B6FEE", - "orderNum": 1, - "owner": null, - "pkLayout": "90D6FE27-C15F-CEFF-3F5E-CB349F7954EE", - "revisionOid": null, - "revisionRule": null, - "revisionSeq": 0, - "revisionValue": null, - "secretGrade": null, - "secretGradeText": null, - "tableDefineVO": { - "btmType": "document", - "cols": [ - [ - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": "", - "editConfig": null, - "event": null, - "field": "code", - "fieldType": "text", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": null, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "缂栫爜", - "unresize": false, - "width": 100 - }, - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": "", - "editConfig": null, - "event": null, - "field": "description", - "fieldType": "textarea", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": null, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "璇勫闂", - "unresize": false, - "width": 200 - }, - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": "", - "editConfig": null, - "event": null, - "field": "creator_name,(,creator,)", - "fieldType": "text", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": null, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": "creator", - "style": null, - "templet": null, - "title": "鎻愬嚭浜�", - "unresize": false, - "width": 100 - }, - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": "yyyy-MM-dd HH:mm:ss", - "edit": "", - "editConfig": null, - "event": null, - "field": "createtime", - "fieldType": "text", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": null, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "鎻愬嚭鏃堕棿", - "unresize": false, - "width": 160 - } - ] - ], - "displayFolder": false, - "displayQueryArea": true, - "folderParentField": "", - "hasEditor": false, - "id": "CreateAuditQuestionDocumentTable", - "limits": null, - "linkTypeFlag": false, - "oid": "ACBAC577-7AA5-631C-7848-4FDB898A4F27", - "pageVO": null, - "queryColumns": [ - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": null, - "editConfig": null, - "event": null, - "field": "code", - "fieldType": null, - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": "code", - "referConfig": null, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "缂栫爜", - "unresize": false, - "width": null - } - ], - "queryTemplateName": "querybyprocessreviewoidandtype", - "seniorQueryColumns": [ - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": null, - "editConfig": null, - "event": null, - "field": "code", - "fieldType": "text", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": { - "backPath": null, - "displayTable": null, - "height": null, - "initSort": null, - "loadType": "all", - "mapFields": null, - "method": "GET", - "muti": false, - "onlyLeaf": false, - "paramForFormKey": null, - "parentFieldName": null, - "parentUsedField": null, - "parentValue": null, - "referContent": null, - "referType": null, - "remoteSort": false, - "tableConfig": null, - "textField": "name", - "type": null, - "url": null, - "useFormKey": null, - "valueField": "oid", - "where": null - }, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "缂栫爜", - "unresize": false, - "width": 100 - }, - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": null, - "editConfig": null, - "event": null, - "field": "description", - "fieldType": "textarea", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": { - "backPath": null, - "displayTable": null, - "height": null, - "initSort": null, - "loadType": "all", - "mapFields": null, - "method": "GET", - "muti": false, - "onlyLeaf": false, - "paramForFormKey": null, - "parentFieldName": null, - "parentUsedField": null, - "parentValue": null, - "referContent": null, - "referType": null, - "remoteSort": false, - "tableConfig": null, - "textField": "name", - "type": null, - "url": null, - "useFormKey": null, - "valueField": "oid", - "where": null - }, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "璇勫闂", - "unresize": false, - "width": 200 - }, - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": null, - "edit": null, - "editConfig": null, - "event": null, - "field": "creator_name,(,creator,)", - "fieldType": "text", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": { - "backPath": null, - "displayTable": null, - "height": null, - "initSort": null, - "loadType": "all", - "mapFields": null, - "method": "GET", - "muti": false, - "onlyLeaf": false, - "paramForFormKey": null, - "parentFieldName": null, - "parentUsedField": null, - "parentValue": null, - "referContent": null, - "referType": null, - "remoteSort": false, - "tableConfig": null, - "textField": "name", - "type": null, - "url": null, - "useFormKey": null, - "valueField": "oid", - "where": null - }, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": "creator", - "style": null, - "templet": null, - "title": "鎻愬嚭浜�", - "unresize": false, - "width": 100 - }, - { - "align": "left", - "colspan": 1, - "comboxKey": null, - "data": [], - "dateFormate": "yyyy-MM-dd HH:mm:ss", - "edit": null, - "editConfig": null, - "event": null, - "field": "createtime", - "fieldType": "text", - "fixed": null, - "hidden": false, - "minWidth": null, - "optionButtons": null, - "optionField": false, - "optionJsMap": null, - "queryField": null, - "referConfig": { - "backPath": null, - "displayTable": null, - "height": null, - "initSort": null, - "loadType": "all", - "mapFields": null, - "method": "GET", - "muti": false, - "onlyLeaf": false, - "paramForFormKey": null, - "parentFieldName": null, - "parentUsedField": null, - "parentValue": null, - "referContent": null, - "referType": null, - "remoteSort": false, - "tableConfig": null, - "textField": "name", - "type": null, - "url": null, - "useFormKey": null, - "valueField": "oid", - "where": null - }, - "rowspan": 1, - "showField": null, - "sort": false, - "sortField": null, - "style": null, - "templet": null, - "title": "鎻愬嚭鏃堕棿", - "unresize": false, - "width": 160 - } - ], - "whereSql": "" - }, - "treeDefineVO": null, - "treeTableDefineVO": null, - "ts": null, - "uiComponentType": "table", - "uiComponentTypeText": "琛ㄦ牸", - "uiParseClass": "", - "versionRule": null, - "versionSeq": 0, - "versionValue": null - }, ], "copyFromVersion": null, "createTime": "2022-02-08 10:40:50.000", -- Gitblit v1.9.3