diff --git a/src/api/apitest/apitest.js b/src/api/apitest/apitest.js index 016c551..9a2e4a0 100644 --- a/src/api/apitest/apitest.js +++ b/src/api/apitest/apitest.js @@ -35,6 +35,21 @@ export function findcount(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){ @@ -65,6 +80,21 @@ export function sendrequest1(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/market/orders.js b/src/api/market/orders.js index 1c316fa..97669c5 100644 --- a/src/api/market/orders.js +++ b/src/api/market/orders.js @@ -88,4 +88,3 @@ export function listreclaim(data){ - diff --git a/src/api/market/product.js b/src/api/market/product.js index 6675715..fc908ba 100644 --- a/src/api/market/product.js +++ b/src/api/market/product.js @@ -33,13 +33,6 @@ export function ifbuy(data){ } -export function ifbuy(data){ - return request({ - url:"/market/product/ifbuy", - method: "POST", - data: data - }) -} export function showByproductId(productId){ return request({ diff --git a/src/api/property/asDisplay.js b/src/api/property/asDisplay.js index 6714614..38c5b41 100644 --- a/src/api/property/asDisplay.js +++ b/src/api/property/asDisplay.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getExtractDataTableNameList() { return request({ - url: '/property/dataRunName/extractDataTableNameShow', + url: '/property/dataRunName/extractDataTableName', method: 'post', }) } diff --git a/src/api/property/asauth.js b/src/api/property/asauth.js index 73f15be..7f56a58 100644 --- a/src/api/property/asauth.js +++ b/src/api/property/asauth.js @@ -40,33 +40,3 @@ export function delUserAssetAuthorization(data) { data:data }) } - -// -------------------------------------------------------- - -/** - * 查询资产赋权用户信息 - * @param data 参数信息 - * @returns {*} 响应结果 - */ -export function findUserIdList(data) { - return request({ - url: '/property/dataRunName/findUserIdList', - method: 'POST', - data - }) -} - -/** - * 查询资产赋权部门信息 - * @param data 参数信息 - * @returns {*} 响应结果 - */ -export function findDeptIdList(data) { - return request({ - url: '/property/dataRunName/findDeptIdList', - method: 'POST', - data - }) -} - - diff --git a/src/views/background/apidetailmessage/index.vue b/src/views/background/apidetailmessage/index.vue index f5e8de7..3c2fcb9 100644 --- a/src/views/background/apidetailmessage/index.vue +++ b/src/views/background/apidetailmessage/index.vue @@ -37,11 +37,6 @@ {{api.requestMethod}} - - - - - 返回 diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue index c3d3195..7a9e74f 100644 --- a/src/views/market/apitest/index.vue +++ b/src/views/market/apitest/index.vue @@ -19,8 +19,15 @@
- 测试 - 立即申请 + + 立即使用 + 续约 + + + 测试 + 立即申请 + +
@@ -43,9 +50,84 @@ {{myapi.requestMethod}} + + + + + + + + + + + + + + - + + + + + + + + + + @@ -83,7 +165,7 @@ - +
@@ -104,12 +186,30 @@ 说明:是否只返回有内容详情的新闻, 1:是, 默认0
- +
+ + + + + + + + + 传1时返回单号,默认不返回单号(建议传入) + +
+ + 发送请求 - + + npm 发送请求 + + + 发送请求 +
 
@@ -129,21 +229,8 @@
       :visible.sync="dialogVisible1"
       width="50%"
       :before-close="handleClose1">
-      
-        
-          {{myapi.productName}}
-        
-        
-          {{myapi.productPrice}}元/次
-        
-        
-          {{myapi.productContent}}
-        
-        
-          {{myapi.apiRouter}}
-        
-      
-      
+
+
       请选择申请规格
       
         
       
+      
+      
+        
+          {{newapi.productName}}
+        
+        
+          {{newapi.productSpecification}}
+        
+        
+          {{newapi.productPrice}}元/次
+        
+        
+          {{newapi.productPrice}}元
+        
+        
+          {{newapi.productContent}}
+        
+      
       
     取 消
     确 定
@@ -190,10 +295,19 @@