From d93dfc384c5467cb3cc51a30f58597d74e86f85e Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 30 Nov 2023 17:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=93=8D=E4=BD=9C=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/land_plant_action/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/admin/src/views/land_plant_action/index.vue b/admin/src/views/land_plant_action/index.vue index 7fa55345..9c1af941 100644 --- a/admin/src/views/land_plant_action/index.vue +++ b/admin/src/views/land_plant_action/index.vue @@ -131,7 +131,10 @@ const queryParams = reactive({ end_time: '', }) -const actionMap = reactive({ +interface actionData { + [key: string]: any +} +const actionMap = reactive({ '1': { kind: '肥料种类', breed: '肥料品牌', @@ -178,8 +181,7 @@ const actionMap = reactive({ user: '参与人', pic: '收获图片', remark: '备注信息' - } -}) + }}) // 选中数据 const selectData = ref([]) @@ -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]