|
|
@@ -5,23 +5,21 @@
|
|
|
<div>{{ scope.row.addTime | formatTime }}</div>
|
|
|
</template>
|
|
|
|
|
|
- <!-- 权限设置 -->
|
|
|
- <template #slot-auth="{scope}">
|
|
|
- <el-button type="text" @click="authBtnFn(scope.row)">权限设置</el-button>
|
|
|
- </template>
|
|
|
<!-- 编辑 -->
|
|
|
<template #slot-modify="{scope}">
|
|
|
<el-button type="text" @click="modifyBtnFn(scope.row)">编辑</el-button>
|
|
|
</template>
|
|
|
+
|
|
|
<!-- 删除 -->
|
|
|
<template #slot-del="{scope}">
|
|
|
<el-button type="text" @click="delBtnFn(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
|
|
|
<!-- 添加 -->
|
|
|
- <template #slot-add-ad-btn="{scope}">
|
|
|
+ <template #slot-add-ad-btn>
|
|
|
<el-button type="primary" size="mini" @click="addBtnFn">添加</el-button>
|
|
|
</template>
|
|
|
+
|
|
|
</x-crud>
|
|
|
<!-- 新增弹窗 -->
|
|
|
<el-dialog
|
|
|
@@ -189,12 +187,18 @@ export default {
|
|
|
label: '操作'
|
|
|
},
|
|
|
// 布局,请移步 `layout`
|
|
|
- layout: ['slot-auth', 'slot-modify', 'slot-del']
|
|
|
+ layout: [
|
|
|
+ //'slot-modify', 'slot-del'
|
|
|
+ ]
|
|
|
}
|
|
|
})
|
|
|
.set('layout', [
|
|
|
['slot-tabs'],
|
|
|
- ['flex1', 'slot-add-ad-btn', 'refresh-btn'],
|
|
|
+ [
|
|
|
+ 'flex1',
|
|
|
+ //'slot-add-ad-btn',
|
|
|
+ 'refresh-btn'
|
|
|
+ ],
|
|
|
['data-table'],
|
|
|
['flex1', 'pagination']
|
|
|
])
|