|
|
@@ -67,13 +67,13 @@ export const getTemplateListByGroupId = ({ group_id, page, size, type = 1, filte
|
|
|
})
|
|
|
}
|
|
|
// 新增模板
|
|
|
-export const addTemplate = async ({ group_id, name, remark, content, template_config, common_config, type = 1, status = 0 }) => {
|
|
|
+export const addTemplate = async ({ group_id, name, remark, content, template_config, common_config, source_list, type = 1, status = 0 }) => {
|
|
|
const creator = (await getUserName() || '').toLowerCase()
|
|
|
return new Promise((resolve, reject) => {
|
|
|
ajax.post(
|
|
|
'/iaserverapi/v1/report/flexibleTemplate/template/add',
|
|
|
{
|
|
|
- name, remark, creator, content, group_id, status, template_config, type, common_config
|
|
|
+ name, remark, creator, content, group_id, status, template_config, type, common_config, source_list
|
|
|
},
|
|
|
{
|
|
|
headers: {
|