当前位置:网站首页>新开窗口 展示协议
新开窗口 展示协议
2022-08-09 22:46:00 【tiankongxiao】
handleUpdateAgreement() {
var temp = {
bidderSetmealId: this.multipleSelection[0].id,
}
const data = {
url: "@ViewBag.agreementUrl",
postData: JSON.stringify(temp)
}
axios.post("/base/postgetway", data)
.then(res => {
console.log("heong", res.data.code)
if (res.data.code == 1000) {
let html = ''
let CardBack = res.data.data.idCardBack;
let CardFront = res.data.data.idCardFront;
html = '<div style="display:flex; justify-content:space-between;">'+
'<img style = "width:47%" src="' + CardBack+'" />' +
'<img style = "width:47%" src="' + CardFront + '" />' +
'</div >';
var result = res.data.data.content + html;
let myWindow = window.open('', '', 'width:100%,height:100%');
myWindow.document.write(result) //info为html的字符串
myWindow.document.close()//必须关闭流,否则表单不生效
myWindow.focus();
} else {
this.$message.error('操作失败');
}
//
});
},
边栏推荐
猜你喜欢
随机推荐
FreeRTOS任务基础
数据库优化 | 干货
【集训DAY3】石油储备计划【树形DP】
Technology feast!Huayun Data brings six topics to OpenInfra Days China
LeetCode952三部曲之三:再次优化(122ms -> 96ms,超51% -> 超91%)
MVC与MVVM模式的区别
【诗歌】被讨厌的勇气
分布式数据库难题(三):数据一致性
外包的水有多深?腾讯15k的外包测试岗能去吗?
IT传奇人物菲尔德的转型经验教训及给CIO的建议
LiveData : Transformations.map和 Transformations.switchMap用法
【哲理】事教人
How to know the computer boot record?
什么是平面文件数据库? 如何导入多种格式的文件:DSV、JSON、XML?
HStreamDB v0.9 发布:分区模型扩展,支持与外部系统集成
tiup cluster template
Live Preview | ICML 2022 11 first-author scholars share online neural network, graph learning and other cutting-edge research
【哲理】读书的意义
Qt 之 QDateEdit 和 QTimeEdit
Snap: 322. Change of Change









