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