♻️ Refactoring code. 优化代码展示

This commit is contained in:
aeizzz 2023-03-02 14:18:05 +08:00
parent 24f4177d8c
commit fdb2526351
2 changed files with 11 additions and 30 deletions

View File

@ -55,30 +55,11 @@
</el-table-column>
<el-table-column :label="$t('common.action')" width="200">
<template #default="scope">
<el-button v-auth="'mp_wxaccount_edit'" text type="primary"
@click="formDialogRef.openDialog(scope.row.id)">{{ $t('common.editBtn') }}
</el-button>
<el-button v-auth="'mp_wxaccount_del'" text type="primary" @click="handleDelete([scope.row.id])">{{
$t('common.delBtn')
}}
</el-button>
<el-button
type="text"
@click="access(scope.row,scope.index)">
接入
</el-button>
<el-button
type="text"
@click="generate(scope.row,scope.index)">二维码
</el-button>
<el-button
type="text"
@click="quota(scope.row,scope.index)">
quota
</el-button>
<el-button v-auth="'mp_wxaccount_edit'" text type="primary" @click="formDialogRef.openDialog(scope.row.id)">{{ $t('common.editBtn') }}</el-button>
<el-button v-auth="'mp_wxaccount_del'" text type="primary" @click="handleDelete([scope.row.id])">{{$t('common.delBtn') }}</el-button>
<el-button text type="primary" @click="access(scope.row,scope.index)">接入</el-button>
<el-button text type="primary" @click="generate(scope.row,scope.index)">二维码</el-button>
<el-button text type="primary" @click="quota(scope.row,scope.index)">quota</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -29,13 +29,13 @@
<el-table-column label="操作" prop="action" show-overflow-tooltip>
<template #default="scope">
<el-button
link
icon="el-icon-edit"
plain
@click="handleEdit(scope.row)">编辑
</el-button>
<el-button
link
icon="el-icon-delete"
plain
@click="handleDel(scope.row)">删除
</el-button>
</template>
@ -68,12 +68,12 @@
<template #default="scope">
<el-button
icon="el-icon-edit"
plain
link
@click="handleEdit(scope.row)">编辑
</el-button>
<el-button
icon="el-icon-delete"
plain
link
@click="handleDel(scope.row)">删除
</el-button>
</template>
@ -108,12 +108,12 @@
<template #default="scope">
<el-button
icon="el-icon-edit"
plain
link
@click="handleEdit(scope.row)">编辑
</el-button>
<el-button
icon="el-icon-delete"
plain
link
@click="handleDel(scope.row)">删除
</el-button>
</template>