|
|
@ -38,12 +38,7 @@ |
|
|
|
<el-form> |
|
|
|
<GuipTable :tableData="tableData" style="width: 100%" :loading="tableLoading"> |
|
|
|
<template v-if="type == 'purchase'"> |
|
|
|
<el-table-column prop="type"> |
|
|
|
<template slot="header"> |
|
|
|
<GuipSelect class="custom-select tableHeaderSelect" style="height:20px;" v-model="chktype" :options="type2filterOptions" |
|
|
|
defaultValue="全部检测类型" @change="changeSelectType" /> |
|
|
|
</template> |
|
|
|
|
|
|
|
<el-table-column prop="type" label="检测类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ type2name[scope.row.type] }} |
|
|
|
</template> |
|
|
@ -64,12 +59,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<el-table-column prop="type"> |
|
|
|
<template slot="header"> |
|
|
|
<GuipSelect class="custom-select tableHeaderSelect" v-model="chktype" :options="type2filterOptions" |
|
|
|
defaultValue="全部检测类型" @change="changeSelectType" /> |
|
|
|
</template> |
|
|
|
|
|
|
|
<el-table-column prop="type" label="检测类型"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ type2name[scope.row.type] }} |
|
|
|
</template> |
|
|
@ -102,10 +92,6 @@ |
|
|
|
</el-table-column> |
|
|
|
</template> |
|
|
|
</GuipTable> |
|
|
|
|
|
|
|
<el-pagination background @size-change='handleSizeChange' @current-change='handleCurrentChange' |
|
|
|
:current-page="currentPage" :page-size=pageSize layout="prev, pager, next,jumper" :total="parseInt(total)"> |
|
|
|
</el-pagination> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -146,7 +132,7 @@ export default { |
|
|
|
id: 0, |
|
|
|
chktype: '0', |
|
|
|
currentPage: 1, //当前页 |
|
|
|
pageSize: 20, //每页的容量 |
|
|
|
pageSize: 1000, //每页的容量 |
|
|
|
total: 0, //列表总数 |
|
|
|
tableData: [], |
|
|
|
type2name: [], |
|
|
|