提交 666d2667 编写于 作者: zhongyao.qiao's avatar zhongyao.qiao

feat 订单列表Tab逻辑调整

上级 15c8edee
......@@ -17,4 +17,4 @@ VUE_APP_IS_LOCAL=true
VUE_APP_APPID=wxf4e66242d31c81c2
#本地token
VUE_APP_TOKEN=C7D1BE8D74644C5C9073BCA21C56B6B4
VUE_APP_TOKEN=D321743AA7464709A42053132F5D2F8D
......@@ -925,6 +925,7 @@ export default {
}
// this.fromType = +(this.$route.query.fromType || 1);
this.fromType = +fromType;
this.searchParam.menuType = this.fromType || 1;
this.activeName = '99';
this.searchParam.status = '';
......@@ -951,36 +952,35 @@ export default {
switch (this.fromType) {
case 1:
tabs = ALL_TAB_LIST;
this.searchParam.menuType = 1;
break;
case 2:
tabs = RUN_TAB_LIST;
this.searchParam.menuType = 2;
break;
case 3:
tabs = TRIAGE_TAB_LIST;
this.searchParam.menuType = 3;
break;
case 4:
tabs = RECEPTION_TAB_LIST;
this.searchParam.menuType = 4;
break;
case 5:
tabs = MATCH_TAB_LIST;
this.searchParam.menuType = 5;
break;
default:
tabs = ALL_TAB_LIST;
this.searchParam.menuType = 1;
break;
}
let count = 0;
for (let i = 0; i < tabs.length; i++) {
const index = data.findIndex((val) => {
return val.status == tabs[i].active;
});
if (index > 0) {
if (index > -1) {
count = count + data[index].dgCount;
let isdot = false;
if (this.Raw_tabpaneList.length > 0) {
......@@ -997,6 +997,7 @@ export default {
}
}
tabs[0].dgCount = count;
console.log('tabs', JSON.stringify(tabs));
this.tabpaneList = tabs;
if (this.Raw_tabpaneList.length == 0) {
this.Raw_tabpaneList = JSON.parse(JSON.stringify(tabs));
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册