From 757333f6588fb375c1da4f51e62c8dd3246582ec Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Mon, 19 Aug 2024 13:51:27 +0800
Subject: [PATCH] =?UTF-8?q?HL-5421=20=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99?=
=?UTF-8?q?=E9=9A=94=E7=A6=BB=E7=94=B3=E8=AF=B7=E7=9A=84=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=B1=87=E6=80=BB?=
=?UTF-8?q?=E9=A1=B5=EF=BC=8C=E4=BB=A5=E4=BE=BF=E4=BA=8E=E5=BF=AB=E9=80=9F?=
=?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=B7=B2=E9=80=89=E6=8B=A9=E7=9A=84=E6=98=8E?=
=?UTF-8?q?=E7=BB=86=E5=BA=93=E5=AD=98=E7=9A=84=E6=B1=87=E6=80=BB=E6=95=B0?=
=?UTF-8?q?=E9=87=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BasicForm/src/BasicForm.vue | 81 +++++--
.../CollectionTable/src/CollectionTable.vue | 218 ++++++++++++++++++
2 files changed, 274 insertions(+), 25 deletions(-)
create mode 100644 src/components/CollectionTable/src/CollectionTable.vue
diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index 431b470fd..3390b5018 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -7,7 +7,7 @@
:vLoading="formLoading"
@updateFullscreen="updateFullscreen"
>
-
+
-
+
+
-
@@ -154,6 +166,7 @@ import TableForm from '@/components/TableForm/src/TableForm.vue'
import TableFormCountPlan from '@/components/TableFormCountPlan/src/TableFormCountPlan.vue'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { tableFormBlurVer, FormBlur, getListByBottonInput } from '@/api/wms/business/inputBlur'
+import CollectionTable from '@/components/CollectionTable/src/CollectionTable.vue'
import { isString } from 'min-dash'
const count = ref(0)
@@ -367,9 +380,23 @@ if (props.basicFormWidth) {
} else {
dialogWidth.value = props.isBusiness ? '60%' : '40%'
}
-const formHeight = ref('60vh')
+const formHeight = ref({
+ height:'60vh'
+})
+if(!props.tableAllSchemas){
+ formHeight.value = {
+ height:'auto'
+ }
+}
+const collectionRef = ref()
const updateFullscreen = (isFullscreen) => {
- formHeight.value = isFullscreen ? 'auto' : '60vh'
+ formHeight.value.height = isFullscreen ? 'auto' : '60vh'
+ nextTick(()=>{
+ tableFormRef.value?.reloadFullscreen(isFullscreen)
+ collectionRef.value?.reloadFullscreen(isFullscreen)
+
+ })
+
}
const dialogVisible = ref(false) // 弹窗的是否展示
@@ -384,8 +411,11 @@ const tableFormRules = ref(props.tableFormRules)
const route = useRoute() // 路由信息
const routeName = ref('')
const sureDisabled = ref(false)
+const tabSheet = ref('TableForm')
routeName.value = route.name
-
+const tabChange = (item) => {
+ tabSheet.value = item.prop
+}
// 列表-按钮
// const buttondata = [
// defaultButtons.mainListEditBtn(null), // 编辑
@@ -622,6 +652,7 @@ const open = async (
titleName?: any,
alltitleName?: any
) => {
+ tabSheet.value = "TableForm"
dialogVisible.value = true
if (alltitleName) {
dialogTitle.value = alltitleName
@@ -1059,26 +1090,26 @@ defineExpose({
padding: 10px;
width: calc(100% - 32px);
display: flex;
-}
-::v-deep(.el-table__body) {
- padding: 10px 0px;
-}
-::v-deep(.el-table--default .el-table__cell) {
- padding: 2px 0px;
- border: none;
-}
+ ::v-deep(.el-table__body) {
+ padding: 10px 0px;
+ }
+ ::v-deep(.el-table--default .el-table__cell) {
+ padding: 2px 0px;
+ border: none;
+ }
-::v-deep(.el-table td.el-table__cell .el-form-item__content) {
- display: flex !important;
- align-items: center !important;
- justify-content: center !important;
-}
-::v-deep(.el-table td.el-table__cell div) {
- overflow: visible;
-}
+ ::v-deep(.el-table td.el-table__cell .el-form-item__content) {
+ display: flex !important;
+ align-items: center !important;
+ justify-content: center !important;
+ }
+ ::v-deep(.el-table td.el-table__cell div) {
+ overflow: visible;
+ }
-::v-deep(.el-icon) {
- display: block;
+ ::v-deep(.el-icon) {
+ display: block;
+ }
}
button .button {
> div {
diff --git a/src/components/CollectionTable/src/CollectionTable.vue b/src/components/CollectionTable/src/CollectionTable.vue
new file mode 100644
index 000000000..05094429c
--- /dev/null
+++ b/src/components/CollectionTable/src/CollectionTable.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+ {{ getStatus(scope.row,headerItem.field) }}
+
+
+
+
+
+
+
\ No newline at end of file