字典类型 CRUD
This commit is contained in:
@@ -101,21 +101,21 @@
|
||||
<!-- 表格操作 -->
|
||||
<!-- <template #operation="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
dictType="primary"
|
||||
link
|
||||
:icon="View"
|
||||
@click="openDrawer('查看', scope.row)"
|
||||
>查看</el-button
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
dictType="primary"
|
||||
link
|
||||
:icon="EditPen"
|
||||
@click="openDrawer('编辑', scope.row)"
|
||||
>导出</el-button
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
dictType="primary"
|
||||
link
|
||||
:icon="Delete"
|
||||
@click="deleteAccount(scope.row)"
|
||||
|
||||
@@ -133,8 +133,8 @@ const treeRef = ref<any>();
|
||||
// 表格配置项
|
||||
const columns = reactive<ColumnProps<User.ResUserList>[]>([
|
||||
{ type: "selection", fixed: "left", width: 70 },
|
||||
// { type: "sort", label: "Sort", width: 80 },
|
||||
// { type: "expand", label: "Expand", width: 85 },
|
||||
// { dictType: "sort", label: "Sort", width: 80 },
|
||||
// { dictType: "expand", label: "Expand", width: 85 },
|
||||
{
|
||||
prop: "planName",
|
||||
label: "计划名称",
|
||||
|
||||
@@ -181,7 +181,7 @@ const rules = reactive<FormRules<RuleForm>>({
|
||||
{
|
||||
type: 'array',
|
||||
required: true,
|
||||
message: 'Please select at least one activity type',
|
||||
message: 'Please select at least one activity dictType',
|
||||
trigger: 'change',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -86,14 +86,14 @@
|
||||
</el-form>
|
||||
<!-- <el-button
|
||||
v-auth="'add'"
|
||||
type="primary"
|
||||
dictType="primary"
|
||||
:icon="CirclePlus"
|
||||
@click="openDrawer('新增')"
|
||||
>新增用户</el-button
|
||||
>
|
||||
<el-button
|
||||
v-auth="'batchAdd'"
|
||||
type="primary"
|
||||
dictType="primary"
|
||||
:icon="Upload"
|
||||
plain
|
||||
@click="batchAdd"
|
||||
@@ -101,17 +101,17 @@
|
||||
>
|
||||
<el-button
|
||||
v-auth="'export'"
|
||||
type="primary"
|
||||
dictType="primary"
|
||||
:icon="Download"
|
||||
plain
|
||||
@click="downloadFile"
|
||||
>导出用户数据</el-button
|
||||
>
|
||||
<el-button type="primary" plain @click="toDetail"
|
||||
<el-button dictType="primary" plain @click="toDetail"
|
||||
>To 子集详情页面</el-button
|
||||
>
|
||||
<el-button
|
||||
type="danger"
|
||||
dictType="danger"
|
||||
:icon="Delete"
|
||||
plain
|
||||
:disabled="!scope.isSelected"
|
||||
|
||||
Reference in New Issue
Block a user