From 4b548ce36902a76acd555bafb19cf76c3e645aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Wed, 11 Sep 2024 14:43:52 +0800 Subject: [PATCH] 09/11 --- src/hooks/web/common.ts | 4 +- src/views/baseinfo/TaskMail/api.ts | 10 +- src/views/baseinfo/TaskMail/index.vue | 50 +- src/views/baseinfo/infoclient/EditColumns.tsx | 2 +- src/views/baseinfo/infoclient/columns.tsx | 2 +- .../TenantAuditStepModal.vue | 130 +++ src/views/system/CodeDataRuleTemplate/api.ts | 60 ++ .../system/CodeDataRuleTemplate/asd.json | 59 ++ .../system/CodeDataRuleTemplate/columns.tsx | 174 ++++ .../system/CodeDataRuleTemplate/feeField.vue | 887 ++++++++++++++++++ .../system/CodeDataRuleTemplate/index.vue | 192 ++++ 11 files changed, 1554 insertions(+), 16 deletions(-) create mode 100644 src/views/system/CodeDataRuleTemplate/TenantAuditStepModal.vue create mode 100644 src/views/system/CodeDataRuleTemplate/api.ts create mode 100644 src/views/system/CodeDataRuleTemplate/asd.json create mode 100644 src/views/system/CodeDataRuleTemplate/columns.tsx create mode 100644 src/views/system/CodeDataRuleTemplate/feeField.vue create mode 100644 src/views/system/CodeDataRuleTemplate/index.vue 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" >