From 1a683d4cb9721489fdf98d64be4945fd2f40955f Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 28 Mar 2025 16:29:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=99=BA=E8=81=AA=E8=AE=B0=E8=B4=A6?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E6=8A=95=E8=B5=84=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/invest/exchange.js | 44 ++ src/api/invest/futureBaseInfor.js | 44 ++ src/api/invest/futureStandardInfor.js | 44 ++ src/api/invest/stockBaseInfor.js | 44 ++ .../invest/creditInstallmentHistory/index.vue | 13 +- src/views/invest/exchange/index.vue | 285 +++++++++++ src/views/invest/futureBaseInfor/index.vue | 371 +++++++++++++++ .../invest/futureStandardInfor/index.vue | 450 ++++++++++++++++++ src/views/invest/stockBaseInfor/index.vue | 337 +++++++++++++ 9 files changed, 1623 insertions(+), 9 deletions(-) create mode 100644 src/api/invest/exchange.js create mode 100644 src/api/invest/futureBaseInfor.js create mode 100644 src/api/invest/futureStandardInfor.js create mode 100644 src/api/invest/stockBaseInfor.js create mode 100644 src/views/invest/exchange/index.vue create mode 100644 src/views/invest/futureBaseInfor/index.vue create mode 100644 src/views/invest/futureStandardInfor/index.vue create mode 100644 src/views/invest/stockBaseInfor/index.vue diff --git a/src/api/invest/exchange.js b/src/api/invest/exchange.js new file mode 100644 index 0000000..1ac689e --- /dev/null +++ b/src/api/invest/exchange.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询交易所基础信息列表 +export function listExchange(query) { + return request({ + url: '/invest/exchange/list', + method: 'get', + params: query + }) +} + +// 查询交易所基础信息详细 +export function getExchange(id) { + return request({ + url: '/invest/exchange/' + id, + method: 'get' + }) +} + +// 新增交易所基础信息 +export function addExchange(data) { + return request({ + url: '/invest/exchange', + method: 'post', + data + }) +} + +// 修改交易所基础信息 +export function updateExchange(data) { + return request({ + url: '/invest/exchange', + method: 'put', + data + }) +} + +// 删除交易所基础信息 +export function delExchange(id) { + return request({ + url: '/invest/exchange/' + id, + method: 'delete' + }) +} diff --git a/src/api/invest/futureBaseInfor.js b/src/api/invest/futureBaseInfor.js new file mode 100644 index 0000000..7ad8711 --- /dev/null +++ b/src/api/invest/futureBaseInfor.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询期货基本合约列表 +export function listFutureBaseInfor(query) { + return request({ + url: '/invest/futureBaseInfor/list', + method: 'get', + params: query + }) +} + +// 查询期货基本合约详细 +export function getFutureBaseInfor(id) { + return request({ + url: '/invest/futureBaseInfor/' + id, + method: 'get' + }) +} + +// 新增期货基本合约 +export function addFutureBaseInfor(data) { + return request({ + url: '/invest/futureBaseInfor', + method: 'post', + data + }) +} + +// 修改期货基本合约 +export function updateFutureBaseInfor(data) { + return request({ + url: '/invest/futureBaseInfor', + method: 'put', + data + }) +} + +// 删除期货基本合约 +export function delFutureBaseInfor(id) { + return request({ + url: '/invest/futureBaseInfor/' + id, + method: 'delete' + }) +} diff --git a/src/api/invest/futureStandardInfor.js b/src/api/invest/futureStandardInfor.js new file mode 100644 index 0000000..9f5060b --- /dev/null +++ b/src/api/invest/futureStandardInfor.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询期货品种标准合约列表 +export function listFutureStandardInfor(query) { + return request({ + url: '/invest/futureStandardInfor/list', + method: 'get', + params: query + }) +} + +// 查询期货品种标准合约详细 +export function getFutureStandardInfor(id) { + return request({ + url: '/invest/futureStandardInfor/' + id, + method: 'get' + }) +} + +// 新增期货品种标准合约 +export function addFutureStandardInfor(data) { + return request({ + url: '/invest/futureStandardInfor', + method: 'post', + data + }) +} + +// 修改期货品种标准合约 +export function updateFutureStandardInfor(data) { + return request({ + url: '/invest/futureStandardInfor', + method: 'put', + data + }) +} + +// 删除期货品种标准合约 +export function delFutureStandardInfor(id) { + return request({ + url: '/invest/futureStandardInfor/' + id, + method: 'delete' + }) +} diff --git a/src/api/invest/stockBaseInfor.js b/src/api/invest/stockBaseInfor.js new file mode 100644 index 0000000..43c9d79 --- /dev/null +++ b/src/api/invest/stockBaseInfor.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询股票基础信息列表 +export function listStockBaseInfor(query) { + return request({ + url: '/invest/stockBaseInfor/list', + method: 'get', + params: query + }) +} + +// 查询股票基础信息详细 +export function getStockBaseInfor(id) { + return request({ + url: '/invest/stockBaseInfor/' + id, + method: 'get' + }) +} + +// 新增股票基础信息 +export function addStockBaseInfor(data) { + return request({ + url: '/invest/stockBaseInfor', + method: 'post', + data + }) +} + +// 修改股票基础信息 +export function updateStockBaseInfor(data) { + return request({ + url: '/invest/stockBaseInfor', + method: 'put', + data + }) +} + +// 删除股票基础信息 +export function delStockBaseInfor(id) { + return request({ + url: '/invest/stockBaseInfor/' + id, + method: 'delete' + }) +} diff --git a/src/views/invest/creditInstallmentHistory/index.vue b/src/views/invest/creditInstallmentHistory/index.vue index 07bd999..021a33d 100644 --- a/src/views/invest/creditInstallmentHistory/index.vue +++ b/src/views/invest/creditInstallmentHistory/index.vue @@ -121,15 +121,10 @@ --> - - + + + + diff --git a/src/views/invest/exchange/index.vue b/src/views/invest/exchange/index.vue new file mode 100644 index 0000000..d2a8d38 --- /dev/null +++ b/src/views/invest/exchange/index.vue @@ -0,0 +1,285 @@ + + + diff --git a/src/views/invest/futureBaseInfor/index.vue b/src/views/invest/futureBaseInfor/index.vue new file mode 100644 index 0000000..cd8c8c1 --- /dev/null +++ b/src/views/invest/futureBaseInfor/index.vue @@ -0,0 +1,371 @@ + + + diff --git a/src/views/invest/futureStandardInfor/index.vue b/src/views/invest/futureStandardInfor/index.vue new file mode 100644 index 0000000..0433218 --- /dev/null +++ b/src/views/invest/futureStandardInfor/index.vue @@ -0,0 +1,450 @@ + + + diff --git a/src/views/invest/stockBaseInfor/index.vue b/src/views/invest/stockBaseInfor/index.vue new file mode 100644 index 0000000..5886d9e --- /dev/null +++ b/src/views/invest/stockBaseInfor/index.vue @@ -0,0 +1,337 @@ + + +