更新操作详情
This commit is contained in:
parent
1748e7abe1
commit
d93dfc384c
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue