diff --git a/src/api/business/ctResourceLibrary.js b/src/api/business/ctResourceLibrary.js index d628c3e..fafb944 100644 --- a/src/api/business/ctResourceLibrary.js +++ b/src/api/business/ctResourceLibrary.js @@ -1,5 +1,13 @@ import request from '@/utils/request' +// 根据应用id查询所有参数 +export function listByAppId(appId) { + return request({ + url: '/business/ctResourceLibrary/listByAppId?appId=' + appId, + method: 'get', + }) +} + // 查询资源库管理列表 export function listCtResourceLibrary(query) { return request({ @@ -26,6 +34,15 @@ export function addCtResourceLibrary(data) { }) } +// 批量新增资源库管理 +export function addBatch(data) { + return request({ + url: '/business/ctResourceLibrary/addBatch', + method: 'post', + data: data + }) +} + // 修改资源库管理 export function updateCtResourceLibrary(data) { return request({ diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 3d0910e..ffd2677 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -55,12 +55,12 @@ export default { // 大小限制(MB) fileSize: { type: Number, - default: 5, + default: 50, }, // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, - default: () => ["doc", "docx","xls", "xlsx"], + default: () => ["doc", "docx","xls", "xlsx","zip","rar"], }, // 是否显示提示 isShowTip: { diff --git a/src/views/business/ctApplyPlan/index.vue b/src/views/business/ctApplyPlan/index.vue index 2fb416c..701f6cf 100644 --- a/src/views/business/ctApplyPlan/index.vue +++ b/src/views/business/ctApplyPlan/index.vue @@ -46,31 +46,33 @@ - - - - - - - + + + + + + + - + - - + + - - - + + + - + @@ -125,14 +128,17 @@