t-button in navbar
This commit is contained in:
@@ -331,34 +331,3 @@ html.theme-dark body {
|
|||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-action {
|
|
||||||
font: inherit;
|
|
||||||
color: var(--td-brand-color);
|
|
||||||
border: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0;
|
|
||||||
background: transparent;
|
|
||||||
|
|
||||||
&.nav-action-icon {
|
|
||||||
color: var(--td-text-color-primary, #333);
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.danger {
|
|
||||||
color: var(--td-error-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
&.nav-action-prominent {
|
|
||||||
color: var(--td-brand-color, #0052d9);
|
|
||||||
padding: .25rem .5rem;
|
|
||||||
font-size: .95rem;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:disabled {
|
|
||||||
color: var(--td-text-color-disabled);
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -7,15 +7,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canUseAi"
|
v-if="canUseAi"
|
||||||
class="nav-history"
|
|
||||||
type="button"
|
|
||||||
:disabled="aiChatPanelRef?.isBusy"
|
:disabled="aiChatPanelRef?.isBusy"
|
||||||
@click="aiChatPanelRef?.openConversationList()"
|
@click="aiChatPanelRef?.openConversationList()"
|
||||||
>
|
theme="primary"
|
||||||
历史
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="历史"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-if="canUseAi" class="ai-chat-page">
|
<div v-if="canUseAi" class="ai-chat-page">
|
||||||
@@ -58,18 +58,6 @@ function startNewConversation(): void {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
.nav-history {
|
|
||||||
color: var(--td-brand-color);
|
|
||||||
border: none;
|
|
||||||
padding: 0;
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-history:disabled {
|
|
||||||
color: var(--td-text-color-disabled);
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ai-chat-page {
|
.ai-chat-page {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="customer?.id && userStore.hasPermissions(permissionCodes.customer.update)"
|
v-if="customer?.id && userStore.hasPermissions(permissionCodes.customer.update)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -7,15 +7,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
:disabled="isCustomerBound"
|
:disabled="isCustomerBound"
|
||||||
@click="doSubmit"
|
@click="doSubmit"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="savePermissionCode" class="customer-edit">
|
<div v-can="savePermissionCode" class="customer-edit">
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toInviteRank"
|
@click="toInviteRank"
|
||||||
>
|
theme="primary"
|
||||||
排行
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="排行"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canUpdate"
|
v-if="canUpdate"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="saveEventItem"
|
@click="saveEventItem"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="pageAccess" class="event-edit">
|
<div v-can="pageAccess" class="event-edit">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canUpdateRecord"
|
v-if="canUpdateRecord"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.eventRecord.read" class="event-record-detail">
|
<div v-can="permissionCodes.eventRecord.read" class="event-record-detail">
|
||||||
|
|||||||
@@ -7,13 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(pageAccess)"
|
v-if="userStore.hasPermissions(pageAccess)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="submitRecord"
|
@click="submitRecord"
|
||||||
v-text="saveButtonText"
|
theme="primary"
|
||||||
></button>
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
:content="saveButtonText"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="pageAccess" class="registration-record-edit">
|
<div v-can="pageAccess" class="registration-record-edit">
|
||||||
|
|||||||
@@ -7,7 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button class="nav-action" type="button" @click="saveSort">保存</button>
|
<t-button
|
||||||
|
@click="saveSort"
|
||||||
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.event.update" class="registration-event-sort">
|
<div v-can="permissionCodes.event.update" class="registration-event-sort">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canUpdate"
|
v-if="canUpdate"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail">
|
<div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail">
|
||||||
|
|||||||
@@ -7,12 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
v-text="isEditMode ? '保存' : '提交'"
|
theme="primary"
|
||||||
></button>
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
:content="isEditMode ? '保存' : '提交'"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="pageAccess" class="follow-up-reminder-edit">
|
<div v-can="pageAccess" class="follow-up-reminder-edit">
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
提交
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="提交"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.orderFulfillment.create" class="fulfillment-create">
|
<div v-can="permissionCodes.orderFulfillment.create" class="fulfillment-create">
|
||||||
|
|||||||
@@ -8,9 +8,14 @@
|
|||||||
@left-click="handleBack"
|
@left-click="handleBack"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button class="nav-action nav-action-prominent" type="button" :disabled="isSaving || isStockChecking || sourceOrderLoading" @click="save">
|
<t-button
|
||||||
<span v-text="isSaving ? '提交中' : '提交'" />
|
:disabled="isSaving || isStockChecking || sourceOrderLoading"
|
||||||
</button>
|
@click="save"
|
||||||
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
:content="isSaving ? '提交中' : '提交'"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-can="permissionCodes.orderFulfillment.create" class="page-content scroll column content">
|
<main v-can="permissionCodes.orderFulfillment.create" class="page-content scroll column content">
|
||||||
|
|||||||
@@ -7,12 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="saveNotification"
|
@click="saveNotification"
|
||||||
v-text="scheduleAtText ? '提交' : '发送'"
|
theme="primary"
|
||||||
></button>
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
:content="scheduleAtText ? '提交' : '发送'"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="corePermissionCodes.notify.create" class="notify-management-create">
|
<div v-can="corePermissionCodes.notify.create" class="notify-management-create">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="detail?.id && canDeleteNotify"
|
v-if="detail?.id && canDeleteNotify"
|
||||||
class="nav-action danger"
|
|
||||||
type="button"
|
|
||||||
@click="confirmDelete"
|
@click="confirmDelete"
|
||||||
>
|
theme="danger"
|
||||||
删除
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="删除"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
|
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
|
||||||
|
|||||||
@@ -8,7 +8,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button v-if="canReadNotify && canCreateNotify" class="nav-action" type="button" @click="toCreate">新建</button>
|
<t-button
|
||||||
|
v-if="canReadNotify && canCreateNotify"
|
||||||
|
@click="toCreate"
|
||||||
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="新建"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
|
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="detail?.id"
|
v-if="detail?.id"
|
||||||
class="nav-action danger"
|
|
||||||
type="button"
|
|
||||||
@click="confirmDelete"
|
@click="confirmDelete"
|
||||||
>
|
theme="danger"
|
||||||
删除
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="删除"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
|
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canReadNotify && 0 < unreadCount"
|
v-if="canReadNotify && 0 < unreadCount"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="markAllRead"
|
@click="markAllRead"
|
||||||
>
|
theme="primary"
|
||||||
全部已读
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="全部已读"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
|
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canUpdate"
|
v-if="canUpdate"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.packageConfig.read" class="package-config-detail">
|
<div v-can="permissionCodes.packageConfig.read" class="package-config-detail">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="savePermissionCode" class="package-config-edit">
|
<div v-can="savePermissionCode" class="package-config-edit">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.customerPackage.create)"
|
v-if="userStore.hasPermissions(permissionCodes.customerPackage.create)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="submitRecord"
|
@click="submitRecord"
|
||||||
>
|
theme="primary"
|
||||||
提交
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="提交"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.customerPackage.create" class="package-purchase">
|
<div v-can="permissionCodes.customerPackage.create" class="package-purchase">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canEditActiveRole && canUpdateRolePermission"
|
v-if="canEditActiveRole && canUpdateRolePermission"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="savePermissionList"
|
@click="savePermissionList"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -7,15 +7,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="hasSavePermission"
|
v-if="hasSavePermission"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
:disabled="!canSaveBaseInfo"
|
:disabled="!canSaveBaseInfo"
|
||||||
@click="saveBaseInfo"
|
@click="saveBaseInfo"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="pageAccess" class="role-edit">
|
<div v-can="pageAccess" class="role-edit">
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canCreateRole"
|
v-if="canCreateRole"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toCreate"
|
@click="toCreate"
|
||||||
>
|
theme="primary"
|
||||||
添加
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="添加"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll list">
|
<main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll list">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canEditActiveRole && canUpdateRolePermission"
|
v-if="canEditActiveRole && canUpdateRolePermission"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="savePermissionList"
|
@click="savePermissionList"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.pointRedeemSku.manage" class="redeem-sku-edit">
|
<div v-can="permissionCodes.pointRedeemSku.manage" class="redeem-sku-edit">
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
兑换
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="兑换"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.pointRedemption.create" class="redemption-create">
|
<div v-can="permissionCodes.pointRedemption.create" class="redemption-create">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="rule?.id && canUpdate"
|
v-if="rule?.id && canUpdate"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.pointRule.read" class="point-rule-detail">
|
<div v-can="permissionCodes.pointRule.read" class="point-rule-detail">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="saveRule"
|
@click="saveRule"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="pageAccess" class="point-rule-edit">
|
<div v-can="pageAccess" class="point-rule-edit">
|
||||||
|
|||||||
@@ -7,7 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button class="nav-action" type="button" @click="saveSort">保存</button>
|
<t-button
|
||||||
|
@click="saveSort"
|
||||||
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.pointRule.update" class="point-rule-sort">
|
<div v-can="permissionCodes.pointRule.update" class="point-rule-sort">
|
||||||
|
|||||||
@@ -7,14 +7,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action nav-action-icon"
|
|
||||||
type="button"
|
|
||||||
aria-label="刷新"
|
aria-label="刷新"
|
||||||
@click="reload"
|
@click="reload"
|
||||||
|
theme="default"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
<t-icon name="refresh" size="1.25rem" />
|
<t-icon name="refresh" size="1.25rem" />
|
||||||
</button>
|
</t-button>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.stat.read" class="gao-chart-page order-data-charts">
|
<div v-can="permissionCodes.stat.read" class="gao-chart-page order-data-charts">
|
||||||
|
|||||||
@@ -7,7 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button v-if="userStore.hasPermissions(permissionCodes.productCategory.update)" class="nav-action" type="button" @click="saveSort">保存</button>
|
<t-button
|
||||||
|
v-if="userStore.hasPermissions(permissionCodes.productCategory.update)"
|
||||||
|
@click="saveSort"
|
||||||
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.productCategory.update" class="product-category-rank">
|
<div v-can="permissionCodes.productCategory.update" class="product-category-rank">
|
||||||
|
|||||||
@@ -7,14 +7,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action nav-action-icon"
|
|
||||||
type="button"
|
|
||||||
aria-label="刷新"
|
aria-label="刷新"
|
||||||
@click="reload"
|
@click="reload"
|
||||||
|
theme="default"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
<t-icon name="refresh" size="1.25rem" />
|
<t-icon name="refresh" size="1.25rem" />
|
||||||
</button>
|
</t-button>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.stat.read" class="gao-chart-page product-data-charts">
|
<div v-can="permissionCodes.stat.read" class="gao-chart-page product-data-charts">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="savePermissionCode" class="product-edit">
|
<div v-can="savePermissionCode" class="product-edit">
|
||||||
|
|||||||
@@ -7,14 +7,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.productStock.create)"
|
v-if="userStore.hasPermissions(permissionCodes.productStock.create)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
:disabled="!canSubmit"
|
:disabled="!canSubmit"
|
||||||
@click="submit"
|
@click="submit"
|
||||||
v-text="isSaving ? '提交中' : '提交'"
|
theme="primary"
|
||||||
></button>
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
:content="isSaving ? '提交中' : '提交'"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
|
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canReadAndCreate"
|
v-if="canReadAndCreate"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
:disabled="!canContinue"
|
:disabled="!canContinue"
|
||||||
@click="toConfigure"
|
@click="toConfigure"
|
||||||
>
|
theme="primary"
|
||||||
下一步
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="下一步"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main v-can="permissionCodes.productStock.create" class="page-content scroll list">
|
<main v-can="permissionCodes.productStock.create" class="page-content scroll list">
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="canBatchIn"
|
v-if="canBatchIn"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="openBatchIn"
|
@click="openBatchIn"
|
||||||
>
|
theme="primary"
|
||||||
批量入库
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="批量入库"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main ref="productStockListRef" v-can="permissionCodes.productStock.read" class="page-content scroll list">
|
<main ref="productStockListRef" v-can="permissionCodes.productStock.read" class="page-content scroll list">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.fund.revoke)"
|
v-if="userStore.hasPermissions(permissionCodes.fund.revoke)"
|
||||||
class="nav-action danger"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="danger"
|
||||||
提交
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="提交"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.fund.revoke" class="package-operation-edit">
|
<div v-can="permissionCodes.fund.revoke" class="package-operation-edit">
|
||||||
|
|||||||
@@ -7,12 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.salesOrder.cancel)"
|
v-if="userStore.hasPermissions(permissionCodes.salesOrder.cancel)"
|
||||||
class="nav-action danger"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>确认</button>
|
theme="danger"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="确认"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.salesOrder.cancel" class="sales-order-operation">
|
<div v-can="permissionCodes.salesOrder.cancel" class="sales-order-operation">
|
||||||
|
|||||||
@@ -7,12 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.fund.refund)"
|
v-if="userStore.hasPermissions(permissionCodes.fund.refund)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>提交</button>
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="提交"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.fund.refund" class="sales-order-operation">
|
<div v-can="permissionCodes.fund.refund" class="sales-order-operation">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.fundReceive.create)"
|
v-if="userStore.hasPermissions(permissionCodes.fundReceive.create)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
提交
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="提交"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.fundReceive.create" class="sales-order-operation">
|
<div v-can="permissionCodes.fundReceive.create" class="sales-order-operation">
|
||||||
|
|||||||
@@ -7,12 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(permissionCodes.fund.refund)"
|
v-if="userStore.hasPermissions(permissionCodes.fund.refund)"
|
||||||
class="nav-action danger"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>提交</button>
|
theme="danger"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="提交"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.fund.refund" class="sales-order-operation">
|
<div v-can="permissionCodes.fund.refund" class="sales-order-operation">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="article?.id && canUpdate && !isDeleting"
|
v-if="article?.id && canUpdate && !isDeleting"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.storeDiary.read" class="store-diary-detail">
|
<div v-can="permissionCodes.storeDiary.read" class="store-diary-detail">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="save"
|
@click="save"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="pageAccess" class="store-diary-edit">
|
<div v-can="pageAccess" class="store-diary-edit">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="doSave"
|
@click="doSave"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="savePermissionCode" class="store-edit">
|
<div v-can="savePermissionCode" class="store-edit">
|
||||||
|
|||||||
@@ -7,7 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button class="nav-action" type="button" @click="saveSort">保存</button>
|
<t-button
|
||||||
|
@click="saveSort"
|
||||||
|
theme="primary"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="permissionCodes.store.update" class="store-sort">
|
<div v-can="permissionCodes.store.update" class="store-sort">
|
||||||
|
|||||||
@@ -12,9 +12,15 @@
|
|||||||
:max-count="99"
|
:max-count="99"
|
||||||
:show-zero="false"
|
:show-zero="false"
|
||||||
>
|
>
|
||||||
<button class="nav-action nav-action-icon" type="button" aria-label="通知" @click="router.push('/notify')">
|
<t-button
|
||||||
|
aria-label="通知"
|
||||||
|
@click="router.push('/notify')"
|
||||||
|
theme="default"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
<t-icon name="notification" size="1.25rem" />
|
<t-icon name="notification" size="1.25rem" />
|
||||||
</button>
|
</t-button>
|
||||||
</t-badge>
|
</t-badge>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<t-navbar fixed :z-index="20" title="门店">
|
<t-navbar fixed :z-index="20" title="门店">
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action nav-action-icon"
|
|
||||||
type="button"
|
|
||||||
aria-label="刷新"
|
aria-label="刷新"
|
||||||
@click="refreshCharts"
|
@click="refreshCharts"
|
||||||
|
theme="default"
|
||||||
|
variant="text"
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
<t-icon name="refresh" size="1.25rem" />
|
<t-icon name="refresh" size="1.25rem" />
|
||||||
</button>
|
</t-button>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<main class="page-content scroll column store-tab">
|
<main class="page-content scroll column store-tab">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="currentUser && userStore.hasPermissions(permissionCodes.user.update)"
|
v-if="currentUser && userStore.hasPermissions(permissionCodes.user.update)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="toEdit"
|
@click="toEdit"
|
||||||
>
|
theme="primary"
|
||||||
编辑
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="编辑"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="saveUser"
|
@click="saveUser"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="savePermissionCode" class="user-edit">
|
<div v-can="savePermissionCode" class="user-edit">
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="saveProfile"
|
@click="saveProfile"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div class="profile-page">
|
<div class="profile-page">
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
@left-click="$router.back()"
|
@left-click="$router.back()"
|
||||||
>
|
>
|
||||||
<template #right>
|
<template #right>
|
||||||
<button
|
<t-button
|
||||||
v-if="userStore.hasPermissions(corePermissionCodes.userRole.create) && userStore.hasPermissions(corePermissionCodes.userRole.delete)"
|
v-if="userStore.hasPermissions(corePermissionCodes.userRole.create) && userStore.hasPermissions(corePermissionCodes.userRole.delete)"
|
||||||
class="nav-action"
|
|
||||||
type="button"
|
|
||||||
@click="saveRoleList"
|
@click="saveRoleList"
|
||||||
>
|
theme="primary"
|
||||||
保存
|
variant="text"
|
||||||
</button>
|
size="small"
|
||||||
|
content="保存"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</t-navbar>
|
</t-navbar>
|
||||||
<div v-can="corePermissionCodes.userRole.read" class="user-role-assign">
|
<div v-can="corePermissionCodes.userRole.read" class="user-role-assign">
|
||||||
|
|||||||
Reference in New Issue
Block a user