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

feat 订单列表Tab逻辑调整

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