修改bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<!--符合性详情-->
|
<!--符合性详情-->
|
||||||
<template>
|
<template>
|
||||||
<div id="complianceDetails">
|
<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-divider content-position="left" v-if="unfit.length" >不满足</el-divider>
|
||||||
<el-table
|
<el-table
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
:data="unfit"
|
:data="unfit"
|
||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
border
|
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',
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
fontWeight: 'bold', height: '48px'}">
|
fontWeight: 'bold', height: '48px'}">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
:data="fit"
|
:data="fit"
|
||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
border
|
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',
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
||||||
fontWeight: 'bold', height: '48px'}">
|
fontWeight: 'bold', height: '48px'}">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -107,6 +107,48 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<!-- <pagination :page="page" :total="total" @pageChange="pageChange"-->
|
<!-- <pagination :page="page" :total="total" @pageChange="pageChange"-->
|
||||||
<!-- @pageSizeChange="pageSizeChange"></pagination>-->
|
<!-- @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>
|
<loading :loading="loading">加载中...</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -118,6 +160,7 @@ export default {
|
|||||||
loading: false,
|
loading: false,
|
||||||
fit: [], // 满足
|
fit: [], // 满足
|
||||||
unfit: [], // 不满足
|
unfit: [], // 不满足
|
||||||
|
noFit: [], //不涉及
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: this.$store.getters.userInfo.configContent,
|
pageSize: this.$store.getters.userInfo.configContent,
|
||||||
total: 0,
|
total: 0,
|
||||||
@@ -152,6 +195,12 @@ export default {
|
|||||||
item.standNumber = item.standardItem
|
item.standNumber = item.standardItem
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.noFit = res.data.noFit.records
|
||||||
|
this.noFit.forEach(item => {
|
||||||
|
if(item.standardItem){
|
||||||
|
item.standNumber = item.standardItem
|
||||||
|
}
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,11 +32,16 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="endTime"
|
prop="endTime"
|
||||||
width="120"
|
width="120"
|
||||||
label="结束时间">
|
label="结束时间">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,6 @@
|
|||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
<div class="right_wrapper">
|
<div class="right_wrapper">
|
||||||
<nav-menu></nav-menu>
|
<nav-menu></nav-menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user