You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.5 KiB
JavaScript
79 lines
1.5 KiB
JavaScript
import axios from '@/utils/request'
|
|
|
|
// 获取列表
|
|
export function systemPDFTemplateList(query) {
|
|
return axios({
|
|
url: "/system/pdf/template/list",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
export function systemPDFModuleList(query) {
|
|
return axios({
|
|
url: "/system/pdf/module/list",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
export function getSystemPDFModules(query) {
|
|
return axios({
|
|
url: "/system/pdf/module/pdfModules",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
export function getSystemPDFTemplates(query) {
|
|
return axios({
|
|
url: "/system/pdf/template/pdfTemplates",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
export function systemPDFTemplateSave(data, formName, method = "post") {
|
|
let url = formName === "add" ? "/system/pdf/template/save" : "/system/pdf/template/update";
|
|
return axios({
|
|
url: url,
|
|
method: method,
|
|
data: data
|
|
});
|
|
}
|
|
|
|
export function systemPDFModuleSave(data, formName, method = "post") {
|
|
let url = formName === "add" ? "/system/pdf/module/save" : "/system/pdf/module/update";
|
|
return axios({
|
|
url: url,
|
|
method: method,
|
|
data: data
|
|
});
|
|
}
|
|
|
|
export function systemPDFTemplateDeleteById(query) {
|
|
return axios({
|
|
url: "/system/pdf/template/delete",
|
|
method: "post",
|
|
data: query
|
|
});
|
|
}
|
|
|
|
export function moduleDetail(query) {
|
|
return axios({
|
|
url: "/system/pdf/module/detail",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
|
|
export function updateDetailRel(query) {
|
|
return axios({
|
|
url: "/system/pdf/module/updateRl",
|
|
method: "post",
|
|
data: query
|
|
});
|
|
}
|
|
|