diff --git a/src/views/background/apidetailmessage/index.vue b/src/views/background/apidetailmessage/index.vue index dfbe0b6..f5e8de7 100644 --- a/src/views/background/apidetailmessage/index.vue +++ b/src/views/background/apidetailmessage/index.vue @@ -38,6 +38,9 @@ {{api.requestMethod}} + + + 返回 diff --git a/src/views/background/apimanage/index.vue b/src/views/background/apimanage/index.vue index 638d6c4..30bd006 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,23 @@ + + + + + 价格 + + + + + + + + + + + +
diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue index a8b3e72..31e9cc1 100644 --- a/src/views/market/apitest/index.vue +++ b/src/views/market/apitest/index.vue @@ -125,21 +125,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}} + + 取 消 确 定 @@ -209,7 +214,8 @@ export default { dialogVisible: false, dialogVisible1: false, ruleForm:{}, - tableData:[] + tableData:[], + newapi:{} }; }, //计算属性 类似于data概念", @@ -240,10 +246,14 @@ export default { if (response.code!=200){ alert(response.msg) }else { - alert(JSON.stringify(myapi)) - this.getproductspecification(myapi) + this.getproduct(myapi) this.dialogVisible1=true - + this.newapi={ + productName: myapi.productName, + productPrice: myapi.productPrice, + productContent: myapi.productContent, + productSpecification: myapi.productSpecification + } } }) }, @@ -264,11 +274,20 @@ export default { .catch(_ => {}); }, //产品规格 - getproductspecification(specification){ + getproduct(specification){ selectproductspecification(specification).then(response=>{ this.tableData=response.data }) }, + //选择申请规格 + handleEdit(row){ + this.newapi={ + productName:this.myapi.productName, + productSpecification: row.productSpecificationName, + productPrice: row.middlePrice, + productContent:this.myapi.productContent, + } + }, //测试发送请求 单个参数 submitForm(ruleForm){ sendrequest(ruleForm).then(response=>{ diff --git a/src/views/market/myapi/index.vue b/src/views/market/myapi/index.vue index 5564560..b719245 100644 --- a/src/views/market/myapi/index.vue +++ b/src/views/market/myapi/index.vue @@ -39,7 +39,7 @@
- 测试 + 使用