wente
2024-06-03 e2d963f6e794aed358bf569f0d98dd53da4781be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
  <div class="fa-card-a" shadow="never">
    <div class="mod-sys__menu">
      <zt-table-wraper ref="tableObj" v-slot="{ table }" delete-url="/sys/menu" query-url="/sys/menu/nav"
                       v-bind:paging='false'>
        <el-table v-adaptive="{bottomOffset:30}"
                  v-loading="table.dataLoading" :data="table.dataList" border height="650px" row-key="id">
          <el-table-column :label="$t('menu.name')" align="center" min-width="150" prop="name"/>
          <el-table-column :label="$t('menu.icon')" align="center" prop="icon">
            <template slot-scope="scope">
              <svg aria-hidden="true" class="icon-svg">
                <use :xlink:href="`#${scope.row.icon}`"></use>
              </svg>
            </template>
          </el-table-column>
          <zt-table-column-dict :label="$t('menu.type')" dict="menu_type" prop="type"/>
          <el-table-column :label="$t('menu.sort')" align="center" prop="sort"/>
          <el-table-column :label="$t('handle')" align="center" fixed="right" header-align="center" width="150">
            <template v-slot="{ row }">
              <el-button size="small" type="text" @click="table.editHandle(row)">配置</el-button>
            </template>
          </el-table-column>
        </el-table>
        <!-- 弹窗, 新增 / 修改 -->
        <add-or-update @refreshDataList="table.query"/>
      </zt-table-wraper>
    </div>
  </div>
</template>
 
<script>
import AddOrUpdate from './menu-config-add-or-update'
 
export default {
  data() {
    return {
      dataForm: {
        id: ''
      }
    }
  },
  components: {
    AddOrUpdate
  },
  computed: {
    // menus() {
    //   return this.$refs.tableObj.dataList
    // }
  }
}
</script>