ludc
2023-10-26 0c70227fc2ace5da24f27515574981310643c4be
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
<template>
  <basic-container>
    <avue-crud v-bind="bindVal"
      v-on="onEvent"
      v-model="form"
      :permission="permissionList"
      :page.sync="page">
      <template slot="menuLeft">
        <el-button v-if="permissionList.delBtn"
          type="danger"
          size="small"
          icon="el-icon-delete"
          plain
          @click="handleDelete">删 除
        </el-button>
      </template>
    </avue-crud>
  </basic-container>
</template>
 
<script>
 
export default window.$crudCommon({
  data() {
    return {}
  },
  computed: {
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.param.param_add, false),
        viewBtn: this.vaildData(this.permission.param.param_view, false),
        delBtn: this.vaildData(this.permission.param.param_delete, false),
        editBtn: this.vaildData(this.permission.param.param_edit, false)
      };
    }
  },
  methods: {}
}, {
  //模块路径
  name: 'system/param',
})
</script>
 
<style>
</style>