|
@@ -47,6 +47,9 @@ export default {
|
|
|
matchTypeName: {
|
|
|
type: String,
|
|
|
},
|
|
|
+ tabAct_id: {
|
|
|
+ type: Number,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -113,27 +116,23 @@ export default {
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
/* 获取列表 */
|
|
|
- getCollectList() {
|
|
|
- Reports.getTacticsList({
|
|
|
- PageSize: this.pageSize,
|
|
|
- CurrentIndex: this.page_no,
|
|
|
- CategoryId: this.tabAct_idTwo,
|
|
|
- }).then((res) => {
|
|
|
- if (res.Ret === 200) {
|
|
|
- this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
- this.totalPage = res.Data.Paging.Pages; //总页数
|
|
|
- if (this.page_no === 1) {
|
|
|
- this.collectList = res.Data.List || [];
|
|
|
- this.haveData = this.collectList.length ? true : false;
|
|
|
- if (this.refresh) {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
- this.refresh = false;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.collectList = this.collectList.concat(res.Data.List);
|
|
|
+ async getCollectList() {
|
|
|
+ let params = { PageSize: this.pageSize, CurrentIndex: this.page_no, CategoryId: this.tabAct_idTwo };
|
|
|
+ const res = this.tabAct_id == 148 || this.tabAct_id == 62 ? await Reports.getZhouQiTacticsList(params) : await Reports.getTacticsList(params);
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
+ this.totalPage = res.Data.Paging.Pages; //总页数
|
|
|
+ if (this.page_no === 1) {
|
|
|
+ this.collectList = res.Data.List || [];
|
|
|
+ this.haveData = this.collectList.length ? true : false;
|
|
|
+ if (this.refresh) {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ this.refresh = false;
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.collectList = this.collectList.concat(res.Data.List);
|
|
|
}
|
|
|
- });
|
|
|
+ }
|
|
|
},
|
|
|
goDetail(item, index) {
|
|
|
/* 无需授权且已绑定 检验是或否有权限 */
|
|
@@ -149,7 +148,7 @@ export default {
|
|
|
});
|
|
|
} else if (item.Resource === 1) {
|
|
|
uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
|
|
|
- }else if (item.Resource === 3) {
|
|
|
+ } else if (item.Resource === 3) {
|
|
|
uni.navigateTo({ url: "/pages-ficc/reportDetail/reportDetail?id=" + item.ReportId });
|
|
|
}
|
|
|
},
|