更新操作详情

This commit is contained in:
yaooo 2023-11-30 17:42:30 +08:00
parent 1748e7abe1
commit d93dfc384c
1 changed files with 6 additions and 4 deletions

View File

@ -131,7 +131,10 @@ const queryParams = reactive({
end_time: '',
})
const actionMap = reactive({
interface actionData {
[key: string]: any
}
const actionMap = reactive<actionData>({
'1': {
kind: '肥料种类',
breed: '肥料品牌',
@ -178,8 +181,7 @@ const actionMap = reactive({
user: '参与人',
pic: '收获图片',
remark: '备注信息'
}
})
}})
//
const selectData = ref<any[]>([])
@ -208,7 +210,7 @@ const handleDetail = (data: any) => {
const action = JSON.parse(data.detail)
detailData.gridData = [{}]
for (const key in action) {
let item = actionMap[data.type][key]
const item = actionMap[data.type][key]
detailData.gridData.unshift({
item: item,
value: action[key]