Browse Source

修改授权情况

zhaoke 3 years ago
parent
commit
a4f750898b
1 changed files with 19 additions and 32 deletions
  1. 19 32
      src/views/dashboard/components/analysis.vue

+ 19 - 32
src/views/dashboard/components/analysis.vue

@@ -66,17 +66,10 @@
       <div class="tu-authorize box-public-shadow flex1 l22">
         <div class="tu-authorize-content h100 flex">
           <div class="tu-authorize-content-left w160 relative">
-            <commonChartsPie
-              :option="authorizeOption"
-              id="tu-authorize-content"
-            />
+            <commonChartsPie :option="authorizeOption" id="tu-authorize-content" />
           </div>
           <div class="tu-authorize-content-right">
-            <div
-              v-for="(item, index) in authorizeArr"
-              :key="index"
-              class="behavior-list"
-            >
+            <div v-for="(item, index) in authorizeArr" :key="index" class="behavior-list">
               <span :style="{ background: item.color }" class="icon"></span>
               <span class="name">{{ item.name }}:</span>
               <span class="num">{{ item.num }}</span>
@@ -88,17 +81,10 @@
       <div class="tu-behavior box-public-shadow flex1 l22">
         <div class="tu-behavior-content h100 flex">
           <div class="tu-behavior-content-left w160 relative">
-            <commonChartsPie
-              :option="behaviorOption"
-              id="tu-behavior-content"
-            />
+            <commonChartsPie :option="behaviorOption" id="tu-behavior-content" />
           </div>
           <div class="tu-behavior-content-right">
-            <div
-              v-for="(item, index) in behaviorArr"
-              :key="index"
-              class="behavior-list"
-            >
+            <div v-for="(item, index) in behaviorArr" :key="index" class="behavior-list">
               <span :style="{ background: item.color }" class="icon"></span>
               <span class="name">{{ item.name }}:</span>
               <span class="num">{{ item.num }}</span>
@@ -161,7 +147,7 @@ export default {
     commonProgress,
     dateType,
   },
-  data() {
+  data () {
     return {
       OpenRole: 1,
       // 账号信息分析饼图数据
@@ -552,16 +538,17 @@ export default {
         title: {
           text: "授权情况",
         },
-        color: ["#8969BE", "#94C6E0", "#85EAC8", "#F4C23A", "#E752A3"],
+        // color: ["#8969BE", "#94C6E0", "#85EAC8", "#F4C23A", "#E752A3"],
+        color: ["#94C6E0", "#85EAC8", "#E752A3"],
         series: [
           {
             name: "授权情况",
             radius: ["40%", "100%"],
             data: [
-              { value: 1276, name: "账号授权", key: "accountAuthorization" },
+              // { value: 1276, name: "账号授权", key: "accountAuthorization" },
               { value: 126, name: "分组授权", key: "groupAuthorization" },
               { value: 1236, name: "职员授权", key: "officerAuthorization" },
-              { value: 12736, name: "组织授权", key: "organAuthorization" },
+              // { value: 12736, name: "组织授权", key: "organAuthorization" },
               { value: 127, name: "角色授权", key: "roleAuthorization" },
             ],
           },
@@ -761,7 +748,7 @@ export default {
   computed: {
     ...mapGetters(["systemSet"]),
   },
-  created() {
+  created () {
     const { OpenRole } =
       typeof this.systemSet === "string"
         ? JSON.parse(this.systemSet)
@@ -771,7 +758,7 @@ export default {
   },
   methods: {
     //账号信息切换
-    checkAccountType(params) {
+    checkAccountType (params) {
       if (params.value === 1 && params.name === "账号") {
         this.accountOption.title.text = "账号信息分析";
         this.accountTeamsOne[0].txt = "账号数";
@@ -785,16 +772,16 @@ export default {
       }
     },
     // 系统运行异常情况-日期选择
-    checkSysType(params) {
+    checkSysType (params) {
       //console.log(`系统运行异常情况---->name:${params.name},value:${params.value}`)
     },
     // API调用情况-日期选择
-    checkApiType(params) {
+    checkApiType (params) {
       //console.log(`API调用情况---->name:${params.name},value:${params.value}`)
     },
     //---------------获取数据方法------------------
     //获取账号信息分析
-    async getUserAna() {
+    async getUserAna () {
       try {
         const result = await GetUserAna();
         if (result.code === 0) {
@@ -821,7 +808,7 @@ export default {
       }
     },
     //获取职员信息分析
-    async getOfficerAna() {
+    async getOfficerAna () {
       try {
         const result = await GetOfficerAna();
         if (result.code === 0) {
@@ -848,7 +835,7 @@ export default {
       }
     },
     //获取角色信息分析
-    async getRoleAna() {
+    async getRoleAna () {
       try {
         const result = await GetRoleAna();
         if (result.code === 0) {
@@ -876,7 +863,7 @@ export default {
       }
     },
     //获取权限信息分析
-    async getAuthAna() {
+    async getAuthAna () {
       try {
         const result = await GetAuthAna();
         if (result.code === 0) {
@@ -899,7 +886,7 @@ export default {
         console.log("网络错误:", error);
       }
     },
-    async getStatus() {
+    async getStatus () {
       try {
         const result = await GetStatus();
         if (result.code === 0) {
@@ -971,7 +958,7 @@ export default {
         console.log("网络错误:", error);
       }
     },
-    pageInit() {
+    pageInit () {
       this.getUserAna();
       this.getRoleAna();
       this.getAuthAna();