diff --git a/src/App.vue b/src/App.vue index 6e16045cfef8d4d127dcf0135abadeda3d1dd74e..fd0a6058e0c37592ada243bd055bc6de763fa764 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,9 +20,6 @@ export default { console.log(data.data); console.log("--- --- ---"); this.$store.commit("userInfofun", data.data); - if (data.data.is_admin == 1 || data.data.is_admin == 2) { - this.$router.push({ name: "workPlace" }); - } } else { console.log(data.errMsg); } diff --git a/src/components/e-charts/graph.vue b/src/components/e-charts/graph.vue index 7057049186fc59a6bb09534614f51e01cc1c2d5d..7c28aa4683dc1c340d4dc5d631098d68fe308154 100644 --- a/src/components/e-charts/graph.vue +++ b/src/components/e-charts/graph.vue @@ -77,6 +77,12 @@ export default { textStyle: { fontSize: 12 } + }, + splitLine: { + lineStyle: { + color: "#f2f2f2", + type: "solid" + } } } ], diff --git a/src/components/e-charts/water-polo.vue b/src/components/e-charts/water-polo.vue index 60442ff1ff33e77f0673995a6df76b7096c34874..67d4e30b99f3f0a95efee2b073c541ff30d1edc9 100644 --- a/src/components/e-charts/water-polo.vue +++ b/src/components/e-charts/water-polo.vue @@ -6,14 +6,10 @@ import { graphic } from "echarts/lib/export"; export default { props: { - data: { - type: Object, + datas: { + type: Array, default: () => { - return { - xaxis: [], - data: [], - legend: [] - }; + return []; } } }, @@ -51,8 +47,8 @@ export default { data: [ { name: "A", - value: 0.67, - key: 77 + value: self.datas[0] / 100, + key: self.datas[0] } ], radius: "50%", @@ -94,7 +90,7 @@ export default { label: { normal: { formatter: function(param) { - return "63%"; + return self.datas[0] + "%"; }, textStyle: { color: "#000", @@ -109,8 +105,8 @@ export default { data: [ { name: "A", - value: 0.67, - key: 77 + value: self.datas[1] / 100, + key: self.datas[1] } ], radius: "50%", @@ -152,7 +148,7 @@ export default { label: { normal: { formatter: function(param) { - return "63%"; + return self.datas[1] + "%"; }, textStyle: { color: "#000", diff --git a/src/components/service-list/commodity-list.vue b/src/components/service-list/commodity-list.vue index dc99c0a923457ca62229dbbe9de34a18c51f34b7..72f1abb8f2438bfb370f8b2091061db428b9f2ed 100644 --- a/src/components/service-list/commodity-list.vue +++ b/src/components/service-list/commodity-list.vue @@ -47,7 +47,7 @@ :disabled="pagination.page == 1" >   第{{ pagination.page }}页 / 共{{ - Math.ceil((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) + Math.ceil((total == 0 ? 1 : total) / pagination.rowsPerPage) }}页 @@ -74,7 +74,11 @@ export default { "commodity-card": CommodityCard }, props: { - datas: { type: Array, default: [] }, + datas: { type: Array, default: () => {[]} }, + total: { + type: Number, + default: 0 + }, url: { type: String, default: "" }, paginationShow: { type: Boolean, @@ -89,8 +93,7 @@ export default { data: () => ({ pagination: { rowsPerPage: 10, - page: 1, - total: 0 + page: 1 }, pageOptions: [ { @@ -118,9 +121,6 @@ export default { this.pagination.page += val; this.$emit("refresh", this.pagination); }, - getTotal() { - this.pagination.total = this.datas.length; - }, pageResize() { let listWidth = this.$refs.commodityCardIn.clientWidth; let rowCardNum = Math.floor(listWidth / 310); @@ -136,7 +136,6 @@ export default { watch: { datas: { handler(val) { - this.getTotal(); if (this.urlFilter == "app") { setTimeout(() => { this.pageResize(); diff --git a/src/components/service-list/service_list.vue b/src/components/service-list/service_list.vue index 7dfeb6a0a6707332e7b8957d2c931f90f198f4e7..4f8467b509106cccaaa55402f60d50d248033949 100644 --- a/src/components/service-list/service_list.vue +++ b/src/components/service-list/service_list.vue @@ -129,6 +129,7 @@ { if (response.data.success == "1") { this.lists = response.data.data; + this.total = response.data.total; } else { console.log(response.data.errMsg); } diff --git a/src/pages/data-analysis/my-application.vue b/src/pages/data-analysis/my-application.vue index 326bd9d94c4205ca4f0f403789f27f668b48437f..dd584e4fd96b633f71b9d2abc2a550dc482b78c5 100644 --- a/src/pages/data-analysis/my-application.vue +++ b/src/pages/data-analysis/my-application.vue @@ -44,7 +44,7 @@
- +
@@ -249,6 +249,7 @@ export default { WaterPolo }, data: () => ({ + water_polo: [75, 25], overview: { month_chain: 14.5, week_chain: -14.2 @@ -275,12 +276,12 @@ export default { }, sparkline1:{ arr:[1,2,3,4,8,9,10,21], - num:1231, + num:21, up:15.3 }, sparkline2:{ arr:[1,2,3,4,8,9,10,21], - num:182, + num:18, up:-19.3 }, single_data: { @@ -307,15 +308,15 @@ export default { data: [ { name: "开发者应用", - arr: [100, 120, 130, 150, 160, 120, 110, 100] + arr: [4, 3, 3, 3, 1, 3, 2, 3] }, { name: "平台应用", - arr: [120, 130, 140, 130, 140, 120, 100, 90] + arr: [2, 1, 1, 3, 2, 3, 4, 1] }, { name: "未上架", - arr: [80, 90, 100, 110, 100, 70, 80, 90] + arr: [1, 1, 0, 0, 0, 1, 2, 0] } ] }, @@ -338,8 +339,11 @@ export default { "教育科技", "文化休闲", "城市管理", + "机构团体", + "民生服务", + "其他", ], - data: [2, 0, 0, 1, 0, 2] + data: [1, 0, 0, 1, 0, 2, 0, 0, 0] }, graph_arr: { xaxis: [ @@ -361,28 +365,28 @@ export default { toplistData: [ { name: "mapvideos", - value: 130, + value: 13, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "语音识别", - value: 121, + value: 12, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "轨迹绘制", - value: 98, + value: 9, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "postgresql", - value: 55, + value: 5, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" @@ -465,7 +469,7 @@ export default { { hotIndex: 1, name: "mapvideos", - count: 89, + count: 29, increases: 0.28 }, { @@ -483,7 +487,7 @@ export default { { hotIndex: 4, name: "postgresql", - count: 666, + count: 12, increases: -0.05 }, ] // 热门搜索 数据 @@ -575,7 +579,7 @@ export default { .left_1 { height: 100%; display: flex; - justify-content: space-between; + justify-content: space-around; } .left_block { width: 280px; @@ -584,7 +588,7 @@ export default { } .left_1_l { display: flex; - justify-content: space-between; + justify-content: space-around; align-items: flex-end; } .left_1_title { @@ -603,7 +607,7 @@ export default { .chain { color: #58617a; font-size: 14px; - padding: 10px; + padding: 10px 0 10px 10px; } .chain_down { background-color: #fbe8e8; @@ -634,7 +638,7 @@ export default { .left_1_msg { display: inline-block; width: 120px; - padding-bottom: 10px; + padding: 0 0 10px 10px; } .left_1_line { width: 90%; @@ -643,12 +647,12 @@ export default { background-color: #f2f2f2; } .left_1_right { - width: 180px; + width: 120px; height: 100%; display: inline-block; } .water_polo { - width: 140px; + width: 110px; margin: 0 auto 20px; } .default { diff --git a/src/pages/data-analysis/my-service.vue b/src/pages/data-analysis/my-service.vue index 7b77969667151aa021108185449a2f66bf15b582..3dc494f0947b8849b2ad118b4491f440df7ddfe5 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -22,7 +22,7 @@
服务总数
-
4
+
8
@@ -302,12 +302,12 @@ export default { }, sparkline1: { arr: [1, 2, 3, 4, 8, 9, 10, 21], - num: 1231, + num: 12, up: 15.3 }, sparkline2: { arr: [1, 2, 3, 4, 8, 9, 10, 21], - num: 182, + num: 6, up: -19.3 }, text: "服务总数", @@ -380,56 +380,56 @@ export default { toplistData: [ { name: "报警服务", - value: 155, + value: 15, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "数据服务", - value: 130, + value: 13, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "消息队列服务", - value: 168, + value: 11, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "档案中心服务", - value: 77, + value: 7, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "按键中心服务", - value: 60, + value: 6, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "通用API服务", - value: 32, + value: 3, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "案件中心服务", - value: 15, + value: 1, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" }, { name: "数据中心服务", - value: 3, + value: 1, logo: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg", unit: "次" @@ -440,7 +440,7 @@ export default { commentlistData: [ { add_time: "2020-07-14T16:35:40Z", - content: "1111111111111111", + content: "good!!! its good", id: 36, picture_path: "/apaas/static/docs/image/image/blob_cb30e7a3-3184-42dd-9e2f-7e6b69accb0c.blob", @@ -450,7 +450,7 @@ export default { }, { add_time: "2020-07-14T16:35:40Z", - content: "222222222222", + content: "太好了", id: 36, picture_path: "/apaas/static/docs/image/image/blob_cb30e7a3-3184-42dd-9e2f-7e6b69accb0c.blob", @@ -544,48 +544,48 @@ export default { { hotIndex: 1, name: "数据服务", - count: 66, + count: 6, increases: 0.28 }, { hotIndex: 2, name: "消息队列服务", - count: 54, + count: 5, increases: 0.15 }, { hotIndex: 3, name: "按键中心服务", - count: 52, + count: 5, increases: 0.03 }, { hotIndex: 4, name: "案件中心服务", - count: 37, + count: 3, increases: -0.08 }, { hotIndex: 5, name: "数据中心服务", - count: 15, + count: 1, increases: -0.18 } ], // 热门搜索 数据 graph_arr: { xaxis: [ - "01-01", - "01-02", - "01-03", - "01-04", - "01-05", - "01-06", - "01-07", - "01-08" + "07/09", + "07/10", + "07/11", + "07/12", + "07/13", + "07/14", + "07/15", + "07/16" ], data: [ - [1010, 120, 130, 520, 160, 1120, 110, 100], - [100, 1210, 130, 1530, 160, 120, 110, 1200] + [34, 30, 13, 52, 23, 80, 48, 52], + [24, 17, 12, 17, 23, 71, 18, 45], ], legend: ["被调用次数", "调用次数"] },