zjs_project 4 mēneši atpakaļ
vecāks
revīzija
6e0498800a
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 0 1
      src/views/dish/lists/index.vue
  2. 3 2
      src/views/workbench/index.vue

+ 0 - 1
src/views/dish/lists/index.vue

@@ -84,7 +84,6 @@
                 <el-table-column label="状态" min-width="100">
                     <template #default="{ row }">
                         <el-switch
-                            v-perms="['dish:cate:change']"
                             v-model="row.isShow"
                             :active-value="1"
                             :inactive-value="0"

+ 3 - 2
src/views/workbench/index.vue

@@ -115,7 +115,7 @@
             </el-card>
             <el-card class="!border-none mb-4" shadow="never">
                 <template #header>
-                    <span>昨日被点菜品排行榜</span>
+                    <span>昨日被点菜品TOP10</span>
                 </template>
                 <div>
                     <v-charts
@@ -338,12 +338,13 @@ const workbenchData: any = reactive({
                 // data: [33, 26, 25, 15, 12, 9, 9],
                 data: [],
                 type: 'bar',
+                barCategoryGap: '10', // 设置柱子之间的间距
                 label: {
                     show: true,
                     position: 'right'
                 },
                 color: '#009982',
-                barWidth: '30px'
+                barWidth: '20px'
             }
         ]
     }