修复注册码权限无效bug
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<Icon class="icon" @click="changeStar" v-if="email.isStar" icon="fluent-color:star-16" width="21" height="20"/>
|
||||
<Icon class="icon" @click="changeStar" v-else icon="solar:star-line-duotone" width="19" height="19"/>
|
||||
</span>
|
||||
<Icon class="icon" v-if="emailStore.contentData.showReply" @click="openReply" icon="carbon:reply" width="20" height="20" />
|
||||
<Icon class="icon" v-if="emailStore.contentData.showReply" v-perm="'email:send'" @click="openReply" icon="carbon:reply" width="20" height="20" />
|
||||
</div>
|
||||
<div></div>
|
||||
<el-scrollbar class="scrollbar">
|
||||
|
||||
@@ -64,7 +64,7 @@ function jumpContent(email) {
|
||||
emailStore.contentData.delType = 'logic'
|
||||
emailStore.contentData.showStar = true
|
||||
emailStore.contentData.showReply = true
|
||||
router.push('/content')
|
||||
router.push('/message')
|
||||
}
|
||||
|
||||
const existIds = new Set();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
style="width: 100%;"
|
||||
>
|
||||
<el-table-column width="10" />
|
||||
<el-table-column :label="$t('roleName')" prop="name" :min-width="roleWidth">
|
||||
<el-table-column :label="$t('role')" prop="name" :min-width="roleWidth">
|
||||
<template #default="props">
|
||||
<div class="role-name">
|
||||
<span >{{props.row.name}}</span>
|
||||
@@ -79,7 +79,7 @@
|
||||
<div>
|
||||
<span>{{node.label}}</span>
|
||||
<span class="send-num" v-if="data.permKey === 'email:send'" @click.stop>
|
||||
<el-input-number v-model="form.sendCount" controls-position="right" :max="99999" size="small" :placeholder="$t('total')" >
|
||||
<el-input-number v-model="form.sendCount" controls-position="right" :min="0" :max="99999" size="small" :placeholder="$t('total')" >
|
||||
</el-input-number>
|
||||
<el-select v-model="form.sendType" placeholder="Select" size="small" style="width: 65px;margin-left: 5px;">
|
||||
<el-option :label="$t('total')" value="count" />
|
||||
|
||||
@@ -59,7 +59,7 @@ function jumpContent(email) {
|
||||
emailStore.contentData.delType = 'logic'
|
||||
emailStore.contentData.showStar = true
|
||||
emailStore.contentData.showReply = true
|
||||
router.push('/content')
|
||||
router.push('/message')
|
||||
}
|
||||
|
||||
function addStar(email) {
|
||||
|
||||
@@ -32,7 +32,7 @@ function jumpContent(email) {
|
||||
emailStore.contentData.delType = 'logic'
|
||||
emailStore.contentData.showStar = true
|
||||
emailStore.contentData.showReply = true
|
||||
router.push('/content')
|
||||
router.push('/message')
|
||||
}
|
||||
|
||||
function cancelStar(email) {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
>
|
||||
</el-input>
|
||||
</div>
|
||||
<el-select v-model="params.status" placeholder="Select" class="status-select">
|
||||
<el-select v-model="params.status" placeholder="Select" class="status-select" :style="`width: ${locale === 'en' ? 95 : 80 }px`">
|
||||
<el-option :key="-1" :label="$t('all')" :value="-1"/>
|
||||
<el-option :key="0" :label="$t('active')" :value="0"/>
|
||||
<el-option :key="1" :label="$t('banned')" :value="1"/>
|
||||
@@ -507,11 +507,11 @@ function formatSendType(user) {
|
||||
function formatSendCount(user) {
|
||||
|
||||
if (!user.sendAction.hasPerm) {
|
||||
return t('noPerm')
|
||||
return t('unauthorized')
|
||||
}
|
||||
|
||||
if (!user.sendAction.sendCount) {
|
||||
return t('noLimit');
|
||||
return t('unlimited');
|
||||
}
|
||||
|
||||
let count = user.sendCount + '/' + user.sendAction.sendCount
|
||||
@@ -898,8 +898,6 @@ function adjustWidth() {
|
||||
}
|
||||
|
||||
.status-select {
|
||||
width: 95px;
|
||||
|
||||
:deep(.el-select__wrapper) {
|
||||
min-height: 28px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user