diff --git a/src/hooks/web/common.ts b/src/hooks/web/common.ts index 11e79329..97561f25 100644 --- a/src/hooks/web/common.ts +++ b/src/hooks/web/common.ts @@ -127,14 +127,13 @@ export function updateFormItem(updateSchema, formNo) { getFormSetInfoByModule({ permissionId: permissionsInfo().permissionId, formNo }).then((res) => { if (res?.data?.content) { const content = JSON.parse(res.data.content) - console.log(content) updateSchema(content.columns) } }) } // 返回表格查询的参数 multipleList(需要多选查询的字段名数组) -export function formatParams(params = {}, equal: any = [], otherQuery: any = []) { +export function formatParams(params = {}, equal: any = [], otherQuery: any = []) { const postData:any = { queryCondition: '', pageCondition: { @@ -147,6 +146,7 @@ export function formatParams(params = {}, equal: any = [], otherQuery: any = []) for (let key in params) { let IsContinue = true if (otherQuery.length) { + postData.otherQueryCondition={} otherQuery.forEach((item) => { if (key == item) { IsContinue = false diff --git a/src/views/baseinfo/TaskMail/api.ts b/src/views/baseinfo/TaskMail/api.ts index 641c406d..1f64cf5e 100644 --- a/src/views/baseinfo/TaskMail/api.ts +++ b/src/views/baseinfo/TaskMail/api.ts @@ -5,6 +5,7 @@ enum Api { list = '/opApi/TaskMail/GetList', edit = '/opApi/TaskMail/Edit', info = '/opApi/TaskMail/Edit', + del = '/opApi/TaskMail/Delete', PrintTemplateList = '/mainApi/Print/GetOpenPrintTemplateList', } @@ -32,7 +33,14 @@ export function ApiInfo(query) { params: query, }) } - +// 批量删除 (Auth) +export function ApiDel(data: PageRequest) { + return request({ + url: Api.del, + method: 'post', + data, + }) +} // 印模块列表 (Auth) export function GetPrintTemplateList(data: PageRequest) { return request({ diff --git a/src/views/baseinfo/TaskMail/index.vue b/src/views/baseinfo/TaskMail/index.vue index 196b5c4c..897bef43 100644 --- a/src/views/baseinfo/TaskMail/index.vue +++ b/src/views/baseinfo/TaskMail/index.vue @@ -6,10 +6,21 @@ @row-dbClick="handleAudit" >