chenyc
2025-07-14 05c827fea632f004821cc746ba73880769fab7cd
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()