diff --git a/src/api/apitest/apitest.js b/src/api/apitest/apitest.js new file mode 100644 index 0000000..9a2e4a0 --- /dev/null +++ b/src/api/apitest/apitest.js @@ -0,0 +1,100 @@ +import request from "@/utils/request"; + + +//发送邮箱验证码 +export function apitest(email){ + return request({ + url:"/market/company/sendcode/"+email, + method: "POST", + }) +} + + + +export function reducetestcount(data){ + return request({ + url:"/market/producttest/reducetestcount", + method: "POST", + data: data + }) +} + +export function iftest(data){ + return request({ + url:"/market/product/iftest", + method: "POST", + data: data + }) +} + +export function findcount(data){ + return request({ + url:"/market/producttest/findcount", + method: "POST", + data: data + }) +} + +export function getHeader(data){ + return request({ + url:"/market/producttest/productheader", + method: "POST", + data: data + }) +} +export function getRequest(data){ + return request({ + url:"/market/producttest/productrequest", + method: "POST", + data: data + }) +} + + + +export function sendrequest(options){ + // 确保options是一个对象,并且包含必要的属性 + if (!options || typeof options !== 'object' || !options.apiRouter || typeof options.parameter === 'undefined') { + throw new Error('Invalid options: must be an object with apiRouter and optional parameter properties'); + } +// 构建完整的URL + const fullUrl = `/background/api/${options.apiRouter}/${options.parameter || ''}`; + return request({ + url:fullUrl, + method: "get", + data: options.parameter, + }) +} + +export function sendrequest1(options){ + // 确保options是一个对象,并且包含必要的属性 + if (!options || typeof options !== 'object' || !options.apiRouter ) { + throw new Error('Invalid options: must be an object with apiRouter '); + } +// 构建完整的URL + const fullUrl = `/background/api/${options.apiRouter}`; + return request({ + url:fullUrl, + method: "post", + data: options + }) +} + +export function sendrequest2(options){ + // 确保options是一个对象,并且包含必要的属性 + if (!options || typeof options !== 'object' || !options.apiRouter ) { + throw new Error('Invalid options: must be an object with apiRouter '); + } +// 构建完整的URL + const fullUrl = `/background/api/${options.apiRouter}`; + return request({ + url:fullUrl, + method: "post" + }) +} + + + + + + diff --git a/src/api/authentication/authentication.js b/src/api/authentication/authentication.js new file mode 100644 index 0000000..0e4cc3c --- /dev/null +++ b/src/api/authentication/authentication.js @@ -0,0 +1,16 @@ +import request from "@/utils/request"; +export function companyauthentication(data){ + return request({ + url:"/market/company/companyauthentication", + method: "POST", + data: data + }) +} + +export function ifcompanyauthentication(data){ + return request({ + url:"/market/company/ifcompanyauthentication", + method: "POST", + data: data + }) +} diff --git a/src/api/authentication/message.js b/src/api/authentication/message.js index bd7b4b1..e979e9c 100644 --- a/src/api/authentication/message.js +++ b/src/api/authentication/message.js @@ -1,5 +1,15 @@ import request from "@/utils/request"; + +//发送邮箱验证码 +export function sendcode1(email){ + return request({ + url:"/market/company/sendcode/"+email, + method: "POST", + }) +} + +//绑定邮箱 export function linkemail(data){ return request({ url:"/market/company/list", diff --git a/src/api/background/apimanage.js b/src/api/background/apimanage.js new file mode 100644 index 0000000..6b04e0b --- /dev/null +++ b/src/api/background/apimanage.js @@ -0,0 +1,49 @@ +import request from "@/utils/request"; + +export function selectapiList(data){ + return request({ + url:"/background/apimanage/list", + method: "POST", + data: data + }) +} + +export function apiupdmessage(data){ + return request({ + url:"/background/apimanage/upd", + method: "POST", + data: data + }) +} + +export function productStateList(data){ + return request({ + url:"/background/apimanage/productState", + method: "POST", + data: data + }) +} + +export function UpdproductState(data){ + return request({ + url:"/background/apimanage/updproductState", + method: "POST", + data: data + }) +} + +export function addproduct(data){ + return request({ + url:"/background/apimanage/add", + method: "POST", + data: data + }) +} + +export function delapi(productId){ + return request({ + url:"/background/apimanage/del/"+productId, + method: "POST", + }) +} + diff --git a/src/api/background/company.js b/src/api/background/company.js index 4841ef7..7468ccc 100644 --- a/src/api/background/company.js +++ b/src/api/background/company.js @@ -8,6 +8,14 @@ export function selectcompanyList(data){ }) } +export function reviewStatus(data){ + return request({ + url:"/background/company/reviewStatus", + method: "POST", + data: data + }) +} + export function selectcompanystatus(data){ return request({ url:"/background/company/companystatus", diff --git a/src/api/market/orders.js b/src/api/market/orders.js index 84befa5..97669c5 100644 --- a/src/api/market/orders.js +++ b/src/api/market/orders.js @@ -1,5 +1,6 @@ import request from "@/utils/request"; + export function selectList(data){ return request({ url:"/market/orders/list", @@ -7,3 +8,83 @@ export function selectList(data){ data: data }) } + +export function addordersup(data){ + return request({ + url:"/market/orders/addOrdeds", + method: "POST", + data: data + }) +} + +export function ordersDelete(ordersId) { + return request({ + url: "/market/orders/delByOrderId/" + ordersId , + method: "GET" + }) +} + +export function updateOrders(data) { + return request({ + url: "/market/orders/updateOrders", + method: "POST", + data: data + }) +} + +export function updateByeExist(ordersId) { + return request({ + url: "/market/orders/updateByeExist/" + ordersId , + method: "GET" + }) +} + + +export function updateByExist(ordersId) { + return request({ + url: "/market/orders/updateByExist/" + ordersId , + method: "GET" + }) +} + + +export function orderssd(ordersId) { + return request({ + url: "/market/orders/delByOrderId/" + ordersId , + method: "GET" + }) +} + + + export function pay(data){ + return request({ + url:"/market/alipay/pay", + method: "get", + data: data + })} + +export function getOut(){ + return request({ + url:"/market/orders/getOutAll", + method: "GET" + })} + +export function updateByordersState1(data){ + return request({ + url:"/market/orders/updateByordersState1", + method: "POST", + data: data + })} + +export function listreclaim(data){ + return request({ + url:"/market/orders/listreclaim", + method: "POST", + data: data + })} + + + + + + diff --git a/src/api/market/product.js b/src/api/market/product.js index 303f2bc..fc908ba 100644 --- a/src/api/market/product.js +++ b/src/api/market/product.js @@ -9,11 +9,34 @@ export function selectList(data){ } -export function selectTypeList(data){ +export function selectTypeList(data) { return request({ - url:"/market/product/typeList", + url: "/market/product/typeList", + method: "POST", + data: data + }) +} +export function selectproductspecification(data){ + return request({ + url:"/market/product/specification", method: "POST", data: data }) } +export function ifbuy(data){ + return request({ + url:"/market/product/ifbuy", + method: "POST", + data: data + }) +} + + + +export function showByproductId(productId){ + return request({ + url:"/market/product/showByproductId="+productId, + method: "GET" + }) +} diff --git a/src/api/market/workbench.js b/src/api/market/workbench.js index 147c6d2..21ed163 100644 --- a/src/api/market/workbench.js +++ b/src/api/market/workbench.js @@ -1,4 +1,5 @@ import request from "@/utils/request"; +import { handleDelete } from '@/api/market/product' export function gethostportList(){ return request({ diff --git a/src/api/property/asDisplay.js b/src/api/property/asDisplay.js index e0bb0ae..38c5b41 100644 --- a/src/api/property/asDisplay.js +++ b/src/api/property/asDisplay.js @@ -1,9 +1,10 @@ import request from '@/utils/request' -export function getConnectList(data) { +export function getExtractDataTableNameList() { return request({ - url: '/property/dataSource/dataName', + url: '/property/dataRunName/extractDataTableName', method: 'post', - data: data }) } + + diff --git a/src/api/property/asauth.js b/src/api/property/asauth.js index ac7e6f2..7f56a58 100644 --- a/src/api/property/asauth.js +++ b/src/api/property/asauth.js @@ -1,9 +1,42 @@ import request from '@/utils/request' -export function getConnectList(data) { + +export function getExtractDataTableNameList() { return request({ - url: '/property/connect/selectConnect', + url: '/property/dataRunName/extractDataTableName', method: 'post', - data: data + }) +} + +export function addDeptAssetAuthorization(data) { + return request({ + url: '/property/dataRunName/addDeptAssetAuthorization', + method: 'post', + data:data + }) +} + +export function delDeptAssetAuthorization(data) { + return request({ + url: '/property/dataRunName/delDeptAssetAuthorization', + method: 'post', + data:data + }) +} + +export function addUserAssetAuthorization(data) { + return request({ + url: '/property/dataRunName/addUserAssetAuthorization', + method: 'post', + data:data + }) +} + + +export function delUserAssetAuthorization(data) { + return request({ + url: '/property/dataRunName/delUserAssetAuthorization', + method: 'post', + data:data }) } diff --git a/src/api/property/astr.js b/src/api/property/astr.js index c2dc1cd..7a69bbb 100644 --- a/src/api/property/astr.js +++ b/src/api/property/astr.js @@ -6,3 +6,17 @@ export function getExtractDataTableNameList() { method: 'post', }) } + +export function findTableValue(dataId,name) { + return request({ + url: '/property/dataRunName/findTableValue?dataId='+dataId+"&tableName="+name, + method: 'post', + }) +} + +export function selectBasicList() { + return request({ + url: '/property/dataRunName/selectBasicList', + method: 'post', + }) +} diff --git a/src/router/index.js b/src/router/index.js index 8860d31..815bfcf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -116,6 +116,66 @@ export const constantRoutes = [ } ] }, + { + path: '/apidetailmessage', + component: Layout, + children: [ + { + path: 'index', + name: 'apidetailmessage', + component: () => import('@/views/background/apidetailmessage/index.vue'), + meta: { title: '接口详情', icon: 'form' } + } + ] + }, + { + path: '/apimanage', + component: Layout, + children: [ + { + path: 'index', + name: 'apimanage', + component: () => import('@/views/background/apimanage/index.vue'), + meta: { title: '接口列表', icon: 'form' } + } + ] + }, + { + path: '/apiupdmessage', + component: Layout, + children: [ + { + path: 'index', + name: 'apiupdmessage', + component: () => import('@/views/background/apiupdmessage/index.vue'), + meta: { title: '接口列表', icon: 'form' } + } + ] + }, + { + path: '/updorders', + component: Layout, + children: [ + { + path: 'index', + name: 'updorders', + component: () => import('@/views/market/updorders/index.vue'), + meta: { title: '修改订单详情', icon: 'form' } + } + ] + }, + { + path: '/reclaim', + component: Layout, + children: [ + { + path: 'index', + name: 'reclaim', + component: () => import('@/views/market/reclaim/index.vue'), + meta: { title: '订单回收站', icon: 'form' } + } + ] + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/background/apidetailmessage/index.vue b/src/views/background/apidetailmessage/index.vue new file mode 100644 index 0000000..3c2fcb9 --- /dev/null +++ b/src/views/background/apidetailmessage/index.vue @@ -0,0 +1,96 @@ + + + + diff --git a/src/views/background/apimanage/index.vue b/src/views/background/apimanage/index.vue new file mode 100644 index 0000000..638d6c4 --- /dev/null +++ b/src/views/background/apimanage/index.vue @@ -0,0 +1,335 @@ + + + + diff --git a/src/views/background/apiupdmessage/index.vue b/src/views/background/apiupdmessage/index.vue new file mode 100644 index 0000000..97fdbba --- /dev/null +++ b/src/views/background/apiupdmessage/index.vue @@ -0,0 +1,108 @@ + + + + diff --git a/src/views/background/company/index.vue b/src/views/background/company/index.vue index 7f7785a..573132e 100644 --- a/src/views/background/company/index.vue +++ b/src/views/background/company/index.vue @@ -2,7 +2,7 @@
企业管理/待审核企业 - + 全部
待审核企业 @@ -116,15 +116,32 @@ + + + @@ -149,7 +166,7 @@ + diff --git a/src/views/market/updorders/index.vue b/src/views/market/updorders/index.vue new file mode 100644 index 0000000..1306a61 --- /dev/null +++ b/src/views/market/updorders/index.vue @@ -0,0 +1,107 @@ + + + + diff --git a/src/views/market/workbench/index.vue b/src/views/market/workbench/index.vue index d084e4a..48ccd8a 100644 --- a/src/views/market/workbench/index.vue +++ b/src/views/market/workbench/index.vue @@ -3,11 +3,11 @@
- HI,上海八维宏烨集团
+ HI,{{companymessage.companyName}}
-
地区:上海市 上海市
-
IP:114.85.72.211
-
时间:2021年-1月-12日
+
地址:{{companymessage.companyAddress}}
+
企业法人:{{companymessage.companyLeader}}
+
时间:{{companymessage.registrantDate}}
登录日志
@@ -21,8 +21,8 @@
账户余额:
-
¥8544344.00
-
充值
+
¥{{companymessage.companyMoney}}
+
充值
@@ -33,7 +33,7 @@
热点接口
-
申请新的接口
+
申请其他接口

@@ -41,7 +41,7 @@ {{form.productName}} - 查看 + 查看
@@ -52,54 +52,90 @@
- - - 亲,需要认证才能使用哦!!! - - 取 消 - 去认证 - - + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - 企业信息 +

请选择充值金额

- - - + + + + 5元 + 20元 + 50元 + 100元 + 自定义 + - - + + - - - - - - - - - - - - - - + + + + 支付宝 + 微信 + 银行卡 + - 提交认证申请 + 充值
@@ -111,7 +147,8 @@ //例如:import 《组件名称》 from '《组件路径》, -import {gethostportList} from "@/api/market/workbench"; +import {getcompany, gethostportList} from "@/api/market/workbench"; +import {ifbuy} from "@/api/market/product"; export default { name: 'Workbench', @@ -126,8 +163,11 @@ export default { hostportList:[], dialogVisible: false, dialogVisible1:false, + dialogVisible2:false, //企业信息 - ruleForm:{} + ruleForm:{}, + companymessage:{}, + moneyForm:{} }; }, //计算属性 类似于data概念", @@ -136,6 +176,35 @@ export default { watch: {}, //方法集合", methods: { + //绑定的企业信息 + getcompany(){ + getcompany().then(response=>{ + this.companymessage=response.data + }) + }, + //打开充值页面 + addmoney(){ + this.dialogVisible2=true + }, + //确认充值 + insertmoney(moneyForm){ + if (moneyForm.pay==1){ + if (moneyForm.resource!=''){ + window.open("http://localhost:9701/alipay/pay?ordersPrice="+moneyForm.resource) + this.$message.success('付款成功') + }else { + window.open("http://localhost:9701/alipay/pay?ordersPrice="+moneyForm.resource) + this.$message.success('付款成功') + } + + } + // this.dialogVisible2=false + + }, + //申请其他接口 + otherapi(){ + this.$router.push("/product/index") + }, //热点数据列表 gethostportList(){ gethostportList().then(response=>{ @@ -156,8 +225,15 @@ export default { }) .catch(_ => {}); }, - tovalidation(){ - this.dialogVisible=true + tovalidation(form){ + // this.dialogVisible=true + //判断是否已购买 + ifbuy(form).then(response=>{ + if (response.code!=200) { + alert(response.msg) + } + }) + this.$router.push({path:"/apitest/index",query:{myapi:JSON.stringify(form)}}) }, validationYes(){ this.dialogVisible1=true @@ -170,6 +246,7 @@ export default { //生命周期 - 创建完成(可以访问当前this实例)", created() { this.gethostportList() + this.getcompany() }, //生命周期 - 挂载完成(可以访问DOM元素)", mounted() { diff --git a/src/views/property/asDisplay/index.vue b/src/views/property/asDisplay/index.vue index fed95b0..427e934 100644 --- a/src/views/property/asDisplay/index.vue +++ b/src/views/property/asDisplay/index.vue @@ -1,62 +1,170 @@ - - diff --git a/src/views/property/asauth/index.vue b/src/views/property/asauth/index.vue index fed95b0..d26fcaa 100644 --- a/src/views/property/asauth/index.vue +++ b/src/views/property/asauth/index.vue @@ -1,62 +1,376 @@ - - diff --git a/src/views/property/astr/index.vue b/src/views/property/astr/index.vue index 7b202a2..9d606df 100644 --- a/src/views/property/astr/index.vue +++ b/src/views/property/astr/index.vue @@ -1,82 +1,165 @@ -