Browse Source

修复子表内的联系地址数据不显示的BUG

lwx_v11
hreenshan112 1 year ago
parent
commit
9e9e1ea397
  1. 11
      src/components/DesignForm/public/form/childTable.vue
  2. 1
      src/components/DesignForm/public/form/formItem.vue
  3. 1
      src/components/DesignForm/tableListPage/formPageCont.vue

11
src/components/DesignForm/public/form/childTable.vue

@ -53,9 +53,9 @@ const addColumn = () => {
}
}
const getText = (text: any,val:any,name:any) => {
console.log("text===>",text)
console.log("name===>",name)
console.log("val===>",val)
// console.log("text===>",text)
// console.log("name===>",name)
// console.log("val===>",val)
if (typeof text === 'string') {
return text
} else {
@ -93,6 +93,7 @@ const timeToAry = (timestamp:number) => {
@ 功能: 将时间戳转换成字符串
*/
const timeToString = (timeVal:any,types:int) => {
// console.log("",timeVal,types)
let timeStr = ""
if(Array.isArray(timeVal)){
if(timeVal.length >= 2){
@ -169,7 +170,7 @@ const timeToString = (timeVal:any,types:int) => {
case "week": //
timeStr = getYearWeek(timeVal)
break;
case "timeCalss": //
case "timePicker": //
timeStr = `${hours}:${minutes}:${seconds}`;
break;
default:
@ -210,6 +211,8 @@ const timeToString = (timeVal:any,types:int) => {
</div>
<div v-else-if="item.type=='datePicker'" v-html="timeToString(scope.row[item.name],item.control.type)">
</div>
<div v-else-if="item.type=='timePicker'" v-html="timeToString(scope.row[item.name],item.type)">
</div>
<div v-else>{{ getText(scope.row[item.name],scope.row,item.name) }}</div>
</div>
<div v-else>

1
src/components/DesignForm/public/form/formItem.vue

@ -670,6 +670,7 @@ const judgeIsDisabled = (key:string) => {
@ 功能: 将时间戳转换成字符串
*/
const timeToString = (timeVal:any,types:int) => {
// console.log("",timeVal,types)
let timeStr = ""
if(Array.isArray(timeVal)){
if(timeVal.length >= 2){

1
src/components/DesignForm/tableListPage/formPageCont.vue

@ -417,6 +417,7 @@ const jsuanKuandu = () => {
</el-tabs>
<el-tabs v-if="item.sunData" type="border-card" style="margin-top:20px;">
<el-tab-pane v-for="(sonItem,sonIndex) in item.sunData" :label="sonIndex" :key="sonIndex">
<el-descriptions v-for="(sonVal,sonIndex) in sonItem" :key="sonIndex" border>
<el-descriptions-item v-for="(sonCentor,sonKey) in sonVal" :key="sonKey" width="150px" >
<template #label>

Loading…
Cancel
Save