优化aitable

This commit is contained in:
aixianling
2023-01-09 09:36:10 +08:00
parent 275461a474
commit b576a61551
88 changed files with 203 additions and 246 deletions

View File

@@ -185,7 +185,7 @@
recordList: [],
colConfigs: [
{prop: 'createTime', label: '上报日期', align: 'center', dateFormat: 'YYYY-MM-DD'},
{prop: 'status', label: '健康状态', align: 'center', formart: v => v === '0' ? '异常' : '正常' }
{prop: 'status', label: '健康状态', align: 'center', format: v => v === '0' ? '异常' : '正常' }
],
tabList: ['基本信息', '每日上报', '异常处理']
}

View File

@@ -131,9 +131,9 @@
}, row.today === '0' ? '-' : (row.vaccine || 0 + '次'))
}
},
{ prop: 'healthCode', align: 'center', label: '健康码', formart: v => v ? this.dict.getLabel('epidemicHealthCode', v) : '-' },
{ prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v ? v.split(' ')[0] : '-' },
{ prop: 'checkResult', align: 'center', label: '检测结果', formart: v => v ? this.dict.getLabel('epidemicRecentTestResult', v) : '-' },
{ prop: 'healthCode', align: 'center', label: '健康码', format: v => v ? this.dict.getLabel('epidemicHealthCode', v) : '-' },
{ prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v ? v.split(' ')[0] : '-' },
{ prop: 'checkResult', align: 'center', label: '检测结果', format: v => v ? this.dict.getLabel('epidemicRecentTestResult', v) : '-' },
{
prop: 'status',
align: 'center',
@@ -146,7 +146,7 @@
}, row.today === '0' ? '-' : (row.status === '0' ? '异常' : '正常'))
}
},
{ prop: 'today', align: 'center', label: '今日上报', formart: v => v === '0' ? '未上报' : '已上报' },
{ prop: 'today', align: 'center', label: '今日上报', format: v => v === '0' ? '未上报' : '已上报' },
],
tableData: [],
total: 0,

View File

@@ -81,7 +81,7 @@ export default {
{prop: 'createTime', label: '上报时间', align: 'center'},
{prop: 'name', label: '上报居民', align: 'center'},
{prop: 'phone', label: '联系方式', align: 'center'},
{prop: 'eventStatus', label: '处理状态', align: 'center', formart: v => this.dict.getLabel('clapEventStatus', v)},
{prop: 'eventStatus', label: '处理状态', align: 'center', format: v => this.dict.getLabel('clapEventStatus', v)},
{prop: 'processTime', label: '处理时长', align: 'center'},
{slot: 'options'}
]

View File

@@ -78,19 +78,19 @@
colConfigs: [
{ prop: 'name', label: '姓名' },
{ prop: 'phone', align: 'center', label: '手机号码' },
{ prop: 'startTime', align: 'center', label: '出发时间', formart: v => v.substr(0, v.length - 3) },
{ prop: 'startTime', align: 'center', label: '出发时间', format: v => v.substr(0, v.length - 3) },
{
prop: 'startAreaName',
align: 'center',
label: '出发地区'
},
{ prop: 'arriveTime', align: 'center', label: '到达时间', formart: v => v.substr(0, v.length - 3) },
{ prop: 'arriveTime', align: 'center', label: '到达时间', format: v => v.substr(0, v.length - 3) },
{
prop: 'arriveAreaName',
align: 'center',
label: '到达地区'
},
{ prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v.split(' ')[0] },
{ prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v.split(' ')[0] },
{
prop: 'status',
align: 'center',
@@ -146,7 +146,7 @@
}).catch(() => {
this.loading = false
})
this.getTotalInfo()
},

View File

@@ -102,19 +102,19 @@
colConfigs: [
{ prop: 'name', label: '姓名' },
{ prop: 'phone', align: 'center', label: '手机号码' },
{ prop: 'startTime', align: 'center', label: '出发时间', formart: v => v.substr(0, v.length - 3) },
{ prop: 'startTime', align: 'center', label: '出发时间', format: v => v.substr(0, v.length - 3) },
{
prop: 'startAreaName',
align: 'center',
label: '出发地区'
},
{ prop: 'arriveTime', align: 'center', label: '到达时间', formart: v => v.substr(0, v.length - 3) },
{ prop: 'arriveTime', align: 'center', label: '到达时间', format: v => v.substr(0, v.length - 3) },
{
prop: 'arriveAreaName',
align: 'center',
label: '到达地区'
},
{ prop: 'checkTime', align: 'center', label: '核酸日期', formart: v => v.split(' ')[0] },
{ prop: 'checkTime', align: 'center', label: '核酸日期', format: v => v.split(' ')[0] },
{
prop: 'status',
align: 'center',

View File

@@ -77,7 +77,7 @@
{ prop: 'district', label: '区级', align: 'center' },
{ prop: 'town', label: '镇级', align: 'center' },
{ prop: 'village', label: '村级', align: 'center' },
{ prop: 'level', label: '等级', align: 'center', formart: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) },
{ prop: 'level', label: '等级', align: 'center', format: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) },
{ prop: 'createTime', label: '设置时间', align: 'center' },
{ prop: 'createUserName', label: '添加人', align: 'center' },
{ slot: 'options', label: '操作', align: 'center' }

View File

@@ -144,7 +144,7 @@
total: 0,
colConfigs: [
{ prop: 'name', label: '姓名', align: 'left' },
{ prop: 'gender', label: '性别', align: 'center', formart: v => this.dict.getLabel('sex', v) },
{ prop: 'gender', label: '性别', align: 'center', format: v => this.dict.getLabel('sex', v) },
{ prop: 'num1', label: '报名次数', align: 'center' },
{ prop: 'num2', label: '发布动态条数', align: 'center' }
],

View File

@@ -113,7 +113,7 @@
{prop: 'content', label: '发言内容', align: 'center'},
{prop: 'suport', label: '获赞次数', align: 'center'},
{prop: 'createTime', label: '发言时间', align: 'center'},
{prop: 'createUserId', label: '发言身份', align: 'center', formart: v => v === this.info.createUserId ? '话事人' : '居民'}
{prop: 'createUserId', label: '发言身份', align: 'center', format: v => v === this.info.createUserId ? '话事人' : '居民'}
],
type: '',
statistic: {},

View File

@@ -77,11 +77,11 @@
total: 10,
colConfigs: [
{ prop: 'content', label: '议事主题', align: 'left', width: '200px' },
{ prop: 'type', label: '议事类型', align: 'center', formart: v => this.dict.getLabel('discussType', v) },
{ prop: 'type', label: '议事类型', align: 'center', format: v => this.dict.getLabel('discussType', v) },
{ prop: 'createUserName', label: '话事人', align: 'center' },
{ prop: 'msgCountTotal', label: '观点数量', align: 'center', formart: v => v === 0 ? '-' : v },
{ prop: 'voteCount', label: '投票数量', align: 'center', formart: v => v === 0 ? '-' : v },
{ prop: 'status', label: '发布状态', align: 'center', formart: v => this.dict.getLabel('discussStatus', v) },
{ prop: 'msgCountTotal', label: '观点数量', align: 'center', format: v => v === 0 ? '-' : v },
{ prop: 'voteCount', label: '投票数量', align: 'center', format: v => v === 0 ? '-' : v },
{ prop: 'status', label: '发布状态', align: 'center', format: v => this.dict.getLabel('discussStatus', v) },
{ prop: 'createTime', label: '发布时间', align: 'center' },
{ slot: 'options', label: '操作', align: 'center' }
],

View File

@@ -81,9 +81,9 @@
{ type: 'selection' },
{ prop: 'name', label: '事主姓名' },
{ prop: 'phone', align: 'center', label: '联系电话' },
{ prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('marriageType', v) },
{ prop: 'modeType', align: 'center', label: '方式', formart: v => this.dict.getLabel('modeType', v) },
{ prop: 'personType', align: 'center', label: '人员性质', formart: v => this.dict.getLabel('marriagePersonType', v) },
{ prop: 'type', align: 'center', label: '类型', format: v => this.dict.getLabel('marriageType', v) },
{ prop: 'modeType', align: 'center', label: '方式', format: v => this.dict.getLabel('modeType', v) },
{ prop: 'personType', align: 'center', label: '人员性质', format: v => this.dict.getLabel('marriagePersonType', v) },
{ prop: 'createTime', align: 'center', label: '发布时间' }
],
ids: [],

View File

@@ -155,7 +155,7 @@ export default {
{
prop: "validRangeType",
label: "有效范围",
formart: (v) => (v == 0 ? "全局" : "指定网格"),
format: (v) => (v == 0 ? "全局" : "指定网格"),
},
{
prop: "status",

View File

@@ -114,8 +114,8 @@
{ prop: 'residentName', label: '申请人' },
{ prop: 'residentPhone', align: 'center', label: '联系电话' },
{ prop: 'createTime', align: 'center', label: '申请时间' },
{ prop: 'applyIntegralType', align: 'center', label: '积分类型', formart: v => this.dict.getLabel('atWillReportType', v) },
{ prop: 'auditStatus', align: 'center', label: '状态', formart: v => v ? this.dict.getLabel('auditStatus', v) : '-' },
{ prop: 'applyIntegralType', align: 'center', label: '积分类型', format: v => this.dict.getLabel('atWillReportType', v) },
{ prop: 'auditStatus', align: 'center', label: '状态', format: v => v ? this.dict.getLabel('auditStatus', v) : '-' },
{ prop: 'auditUserName', align: 'center', label: '审批人' },
{ prop: 'auditTime', align: 'center', label: '审批时间' }
],

View File

@@ -219,7 +219,7 @@ export default {
prop: 'residentType',
align: 'center',
label: '类型',
formart: v => this.dict.getLabel('residentType', v)
format: v => this.dict.getLabel('residentType', v)
},
{
prop: 'name',

View File

@@ -191,7 +191,7 @@ export default {
prop: 'residentType',
align: 'center',
label: '类型',
formart: v => this.dict.getLabel('residentType', v)
format: v => this.dict.getLabel('residentType', v)
},
{
prop: 'householdAreaName',
@@ -212,7 +212,7 @@ export default {
prop: 'householdName',
align: 'center',
label: '是否户主',
formart: v => v === '1' ? '是' : '否'
format: v => v === '1' ? '是' : '否'
}
]
},
@@ -238,7 +238,7 @@ export default {
prop: 'residentType',
align: 'center',
label: '类型',
formart: v => this.dict.getLabel('residentType', v)
format: v => this.dict.getLabel('residentType', v)
},
{
prop: 'name',