|
|
@ -8,22 +8,22 @@ |
|
|
|
</a-tab-pane> |
|
|
|
<a-tab-pane |
|
|
|
key="0" |
|
|
|
:tab="'待比价(' + stateList.filter((c) => c == 0).length + ')'" |
|
|
|
:tab="'待比价(' + getTaskCount(0) + ')'" |
|
|
|
> |
|
|
|
</a-tab-pane> |
|
|
|
<a-tab-pane |
|
|
|
key="1" |
|
|
|
:tab="'已比价(' + stateList.filter((c) => c == 1).length + ')'" |
|
|
|
:tab="'已比价(' + getTaskCount(1) + ')'" |
|
|
|
> |
|
|
|
</a-tab-pane> |
|
|
|
<a-tab-pane |
|
|
|
key="2" |
|
|
|
:tab="'待修改(' + stateList.filter((c) => c == 2).length + ')'" |
|
|
|
:tab="'待修改(' + getTaskCount(2) + ')'" |
|
|
|
> |
|
|
|
</a-tab-pane> |
|
|
|
<a-tab-pane |
|
|
|
key="3" |
|
|
|
:tab="'已完结(' + stateList.filter((c) => c == 3).length + ')'" |
|
|
|
:tab="'已完结(' + getTaskCount(3) + ')'" |
|
|
|
> |
|
|
|
</a-tab-pane> |
|
|
|
</a-tabs> |
|
|
@ -561,9 +561,16 @@ export default { |
|
|
|
getTabCount() { |
|
|
|
this.http.get("/HuiYan/pricetasklog/GetTaskCount").then((res) => { |
|
|
|
this.stateList = res.Data; |
|
|
|
console.log(this.stateList); |
|
|
|
}); |
|
|
|
}, |
|
|
|
getTaskCount(id){ |
|
|
|
var task= this.stateList.find(c=>c.Id==id) |
|
|
|
if(task==null||task==undefined) |
|
|
|
{ |
|
|
|
return 0 |
|
|
|
} |
|
|
|
return task.Count |
|
|
|
}, |
|
|
|
getImgPath(img) { |
|
|
|
if (!img || img == undefined) return; |
|
|
|
if (img.indexOf("http") >= 0) { |
|
|
@ -597,6 +604,7 @@ export default { |
|
|
|
this.getDatas(e); |
|
|
|
this.currentTab = e; |
|
|
|
this.pagination.current = 1; |
|
|
|
this.getTabCount(); |
|
|
|
}, |
|
|
|
searchDatas() { |
|
|
|
this.pagination.current = 1; |
|
|
|