import request from '@/utils/request'
|
|
// 填表配置(表单资产)
|
export function listFormConfig(query) {
|
return request({ url: '/system/formConfig/list', method: 'get', params: query })
|
}
|
|
export function getFormConfig(configId) {
|
return request({ url: '/system/formConfig/' + configId, method: 'get' })
|
}
|
|
// 内置默认表单(35字段),用于“从内置库新建”
|
export function getBuiltinForm() {
|
return request({ url: '/system/formConfig/builtin', method: 'get' })
|
}
|
|
export function addFormConfig(data) {
|
return request({ url: '/system/formConfig', method: 'post', data: data })
|
}
|
|
export function updateFormConfig(data) {
|
return request({ url: '/system/formConfig', method: 'put', data: data })
|
}
|
|
export function delFormConfig(configId) {
|
return request({ url: '/system/formConfig/' + configId, method: 'delete' })
|
}
|