| | |
| | | return request.get({ url: `/config/${id}` }) |
| | | } |
| | | |
| | | function fetchPublicProjectLogoConfig() { |
| | | return request.get({ url: '/config/public/project-logo' }) |
| | | } |
| | | |
| | | function fetchPublicProjectCopyrightConfig() { |
| | | return request.get({ url: '/config/public/project-copyright' }) |
| | | } |
| | | |
| | | function fetchSaveConfig(params) { |
| | | return request.post({ url: '/config/save', params }) |
| | | } |
| | |
| | | |
| | | function fetchDeleteConfig(id) { |
| | | return request.post({ url: `/config/remove/${id}` }) |
| | | } |
| | | |
| | | function fetchUploadProjectLogo(file) { |
| | | const formData = new FormData() |
| | | formData.append('file', file) |
| | | return request.post({ |
| | | url: '/config/logo/upload', |
| | | data: formData, |
| | | headers: { |
| | | 'Content-Type': 'multipart/form-data' |
| | | } |
| | | }) |
| | | } |
| | | |
| | | function fetchGetOperationRecordDetail(id) { |
| | |
| | | fetchExportOperationRecordReport, |
| | | fetchConfigPage, |
| | | fetchGetConfigDetail, |
| | | fetchPublicProjectLogoConfig, |
| | | fetchPublicProjectCopyrightConfig, |
| | | fetchSaveConfig, |
| | | fetchUpdateConfig, |
| | | fetchDeleteConfig, |
| | | fetchUploadProjectLogo, |
| | | fetchSerialRulePage, |
| | | fetchGetSerialRuleDetail, |
| | | fetchSaveSerialRule, |