diff --git a/src/api/template.js b/src/api/template.js index 64d8389..abd9b0a 100644 --- a/src/api/template.js +++ b/src/api/template.js @@ -1,4 +1,5 @@ import api from '@/utils/api' +import qs from 'qs' export default { getList: (params) => { @@ -7,5 +8,20 @@ export default { method: 'get', params: params }) + }, + deleteModuleFn: (params) => { + return api({ + url: '/templateSetting', + method: 'delete', + params: qs.stringify(params) + }) + }, + deleteSettingFn: (params) => { + console.log(params) + return api({ + url: '/templateSetting', + method: 'delete', + params: qs.stringify(params) + }) } } diff --git a/src/components/drawerDialog/index.vue b/src/components/drawerDialog/index.vue index 2204aab..aec86ff 100644 --- a/src/components/drawerDialog/index.vue +++ b/src/components/drawerDialog/index.vue @@ -211,6 +211,14 @@ /> +