From 9ce7c2a993cd67321885efb01b524567f8901411 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 25 九月 2025 17:03:53 +0800
Subject: [PATCH] gx
---
src/views/home/components/pingubiao/index.vue | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/src/views/home/components/pingubiao/index.vue b/src/views/home/components/pingubiao/index.vue
index 93a94cd..b9f0276 100644
--- a/src/views/home/components/pingubiao/index.vue
+++ b/src/views/home/components/pingubiao/index.vue
@@ -2,7 +2,7 @@
<div class="dietarySurvey-home" >
<el-row v-if="patientsInfo.id" style="padding-left: 10px;">
<el-form size="small" :inline="true" :model="state.formInline">
- <el-form-item label="调差表">
+ <el-form-item label="调查表">
<el-select style="width: 120px;"
v-model="state.formInline.formTableName"
placeholder="不选默认查全部"
@@ -55,8 +55,15 @@
{{scope.row.suveryFormName}}
</template>
</el-table-column>
+ <el-table-column label="评估结果" show-overflow-tooltip >
+ <template #default="scope">
+ <span :style="{color:scope.row.结果.结果.color}" v-if="scope.row.结果?.结果?.value">
+ 评分:{{scope.row.结果?.结果?.value}}, 结果:{{scope.row.结果?.结果?.label}}
+ </span>
+ </template>
+ </el-table-column>
<el-table-column prop="surveryPersonName" label="填表人" show-overflow-tooltip />
- <!-- <el-table-column prop="updateTime" label="更新时间" show-overflow-tooltip /> -->
+
<el-table-column label="操作" >
<template #default="scope">
<el-button size="small" @click="handleEdit(scope.$index, scope.row)">
@@ -189,7 +196,12 @@
background: 'rgba(0, 0, 0, 0.7)',
})
list(pasm).then(re=>{
- state.tableData=re.data.list
+ const list=re.data.list.map(e=>{
+ e.结果=JSON.parse(e.surveryJsonBody)
+ return e
+ })
+ state.tableData=list
+ // state.tableData=re.data.list
state.total=re.data.total
}).finally(()=>{
loading.close()
@@ -234,8 +246,15 @@
background: 'rgba(0, 0, 0, 0.7)',
})
list(pasm).then(re=>{
- console.log(re)
- state.tableData=re.data.list
+
+ const list=re.data.list.map(e=>{
+ e.结果=JSON.parse(e.surveryJsonBody)
+ return e
+ })
+ state.tableData=list
+ console.log('----------')
+ console.log(state.tableData)
+
state.total=re.data.total
}).finally(()=>{
loading.close()
--
Gitblit v1.8.0