重构小程序端管理模块

This commit is contained in:
2024-07-21 19:58:08 +08:00
parent 48ea6d0301
commit 23a25e1285
55 changed files with 3177 additions and 333 deletions

View File

@@ -46,14 +46,14 @@
<a-tooltip :title="`复制链接地址`">
<copy-outlined
style="padding-left: 4px"
@click="copyText(FILE_SERVER + record.downloadUrl)"
@click="copyText(record.downloadUrl)"
/>
</a-tooltip>
</template>
<template v-if="column.key === 'action'">
<a @click="openPreview(FILE_SERVER + record.downloadUrl)">预览</a>
<a @click="openPreview(record.downloadUrl)">预览</a>
<a-divider type="vertical" />
<a :href="FILE_SERVER + record.downloadUrl" target="_blank">下载</a>
<a :href="record.downloadUrl" target="_blank">下载</a>
<a-divider type="vertical" />
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
@@ -91,10 +91,10 @@
pageFiles,
removeFile,
removeFiles,
uploadFileLocal
uploadOssByAppId
} from '@/api/system/file';
import type { FileRecord, FileRecordParam } from '@/api/system/file/model';
import {copyText, openNew, openPreview} from '@/utils/common';
import { copyText, openPreview } from '@/utils/common';
import { FILE_SERVER } from '@/config/setting';
const props = defineProps<{
@@ -257,7 +257,7 @@
duration: 0,
mask: true
});
uploadFileLocal(file, props.data.appId)
uploadOssByAppId(file, props.data.appId)
.then((data) => {
console.log(data);
hide();

View File

@@ -121,12 +121,6 @@
width: 80,
hideInTable: true
},
{
title: '所属企业',
dataIndex: 'companyName',
width: 280,
key: 'companyName'
},
{
title: '服务器IP',
dataIndex: 'code',
@@ -156,6 +150,12 @@
align: 'center',
sorter: true
},
{
title: '所属企业',
dataIndex: 'companyName',
width: 280,
key: 'companyName'
},
{
title: '描述',
dataIndex: 'name',