mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
vue3 代码生成
This commit is contained in:
parent
6f1f8d8eaa
commit
2c1419fb1a
@ -97,17 +97,20 @@ getList()
|
|||||||
<ContentWrap>
|
<ContentWrap>
|
||||||
<!-- 操作工具栏 -->
|
<!-- 操作工具栏 -->
|
||||||
<div class="mb-10px">
|
<div class="mb-10px">
|
||||||
<el-button type="primary" v-hasPermi="['${permissionPrefix}:create']" @click="handleCreate">
|
<XButton
|
||||||
<Icon icon="ep:zoom-in" class="mr-5px" /> {{ t('action.add') }}
|
type="primary"
|
||||||
</el-button>
|
preIcon="ep:zoom-in"
|
||||||
<el-button
|
:title="t('action.add')"
|
||||||
|
v-hasPermi="['${permissionPrefix}:create']"
|
||||||
|
@click="handleCreate()"
|
||||||
|
/>
|
||||||
|
<XButton
|
||||||
type="warning"
|
type="warning"
|
||||||
|
preIcon="ep:download"
|
||||||
|
:title="t('action.export')"
|
||||||
v-hasPermi="['${permissionPrefix}:export']"
|
v-hasPermi="['${permissionPrefix}:export']"
|
||||||
:loading="tableObject.exportLoading"
|
|
||||||
@click="exportList('数据.xls')"
|
@click="exportList('数据.xls')"
|
||||||
>
|
/>
|
||||||
<Icon icon="ep:download" class="mr-5px" /> {{ t('action.export') }}
|
|
||||||
</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<Table
|
<Table
|
||||||
@ -137,30 +140,30 @@ getList()
|
|||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
<template #action="{ row }">
|
<template #action="{ row }">
|
||||||
<el-button
|
<XButton
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
|
preIcon="ep:edit"
|
||||||
|
:title="t('action.edit')"
|
||||||
v-hasPermi="['${permissionPrefix}:update']"
|
v-hasPermi="['${permissionPrefix}:update']"
|
||||||
@click="handleUpdate(row)"
|
@click="handleUpdate(row.id)"
|
||||||
>
|
/>
|
||||||
<Icon icon="ep:edit" class="mr-1px" /> {{ t('action.edit') }}
|
<XButton
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
|
preIcon="ep:view"
|
||||||
|
:title="t('action.detail')"
|
||||||
v-hasPermi="['${permissionPrefix}:update']"
|
v-hasPermi="['${permissionPrefix}:update']"
|
||||||
@click="handleDetail(row)"
|
@click="handleDetail(row)"
|
||||||
>
|
/>
|
||||||
<Icon icon="ep:view" class="mr-1px" /> {{ t('action.detail') }}
|
<XButton
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
|
preIcon="ep:delete"
|
||||||
|
:title="t('action.del')"
|
||||||
v-hasPermi="['${permissionPrefix}:delete']"
|
v-hasPermi="['${permissionPrefix}:delete']"
|
||||||
@click="delList(row.id, false)"
|
@click="handleDelete(row.id)"
|
||||||
>
|
/>
|
||||||
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
|
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</Table>
|
</Table>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
@ -196,15 +199,14 @@ getList()
|
|||||||
</Descriptions>
|
</Descriptions>
|
||||||
<!-- 操作按钮 -->
|
<!-- 操作按钮 -->
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button
|
<XButton
|
||||||
v-if="['create', 'update'].includes(actionType)"
|
v-if="['create', 'update'].includes(actionType)"
|
||||||
type="primary"
|
|
||||||
:loading="actionLoading"
|
:loading="actionLoading"
|
||||||
|
:title="t('action.save')"
|
||||||
|
type="primary"
|
||||||
@click="submitForm"
|
@click="submitForm"
|
||||||
>
|
/>
|
||||||
{{ t('action.save') }}
|
<XButton :loading="actionLoading" :title="t('dialog.close')" @click="dialogVisible = false" />
|
||||||
</el-button>
|
|
||||||
<el-button @click="dialogVisible = false">{{ t('dialog.close') }}</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user