|
@@ -79,7 +79,7 @@
|
|
|
<div class="tableBoxOnediv" style="padding-left: 15px;">
|
|
|
<el-table
|
|
|
class="el-table" :data="carList" size='mini'
|
|
|
- :max-height="childrenHeight"
|
|
|
+ :max-height="childrenHeight-32"
|
|
|
stripe border style="width: 100%">
|
|
|
<el-table-column prop="extened" label="名称">
|
|
|
<template slot-scope="scope">
|
|
@@ -94,6 +94,17 @@
|
|
|
<el-table-column prop="grade" label="级别"></el-table-column>
|
|
|
<el-table-column prop="model_code" label="模型代码"></el-table-column>
|
|
|
</el-table>
|
|
|
+ <div style="padding-top: 10px;">
|
|
|
+ <el-pagination
|
|
|
+ :current-page.sync="currentPage"
|
|
|
+ :page-size="50"
|
|
|
+ layout="total,prev, pager, next"
|
|
|
+ :total="total_page"
|
|
|
+ background="background"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -126,7 +137,7 @@
|
|
|
<div class="tableBoxOnediv" style="padding-left: 15px;">
|
|
|
<el-table
|
|
|
class="el-table" :data="carList" size='mini'
|
|
|
- :max-height="childrenHeight"
|
|
|
+ :max-height="childrenHeight-35"
|
|
|
stripe border style="width: 100%">
|
|
|
<el-table-column prop="extened" label="名称">
|
|
|
<template slot-scope="scope">
|
|
@@ -141,6 +152,15 @@
|
|
|
<el-table-column prop="grade" label="级别"></el-table-column>
|
|
|
<el-table-column prop="model_code" label="模型代码"></el-table-column>
|
|
|
</el-table>
|
|
|
+ <el-pagination
|
|
|
+ :current-page.sync="currentPage"
|
|
|
+ :page-size="50"
|
|
|
+ layout="total,prev, pager, next"
|
|
|
+ :total="total_page"
|
|
|
+ background="background"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tableBoxRigtThree">
|
|
@@ -202,6 +222,9 @@ export default {
|
|
|
param:'',
|
|
|
threeTime:'',
|
|
|
total_page:'',
|
|
|
+ currentPage:1,
|
|
|
+ total:'',
|
|
|
+ background:'#FF4F00'
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -221,6 +244,13 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSizeChange(){
|
|
|
+
|
|
|
+ },
|
|
|
+ handleCurrentChange(){
|
|
|
+ console.log(this.currentPage)
|
|
|
+ this.getfindApplicableModelsPage()
|
|
|
+ },
|
|
|
eliminate(){
|
|
|
this.tableOneShow=false
|
|
|
this.tableTwoShow=false
|
|
@@ -283,6 +313,7 @@ export default {
|
|
|
this.access_time=res.data.result.access_time;
|
|
|
this.carList=res.data.result.list
|
|
|
this.total_page=res.data.result.total_page;
|
|
|
+ //sthis.total_page=100;
|
|
|
if(this.total_page>1){
|
|
|
// this.getfindApplicableModelsPage()
|
|
|
}
|
|
@@ -299,24 +330,24 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getfindApplicableModelsPage(){
|
|
|
- for(var i=2;i<this.total_page+1;i++){
|
|
|
- console.log(i);
|
|
|
+
|
|
|
fetchGet('/advancedEpc/findApplicableModelsPc', {
|
|
|
partnum:this.partnum,
|
|
|
epc_id: this.id,
|
|
|
- page:i,
|
|
|
+ page:this.currentPage,
|
|
|
}).then(res => {
|
|
|
if(res.data.number==200||res.data.number==5212){
|
|
|
//this.access_time=res.data.result.access_time;
|
|
|
- var carList=res.data.result.list;
|
|
|
- this.carList=this.carList.concat(carList)
|
|
|
+ // var carList=res.data.result.list;
|
|
|
+ // this.carList=this.carList.concat(carList)
|
|
|
+ this.carList=res.data.result.list;
|
|
|
}else{
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
})
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
keyup(){ //45022-S10
|
|
|
setTimeout(() => {
|
|
@@ -352,7 +383,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
close() {
|
|
|
-
|
|
|
+
|
|
|
this.$emit('update:show', false)
|
|
|
|
|
|
},
|