初始化
parent
1e2d52e2c5
commit
bcfe310fb8
|
@ -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'
|
||||
})
|
||||
}
|
|
@ -131,6 +131,32 @@
|
|||
<el-form-item label="请求报文格式" prop="pass">
|
||||
<span>form</span>
|
||||
</el-form-item>
|
||||
<el-form-item label="请求报文" prop="pass">
|
||||
<el-table
|
||||
:data="reqmsg"
|
||||
style="width: 100%">
|
||||
<el-table-column label="名称" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.reqName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类型" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.reqType }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否必填" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.reqYorn }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="描述信息" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.reqMsg }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form-item>
|
||||
<el-form-item label="返回报文" prop="pass">
|
||||
<span>{{apimsg.sysSerial}}</span>
|
||||
</el-form-item>
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue