From c00e9428ce1382f7580d18f44c3e1f4e9f2081df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com>
Date: Thu, 20 Jun 2024 17:36:12 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=AE=BE=E8=AE=A1?=
=?UTF-8?q?=E3=80=81=E5=8F=91=E5=B8=83-=E7=A9=BF=E6=A2=AD=E6=A1=86?=
=?UTF-8?q?=E9=87=8C=E5=87=BA=E7=8E=B0=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/VFormItem/index.vue | 34 ++++++++++++++++-
.../demo/form-design/core/formItemConfig.ts | 5 ++-
src/views/demo/onlineform/formCall/index.vue | 37 +++++++++++--------
.../onlineform/formModule/modalDesign.vue | 32 +++++++++++-----
4 files changed, 80 insertions(+), 28 deletions(-)
diff --git a/src/views/demo/form-design/components/VFormItem/index.vue b/src/views/demo/form-design/components/VFormItem/index.vue
index 4e4c1804..ebe14bfc 100644
--- a/src/views/demo/form-design/components/VFormItem/index.vue
+++ b/src/views/demo/form-design/components/VFormItem/index.vue
@@ -38,7 +38,7 @@
图斑组件
+
{
+ props.schema.componentProps.targetKeys = nextTargetKeys;
+ };
+ // 穿梭框-查找
+ const transferSearch = (dir: string, value: string) => {};
+ // 穿梭框-选中
+ const transferSelectChange = (sourceSelectedKeys: string[], targetSelectedKeys: string[]) => {
+ props.schema.componentProps.selectedKeys = sourceSelectedKeys.concat(targetSelectedKeys);
+ };
return {
...toRefs(state),
componentItem,
@@ -269,6 +298,9 @@
colPropsComputed,
selectUseOptions,
showSelectDictionaryList,
+ transferChange,
+ transferSearch,
+ transferSelectChange,
};
},
});
diff --git a/src/views/demo/form-design/core/formItemConfig.ts b/src/views/demo/form-design/core/formItemConfig.ts
index 8a02dd4b..90bd82ac 100644
--- a/src/views/demo/form-design/core/formItemConfig.ts
+++ b/src/views/demo/form-design/core/formItemConfig.ts
@@ -365,8 +365,7 @@ export const commonComponents: IVFormComponent[] = [
field: '',
colProps: { span: 24 },
componentProps: {
- render: (item) => item.title,
- titles: ['Source', 'Target'],
+ titles: ['', ''],
dataSource: [
{
key: 'key-1',
@@ -387,6 +386,8 @@ export const commonComponents: IVFormComponent[] = [
disabled: false,
},
],
+ targetKeys: [],
+ selectedKeys: [],
},
},
];
diff --git a/src/views/demo/onlineform/formCall/index.vue b/src/views/demo/onlineform/formCall/index.vue
index eac2b36d..ac40a132 100644
--- a/src/views/demo/onlineform/formCall/index.vue
+++ b/src/views/demo/onlineform/formCall/index.vue
@@ -810,24 +810,31 @@
}
if (columnObj.table.querys) {
columnObj.table.querys.forEach((item) => {
- if (item.options) {
+ // if (item.options) {
+ // searchFormSchema.push({
+ // field: item.key,
+ // component: item.type || 'Input',
+ // label: item.label,
+ // colProps: { span: 6 },
+ // componentProps: {
+ // options: item.options,
+ // },
+ // });
+ // } else {
+ // searchFormSchema.push({
+ // field: item.key,
+ // component: item.type || 'Input',
+ // label: item.label,
+ // colProps: { span: 6 },
+ // });
+ // }
+ if (['Transfer'].includes(item.type)) {
searchFormSchema.push({
field: item.key,
- component: item.type || 'Input',
+ component: item.type,
label: item.label,
- colProps: { span: 6 },
- componentProps: {
- options: item.options,
- },
- });
- } else {
- searchFormSchema.push({
- field: item.key,
- component: item.type || 'Input',
- label: item.label,
- colProps: { span: 6 },
- });
- }
+ colProps: { span: 12 },
+ componentProps: item.componentProps,
});
}
callColumns.forEach((item) => {
diff --git a/src/views/demo/onlineform/formModule/modalDesign.vue b/src/views/demo/onlineform/formModule/modalDesign.vue
index 04ad17f7..93979c1a 100644
--- a/src/views/demo/onlineform/formModule/modalDesign.vue
+++ b/src/views/demo/onlineform/formModule/modalDesign.vue
@@ -281,16 +281,28 @@
!['Upload', 'Uploadimg', 'Password', 'Timerange', 'Datetimerange'].includes(t.component),
)
.map((t) => {
- if (t.componentProps.options) {
- return {
- key: t.field,
- label: t.label,
- type: t.component,
- options: t.componentProps.options,
- };
- } else {
- return { key: t.field, label: t.label, type: t.component };
- }
+ // if (t.componentProps.options) {
+ // return {
+ // key: t.field,
+ // label: t.label,
+ // type: t.component,
+ // options: t.componentProps.options,
+ // componentProps: t.componentProps,
+ // };
+ // } else {
+ // return {
+ // key: t.field,
+ // label: t.label,
+ // type: t.component,
+ // componentProps: t.componentProps,
+ // };
+ // }
+ return {
+ key: t.field,
+ label: t.label,
+ type: t.component,
+ componentProps: t.componentProps,
+ };
});
// 常用按钮-树
From a7d2846604ffc082c1785466567a74fd2cbd2137 Mon Sep 17 00:00:00 2001
From: Zhufu <1176354795@qq.com>
Date: Fri, 21 Jun 2024 09:39:18 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/demo/onlineform/formCall/index.vue | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/views/demo/onlineform/formCall/index.vue b/src/views/demo/onlineform/formCall/index.vue
index ac40a132..9e4e06e8 100644
--- a/src/views/demo/onlineform/formCall/index.vue
+++ b/src/views/demo/onlineform/formCall/index.vue
@@ -835,8 +835,9 @@
label: item.label,
colProps: { span: 12 },
componentProps: item.componentProps,
- });
- }
+ });
+ }
+ })}
callColumns.forEach((item) => {
formObj.formInfo.schemas.forEach((val) => {
if (item.dataIndex == val.field && val.componentProps.options) {
From 51e2868d9bb02600e310be1aa375c45440e16863 Mon Sep 17 00:00:00 2001
From: Zhufu <1176354795@qq.com>
Date: Fri, 21 Jun 2024 15:20:24 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E3=80=90=E8=AF=A6=E6=83=85=E3=80=91guid?=
=?UTF-8?q?=E5=92=8C=E6=B2=A1=E6=95=B0=E6=8D=AE=E7=9A=84=E4=B8=8D=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=EF=BC=8C=E5=BC=B9=E6=A1=86=E8=AF=A6=E6=83=85=E5=9B=BA?=
=?UTF-8?q?=E5=AE=9A=E9=AB=98=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../formCall/InfoCallModal/index.vue | 60 +++++++++----------
src/views/demo/onlineform/formCall/index.vue | 4 +-
2 files changed, 33 insertions(+), 31 deletions(-)
diff --git a/src/views/demo/onlineform/formCall/InfoCallModal/index.vue b/src/views/demo/onlineform/formCall/InfoCallModal/index.vue
index 6274d2f2..b3797cd8 100644
--- a/src/views/demo/onlineform/formCall/InfoCallModal/index.vue
+++ b/src/views/demo/onlineform/formCall/InfoCallModal/index.vue
@@ -11,23 +11,21 @@
'word-break': 'break-all'
}">
-
-
- {{"(暂无)"}}
-
-
-
- {{"(暂无)"}}
-
-
- {{ item.infoShowValue}}
- {{"(暂无)"}}
-
+
+
+
+
+
+
+
+
+ {{ item.infoShowValue}}
+
+
@@ -43,17 +41,19 @@
'word-break': 'break-all'
}">
-
-
-
-
-
-
- {{ item.infoShowValue }}
+
+
+
+
+
+
+
+ {{ item.infoShowValue }}
+
@@ -113,7 +113,7 @@ onMounted(() => {
...childItem,
infoShowValue: getOptionLabel(childItem)
})
- }else{
+ }else if(childItem.component !== 'InputGuid'){
showList.value[tabIndex].children.push({
...childItem,
infoShowValue: props.data.infoUseMainTableData[childItem.field]
@@ -155,7 +155,7 @@ onMounted(() => {
key: child.field,
})
})
- }else{
+ }else if(item.component !== 'InputGuid'){
showList.value.push({
...item,
infoShowValue: props.data.infoUseMainTableData[item.field]
diff --git a/src/views/demo/onlineform/formCall/index.vue b/src/views/demo/onlineform/formCall/index.vue
index 9e4e06e8..d7a3ae9c 100644
--- a/src/views/demo/onlineform/formCall/index.vue
+++ b/src/views/demo/onlineform/formCall/index.vue
@@ -1042,6 +1042,8 @@
z-index: 999;
}
.content{
- padding: 30px;
+ padding: 30px;
+ height: 750px;
+ overflow: auto;
}
From 13a75ddb6455d26ebe9eb43293611a0fb9508ff6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com>
Date: Fri, 21 Jun 2024 17:25:36 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E8=B0=83=E7=94=A8-?=
=?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=88=97=E8=A1=A8=EF=BC=9A=E6=A0=91=E5=BD=A2?=
=?UTF-8?q?=E9=80=89=E6=8B=A9,=20=E7=BA=A7=E8=81=94=E9=80=89=E6=8B=A9,=20?=
=?UTF-8?q?=E5=A4=8D=E9=80=89=E6=A1=86-=E7=BB=84=E6=98=BE=E7=A4=BAlabel?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/demo/onlineform/formCall/index.vue | 157 +++++++++++++++----
1 file changed, 123 insertions(+), 34 deletions(-)
diff --git a/src/views/demo/onlineform/formCall/index.vue b/src/views/demo/onlineform/formCall/index.vue
index d7a3ae9c..d833a3a4 100644
--- a/src/views/demo/onlineform/formCall/index.vue
+++ b/src/views/demo/onlineform/formCall/index.vue
@@ -28,6 +28,11 @@
}}
+
+
+ {{ dataModification(column, record) }}
+
+