From b90d4a4c72859e6fcd4dde4529ede5e4672f67ec Mon Sep 17 00:00:00 2001 From: DaxPay Date: Thu, 15 Aug 2024 19:59:20 +0800 Subject: [PATCH] =?UTF-8?q?perf=20=E5=90=84=E7=A7=8D=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/bootx/useDict.ts | 12 - src/views/baseapi/dict/DictEdit.vue | 12 +- src/views/baseapi/dict/DictItemList.vue | 14 +- .../baseapi/file/upload/FileUploadInfo.vue | 2 +- .../baseapi/file/upload/FileUploadList.vue | 2 +- .../baseapi/log/operate/OperateLogInfo.vue | 2 +- .../baseapi/log/operate/OperateLogList.vue | 18 +- .../admin/config/platform/PlatformConfig.vue | 7 + .../daxpay/admin/merchant/app/MchAppEdit.vue | 34 ++- .../daxpay/admin/merchant/app/MchAppList.vue | 7 +- .../admin/merchant/info/Merchant.api.ts | 20 +- .../admin/merchant/info/MerchantEdit.vue | 68 ++++-- .../admin/merchant/info/MerchantList.vue | 19 +- .../daxpay/admin/order/pay/PayOrderList.vue | 6 +- .../discrepancy/ReconcileDiscrepancy.api.ts | 82 +++++++ .../discrepancy/ReconcileDiscrepancyList.vue | 222 ++++++++++++++++++ .../statement/ReconcileStatement.api.ts | 111 +++++++++ .../statement/ReconcileStatementList.vue | 11 + 18 files changed, 552 insertions(+), 97 deletions(-) create mode 100644 src/views/daxpay/admin/config/platform/PlatformConfig.vue create mode 100644 src/views/daxpay/admin/reconcile/discrepancy/ReconcileDiscrepancy.api.ts create mode 100644 src/views/daxpay/admin/reconcile/discrepancy/ReconcileDiscrepancyList.vue create mode 100644 src/views/daxpay/admin/reconcile/statement/ReconcileStatement.api.ts create mode 100644 src/views/daxpay/admin/reconcile/statement/ReconcileStatementList.vue diff --git a/src/hooks/bootx/useDict.ts b/src/hooks/bootx/useDict.ts index 02fa2cab9..5d1d5c403 100644 --- a/src/hooks/bootx/useDict.ts +++ b/src/hooks/bootx/useDict.ts @@ -42,17 +42,6 @@ async function dictDropDown(dictCode: string): Promise { return { label: o.name, value: o.code } }) } -/** - * 获取字典下拉框数据列表(value值为数字) - */ -async function dictDropDownNumber(dictCode: string): Promise { - const list = (await getDict()) || [] - return list - .filter((dict) => dictCode === dict.dictCode) - .map((o) => { - return { label: o.name, value: Number(o.code) } - }) -} /** * 字典hooks @@ -63,6 +52,5 @@ export function useDict() { return { dictConvert, dictDropDown, - dictDropDownNumber, } } diff --git a/src/views/baseapi/dict/DictEdit.vue b/src/views/baseapi/dict/DictEdit.vue index f4f5cc07d..b78f8ead5 100644 --- a/src/views/baseapi/dict/DictEdit.vue +++ b/src/views/baseapi/dict/DictEdit.vue @@ -20,10 +20,10 @@ - + - + @@ -86,7 +86,7 @@ const { existsByServer } = useValidate() // 表单 const formRef = ref() - let form = reactive({ + let form = ref({ id: null, code: '', name: '', @@ -115,7 +115,7 @@ if ([FormEditType.Edit, FormEditType.Show].includes(editType)) { confirmLoading.value = true get(id).then(({ data }) => { - form = data + form.value = data confirmLoading.value = false }) } else { @@ -127,9 +127,9 @@ formRef.value?.validate().then(async () => { confirmLoading.value = true if (formEditType.value === FormEditType.Add) { - await add(form).finally(() => (confirmLoading.value = false)) + await add(form.value).finally(() => (confirmLoading.value = false)) } else if (formEditType.value === FormEditType.Edit) { - await update(form).finally(() => (confirmLoading.value = false)) + await update(form.value).finally(() => (confirmLoading.value = false)) } handleCancel() emits('ok') diff --git a/src/views/baseapi/dict/DictItemList.vue b/src/views/baseapi/dict/DictItemList.vue index 3c7b78b16..36131f103 100644 --- a/src/views/baseapi/dict/DictItemList.vue +++ b/src/views/baseapi/dict/DictItemList.vue @@ -23,18 +23,18 @@ :loading="loading" > - - - + + + - - - - + + + +