优化aitable
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
}, this.dict.getLabel('mstStatus', row.status))
|
||||
}
|
||||
},
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
}, this.dict.getLabel('mstStatus', row.status))
|
||||
}
|
||||
},
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
}, this.dict.getLabel('mstStatus', row.status))
|
||||
}
|
||||
},
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -243,7 +243,7 @@ export default {
|
||||
// {prop: 'departmentNames', label: '部门'},
|
||||
{prop: 'mobile', label: '手机号'},
|
||||
{slot: 'tags', label: '标签'},
|
||||
{prop: 'status', label: '账号状态', align: 'center', formart: v => v === 1 ? '已激活' : '未激活'}
|
||||
{prop: 'status', label: '账号状态', align: 'center', format: v => v === 1 ? '已激活' : '未激活'}
|
||||
],
|
||||
defaultProps: {
|
||||
children: 'children',
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
colConfigs: [
|
||||
{slot: 'userinfo'},
|
||||
{prop: 'commitTime', label: '提交时间', align: 'center', width: '160px' },
|
||||
{prop: 'userType', label: '微信类型', align: 'center', width: '100px', formart: v => this.dict.getLabel('wxUserType', v) },
|
||||
{prop: 'userType', label: '微信类型', align: 'center', width: '100px', format: v => this.dict.getLabel('wxUserType', v) },
|
||||
{prop: 'totalScore', label: '分值', align: 'center'}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
}, this.dict.getLabel('mstStatus', row.status))
|
||||
}
|
||||
},
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', formart: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
{ prop: 'completionRate', label: '任务完成率', align: 'center', format: v => v ? v === '0.0' ? '0%' : `${v}%` : '-' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
{ prop: 'content', label: '内容描述', width: '300px' },
|
||||
{ prop: 'groupName', label: '事件类型', align: 'center' },
|
||||
{ prop: 'girdName', 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: 'openId', label: '上报人', align: 'center', openType: 'userName' },
|
||||
{ slot: 'options' }
|
||||
]
|
||||
|
||||
@@ -114,19 +114,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',
|
||||
|
||||
@@ -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', openType: 'userName' },
|
||||
{ slot: 'options', label: '操作', align: 'center' }
|
||||
|
||||
@@ -194,7 +194,7 @@ export default {
|
||||
gridInfo: {},
|
||||
gridMemberColConfigs: [
|
||||
{prop: "wxUserId", openType: 'userName'},
|
||||
{prop: "checkType", formart: v => v === '1' ? '网格员' : '网格长'},
|
||||
{prop: "checkType", format: v => v === '1' ? '网格员' : '网格长'},
|
||||
{slot: "tags"}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user