|
@@ -9,20 +9,20 @@
|
|
|
</el-button>
|
|
|
|
|
|
<el-menu
|
|
|
- default-active="1"
|
|
|
+ :default-active="activeIndex"
|
|
|
class="el-menu-vertical-demo"
|
|
|
-
|
|
|
+ @select="handleMenuSelect"
|
|
|
:collapse="isCollapse"
|
|
|
>
|
|
|
- <el-menu-item @click="gotolink1" class="vertical-center" index="1">
|
|
|
+ <el-menu-item class="vertical-center" index="1">
|
|
|
<i class="el-icon-location"></i>
|
|
|
<span slot="title">待办业务</span>
|
|
|
</el-menu-item>
|
|
|
- <el-menu-item @click="gotolink2" class="vertical-center" index="2">
|
|
|
+ <el-menu-item class="vertical-center" index="2">
|
|
|
<i class="el-icon-menu"></i>
|
|
|
<span slot="title">解析业务</span>
|
|
|
</el-menu-item>
|
|
|
- <el-menu-item @click="gotolink3" class="vertical-center" index="3">
|
|
|
+ <el-menu-item class="vertical-center" index="3">
|
|
|
<i class="el-icon-setting"></i>
|
|
|
<span slot="title">失败业务</span>
|
|
|
</el-menu-item>
|
|
@@ -127,6 +127,7 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
+ activeIndex:'1',
|
|
|
activeKey: 0,
|
|
|
activeName: "second",
|
|
|
currentPage: 1,
|
|
@@ -145,19 +146,27 @@ export default {
|
|
|
input:'',
|
|
|
showSize:'',
|
|
|
totalSize:'',
|
|
|
- businessType:0,
|
|
|
+ businessType:1,
|
|
|
}
|
|
|
},
|
|
|
watch: {},
|
|
|
computed: {},
|
|
|
beforeCreate() {},
|
|
|
created() {
|
|
|
-
|
|
|
+ this.activeIndex = this.$route.query.activeIndex || 1; // 使用默认值 1
|
|
|
},
|
|
|
beforeMount() {},
|
|
|
mounted()
|
|
|
{
|
|
|
- businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
+ this.handleMenuSelect(this.activeIndex);
|
|
|
+ },
|
|
|
+ beforeUpdate() {},
|
|
|
+ updated() {},
|
|
|
+ destroyed() {},
|
|
|
+ methods: {
|
|
|
+ handleMenuSelect(index) {
|
|
|
+ this.activeIndex = index;
|
|
|
+ businessList(this.currentPage,this.pagesize,this.activeIndex).then(
|
|
|
res=>
|
|
|
{
|
|
|
this.businessData=res.data.business_list.list;
|
|
@@ -168,11 +177,8 @@ export default {
|
|
|
|
|
|
}
|
|
|
)
|
|
|
- },
|
|
|
- beforeUpdate() {},
|
|
|
- updated() {},
|
|
|
- destroyed() {},
|
|
|
- methods: {
|
|
|
+
|
|
|
+ },
|
|
|
toggleCollapse(){
|
|
|
this.isCollapse = !this.isCollapse;
|
|
|
},
|
|
@@ -259,55 +265,52 @@ export default {
|
|
|
console.error(error);
|
|
|
}
|
|
|
},
|
|
|
- gotolink1()
|
|
|
- {
|
|
|
- this.businessType=0;
|
|
|
- businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
- res=>
|
|
|
- {
|
|
|
- this.businessData=res.data.business_list.list;
|
|
|
- this.businessShowData = this.businessData
|
|
|
- var j = parseInt(res.data.business_list.total)
|
|
|
- this.totalSize = j
|
|
|
- this.showSize = this.totalSize
|
|
|
+ // gotolink1()
|
|
|
+ // {
|
|
|
+ // this.businessType=0;
|
|
|
+ // businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
+ // res=>
|
|
|
+ // {
|
|
|
+ // this.businessData=res.data.business_list.list;
|
|
|
+ // this.businessShowData = this.businessData
|
|
|
+ // var j = parseInt(res.data.business_list.total)
|
|
|
+ // this.totalSize = j
|
|
|
+ // this.showSize = this.totalSize
|
|
|
|
|
|
- }
|
|
|
- )
|
|
|
- },
|
|
|
- gotolink2()
|
|
|
- {
|
|
|
- this.businessType=1;
|
|
|
- businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
- res=>
|
|
|
- {
|
|
|
- this.businessData=res.data.business_list.list;
|
|
|
- this.businessShowData = this.businessData
|
|
|
- var j = parseInt(res.data.business_list.total)
|
|
|
- this.totalSize = j
|
|
|
- this.showSize = this.totalSize
|
|
|
- console.log("阿斯蒂芬贵哦")
|
|
|
-
|
|
|
- console.log(this.businessShowData)
|
|
|
- }
|
|
|
- )
|
|
|
- },
|
|
|
- gotolink3()
|
|
|
- {
|
|
|
- this.businessType=2;
|
|
|
- businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
- res=>
|
|
|
- {
|
|
|
- this.businessData=res.data.business_list.list;
|
|
|
- this.businessShowData = this.businessData
|
|
|
- var j = parseInt(res.data.business_list.total)
|
|
|
- this.totalSize = j
|
|
|
- this.showSize = this.totalSize
|
|
|
- console.log("阿斯蒂芬贵哦")
|
|
|
-
|
|
|
- console.log(this.businessShowData)
|
|
|
+ // }
|
|
|
+ // )
|
|
|
+ // },
|
|
|
+ // gotolink2()
|
|
|
+ // {
|
|
|
+ // this.businessType=1;
|
|
|
+ // businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
+ // res=>
|
|
|
+ // {
|
|
|
+ // this.businessData=res.data.business_list.list;
|
|
|
+ // this.businessShowData = this.businessData
|
|
|
+ // var j = parseInt(res.data.business_list.total)
|
|
|
+ // this.totalSize = j
|
|
|
+ // this.showSize = this.totalSize
|
|
|
+ // console.log("阿斯蒂芬贵哦")
|
|
|
+
|
|
|
+ // console.log(this.businessShowData)
|
|
|
+ // }
|
|
|
+ // )
|
|
|
+ // },
|
|
|
+ // gotolink3()
|
|
|
+ // {
|
|
|
+ // this.businessType=2;
|
|
|
+ // businessList(this.currentPage,this.pagesize,this.businessType).then(
|
|
|
+ // res=>
|
|
|
+ // {
|
|
|
+ // this.businessData=res.data.business_list.list;
|
|
|
+ // this.businessShowData = this.businessData
|
|
|
+ // var j = parseInt(res.data.business_list.total)
|
|
|
+ // this.totalSize = j
|
|
|
+ // this.showSize = this.totalSize
|
|
|
|
|
|
- })
|
|
|
- },
|
|
|
+ // })
|
|
|
+ // },
|
|
|
tables:function () { //在你的数据表格中定义tabels
|
|
|
const input = this.input
|
|
|
if (input) {
|
|
@@ -329,7 +332,8 @@ export default {
|
|
|
headInfId:row.headInfId,
|
|
|
rptNo:row.rptNo,
|
|
|
businessId:row.businessId,
|
|
|
- cooperatorName:row.cooperatorName
|
|
|
+ cooperatorName:row.cooperatorName,
|
|
|
+ activeIndex: this.activeIndex
|
|
|
}
|
|
|
})
|
|
|
},
|