chenyc
2025-03-24 9bbb2946699515807256dfb30ab57359f4fdf563
src/views/home/components/pingubiao/index.vue
@@ -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()