修改上传接口

v1.4.0
于肖磊 2025-06-17 16:41:48 +08:00
parent 3a427ae888
commit 99510fa0d7
2 changed files with 11 additions and 11 deletions

View File

@ -4,14 +4,14 @@ class UploadAPI {
/** 分类查询接口*/ /** 分类查询接口*/
static getTree() { static getTree() {
return request({ return request({
url: `diyapi/attachmentcategory`, url: `attachmentapi/attachmentcategory`,
method: 'post', method: 'post',
}); });
} }
/** 分类新增,修改接口 */ /** 分类新增,修改接口 */
static saveTree(data: any) { static saveTree(data: any) {
return request({ return request({
url: `diyapi/attachmentcategorysave`, url: `attachmentapi/attachmentcategorysave`,
method: 'post', method: 'post',
data, data,
}); });
@ -19,7 +19,7 @@ class UploadAPI {
/** 分类删除接口 */ /** 分类删除接口 */
static delTree(data: any) { static delTree(data: any) {
return request({ return request({
url: `diyapi/attachmentcategorydelete`, url: `attachmentapi/attachmentcategorydelete`,
method: 'post', method: 'post',
data, data,
}); });
@ -27,7 +27,7 @@ class UploadAPI {
/** 附件移动分类 */ /** 附件移动分类 */
static moveTree(data: any) { static moveTree(data: any) {
return request({ return request({
url: `diyapi/attachmentmovecategory`, url: `attachmentapi/attachmentmovecategory`,
method: 'post', method: 'post',
data, data,
}); });
@ -36,7 +36,7 @@ class UploadAPI {
// 附件列表 // 附件列表
static getAttachmentList(data: any) { static getAttachmentList(data: any) {
return request({ return request({
url: `diyapi/attachmentlist`, url: `attachmentapi/attachmentlist`,
method: 'post', method: 'post',
data, data,
}); });
@ -44,7 +44,7 @@ class UploadAPI {
// 附件名称修改 // 附件名称修改
static saveAttachmentName(data: any) { static saveAttachmentName(data: any) {
return request({ return request({
url: `diyapi/attachmentsave`, url: `attachmentapi/attachmentsave`,
method: 'post', method: 'post',
data, data,
}); });
@ -52,7 +52,7 @@ class UploadAPI {
// 附件删除 // 附件删除
static delAttachment(data: any) { static delAttachment(data: any) {
return request({ return request({
url: `diyapi/attachmentdelete`, url: `attachmentapi/attachmentdelete`,
method: 'post', method: 'post',
data, data,
}); });
@ -60,7 +60,7 @@ class UploadAPI {
// 附件上传 // 附件上传
static uploadAttachment(data: any, progress: any) { static uploadAttachment(data: any, progress: any) {
return request({ return request({
url: `diyapi/attachmentupload`, url: `attachmentapi/attachmentupload`,
method: 'post', method: 'post',
data, data,
headers: { headers: {
@ -72,7 +72,7 @@ class UploadAPI {
// 扫码上传 // 扫码上传
static uploadQrcode(data: any) { static uploadQrcode(data: any) {
return request({ return request({
url: `diyapi/attachmentscanuploaddata`, url: `attachmentapi/attachmentscanuploaddata`,
method: 'post', method: 'post',
data, data,
}); });
@ -80,7 +80,7 @@ class UploadAPI {
// 提取链接 --------附件远程下载 // 提取链接 --------附件远程下载
static getAttachmentCatch(data: any) { static getAttachmentCatch(data: any) {
return request({ return request({
url: `diyapi/attachmentcatch`, url: `attachmentapi/attachmentcatch`,
method: 'post', method: 'post',
data, data,
}); });

View File

@ -23,7 +23,7 @@
<el-dialog v-model="dialog_visible" class="radius-lg" width="650" draggable :close-on-click-modal="false" append-to-body> <el-dialog v-model="dialog_visible" class="radius-lg" width="650" draggable :close-on-click-modal="false" append-to-body>
<template #header> <template #header>
<div class="title re"> <div class="title re">
<div class="middle size-16 fw-b">附件管理</div> <div class="middle size-16 fw-b">基础信息</div>
</div> </div>
</template> </template>
<div class="content pa-20"> <div class="content pa-20">