|
@@ -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>
|