“增加权限”

This commit is contained in:
zhoulingpo
2023-08-04 18:00:53 +08:00
parent 12ce0ac76c
commit 2e963262b6
4 changed files with 19364 additions and 5 deletions
+19355
View File
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -148,7 +148,11 @@ export default {
if (res.success) {
if (res.message === 'local') {
const img = 'data:image/jpeg;base64,' + blob.base64()
success(img)
editor.execCommand(
"mceReplaceContent",
false,
`<img class="wscnph" src="${img}" >`
);
} else {
const img = getFileAccessHttpUrl(res.message)
editor.execCommand(
@@ -92,7 +92,7 @@
<a-menu-item v-show="show">
<a @click="handleEdit(record)">编辑</a>
</a-menu-item>
<a-menu-item>
<a-menu-item v-has="'message:del'">
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
@@ -40,11 +40,11 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button @click="handleAdd" type="default" icon="plus" >新增</a-button>
<a-button type="default" icon="download" @click="handleExportXls('消息模板')">导出</a-button>
<a-button @click="handleAdd" type="default" icon="plus" v-has="'message:template:add'">新增</a-button>
<a-button type="default" icon="download" @click="handleExportXls('消息模板')" v-has="'message:template:export'">导出</a-button>
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
@change="handleImportExcel" :before-upload='beforeUpload'>
<a-button type="default" icon="import" >导入</a-button>
<a-button type="default" icon="import" v-has="'message:template:import'">导入</a-button>
</a-upload>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">