diff --git a/src/components/DesignForm/tableListPage/index copy.vue b/src/components/DesignForm/tableListPage/index copy.vue
new file mode 100644
index 0000000..7a91c76
--- /dev/null
+++ b/src/components/DesignForm/tableListPage/index copy.vue
@@ -0,0 +1,2505 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 操作按钮区域
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.column.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ writeListTitle(scope.row, viewPage.list) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.column.label }}
+
+
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+ 启用
+ 已禁用
+ 已删除
+
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+ {{ judjeCascader(scope.row[scope.column.property], item.options) }}
+
+
+
+ {{ judjeRadio(scope.row[scope.column.property], item.options) }}
+
+
+
+
+
+
+ 启用
+
+ 禁用
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+ {{ scope.row[scope.column.property] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ {{ tablesData[tableKey].appName }}-{{ tablesData[tableKey].formName }}
+ |
+
+
+ |
+
+
+ | {{ item.key }} |
+ {{ item.value }} |
+
+
+
+
+
+
+
+
+ |
+ {{ tablesData[tableKey].appName }}-{{ tablesData[tableKey].formName }}-{{
+ tablesData[tableKey].dataTitle
+ }}
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/DesignForm/tableListPage/index.vue b/src/components/DesignForm/tableListPage/index.vue
index 7a91c76..c09b783 100644
--- a/src/components/DesignForm/tableListPage/index.vue
+++ b/src/components/DesignForm/tableListPage/index.vue
@@ -1618,7 +1618,7 @@ const diGuiJilian = (val: any, options: any[]) => {
@ 功能: 定义自定义表头
*/
const readerColumn = (column: any, isSun: int) => {
- console.log("定义自定义表头------------------->", column, isSun);
+
if (isSun != 1) {
let labelLong = column.label.length; // 表头label长度
if (column.label.length < 3) {
@@ -1631,25 +1631,66 @@ const readerColumn = (column: any, isSun: int) => {
}
};
const readerColumnSun = (column: any) => {
+ console.log("表头label长度------------------->", column.label,column.label.length);
let labelLong = 0; // 表头label长度
- if (column.children) {
- labelLong = column.children.length;
+ if (column.label.length) {
+ labelLong = column.label.length;
}
if (labelLong > 0) {
- let countLenght = 3;
- column.children.forEach((item: any) => {
- if (item.label.length < 3) {
- countLenght = countLenght + 15;
- } else {
- countLenght = countLenght + item.label.length * 15;
- }
- });
- console.log("表头label长度-->", countLenght);
- return countLenght;
- } else {
- return 80;
+ if(labelLong > 10 ){
+ return labelLong * 15;
+ }else{
+ return labelLong * 30;
+ }
+
+ }else{
+ return 100;
}
+
+ // if (column.children) {
+ // labelLong = column.children.length;
+ // }
+ // if (labelLong > 0) {
+ // let countLenght = 3;
+ // column.children.forEach((item: any) => {
+ // if (item.label.length < 3) {
+ // countLenght = countLenght + 15;
+ // } else {
+ // countLenght = countLenght + item.label.length * 15;
+ // }
+ // });
+ // console.log("表头label长度-->", countLenght);
+ // return countLenght;
+ // } else {
+ // return 80;
+ // }
};
+const tableChildren = (field:string,dataList:any) => {
+ // console.log("表头label长度-->", dataList);
+ // console.log("表头label长度-->", isObject(dataList));
+ let jieguo = ""
+ if(Array.isArray(dataList)){
+
+ dataList.forEach((item:any,key:string) => {
+
+ if(isObject(item)){
+
+ for (let key in item) {
+ // console.log("表头label长度-->", key==field);
+ if (field == key){
+ // console.log("表头label长度--结果>", item[key]);
+ // return item[key]
+ jieguo = item[key]
+ }
+ }
+ }
+ })
+ }
+ return jieguo
+}
+const isObject = (obj) => {
+ return typeof obj === "object";
+}
@@ -1893,6 +1934,8 @@ const readerColumnSun = (column: any) => {
config=""
width="60"
fixed
+ header-align="center"
+ align="center"
>
{{ scope.column.label }}
@@ -1905,6 +1948,7 @@ const readerColumnSun = (column: any) => {
:label="item.label"
config=""
width="200"
+ header-align="center"
align="center"
fixed="right"
>
@@ -2037,6 +2081,8 @@ const readerColumnSun = (column: any) => {
label="标题"
config=""
min-width="320"
+ header-align="center"
+ align="center"
>
{{ writeListTitle(scope.row, viewPage.list) }}
@@ -2047,27 +2093,16 @@ const readerColumnSun = (column: any) => {
:prop="item.field"
:label="item.label"
:width="readerColumnSun(item)"
+ header-align="center"
+ align="center"
>
-
-
-
-
+
+
+ {{ tableChildren(sunItem.field,scopeChilder.row[item.field]) }}
-
+
{
:label="item.label"
config=""
min-width="220"
+ header-align="center"
+ align="center"
>
{{ scope.column.label }}
diff --git a/src/views/sysworkflow/lowcodepage/appPage/appPageForm/dataBoard.vue b/src/views/sysworkflow/lowcodepage/appPage/appPageForm/dataBoard.vue
index e34c47a..d970d1c 100644
--- a/src/views/sysworkflow/lowcodepage/appPage/appPageForm/dataBoard.vue
+++ b/src/views/sysworkflow/lowcodepage/appPage/appPageForm/dataBoard.vue
@@ -61,6 +61,7 @@ const echartsInfo = reactive({
ysun: [],
xsun: [],
filter: [],
+ sunFilter: [],
timelength: 1,
search: {
state: false,
diff --git a/src/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/right.vue b/src/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/right.vue
index e416a34..82481a1 100644
--- a/src/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/right.vue
+++ b/src/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/right.vue
@@ -59,6 +59,90 @@ const controlData = computed(() => {
// console.log("注册自定义事件--------1--------->", store.controlAttr);
return store.controlAttr;
});
+
+//子表数据处理
+const weiduSunList = ref([])
+const duliangSunList = ref([])
+
+watch(
+ ()=>controlData.value.xsun,
+ (val:any[])=>{
+
+ if (Array.isArray(val) && val.length > 0){
+ let sunTableKey = []
+ val.forEach((item:any)=>{
+ if(!sunTableKey.includes(item.tableKey)){
+ sunTableKey.push(item.tableKey)
+ }
+ })
+ // console.log("子表数据处理----ysun--2--->",sunTableKey)
+ if(sunTableKey.length>0){
+ weiduSunList.value = []
+ sunTableKey.forEach((item:any)=>{
+ let list = []
+ val.forEach((valItem:any)=>{
+ if(item == valItem.tableKey){
+ list.push(valItem)
+ }
+ })
+ weiduSunList.value.push({
+ tableKey:item,
+ list:list
+ })
+ })
+ // console.log("子表数据处理----ysun--3--->",sunTableKey,weiduSunList.value)
+ }
+
+
+
+
+ }else{
+ // console.log("子表数据处理----xsun--3--->",Array.isArray(val),val.length)
+ weiduSunList.value = []
+ }
+ },
+ {
+ deep:true
+ }
+)
+
+watch(
+ ()=>controlData.value.ysun,
+ (val:any)=>{
+ // console.log("子表数据处理----ysun--1--->",val)
+ if (Array.isArray(val) && val.length > 0){
+ let sunTableKey = []
+ val.forEach((item:any)=>{
+ if(!sunTableKey.includes(item.tableKey)){
+ sunTableKey.push(item.tableKey)
+ }
+ })
+ // console.log("子表数据处理----ysun--2--->",sunTableKey)
+ if(sunTableKey.length>0){
+ duliangSunList.value = []
+ sunTableKey.forEach((item:any)=>{
+ let list = []
+ val.forEach((valItem:any)=>{
+ if(item == valItem.tableKey){
+ list.push(valItem)
+ }
+ })
+ duliangSunList.value.push({
+ tableKey:item,
+ list:list
+ })
+ })
+ // console.log("子表数据处理----ysun--3--->",sunTableKey,duliangSunList.value)
+ }
+ }else{
+ // console.log("子表数据处理----xsun--3--->",Array.isArray(val),val.length)
+ duliangSunList.value = []
+ }
+ },
+ {
+ deep:true
+ }
+)
/**
@ 作者: 秦东
@ 时间: 2025-06-27 15:01:25
@@ -227,6 +311,9 @@ const shuxingmh = (val: any) => {
>
未设置维度字段
+
+
+
{{ item.oldTitle }}
@@ -239,6 +326,21 @@ const shuxingmh = (val: any) => {
+
+
+
+
{{ item.title }}
+
+
+
+
+
+