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