修改bug

This commit is contained in:
宋伟佳
2022-02-21 16:40:24 +08:00
parent 9db5bc0a18
commit ca7d96eb95
3 changed files with 60 additions and 9 deletions
+52 -3
View File
@@ -1,7 +1,7 @@
<!--符合性详情-->
<template>
<div id="complianceDetails">
<el-divider content-position="left" v-if="unfit.length < 1 && fit.length < 1" >暂无评估结果</el-divider>
<el-divider content-position="left" v-if="unfit.length < 1 && fit.length < 1 && noFit.length < 1" >暂无评估结果</el-divider>
<!-- 不满足-->
<el-divider content-position="left" v-if="unfit.length" >不满足</el-divider>
<el-table
@@ -10,7 +10,7 @@
:data="unfit"
tooltip-effect="dark"
border
style="width: 100%; min-height: 400px; margin-bottom: 30px;"
style="width: 100%; min-height: 250px; margin-bottom: 30px;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}">
<el-table-column
@@ -71,7 +71,7 @@
:data="fit"
tooltip-effect="dark"
border
style="width: 100%; min-height: 400px; margin-bottom: 30px;"
style="width: 100%; min-height: 250px; margin-bottom: 30px;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}">
<el-table-column
@@ -107,6 +107,48 @@
</el-table>
<!-- <pagination :page="page" :total="total" @pageChange="pageChange"-->
<!-- @pageSizeChange="pageSizeChange"></pagination>-->
<!--不涉及-->
<el-divider content-position="left" v-if="noFit.length">不涉及</el-divider>
<el-table
ref="selection"
v-if="noFit.length"
:data="noFit"
tooltip-effect="dark"
border
style="width: 100%; min-height: 260px; margin-bottom: 30px;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}">
<el-table-column
prop="standNumber"
label="标准号/条款号"
width="160"
align="center"
>
</el-table-column>
<el-table-column
prop="researchNonCompliance"
label="不涉及"
align="center"
>
</el-table-column>
<el-table-column
prop="evaluationPeople"
label="评估人"
width="160"
align="center"
>
</el-table-column>
<el-table-column
prop="evaluationTime"
label="评估时间"
width="160"
align="center"
>
<template slot-scope="scope">
<span>{{ scope.row.evaluationTime ? $moment(scope.row.evaluationTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column>
</el-table>
<loading :loading="loading">加载中...</loading>
</div>
</template>
@@ -118,6 +160,7 @@ export default {
loading: false,
fit: [], // 满足
unfit: [], // 不满足
noFit: [], //不涉及
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
total: 0,
@@ -152,6 +195,12 @@ export default {
item.standNumber = item.standardItem
}
})
this.noFit = res.data.noFit.records
this.noFit.forEach(item => {
if(item.standardItem){
item.standNumber = item.standardItem
}
})
} else {
this.$message.warning(res.message)
}
@@ -32,11 +32,16 @@
</template>
</el-table-column>
<el-table-column
prop="endTime"
width="120"
label="结束时间">
prop="endTime"
width="120"
label="结束时间">
</el-table-column>
</el-table>
<div
style="height: 20px;background-color: #fff;text-align: right;color: #4788c0; position: absolute; bottom: 5px; right: 5px">
<span style="margin-right: 10px;cursor: pointer;font-size: 12px"
@click="$router.push('standardForComments')">更多 </span>
</div>
</div>
</template>
-3
View File
@@ -22,9 +22,6 @@
</el-tabs>
</div>
</div>
<div style="height: 20px;background-color: #fff;text-align: right;color: #4788c0">
<span style="margin-right: 10px;cursor: pointer;font-size: 12px" @click="$router.push('standardForComments')">更多 </span>
</div>
</div>
<div class="right_wrapper">
<nav-menu></nav-menu>