初始化

master
法外狂徒张三 2024-09-06 10:34:24 +08:00
parent 1e2d52e2c5
commit bcfe310fb8
2 changed files with 82 additions and 5 deletions

View File

@ -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'
})
}

View File

@ -131,6 +131,32 @@
<el-form-item label="请求报文格式" prop="pass"> <el-form-item label="请求报文格式" prop="pass">
<span>form</span> <span>form</span>
</el-form-item> </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"> <el-form-item label="返回报文" prop="pass">
<span>{{apimsg.sysSerial}}</span> <span>{{apimsg.sysSerial}}</span>
</el-form-item> </el-form-item>
@ -145,6 +171,7 @@
import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype"; import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype";
import {getAirQuality, pay} from "../../../api/market/apitype"; import {getAirQuality, pay} from "../../../api/market/apitype";
import * as url from "url"; import * as url from "url";
import {listMsg} from "../../../api/reqmsg/msg";
export default { export default {
name: "Apitype", name: "Apitype",
@ -197,17 +224,26 @@ export default {
sysId:"", sysId:"",
apimsg:{}, apimsg:{},
reqmsg:[], reqmsg:[],
reqmsgs:{},
}; };
}, },
created() { created() {
this.getList(); this.getList();
}, },
methods: { methods: {
getreqmsg(){
listMsg(this.reqmsgs).then(res=>{
this.reqmsg=res.data.rows
console.log(this.reqmsg)
})
},
jkwd(customer){ jkwd(customer){
this.reqmsgs.sysId=customer.sysId
this.sysId=customer.sysId this.sysId=customer.sysId
this.apimsg=customer this.apimsg=customer
this.dialogTableVisible=true this.dialogTableVisible=true
this.getreqmsg()
}, },
handleTabClick() { handleTabClick() {
this.dialogVisible=true this.dialogVisible=true
@ -229,10 +265,7 @@ export default {
this.pay.subject=customer.sysIntro this.pay.subject=customer.sysIntro
this.pay.totalAmount=customer.sysNumber this.pay.totalAmount=customer.sysNumber
const url = `http://10.0.2.1:8080/pay/alipay/pay?subject=${this.pay.subject}&totalAmount=${this.pay.totalAmount}`; 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){ getType(activeNameL){
this.activeNameL=activeNameL this.activeNameL=activeNameL