From 7a31f88170f26795755337540e075632b2271541 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Wed, 11 Sep 2024 09:22:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/taskmanage/index.vue | 97 +++++++++++++++++++--------------- 1 file changed, 53 insertions(+), 44 deletions(-) diff --git a/src/views/taskmanage/index.vue b/src/views/taskmanage/index.vue index 02b64f20..a3a349fd 100644 --- a/src/views/taskmanage/index.vue +++ b/src/views/taskmanage/index.vue @@ -405,33 +405,15 @@ function getCurrentTotalStat() { bussObj = queryData[i].FieldValue queryData.splice(i, 1); } else - if (queryData[i].FieldName === 'portloaD_CODE') { - str1 = queryData[i].FieldValue - queryData.splice(i, 1); - } else - if (queryData[i].FieldName === 'portdischargE_CODE') { - str2 = queryData[i].FieldValue - queryData.splice(i, 1); - } + if (queryData[i].FieldName === 'portloaD_CODE') { + str1 = queryData[i].FieldValue + queryData.splice(i, 1); + } else + if (queryData[i].FieldName === 'portdischargE_CODE') { + str2 = queryData[i].FieldValue + queryData.splice(i, 1); + } } - // for (let i = 0; i < queryData.length; i++) { - // if (queryData[i].FieldName === 'businessNo') { - // bussObj = queryData[i].FieldValue - // queryData.splice(i, 1) - // i-- - // } - // if (queryData[i].FieldName === 'portloaD_CODE') { - // str1 = queryData[i].FieldValue - // queryData.splice(i, 1) - // i-- - // } - // if (queryData[i].FieldName === 'portdischargE_CODE') { - // str2 = queryData[i].FieldValue - // queryData.splice(i, 1) - // i-- - // } - // } - console.log(queryData, 123123); } const data = { isReCalc: false, @@ -488,9 +470,36 @@ function openFile() { function refshTotalStat() { levelreLoading.value = true levelLoading.value = true + let bussObj = '' + let str1 = '' + let str2 = '' + let queryData = formatParams(getForm().getFieldsValue()).queryCondition + if (queryData) { + queryData = JSON.parse(queryData) + let i = queryData.length; + while (i--) { + if (queryData[i].FieldName === 'businessNo') { + bussObj = queryData[i].FieldValue + queryData.splice(i, 1); + } else + if (queryData[i].FieldName === 'portloaD_CODE') { + str1 = queryData[i].FieldValue + queryData.splice(i, 1); + } else + if (queryData[i].FieldName === 'portdischargE_CODE') { + str2 = queryData[i].FieldValue + queryData.splice(i, 1); + } + } + } GetCurrentTotalStat({ isReCalc: false, - ...getForm().getFieldsValue() + queryCondition: JSON.stringify(queryData), + otherQueryCondition: { + businessNo: bussObj, + portloaD_CODE: str1, + portdischargE_CODE: str2 + } }) .then(res => { levelLoading.value = false @@ -710,23 +719,23 @@ const [registerTable, { reload, setProps, getForm, getSelectRows, setColumns }] bussObj = queryData[i].FieldValue queryData.splice(i, 1); } else - if (queryData[i].FieldName === 'portloaD_CODE') { - str1 = queryData[i].FieldValue - queryData.splice(i, 1); - } else - if (queryData[i].FieldName === 'portdischargE_CODE') { - str2 = queryData[i].FieldValue - queryData.splice(i, 1); - } else - if (queryData[i].FieldName === 'task_TYPE') { - queryData[i].ConditionalType = 0 - } else - if (queryData[i].FieldName === 'taskRecvName') { - queryData[i].ConditionalType = 0 - } else - if (queryData[i].FieldName === 'taskSource') { - queryData[i].ConditionalType = 0 - } + if (queryData[i].FieldName === 'portloaD_CODE') { + str1 = queryData[i].FieldValue + queryData.splice(i, 1); + } else + if (queryData[i].FieldName === 'portdischargE_CODE') { + str2 = queryData[i].FieldValue + queryData.splice(i, 1); + } else + if (queryData[i].FieldName === 'task_TYPE') { + queryData[i].ConditionalType = 0 + } else + if (queryData[i].FieldName === 'taskRecvName') { + queryData[i].ConditionalType = 0 + } else + if (queryData[i].FieldName === 'taskSource') { + queryData[i].ConditionalType = 0 + } } data.queryCondition = JSON.stringify(queryData) data.otherQueryCondition = {} From a52dd390d86c6eb6145066f5ff86ef04a5df471e 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 10:28:47 +0800 Subject: [PATCH 2/2] 0911 --- src/hooks/web/common.ts | 3 +-- .../baseinfo/infoclient/ReleaseType/index.vue | 15 +++++++++++- .../infoclient/TenantAuditStepModal.vue | 6 ++--- src/views/baseinfo/infoclient/tabs3/index.vue | 19 ++++++++------- src/views/system/org/columns.tsx | 24 ++++++++++++------- src/views/system/org/index.vue | 9 +++---- 6 files changed, 48 insertions(+), 28 deletions(-) diff --git a/src/hooks/web/common.ts b/src/hooks/web/common.ts index 37f4db94..11e79329 100644 --- a/src/hooks/web/common.ts +++ b/src/hooks/web/common.ts @@ -135,9 +135,8 @@ export function updateFormItem(updateSchema, formNo) { // 返回表格查询的参数 multipleList(需要多选查询的字段名数组) export function formatParams(params = {}, equal: any = [], otherQuery: any = []) { - const postData = { + const postData:any = { queryCondition: '', - otherQueryCondition: {}, pageCondition: { pageIndex: params?.page, pageSize: params?.pageSize, diff --git a/src/views/baseinfo/infoclient/ReleaseType/index.vue b/src/views/baseinfo/infoclient/ReleaseType/index.vue index 04970ea4..a47a9325 100644 --- a/src/views/baseinfo/infoclient/ReleaseType/index.vue +++ b/src/views/baseinfo/infoclient/ReleaseType/index.vue @@ -2,7 +2,7 @@