From b521eb0c1243874df14e641f083a5d45bc8f920a Mon Sep 17 00:00:00 2001 From: WeiRan <2392355487@qq.com> Date: Mon, 9 Sep 2024 20:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AE=A1=E7=90=86=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/background/apimanage.js | 7 + src/api/market/orders.js | 7 - src/api/market/workbench.js | 9 + src/router/index.js | 26 +- src/views/background/apimanage/index.vue | 59 +++- src/views/background/apiupdmessage/index.vue | 25 +- src/views/components/task/index.vue | 144 ++------ src/views/etl/task/index.vue | 24 +- src/views/etl/task/taskInfo.vue | 330 +++++------------- src/views/market/apitest/index.vue | 17 +- src/views/market/myapi/index.vue | 19 +- src/views/market/orders/index.vue | 204 +++++------ src/views/market/pay/index.vue | 176 +++++----- src/views/market/product/index.vue | 9 +- src/views/market/reclaim/index.vue | 342 +++++++++++-------- src/views/market/updorders/index.vue | 84 ++--- src/views/market/workbench/index.vue | 4 +- src/views/property/asDisplay/index.vue | 20 +- src/views/property/asauth/index.vue | 23 +- src/views/property/astr/index.vue | 17 +- 20 files changed, 690 insertions(+), 856 deletions(-) diff --git a/src/api/background/apimanage.js b/src/api/background/apimanage.js index 6b04e0b..c9f90b9 100644 --- a/src/api/background/apimanage.js +++ b/src/api/background/apimanage.js @@ -47,3 +47,10 @@ export function delapi(productId){ }) } +export function getprice(productId){ + return request({ + url:"/background/apimanage/getprice/"+productId, + method: "POST", + }) +} + diff --git a/src/api/market/orders.js b/src/api/market/orders.js index 97669c5..364bcb7 100644 --- a/src/api/market/orders.js +++ b/src/api/market/orders.js @@ -76,13 +76,6 @@ export function updateByordersState1(data){ data: data })} -export function listreclaim(data){ - return request({ - url:"/market/orders/listreclaim", - method: "POST", - data: data - })} - diff --git a/src/api/market/workbench.js b/src/api/market/workbench.js index 21ed163..5479913 100644 --- a/src/api/market/workbench.js +++ b/src/api/market/workbench.js @@ -7,3 +7,12 @@ export function gethostportList(){ method: "GET", }) } + +export function getcompany(){ + return request({ + url:"/market/company/selectcompany", + method: "POST", + }) +} + + diff --git a/src/router/index.js b/src/router/index.js index 815bfcf..1e7b554 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -148,7 +148,31 @@ export const constantRoutes = [ path: 'index', name: 'apiupdmessage', component: () => import('@/views/background/apiupdmessage/index.vue'), - meta: { title: '接口列表', icon: 'form' } + meta: { title: '接口信息修改页面', icon: 'form' } + } + ] + }, + { + path: '/product', + component: Layout, + children: [ + { + path: 'index', + name: 'product', + component: () => import('@/views/market/product/index.vue'), + meta: { title: '数据块', icon: 'form' } + } + ] + }, + { + path: '/Workbench', + component: Layout, + children: [ + { + path: 'index', + name: 'Workbench', + component: () => import('@/views/market/workbench/index.vue'), + meta: { title: '信息', icon: 'form' } } ] }, diff --git a/src/views/background/apimanage/index.vue b/src/views/background/apimanage/index.vue index 638d6c4..53a7aed 100644 --- a/src/views/background/apimanage/index.vue +++ b/src/views/background/apimanage/index.vue @@ -116,10 +116,12 @@ :total="total"> + +
@@ -132,9 +134,6 @@ - - - @@ -150,6 +149,28 @@ + + + + + + + + + + 价格 + + + + + + + + + + + +
@@ -171,14 +192,13 @@ //例如:import 《组件名称》 from '《组件路径》, import { addproduct, - delapi, - productStateLis, - productStateList, + delapi, getprice, selectapiList, UpdproductState } from "@/api/background/apimanage"; import {resetForm} from "@/utils/muyu"; import {add} from "lodash/math"; +import api from "js-cookie"; export default { name: "Apimanage", @@ -189,6 +209,13 @@ export default { //这里存放数据" return { tableData:[], + moneyData:[], + money:{ + timemoney:'', + daymoney:'', + monthmoney:'', + yearmoney:'' + }, ruleForm:{ pageNum:1, pageSize:9, @@ -253,7 +280,21 @@ export default { }, //修改 handleEdit(row){ - this.$router.push({path:"/apiupdmessage/index",query:{api:row}}) + //查询中间表,获取不同规格对应的价格 + getprice(row.productId).then(response=>{ + this.moneyData=response.data + this.money.timemoney=this.moneyData[0].middlePrice + this.money.daymoney=this.moneyData[1].middlePrice + this.money.monthmoney=this.moneyData[2].middlePrice + this.money.yearmoney=this.moneyData[3].middlePrice + row.timemoney = this.money.timemoney; + row.daymoney = this.money.daymoney; + row.monthmoney = this.money.monthmoney; + row.yearmoney = this.money.yearmoney; + this.$router.push({path:"/apiupdmessage/index",query:{api:row}}) + }) + + }, //删除 handleDelete(row){ diff --git a/src/views/background/apiupdmessage/index.vue b/src/views/background/apiupdmessage/index.vue index 97fdbba..55a38b7 100644 --- a/src/views/background/apiupdmessage/index.vue +++ b/src/views/background/apiupdmessage/index.vue @@ -20,9 +20,6 @@ - - - @@ -38,6 +35,28 @@ + + + + + + + + + + 价格 + + + + + + + + + + + + 修改 重置 diff --git a/src/views/components/task/index.vue b/src/views/components/task/index.vue index ca43d42..8380a5e 100644 --- a/src/views/components/task/index.vue +++ b/src/views/components/task/index.vue @@ -1,6 +1,12 @@