|
@@ -82,7 +82,7 @@
|
|
|
|
|
|
<el-tabs v-model="activeName2" @tab-click="handleClick1" stretch>
|
|
<el-tabs v-model="activeName2" @tab-click="handleClick1" stretch>
|
|
<el-tab-pane label="合作方字段列表" name="first">
|
|
<el-tab-pane label="合作方字段列表" name="first">
|
|
- <el-table :data="cooperatorField.slice((currentPage1-1)*pagesize1,currentPage1*pagesize1)" style="width: 100%;">
|
|
|
|
|
|
+ <el-table :data="cooperatorFieldShow" style="width: 100%;">
|
|
<el-table-column align="center" label="字段类型" >
|
|
<el-table-column align="center" label="字段类型" >
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
<span>{{ row.type}}</span>
|
|
<span>{{ row.type}}</span>
|
|
@@ -123,11 +123,11 @@
|
|
:page-sizes="[5,10,15]"
|
|
:page-sizes="[5,10,15]"
|
|
:page-size="pagesize1"
|
|
:page-size="pagesize1"
|
|
layout="total,jumper,prev, pager, next,sizes"
|
|
layout="total,jumper,prev, pager, next,sizes"
|
|
- :total="cooperatorField.length" >
|
|
|
|
|
|
+ :total=showFieldTotal >
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="合作产品列表" name="second">
|
|
<el-tab-pane label="合作产品列表" name="second">
|
|
- <el-table :data="cooperatorProduct.slice((currentPage2-1)*pagesize2,currentPage2*pagesize2)" style="width: 100%;" @row-click="onButtonClick">
|
|
|
|
|
|
+ <el-table :data="cooperatorProductShow" style="width: 100%;" @row-click="onButtonClick">
|
|
<el-table-column align="center" label="产品编号" >
|
|
<el-table-column align="center" label="产品编号" >
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
<span>{{ row.productNum}}</span>
|
|
<span>{{ row.productNum}}</span>
|
|
@@ -166,7 +166,7 @@
|
|
:page-sizes="[5,10,15]"
|
|
:page-sizes="[5,10,15]"
|
|
:page-size="pagesize2"
|
|
:page-size="pagesize2"
|
|
layout="total,jumper,prev, pager, next,sizes"
|
|
layout="total,jumper,prev, pager, next,sizes"
|
|
- :total="cooperatorProduct.length" >
|
|
|
|
|
|
+ :total=showProductTotal >
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="历史记录" name="third">历史记录</el-tab-pane>
|
|
<el-tab-pane label="历史记录" name="third">历史记录</el-tab-pane>
|
|
@@ -217,9 +217,9 @@ export default {
|
|
activeKey: 1,
|
|
activeKey: 1,
|
|
activeName2: "first",
|
|
activeName2: "first",
|
|
currentPage1: 1,
|
|
currentPage1: 1,
|
|
- pagesize1:5,
|
|
|
|
|
|
+ pagesize1:10,
|
|
currentPage2: 1,
|
|
currentPage2: 1,
|
|
- pagesize2:5,
|
|
|
|
|
|
+ pagesize2:10,
|
|
// cooperatorName : this.$route.query.cooperatorName,
|
|
// cooperatorName : this.$route.query.cooperatorName,
|
|
cooperatorId : this.$route.query.cooperatorId,
|
|
cooperatorId : this.$route.query.cooperatorId,
|
|
cooperatorName : this.$route.query.cooperatorName,
|
|
cooperatorName : this.$route.query.cooperatorName,
|
|
@@ -238,8 +238,16 @@ export default {
|
|
selected6: false,
|
|
selected6: false,
|
|
input:'',
|
|
input:'',
|
|
cooperatorField : [],
|
|
cooperatorField : [],
|
|
|
|
+ cooperatorFieldShow : [],
|
|
|
|
+
|
|
cooperatorProduct : [],
|
|
cooperatorProduct : [],
|
|
|
|
+ cooperatorProductShow : [],
|
|
|
|
+
|
|
productStatus : "",
|
|
productStatus : "",
|
|
|
|
+ fieldTotal:'',
|
|
|
|
+ showFieldTotal:'',
|
|
|
|
+ productTotal:'',
|
|
|
|
+ showProductTotal:'',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
@@ -260,16 +268,26 @@ export default {
|
|
if (this.cooperatorNum==""){
|
|
if (this.cooperatorNum==""){
|
|
this.cooperatorNum=null
|
|
this.cooperatorNum=null
|
|
}
|
|
}
|
|
- findCooperatorFieldByNum(this.cooperatorNum).then(
|
|
|
|
|
|
+ findCooperatorFieldByNum(this.cooperatorNum,this.currentPage1,this.pagesize1).then(
|
|
res=>
|
|
res=>
|
|
{
|
|
{
|
|
- this.cooperatorField=res.data.cooperator_field;
|
|
|
|
|
|
+ this.cooperatorField=res.data.cooperator_field.list;
|
|
|
|
+ this.cooperatorFieldShow = this.cooperatorField
|
|
|
|
+
|
|
|
|
+ var j = parseInt(res.data.cooperator_field.total)
|
|
|
|
+ this.fieldTotal = j
|
|
|
|
+ this.showFieldTotal = this.fieldTotal
|
|
}
|
|
}
|
|
),
|
|
),
|
|
- findCooperatorProductByNum(this.cooperatorNum).then(
|
|
|
|
|
|
+ findCooperatorProductByNum(this.cooperatorNum,this.currentPage2,this.pagesize2).then(
|
|
res=>
|
|
res=>
|
|
{
|
|
{
|
|
- this.cooperatorProduct=res.data.cooperator_product;
|
|
|
|
|
|
+ this.cooperatorProduct=res.data.cooperator_product.list;
|
|
|
|
+ this.cooperatorProductShow = this.cooperatorProduct
|
|
|
|
+
|
|
|
|
+ var j = parseInt(res.data.cooperator_product.total)
|
|
|
|
+ this.productTotal = j
|
|
|
|
+ this.showProductTotal = this.productTotal
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -317,15 +335,44 @@ export default {
|
|
},
|
|
},
|
|
handleCurrentChange1:function(currentPage){
|
|
handleCurrentChange1:function(currentPage){
|
|
this.currentPage1=currentPage;
|
|
this.currentPage1=currentPage;
|
|
|
|
+ findCooperatorFieldByNum(this.cooperatorNum,this.currentPage1,this.pagesize1).then(
|
|
|
|
+ res=>
|
|
|
|
+ {
|
|
|
|
+ this.cooperatorField=res.data.cooperator_field.list;
|
|
|
|
+ this.cooperatorFieldShow = this.cooperatorField
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ );
|
|
},
|
|
},
|
|
handleSizeChange1:function(size){
|
|
handleSizeChange1:function(size){
|
|
this.pagesize1=size;
|
|
this.pagesize1=size;
|
|
|
|
+ findCooperatorFieldByNum(this.cooperatorNum,this.currentPage1,this.pagesize1).then(
|
|
|
|
+ res=>
|
|
|
|
+ {
|
|
|
|
+ this.cooperatorField=res.data.cooperator_field.list;
|
|
|
|
+ this.cooperatorFieldShow = this.cooperatorField
|
|
|
|
+ }
|
|
|
|
+ )
|
|
},
|
|
},
|
|
handleCurrentChange2:function(currentPage){
|
|
handleCurrentChange2:function(currentPage){
|
|
this.currentPage2=currentPage;
|
|
this.currentPage2=currentPage;
|
|
|
|
+ findCooperatorProductByNum(this.cooperatorNum,this.currentPage2,this.pagesize2).then(
|
|
|
|
+ res=>
|
|
|
|
+ {
|
|
|
|
+ this.cooperatorProduct=res.data.cooperator_product.list;
|
|
|
|
+ this.cooperatorProductShow = this.cooperatorProduct
|
|
|
|
+ }
|
|
|
|
+ )
|
|
},
|
|
},
|
|
handleSizeChange2:function(size){
|
|
handleSizeChange2:function(size){
|
|
this.pagesize2=size;
|
|
this.pagesize2=size;
|
|
|
|
+ findCooperatorProductByNum(this.cooperatorNum,this.currentPage2,this.pagesize2).then(
|
|
|
|
+ res=>
|
|
|
|
+ {
|
|
|
|
+ this.cooperatorProduct=res.data.cooperator_product.list;
|
|
|
|
+ this.cooperatorProductShow = this.cooperatorProduct
|
|
|
|
+ }
|
|
|
|
+ )
|
|
},
|
|
},
|
|
|
|
|
|
gotolink2()
|
|
gotolink2()
|