diff --git a/src/api/supplier.js b/src/api/supplier.js index 980217d..a2d8142 100644 --- a/src/api/supplier.js +++ b/src/api/supplier.js @@ -17,7 +17,7 @@ export function listBusSupplier(query) { data: query }) } - + // 新增供应商 export function addBusSupplier(data) { return request({ @@ -50,4 +50,35 @@ export function deleteBusSupplier(supplierId) { url: '/admin/busSupplier/deleteBusSupplier/' + supplierId, method: 'post' }) +} + +// 供应商信息导出 +export function exportSupplier(query) { + return request({ + url: '/admin/busSupplier/export', + method: 'post', + data: query, + responseType: 'blob' + }) +} + +// 供应商导入模板下载 +export function exportTemplate() { + return request({ + url: '/admin/busSupplier/exportTemplate', + method: 'post', + responseType: 'blob' + }) +} + +// 供应商信息导入 +export function importSupplier(query) { + return request({ + url: '/admin/busSupplier/import', + method: 'post', + data: query, + headers: { + 'Content-Type': 'multipart/form-data' + } + }) } \ No newline at end of file diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 2aa7e91..1500bc6 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -124,7 +124,7 @@ aside { .app-container { width: 100%; margin: 0 auto; - padding: 0 !important; + padding: 0 40px !important; } .components-container { diff --git a/src/assets/styles/ruoyi.scss b/src/assets/styles/ruoyi.scss index 53c4c07..be6d44f 100644 --- a/src/assets/styles/ruoyi.scss +++ b/src/assets/styles/ruoyi.scss @@ -413,7 +413,23 @@ h6 { background: #ffc63d; color: #000000; } + +.my-downAllFile-btn { + width: 140px; + height: 34px; + border-radius: 4px 4px 4px 4px; + background: #1a75e6; + font-family: Microsoft YaHei; + font-weight: 400; + font-size: 16px; + text-align: center; + color: #FFFFFF; +} +.my-downAllFile-btn:hover { + background: #1a75e6; + color: #FFFFFF; +} .my-confirm-btn { width: 100px; @@ -816,7 +832,7 @@ h6 { padding: 0; } -// 独立查询输入框样式 +// 独立查询输入框样式 .searchInputForm .el-form-item--default { margin-bottom: 0px; } @@ -840,6 +856,7 @@ h6 { color: #8C8C8C; } + // 分页器 .pagination-container { display: flex; @@ -1031,6 +1048,8 @@ h6 { .my_dialog .el-dialog__body { padding: 30px; + max-height: 750px; + overflow-y: auto; } .my_dialog .el-dialog__footer { @@ -1106,8 +1125,8 @@ h6 { // 单选框 .myInsertForm .el-radio__inner { - width: 16px; - height: 16px; + width: 18px; + height: 18px; } .myInsertForm .el-radio__label { @@ -1179,7 +1198,7 @@ h6 { font-size: 16px; color: #002866; justify-content: start; - height: 60px; + min-height: 60px; line-height: 60px; padding-left: 31px; background: #EDF2F960; @@ -1189,7 +1208,7 @@ h6 { .myDetailForm .filesItemContent .el-form-item__label { min-height: 120px; line-height: 120px; -} +} .my_detailform_label .el-form-item__label { line-height: 20px; diff --git a/src/components/FileUpload/multiFileUpload.vue b/src/components/FileUpload/multiFileUpload.vue index 5be6dee..bb9aef6 100644 --- a/src/components/FileUpload/multiFileUpload.vue +++ b/src/components/FileUpload/multiFileUpload.vue @@ -31,7 +31,7 @@ @@ -73,6 +73,7 @@ const fileList = ref([]) const cardfileList = ref([]) // 文件类型 1-营业执照 2-媒体权属 9-其它附件 const _fileType = ref('1') +const _accept = ref('*/*') const baseUrl = import.meta.env.VITE_APP_BASE_API const dialogImageUrl = ref('') const dialogVisible = ref(false) @@ -159,6 +160,7 @@ const requestUpload = async (options) => { // 文件类型校验 const beforeUpload = (file) => { + if (_accept.value == '*/*') return true // const validTypes = [ // // 图片类型 // "image/jpeg", @@ -171,13 +173,13 @@ const beforeUpload = (file) => { // "applications/vnd.pdf", // "text/pdf", // "text/x-pdf"] - // const isValidType = validTypes.includes(file.type) + const isValidType = validTypes.includes(file.type) // // const isLt5M = file.size / 1024 / 1024 < 5 - // if (!isValidType) { - // proxy.$modal.msgError("文件格式错误,请上传 JPG/JPEG/PNG/PDF 后缀的文件。"); - // return false - // } + if (!isValidType) { + proxy.$modal.msgError("文件格式错误,请上传 " + _accept.value + " 后缀的文件。"); + return false + } // if (!isLt5M) { // proxy.$modal.msgError("文件大小不能超过5MB"); diff --git a/src/components/ViewFile/index.vue b/src/components/ViewFile/index.vue new file mode 100644 index 0000000..66791e8 --- /dev/null +++ b/src/components/ViewFile/index.vue @@ -0,0 +1,113 @@ + + + \ No newline at end of file diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index e997956..d36b075 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -151,7 +151,7 @@ const submitForm = () => { background-size: cover; // background: transparent; box-shadow: none; - padding: 0 36px; + padding: 0 40px; .navContent { height: 43px; diff --git a/src/views/mediaLibrary/downFiles.vue b/src/views/mediaLibrary/downFiles.vue new file mode 100644 index 0000000..f880503 --- /dev/null +++ b/src/views/mediaLibrary/downFiles.vue @@ -0,0 +1,277 @@ + + + \ No newline at end of file diff --git a/src/views/mediaLibrary/historyData.vue b/src/views/mediaLibrary/historyData.vue new file mode 100644 index 0000000..48504ed --- /dev/null +++ b/src/views/mediaLibrary/historyData.vue @@ -0,0 +1,174 @@ + + + \ No newline at end of file diff --git a/src/views/mediaLibrary/index.vue b/src/views/mediaLibrary/index.vue index 98ab65f..4852a44 100644 --- a/src/views/mediaLibrary/index.vue +++ b/src/views/mediaLibrary/index.vue @@ -1,6 +1,6 @@ -