diff --git a/src/apis/modules/images.js b/src/apis/modules/images.js
new file mode 100644
index 0000000..49a764d
--- /dev/null
+++ b/src/apis/modules/images.js
@@ -0,0 +1,16 @@
+/**
+ * 算力券接口
+ */
+import request from '@/utils/request'
+// 获取列表
+export const getPageList = (params) => request.basic.get('/api/v1/mirror', params)
+// 新增
+export const addVouchers = (params) => request.basic.post(`/api/v1/mirror`,params)
+// 编辑
+export const editeVouchers = (params) => request.basic.put(`/api/v1/mirror${params.id}`, params)
+// 删除
+export const deleteVouchers = (id) => request.basic.delete('/api/v1/mirror/'+id)
+// 获取详情
+export const getImagesInfo = (params) => request.basic.get('/api/v1/mirror')
+
+
diff --git a/src/apis/modules/review.js b/src/apis/modules/review.js
new file mode 100644
index 0000000..f085468
--- /dev/null
+++ b/src/apis/modules/review.js
@@ -0,0 +1,20 @@
+/**
+ * 提现接口
+ */
+import request from '@/utils/request'
+// 获取待审核列表
+export const getPageList = (params) => request.basic.get('/api/v1/pendingReviewList', params)
+// 审核
+export const review = (params) => request.basic.post(`/api/v1/review`,params)
+// 审核拒绝列表
+export const getFaildList = (params) => request.basic.get('/api/v1/withdrawRejectList', params)
+// 待提现列表
+export const getPendingList = (params) => request.basic.get('/api/v1/withdrawList', params)
+// 提现确认
+export const pendingUpload = (params) => request.basic.post('/api/v1/withdrawChecked', params)
+// 提现失败列表
+export const getPendingFaildList = (params) => request.basic.post('/api/v1/withdrawErrorList', params)
+//提现成功列表
+export const getInvoicingFailedList=(params)=>request.basic.get('/api/v1/withdrawSuccessList',params)
+
+
diff --git a/src/apis/modules/vouchers.js b/src/apis/modules/vouchers.js
new file mode 100644
index 0000000..35ba7f3
--- /dev/null
+++ b/src/apis/modules/vouchers.js
@@ -0,0 +1,28 @@
+/**
+ * 算力券接口
+ */
+import request from '@/utils/request'
+// 获取列表
+export const getPageList = (params) => request.basic.get('/api/v1/vouchers', params)
+// 新增
+export const addVouchers = (params) => request.basic.post(`/api/v1/vouchers`,params)
+// 编辑
+export const editeVouchers = (params) => request.basic.put(`/api/v1/vouchers${params.id}`, params)
+// 删除
+export const deleteVouchers = (id) => request.basic.delete('/api/v1/withdrawList/'+id)
+
+//算力点列表
+export const getPointList=(params)=>request.basic.get('/api/v1/points',params)
+
+//新增算力点
+export const addPoint=(params)=>request.basic.post('/api/v1/points',params)
+
+
+//余额列表
+export const getBalanceList=(params)=>request.basic.get('/api/v1/balances',params)
+//新增余额
+export const addBalance=(params)=>request.basic.post('/api/v1/balances',params)
+
+//实例订单
+export const getOrderList=(params)=>request.basic.get('/api/v1/orders',params)
+
diff --git a/src/router/routes/balance.js b/src/router/routes/balance.js
index bc4babb..8791ad9 100644
--- a/src/router/routes/balance.js
+++ b/src/router/routes/balance.js
@@ -16,7 +16,7 @@ export default [
{
path: 'balanceList',
name: 'balanceList',
- component: 'balance/balanceList/index.vue',
+ component: 'balance/index.vue',
meta: {
title: '余额列表',
isMenu: true,
diff --git a/src/views/balance/components/EditDialog.vue b/src/views/balance/components/EditDialog.vue
index aa18d80..e738037 100644
--- a/src/views/balance/components/EditDialog.vue
+++ b/src/views/balance/components/EditDialog.vue
@@ -1,64 +1,32 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/computingPoints/pointsList/components/EditDialog.vue b/src/views/computingPoints/pointsList/components/EditDialog.vue
index b76d71c..3a18104 100644
--- a/src/views/computingPoints/pointsList/components/EditDialog.vue
+++ b/src/views/computingPoints/pointsList/components/EditDialog.vue
@@ -1,222 +1,50 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('pages.system.menu.form.code') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item }}
-
-
-
-
-
-
-
- {{ $t('button.delete') }}
-
-
-
-
-
-
-
-
- {{ $t('button.add') }}
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/views/computingPoints/pointsList/index.vue b/src/views/computingPoints/pointsList/index.vue
index 03686e3..b4514fb 100644
--- a/src/views/computingPoints/pointsList/index.vue
+++ b/src/views/computingPoints/pointsList/index.vue
@@ -1,33 +1,23 @@
-
+
-
-
+
+
-
-
-
- {{ $t('pages.system.menu.form.code') }}
-
-
-
-
-
+
+
-
-
+
{{ $t('button.reset') }}
- {{ $t('button.search') }}
+ 搜索
@@ -36,168 +26,102 @@
-
- 引入阿里巴巴图标
-
-
-
-
-
- {{ $t('pages.system.menu.add') }}
-
-
-
+
+
-
-
-
- {{ menuTypeEnum.getDesc(record.type) }}
-
-
-
- {{ menuTypeEnum.getDesc(record.type) }}
-
-
-
-
- {{ formatUtcDateTime(record.created_at) }}
-
-
-
-
-
- {{ statusTypeEnum.getDesc(record.status) }}
-
-
-
- {{ statusTypeEnum.getDesc(record.status) }}
-
-
-
-
-
- {{ $t('pages.system.menu.edit') }}
-
-
-
-
-
-
- {{ $t('pages.system.menu.button.addChild') }}
-
-
-
-
-
- {{ $t('pages.system.delete') }}
-
-
-
+ 新增
+ 删除
-
-
+
diff --git a/src/views/computingTicket/ticketList/components/EditDialog.vue b/src/views/computingTicket/ticketList/components/EditDialog.vue
index b76d71c..a4e08b0 100644
--- a/src/views/computingTicket/ticketList/components/EditDialog.vue
+++ b/src/views/computingTicket/ticketList/components/EditDialog.vue
@@ -1,222 +1,82 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('pages.system.menu.form.code') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item }}
-
-
-
-
-
-
-
- {{ $t('button.delete') }}
-
-
-
-
-
-
-
-
- {{ $t('button.add') }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 启用
+ 停用
+
+
+
+
diff --git a/src/views/computingTicket/ticketList/index.vue b/src/views/computingTicket/ticketList/index.vue
index 03686e3..9e55f9c 100644
--- a/src/views/computingTicket/ticketList/index.vue
+++ b/src/views/computingTicket/ticketList/index.vue
@@ -1,33 +1,28 @@
-
+
-
-
+
+
-
-
-
- {{ $t('pages.system.menu.form.code') }}
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
{{ $t('button.reset') }}
- {{ $t('button.search') }}
+ 搜索
@@ -36,168 +31,103 @@
-
- 引入阿里巴巴图标
-
-
-
-
-
- {{ $t('pages.system.menu.add') }}
-
-
-
+ 新增
+
-
-
-
- {{ menuTypeEnum.getDesc(record.type) }}
-
-
-
- {{ menuTypeEnum.getDesc(record.type) }}
-
-
-
-
- {{ formatUtcDateTime(record.created_at) }}
-
-
-
-
-
- {{ statusTypeEnum.getDesc(record.status) }}
-
-
-
- {{ statusTypeEnum.getDesc(record.status) }}
-
-
-
-
-
- {{ $t('pages.system.menu.edit') }}
-
-
-
-
-
-
- {{ $t('pages.system.menu.button.addChild') }}
-
-
-
-
-
- {{ $t('pages.system.delete') }}
-
-
-
+ 编辑
+ 删除
-
-
+
diff --git a/src/views/contract/contractPendingList/index.vue b/src/views/contract/contractPendingList/index.vue
index d987997..ec22949 100644
--- a/src/views/contract/contractPendingList/index.vue
+++ b/src/views/contract/contractPendingList/index.vue
@@ -81,8 +81,8 @@ async function getPageList() {
try {
showLoading()
const { pageSize, current } = paginationState
- const { code, data } = await apis.invoice
- .getDeliveriesFailedList({
+ const { code, data } = await apis.contract
+ .getPageList({
pageSize,
current: current,
...searchFormData.value
diff --git a/src/views/contract/rejectContractList/index.vue b/src/views/contract/rejectContractList/index.vue
index 0687a05..d83148b 100644
--- a/src/views/contract/rejectContractList/index.vue
+++ b/src/views/contract/rejectContractList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,21 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
+ 上传合同
-
-
+
diff --git a/src/views/contract/sealedtrueList/index.vue b/src/views/contract/sealedtrueList/index.vue
index 0687a05..20a4f35 100644
--- a/src/views/contract/sealedtrueList/index.vue
+++ b/src/views/contract/sealedtrueList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,21 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
+ 上传合同
-
-
+
diff --git a/src/views/contract/signatureList/index.vue b/src/views/contract/signatureList/index.vue
index 8ca067b..a10d640 100644
--- a/src/views/contract/signatureList/index.vue
+++ b/src/views/contract/signatureList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,21 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
+ 上传合同
-
-
+
diff --git a/src/views/img/imgList/components/EditDialog.vue b/src/views/img/imgList/components/EditDialog.vue
index 51f7a3a..ce78f10 100644
--- a/src/views/img/imgList/components/EditDialog.vue
+++ b/src/views/img/imgList/components/EditDialog.vue
@@ -1,21 +1,25 @@
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -32,7 +36,13 @@ const { modal, showModal, hideModal, showLoading, hideLoading } = useModal()
const { formRef, formRules, formRecord, formData, resetForm } = useForm()
formRules.value = {
- title: { required: true, message: '请输入标题' },
+ imageName: { required: true, message: '请输入镜像名称' },
+ imageType: { required: true, message: '请输入镜像类型' },
+ description: { required: false, message: '请输入描述' },
+ imagePath: { required: true, message: '请输入镜像路径' },
+ imageSize: { required: true, message: '请输入镜像大小' },
+ imageVersion: { required: true, message: '请输入镜像版本' },
+ userName: { required: true, message: '请输入所属用户名' },
}
/**
@@ -72,12 +82,12 @@ function handleOk() {
let result = null
switch (modal.value.type) {
case 'create':
- result = await apis.common.create(params).catch(() => {
+ result = await apis.images.addVouchers(params).catch(() => {
throw new Error()
})
break
case 'edit':
- result = await apis.common.update(formRecord.value.id, params).catch(() => {
+ result = await apis.images.editeVouchers(formRecord.value.id, params).catch(() => {
throw new Error()
})
break
diff --git a/src/views/img/imgList/index.vue b/src/views/img/imgList/index.vue
index f561e7d..e3bb4de 100644
--- a/src/views/img/imgList/index.vue
+++ b/src/views/img/imgList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,24 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ 新增
+
编辑
+ 详情
删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
-
-
+
diff --git a/src/views/order/orderList/index.vue b/src/views/order/orderList/index.vue
index 6ff4814..34f514d 100644
--- a/src/views/order/orderList/index.vue
+++ b/src/views/order/orderList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,23 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
- 编辑
+ 新增
删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
-
-
+
diff --git a/src/views/withdrawal/pendingReviewList/components/EditDialog.vue b/src/views/withdrawal/pendingReviewList/components/EditDialog.vue
index 51f7a3a..811b40e 100644
--- a/src/views/withdrawal/pendingReviewList/components/EditDialog.vue
+++ b/src/views/withdrawal/pendingReviewList/components/EditDialog.vue
@@ -1,21 +1,10 @@
-
-
+
-
-
+
+
@@ -51,9 +40,9 @@ function handleCreate() {
function handleEdit(record = {}) {
showModal({
type: 'edit',
- title: '编辑',
+ title: '审核',
})
- formRecord.value = record
+ formRecord.value.withdrawalOrderId = record.withdrawalOrderId
formData.value = cloneDeep(record)
}
@@ -77,7 +66,7 @@ function handleOk() {
})
break
case 'edit':
- result = await apis.common.update(formRecord.value.id, params).catch(() => {
+ result = await apis.review.review(params).catch(() => {
throw new Error()
})
break
diff --git a/src/views/withdrawal/pendingReviewList/index.vue b/src/views/withdrawal/pendingReviewList/index.vue
index 0687a05..8b3a905 100644
--- a/src/views/withdrawal/pendingReviewList/index.vue
+++ b/src/views/withdrawal/pendingReviewList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,22 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
+ 审核
+
-
-
+
diff --git a/src/views/withdrawal/withdrawErrorList/index.vue b/src/views/withdrawal/withdrawErrorList/index.vue
index 8ca067b..5b7bf16 100644
--- a/src/views/withdrawal/withdrawErrorList/index.vue
+++ b/src/views/withdrawal/withdrawErrorList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,156 +31,64 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
-
-
+
-
-
+
diff --git a/src/views/withdrawal/withdrawList/components/EditDialog.vue b/src/views/withdrawal/withdrawList/components/EditDialog.vue
index 51f7a3a..714137b 100644
--- a/src/views/withdrawal/withdrawList/components/EditDialog.vue
+++ b/src/views/withdrawal/withdrawList/components/EditDialog.vue
@@ -1,21 +1,16 @@
-
-
+
-
-
+
+
+ 打款成功
+ 打款失败
+
+
+
+
@@ -51,9 +46,9 @@ function handleCreate() {
function handleEdit(record = {}) {
showModal({
type: 'edit',
- title: '编辑',
+ title: '提现确认',
})
- formRecord.value = record
+ formRecord.valu.id = record.withdrawalOrderId
formData.value = cloneDeep(record)
}
@@ -67,7 +62,7 @@ function handleOk() {
try {
showLoading()
const params = {
- ...values,
+ ...formData.value,
}
let result = null
switch (modal.value.type) {
@@ -77,7 +72,7 @@ function handleOk() {
})
break
case 'edit':
- result = await apis.common.update(formRecord.value.id, params).catch(() => {
+ result = await apis.review.pendingUpload(formRecord.value.id, params).catch(() => {
throw new Error()
})
break
diff --git a/src/views/withdrawal/withdrawList/index.vue b/src/views/withdrawal/withdrawList/index.vue
index 0687a05..875d0e2 100644
--- a/src/views/withdrawal/withdrawList/index.vue
+++ b/src/views/withdrawal/withdrawList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,22 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
+ 提现确认
+
-
-
+
diff --git a/src/views/withdrawal/withdrawRejectList/index.vue b/src/views/withdrawal/withdrawRejectList/index.vue
index 0687a05..79be5f6 100644
--- a/src/views/withdrawal/withdrawRejectList/index.vue
+++ b/src/views/withdrawal/withdrawRejectList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,22 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
diff --git a/src/views/withdrawal/withdrawSuccessList/index.vue b/src/views/withdrawal/withdrawSuccessList/index.vue
index 0687a05..e29b0c3 100644
--- a/src/views/withdrawal/withdrawSuccessList/index.vue
+++ b/src/views/withdrawal/withdrawSuccessList/index.vue
@@ -1,64 +1,29 @@
-
+
-
-
- 规则名称
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
- 重置
-
+ {{ $t('button.reset') }}
+
搜索
- (searchBarExpand = !searchBarExpand)">
- 展开
-
-
-
-
-
-
-
@@ -66,101 +31,22 @@
-
-
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 默认
- 中等
- 紧凑
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
- 编辑
- 删除
-
-
-
-
-
- 菜单1
- 菜单2
- 菜单3
-
-
-
-
+ 提现确认
+
-
-
+