t-button in navbar
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canUpdate"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.packageConfig.read" class="package-config-detail">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="save"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="savePermissionCode" class="package-config-edit">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.customerPackage.create)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="submitRecord"
|
||||
>
|
||||
提交
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.customerPackage.create" class="package-purchase">
|
||||
|
||||
Reference in New Issue
Block a user