diff --git a/package.json b/package.json index 6742000703b3e0663813c130f0971158661bd7eb..1660aed5e880221d987076b56342ad08c4ebc465 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "babel-polyfill": "^6.26.0", "codemirror": "^5.45.0", "echarts": "^4.8.0", + "echarts-liquidfill": "^2.0.6", "element-ui": "^2.11.1", "js-yaml": "^3.13.1", "json2yaml": "^1.1.0", diff --git a/src/App.vue b/src/App.vue index efc5e6413f5c0d71529598109670b4b4311c6e15..6e16045cfef8d4d127dcf0135abadeda3d1dd74e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,7 @@ import bdMenu from "./components/menu"; export default { data: () => ({}), components: { - bdMenu, + bdMenu }, methods: { getCurrentUser() { @@ -20,15 +20,18 @@ 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); } }); - }, + } }, created() { this.getCurrentUser(); - }, + } }; diff --git a/src/components/allot-info-confirm.vue b/src/components/allot-info-confirm.vue index c28f1f03bed362c4dfb086549d25c928929c9232..2de4b37c9d0c4335e063b7e64521fab07e97522c 100644 --- a/src/components/allot-info-confirm.vue +++ b/src/components/allot-info-confirm.vue @@ -110,7 +110,7 @@ export default { this.$http .get("/apaas/service/v3/resource/apply/distributionDisplay", { params: { - apply_id: apply_id, + apply_id: apply_id }, }) .then(({ data }) => { @@ -146,7 +146,7 @@ export default { params: { id: this.detail.id, user_id: this.detail.user_id, - namespace:this.detail.namespace + namespace: this.detail.namespace }, }) .then(({ data }) => { diff --git a/src/components/e-charts/bar-chart.vue b/src/components/e-charts/bar-chart.vue index 41b06568865c7a501fd87743d98057765ec4e3cd..6087dd6b3890094a5da14802b94387daef7e83cb 100644 --- a/src/components/e-charts/bar-chart.vue +++ b/src/components/e-charts/bar-chart.vue @@ -16,8 +16,8 @@ export default { } }, bar_width: { - type: String, - default: "12px" + type: Number, + default: 12 }, colors: { type: Array, @@ -32,8 +32,12 @@ export default { } }, show_split: { - typr: Boolean, + type: Boolean, default: false + }, + x_router: { + type: Number, + default: 0 } }, data: () => ({}), @@ -60,7 +64,7 @@ export default { fontSize: 12 }, interval: 0, - rotate: 30, + rotate: self.x_router, formatter: function(value) { let valueTxt = ""; if (value.length > 6) { diff --git a/src/components/e-charts/dashboard.vue b/src/components/e-charts/dashboard.vue index 9fb89226d33a587b363725259cd0f1df61b5ed76..53690c72d575edffe06f39973e835a74817a59e8 100644 --- a/src/components/e-charts/dashboard.vue +++ b/src/components/e-charts/dashboard.vue @@ -100,9 +100,9 @@ export default { self.data.data > 75 ? "#00beb2" //green : self.data.data > 50 - ? "#ff7200" //yellow + ? "#38aef9" //blue : self.data.data > 25 - ? "#da4251" //red + ? "#ff7200" //yellow : "#da4251" //red } } @@ -167,9 +167,9 @@ export default { : self.data.data > 75 ? "#d5f7e8" : self.data.data > 50 - ? "#ffd98f" + ? "#e5f4fe" : self.data.data > 25 - ? "#f7f1d5" + ? "#ffd98f" : "#f7f1d5" }, { @@ -186,9 +186,9 @@ export default { : self.data.data > 75 ? "#00beb2" //green : self.data.data > 50 - ? "#ff7200" //yellow + ? "#38aef9" //blue : self.data.data > 25 - ? "#da4251" //red + ? "#ff7200" //yellow : "#da4251" //red } ]) diff --git a/src/components/e-charts/graph.vue b/src/components/e-charts/graph.vue index 1c8c341b3a7124fe727c75fe45525b4d7b8b3ea8..7057049186fc59a6bb09534614f51e01cc1c2d5d 100644 --- a/src/components/e-charts/graph.vue +++ b/src/components/e-charts/graph.vue @@ -17,9 +17,7 @@ export default { } } }, - data: () => ({ - navList: [] - }), + data: () => ({}), mounted() {}, methods: { graph() { @@ -95,7 +93,7 @@ export default { lineStyle: { width: 2, color: "#274fee", - shadowColor: "rgb(39, 79, 238, 0.3)", + shadowColor: "rgb(39, 79, 238, 0.4)", shadowBlur: 5, shadowOffsetY: 8 } @@ -112,7 +110,7 @@ export default { lineStyle: { width: 2, color: "#ef9433", - shadowColor: "rgb(239, 148, 51, 0.3)", + shadowColor: "rgb(239, 148, 51, 0.4)", shadowBlur: 5, shadowOffsetY: 8 } diff --git a/src/components/e-charts/water-polo.vue b/src/components/e-charts/water-polo.vue new file mode 100644 index 0000000000000000000000000000000000000000..60442ff1ff33e77f0673995a6df76b7096c34874 --- /dev/null +++ b/src/components/e-charts/water-polo.vue @@ -0,0 +1,176 @@ + + + + \ No newline at end of file diff --git a/src/components/image-detail.vue b/src/components/image-detail.vue index 33eca3458be7b84db1f5af34c9595fa491b43ae7..1dd4c6960bb4c72f821a2f8396d21153a0a6c143 100644 --- a/src/components/image-detail.vue +++ b/src/components/image-detail.vue @@ -127,6 +127,7 @@ export default { type: "success", }); this.getImageDetail(); + this.$emit("refresh"); } else { this.$message({ message: `删除失败`, diff --git a/src/components/order-list/order-list-com.vue b/src/components/order-list/order-list-com.vue index f26ff3f5bbc2a53636b7283e30fb9ae521436ee8..9c117f6417bd4492448947d7f26d738ece4fdb49 100644 --- a/src/components/order-list/order-list-com.vue +++ b/src/components/order-list/order-list-com.vue @@ -60,7 +60,7 @@ :disabled="pagination.page == 1" >   第{{ pagination.page }}页 / 共{{ - Math.floor(pagination.total / pagination.rowsPerPage) + 1 + Math.ceil((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) }}页 diff --git a/src/components/service-list/commodity-list.vue b/src/components/service-list/commodity-list.vue index 1174eebe54bb4b6f1d6ea93c0cb6638736773213..dc99c0a923457ca62229dbbe9de34a18c51f34b7 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.floor(pagination.total / pagination.rowsPerPage) + 1 + Math.ceil((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) }}页 diff --git a/src/components/table/table-um.vue b/src/components/table/table-um.vue index 304e36497c78ddc27c81f47734aa74098ed22fea..8b1de09a6bcb5e133c755a83fa59558e1b581e55 100644 --- a/src/components/table/table-um.vue +++ b/src/components/table/table-um.vue @@ -236,7 +236,7 @@ :disabled="pagination.page == 1" >   第{{ pagination.page }}页 / 共{{ - Math.floor(pagination.total / pagination.rowsPerPage) + 1 + Math.ceil((pagination.total == 0 ? 1 : pagination.total) / pagination.rowsPerPage) }}页 diff --git a/src/components/topology.vue b/src/components/topology.vue index 4ba94fc5ca8a878c94673c0775a9a0fa890961ac..866845a6899b38799447591e382f23aca3febbfd 100644 --- a/src/components/topology.vue +++ b/src/components/topology.vue @@ -416,7 +416,7 @@ export default {