From c0fa9492f04ac98c1080f23d61b78fb1dcdcde8d Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Tue, 31 Dec 2024 15:18:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=80=89=E6=8B=A9=E9=A5=AD=E5=8D=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet/wallet-recharge-apply.ts | 41 ++++++ src/components/Select/SelectUser.vue | 11 +- src/components/Select/SelectWalletType.vue | 77 +++++++++++ src/components/index.ts | 2 + .../wallet/wallet-recharge-apply/form.vue | 122 ++++++++++++++++++ .../wallet/wallet-recharge-apply/index.vue | 117 +++++++++++++++++ 6 files changed, 363 insertions(+), 7 deletions(-) create mode 100644 src/api/wallet/wallet-recharge-apply.ts create mode 100644 src/components/Select/SelectWalletType.vue create mode 100644 src/views/wallet/wallet-recharge-apply/form.vue create mode 100644 src/views/wallet/wallet-recharge-apply/index.vue diff --git a/src/api/wallet/wallet-recharge-apply.ts b/src/api/wallet/wallet-recharge-apply.ts new file mode 100644 index 0000000..6765245 --- /dev/null +++ b/src/api/wallet/wallet-recharge-apply.ts @@ -0,0 +1,41 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/wallet/wallet-recharge-apply/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/wallet/wallet-recharge-apply', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/wallet/wallet-recharge-apply/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/wallet/wallet-recharge-apply', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/wallet/wallet-recharge-apply', + method: 'put', + data: obj + }) +} + diff --git a/src/components/Select/SelectUser.vue b/src/components/Select/SelectUser.vue index 02d7811..72603a5 100644 --- a/src/components/Select/SelectUser.vue +++ b/src/components/Select/SelectUser.vue @@ -7,11 +7,6 @@
{{ v.name }}
{{ v.phone }}
- @@ -61,8 +56,10 @@ async function getOptions() { } function remoteSearch(params: string) { - queryForm.name = params - getOptions() + if (params != queryForm.name) { + queryForm.name = params + getOptions() + } } function clear() { diff --git a/src/components/Select/SelectWalletType.vue b/src/components/Select/SelectWalletType.vue new file mode 100644 index 0000000..e3c30c6 --- /dev/null +++ b/src/components/Select/SelectWalletType.vue @@ -0,0 +1,77 @@ + + + \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 98cfa60..6e99cb0 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -15,6 +15,7 @@ import PreviewImage from "/@/components/PreviewImage/index.vue" // 业务组件 import SelectUser from '/@/components/Select/SelectUser.vue' +import SelectWalletType from '/@/components/Select/SelectWalletType.vue' // 第三方组件 @@ -52,6 +53,7 @@ export default { app.component('SvgIcon', SvgIcon); app.component('PreviewImage', PreviewImage) app.component('SelectUser', SelectUser) + app.component('SelectWalletType', SelectWalletType) // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/views/wallet/wallet-recharge-apply/form.vue b/src/views/wallet/wallet-recharge-apply/form.vue new file mode 100644 index 0000000..d92827e --- /dev/null +++ b/src/views/wallet/wallet-recharge-apply/form.vue @@ -0,0 +1,122 @@ + + + \ No newline at end of file diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue new file mode 100644 index 0000000..58bf179 --- /dev/null +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -0,0 +1,117 @@ + + + \ No newline at end of file