|
@@ -1,29 +1,37 @@
|
|
|
<template>
|
|
|
<div class="time-detail-container">
|
|
|
- <div class="time-detail-left">
|
|
|
- <el-table :data="hsData" border style="width: 100%" max-height="500">
|
|
|
- <el-table-column label="对象类型" width="130">
|
|
|
- <template #default="scope">
|
|
|
- <dict-tag :options="biz_type" :value="scope.row.objType"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="业务对象">
|
|
|
- <template #default="scope">
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="分值" width="80">
|
|
|
- <template #default="scope">
|
|
|
- <el-input v-model="scope.row.hlScore"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="得分" prop="score" width="80"/>
|
|
|
- <el-table-column label="操作" width="80" align="center">
|
|
|
- <template #default="scope">
|
|
|
- <el-button type="primary" link icon="edit">明细</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
+ <el-table :data="hsData" border :style="`width: ${hmsDetailData.length?50:100}%`" max-height="500">
|
|
|
+ <el-table-column label="对象类型" width="130">
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag :options="biz_type" :value="scope.row.objType"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="业务对象">
|
|
|
+ <template #default="scope">
|
|
|
+ <span v-for="(item,index) in scope.row.hlObjList">
|
|
|
+ {{item.objName}}<span v-if="index != scope.row.hlObjList.length-1">,</span>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="分值" width="80">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-input v-model="scope.row.hlScore" readonly/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="得分" prop="score" width="80"/>
|
|
|
+ <el-table-column label="操作" width="80" align="center">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button type="primary" link icon="edit" @click="handleDetail(scope.row)">明细</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-table :data="hmsDetailData" style="width: 48%" border>
|
|
|
+ <el-table-column label="指标名称" prop="metricsName"/>
|
|
|
+ <el-table-column label="指标编码" prop="metricsCode" width="100"/>
|
|
|
+ <el-table-column label="健康度分值" prop="metricsName" width="100"/>
|
|
|
+ <el-table-column label="评分标准" prop="metricsName" width="80"/>
|
|
|
+ <el-table-column label="得分" prop="metricsName" width="80"/>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
@@ -31,15 +39,23 @@
|
|
|
const {proxy} = getCurrentInstance()
|
|
|
import {onMounted} from "vue";
|
|
|
import {hcsDetails} from "@/api/hl/hcs"
|
|
|
+import {listHmsDetails} from "@/api/hl/hms"
|
|
|
const props = defineProps(['rowData'])
|
|
|
const {biz_type,metrics_small_type} = proxy.useDict('biz_type','metrics_small_type');
|
|
|
const hsData = ref([])
|
|
|
+const hmsDetailData = ref([])
|
|
|
|
|
|
onMounted(()=>{
|
|
|
getDetail()
|
|
|
})
|
|
|
|
|
|
+async function handleDetail(row){
|
|
|
+ const res = await listHmsDetails(row.scoreClassId)
|
|
|
+ hmsDetailData.value = res.data
|
|
|
+}
|
|
|
+
|
|
|
async function getDetail(){
|
|
|
+ hmsDetailData.value = []
|
|
|
const res = await hcsDetails(props.rowData.hlScoreId)
|
|
|
hsData.value = res.data
|
|
|
}
|
|
@@ -51,8 +67,5 @@ async function getDetail(){
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-start;
|
|
|
- .time-detail-left{
|
|
|
- width: 48%;
|
|
|
- }
|
|
|
}
|
|
|
</style>
|