diff --git a/src/api/data.js b/src/api/data.js index ef71523..8daefaa 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -15,6 +15,10 @@ class data{ async dataDistribution(){ return await get("/admin/DataReport/ShopDataReport/dataDistribution") } + //全国服务商数据 + async poxyList(param){ + return await get("/admin/DataReport/ShopDataReport/poxyList",param) + } } export default new data() \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index bbede3c..1fa032a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -47,6 +47,19 @@ const routes = [{ name: 'dataOverview', component: () => import('../views/dataOverview/index.vue'), }, + { + path: "/teamList", + name: 'teamList', + component: () => import('../views/teamList/index.vue'), + meta: { + // title: '列表' + } + }, + { + path: "/teamPerformance", + name: 'teamPerformance', + component: () => import('../views/teamPerformance/index.vue'), + }, ]; const router = new VueRouter({ diff --git a/src/views/dataOverview/index.vue b/src/views/dataOverview/index.vue index 11520e1..8a844ba 100644 --- a/src/views/dataOverview/index.vue +++ b/src/views/dataOverview/index.vue @@ -9,7 +9,7 @@

服务商总数量

{{list.level_count | capitalize}}

-
+
@@ -18,7 +18,7 @@

{{list.level_5}}

-
+
@@ -27,7 +27,7 @@

{{list.level_4}}

-
+
@@ -36,7 +36,7 @@

{{list.level_3}}

-
+
@@ -45,7 +45,7 @@

{{list.level_2}}

-
+
@@ -59,7 +59,7 @@

本月新增服务商

-
+
@@ -68,7 +68,7 @@

{{list.month_add_level_5}}

-
+
@@ -77,7 +77,7 @@

{{list.month_add_level_4}}

-
+
@@ -86,7 +86,7 @@

{{list.month_add_level_3}}

-
+
@@ -95,7 +95,7 @@

{{list.month_add_level_2}}

-
+
@@ -110,7 +110,7 @@
本月团队业绩排名TOP
-
+

{{index+1}}

@@ -139,7 +139,7 @@ filters: { capitalize: function (val) { return (+val || 0).toFixed(0).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, '$&,') - } + }, }, created() { this.getData() @@ -150,6 +150,24 @@ this.list = res.data console.log(this.list, '---this.list'); }, + toTeamList(type, id) { + this.$router.push({ + path: '/teamList', + query: { + type: type, + level_id: id, + } + }) + }, + toTeamPerformance(){ + this.$router.push({ + path: '/teamPerformance', + query: { + // type: type, + // level_id: id, + } + }) + }, } } @@ -354,8 +372,8 @@ height: 26px; line-height: 26px; margin-bottom: 10px; - overflow: hidden; - width: 320px; + overflow: hidden; + width: 320px; } .teamMoney { diff --git a/src/views/login.vue b/src/views/login.vue index 5562e44..7b02c46 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -6,22 +6,22 @@ let url = this.$route.query; let token; let url_string = JSON.stringify(url); - if (url_string == "{}") { - this.$toast('请先登录') - } else { - token = url.token_type + " " + url.access_token; - this.$store.commit("user/setToken", token); - this.$router.push({ - path: "/home", - }); - } - - // token = - // "bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC90ZXN0LnFpbmd3ZWlsYWk4ODgueHl6XC9hZG1pblwvbG9naW4iLCJpYXQiOjE2Mjc0NjU1ODksImV4cCI6MTk4NzQ2NTU4OSwibmJmIjoxNjI3NDY1NTg5LCJqdGkiOiJ6clVHYnJCOXlPWkpRanRUIiwic3ViIjoxNjEsInBydiI6IjBiMzZjMGUwMjMyZGVlZTlkOTZhZDA0NGY3YWE2MjQ2YTUwYTU3ZmEifQ.aFc5fCUffmDN7zBRn-D13kx1LuLNG1Ej7vQOu4O2_AA" - // this.$store.commit("user/setToken", token); - // this.$router.push({ + // if (url_string == "{}") { + // this.$toast('请先登录') + // } else { + // token = url.token_type + " " + url.access_token; + // this.$store.commit("user/setToken", token); + // this.$router.push({ // path: "/home", // }); + // } + + token = + "bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC90ZXN0LnFpbmd3ZWlsYWk4ODgueHl6XC9hZG1pblwvbG9naW4iLCJpYXQiOjE2Mjc0NjU1ODksImV4cCI6MTk4NzQ2NTU4OSwibmJmIjoxNjI3NDY1NTg5LCJqdGkiOiJ6clVHYnJCOXlPWkpRanRUIiwic3ViIjoxNjEsInBydiI6IjBiMzZjMGUwMjMyZGVlZTlkOTZhZDA0NGY3YWE2MjQ2YTUwYTU3ZmEifQ.aFc5fCUffmDN7zBRn-D13kx1LuLNG1Ej7vQOu4O2_AA" + this.$store.commit("user/setToken", token); + this.$router.push({ + path: "/home", + }); }, }; diff --git a/src/views/teamList/index.vue b/src/views/teamList/index.vue new file mode 100644 index 0000000..141748e --- /dev/null +++ b/src/views/teamList/index.vue @@ -0,0 +1,212 @@ + + + + + \ No newline at end of file diff --git a/src/views/teamPerformance/index.vue b/src/views/teamPerformance/index.vue new file mode 100644 index 0000000..9137e2a --- /dev/null +++ b/src/views/teamPerformance/index.vue @@ -0,0 +1,391 @@ + + + \ No newline at end of file