소스 검색

Merge remote-tracking branch 'origin/master'

ZaiZai 1 년 전
부모
커밋
b0834d74d4
1개의 변경된 파일13개의 추가작업 그리고 6개의 파일을 삭제
  1. 13 6
      src/views/system/menu.vue

+ 13 - 6
src/views/system/menu.vue

@@ -20,14 +20,21 @@
                     <span class="text-white">搜索</span>
                 </el-button>
             </template>
-            <hc-table 
-                is-check
-                :column="tableColumn"
-                :datas="tableData" 
-                :header-row-style="tableHeaderRowStyle"
-            
+            <hc-table
+                ui="no-border" has-children="hasChildren1" :is-index="false" is-check border 
+                :column="tableColumn" :datas="tableData" :header-row-style="tableHeaderRowStyle"
+              
+             
                 @selection-change="tableSelectionChange"
             >
+                <template #name="{ row }">
+                    <i v-if="row.source" :class="[`ri-${row?.source}`]" class="hc-icon-i table-menu-icon" />
+                    <span>{{ row.name }}</span>
+                </template>
+                <template #category="{ row }">
+                    <span v-if="row.category === 1">菜单</span>
+                    <span v-if="row.category === 2">按钮</span>
+                </template>
                 <template #action="{ row }">
                     <el-link type="success" @click="eidtMenu(row)">   <hc-icon name="edit" />编辑</el-link>
                     <el-link type="success" @click="addChildren(row)">   <hc-icon name="edit" />新增子项</el-link>