diff --git a/src/api/calendar/DateClass.ts b/src/api/calendar/DateClass.ts index a755360..bce4ba2 100644 --- a/src/api/calendar/DateClass.ts +++ b/src/api/calendar/DateClass.ts @@ -29,7 +29,7 @@ class DateClass { : date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); } getHolidays(date: number[]) { - console.log(`${date[0]}${clockFactory(date[1])}${clockFactory(date[2])}`,"<==>",config.Holidays.indexOf(`${date[0]}${clockFactory(date[1])}${clockFactory(date[2])}`)) + // console.log(`${date[0]}${clockFactory(date[1])}${clockFactory(date[2])}`,"<==>",config.Holidays.indexOf(`${date[0]}${clockFactory(date[1])}${clockFactory(date[2])}`)) return ( config.Holidays.indexOf(`${date[0]}${clockFactory(date[1])}${clockFactory(date[2])}`) > -1 diff --git a/src/components/DesignForm/app/calendar/calendar1/calendarItem.vue b/src/components/DesignForm/app/calendar/calendar1/calendarItem.vue index c9ae8c6..e8e9572 100644 --- a/src/components/DesignForm/app/calendar/calendar1/calendarItem.vue +++ b/src/components/DesignForm/app/calendar/calendar1/calendarItem.vue @@ -65,20 +65,29 @@ const lookPageInfo = (val:any) => { @ 功能: 判断是否有标题 */ const writeListTitle = (val:any) => { + console.log("判断是否有标题--"+props.viewSetup.form.title+"-->",props.viewSetup.form) var titleAry = []; let firstWord = "" if(props.viewSetup.form && props.viewSetup.form.title){ if(props.viewSetup.form.title.length > 0){ props.viewSetup.form.title.forEach((item,index)=>{ // console.log("判断是否有标题--"+index+"-->",val[item]) - if(val[item]){ - titleAry.push(val[item]) - } + let titleInfo = item.split("|#|") + if(Array.isArray(titleInfo) && titleInfo.length > 1){ + titleAry.push(titleInfo[0]) + }else{ + if(val[item]){ + titleAry.push(val[item]) + } + } + }) } } + + if(titleAry.length > 0){ - return titleAry.join() + return titleAry.join("") }else{ let powerAry = ["id","creater_time","edit_time","masters_key","states","flow_id"]; for (let key in val) { diff --git a/src/components/DesignForm/app/calendar/calendar1/monthPage.vue b/src/components/DesignForm/app/calendar/calendar1/monthPage.vue index 6e4c2de..64d2345 100644 --- a/src/components/DesignForm/app/calendar/calendar1/monthPage.vue +++ b/src/components/DesignForm/app/calendar/calendar1/monthPage.vue @@ -106,7 +106,7 @@ const searchatMonthList = (val: any) => { console.log("获取每天数据条件", sendInfo); gainCalendarList(sendInfo) .then(({ data }) => { - // console.log("获取月份数据",data) + console.log("获取月份数据",data) TBody.value = data; }) .finally(() => { diff --git a/src/components/DesignForm/app/cardPage.vue b/src/components/DesignForm/app/cardPage.vue index ff9dcfb..cbbd3af 100644 --- a/src/components/DesignForm/app/cardPage.vue +++ b/src/components/DesignForm/app/cardPage.vue @@ -8,6 +8,8 @@ import type { ComponentSize } from 'element-plus' import { gainFormPageListCont } from '@/api/DesignForm/requestapi' import FormPageCont from '@/components/DesignForm/tableListPage/formPageCont.vue' +import LondIngImg from '@/assets/images/loading.gif' + const props = defineProps({ searchSend:{ type:Object, @@ -84,7 +86,11 @@ const cardInfoBox = computed(() => { cssStyle['width'] = (Math.round(24/props.viewSetup.form.ranks) - props.viewSetup.form.imgWidth) + "px"; return cssStyle }) +const pageSize = ref(props.searchSend.pagesize) onMounted(()=>{ + if(pageSize.value <= 30){ + pageSize.value = 30 + } lineRanks.value = Math.round(24/props.viewSetup.form.ranks) nextTick(()=>{ getCardList(props.searchSend) @@ -151,7 +157,7 @@ const imgSrcPath = (val:any) => { if(val[props.viewSetup.form.imgWork]){ return val[props.viewSetup.form.imgWork] } - return "" + return LondIngImg } /** @ 作者: 秦东 @@ -181,13 +187,18 @@ const cardInfo = (val:any,cla:string) => { if(props.viewSetup.form.title.length > 0){ props.viewSetup.form.title.forEach((item,index)=>{ // console.log("判断是否有标题--"+index+"-->",val[item]) - if(val[item]){ - titleAry.push(val[item]) + let titleInfo = item.split("|#|") + if(Array.isArray(titleInfo) && titleInfo.length > 1){ + titleAry.push(titleInfo[0]) + }else{ + if(val[item]){ + titleAry.push(val[item]) + } } }) } if(titleAry.length>0){ - return titleAry.join() + return titleAry.join("") }else{ let firstWord = "" let powerAry = ["id","creater_time","edit_time","masters_key","states","flow_id"]; @@ -208,8 +219,57 @@ const cardInfo = (val:any,cla:string) => { return val[props.viewSetup.form.titleWork] } }else if(cla=="content"){ - if(val[props.viewSetup.form.describe]){ - return val[props.viewSetup.form.describe] +console.log("判断是否有标题---->",props.columnsFilter) + + if(props.viewSetup.form.describe){ + var titleAry = []; + if(props.viewSetup.form.describe.length > 0){ + props.viewSetup.form.describe.forEach((item,index)=>{ + // console.log("判断是否有标题--"+index+"-->",val[item]) + let titleInfo = item.split("|#|") + if(Array.isArray(titleInfo) && titleInfo.length > 1){ + titleAry.push(titleInfo[0]) + }else{ + if(val[item]){ + if(Array.isArray(props.columnsFilter) && props.columnsFilter.length > 0){ + let mingCehgn = "" + props.columnsFilter.forEach((mItem:any) => { + if(mItem.field == item){ + if(mItem.label != ""){ + mingCehgn = mItem.label + ":" + val[item] + }else{ + mingCehgn = val[item] + } + + } + }) + titleAry.push(mingCehgn) + }else{ + titleAry.push(val[item]) + } + + } + } + }) + } + if(titleAry.length>0){ + return titleAry + return titleAry.join("") + }else{ + let firstWord = "" + let powerAry = ["id","creater_time","edit_time","masters_key","states","flow_id"]; + for (let key in val) { + if (val.hasOwnProperty(key)) { + if(!powerAry.includes(key)){ + if(val[key] != '' && val[key] != null){ + firstWord = val[key] + } + } + } + } + return firstWord + } + } } return "" @@ -246,9 +306,12 @@ const lookPageInfo = (val:any) => { :initial-index="4" fit="cover" /> -
+
{{ cardInfo(item,"title") }}
-
{{ cardInfo(item,"content") }}
+
+
{{ item }}
+ +
@@ -261,7 +324,7 @@ const lookPageInfo = (val:any) => {
{ display: flex; width: 100%; justify-content: flex-start; + padding: 0 5px; } .cardInfo{ padding-left: 5px; diff --git a/src/components/DesignForm/tableListPage/index.vue b/src/components/DesignForm/tableListPage/index.vue index 9cf2560..d73fcf9 100644 --- a/src/components/DesignForm/tableListPage/index.vue +++ b/src/components/DesignForm/tableListPage/index.vue @@ -1631,7 +1631,7 @@ const readerColumn = (column: any, isSun: int) => { } }; const readerColumnSun = (column: any) => { - console.log("表头label长度------------------->", column.label,column.label.length); + // console.log("表头label长度------------------->", column.label,column.label.length); let labelLong = 0; // 表头label长度 if (column.label.length) { labelLong = column.label.length; @@ -2228,7 +2228,7 @@ const isObject = (obj) => { :search-send="searchSend" :body-hight="265" :drawer-with="drawerWith" - :view-setup="viewPage.card" + :view-setup="viewPage.date" /> @@ -2455,7 +2455,7 @@ const isObject = (obj) => { v-model="asfShowDetailsFlag" title="关联表单详情查看" top="20px" - style="margin-top:70px,margin-left:270px" + style="margin-top:70px;margin-left:270px" >
diff --git a/src/views/sysworkflow/lowcodepage/appPage/appPageForm/openAppFormPage.vue b/src/views/sysworkflow/lowcodepage/appPage/appPageForm/openAppFormPage.vue index c8957e8..1475d35 100644 --- a/src/views/sysworkflow/lowcodepage/appPage/appPageForm/openAppFormPage.vue +++ b/src/views/sysworkflow/lowcodepage/appPage/appPageForm/openAppFormPage.vue @@ -640,7 +640,7 @@ defineExpose({ } } .suojing { - height: calc(100vh - 135px); + height: calc(100vh - 190px); } .demo-image__error { margin-top: 15px;