diff --git a/src/api/reqmsg/msg.js b/src/api/reqmsg/msg.js new file mode 100644 index 0000000..1fd4bae --- /dev/null +++ b/src/api/reqmsg/msg.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询请求报文列表 +export function listMsg(query) { + return request({ + url: '/market/msg/list', + method: 'get', + params: query + }) +} + +// 查询请求报文详细 +export function getMsg(reqId) { + return request({ + url: '/reqmsg/msg/' + reqId, + method: 'get' + }) +} + +// 新增请求报文 +export function addMsg(data) { + return request({ + url: '/reqmsg/msg', + method: 'post', + data: data + }) +} + +// 修改请求报文 +export function updateMsg(data) { + return request({ + url: '/reqmsg/msg', + method: 'put', + data: data + }) +} + +// 删除请求报文 +export function delMsg(reqId) { + return request({ + url: '/reqmsg/msg/' + reqId, + method: 'delete' + }) +} diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index 2844819..4e5576d 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -131,6 +131,32 @@ form + + + + + + + + + + + + + + + + {{apimsg.sysSerial}} @@ -145,6 +171,7 @@ import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype"; import {getAirQuality, pay} from "../../../api/market/apitype"; import * as url from "url"; +import {listMsg} from "../../../api/reqmsg/msg"; export default { name: "Apitype", @@ -197,17 +224,26 @@ export default { sysId:"", apimsg:{}, reqmsg:[], + reqmsgs:{}, + }; }, created() { this.getList(); }, methods: { + getreqmsg(){ + listMsg(this.reqmsgs).then(res=>{ + this.reqmsg=res.data.rows + console.log(this.reqmsg) + }) + }, jkwd(customer){ + this.reqmsgs.sysId=customer.sysId this.sysId=customer.sysId this.apimsg=customer this.dialogTableVisible=true - + this.getreqmsg() }, handleTabClick() { this.dialogVisible=true @@ -229,10 +265,7 @@ export default { this.pay.subject=customer.sysIntro this.pay.totalAmount=customer.sysNumber const url = `http://10.0.2.1:8080/pay/alipay/pay?subject=${this.pay.subject}&totalAmount=${this.pay.totalAmount}`; - pay(this.pay).then(res => { - console.log(res); - window.open(url, '_self'); - }) + window.open(url, '_self'); }, getType(activeNameL){ this.activeNameL=activeNameL