Commit 634eb097 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/luochao/confucius into master

parents 62b551bf dcbe667b
......@@ -81,7 +81,10 @@
<template v-slot:top="props">
<div class="col-2 q-table__title">合同信息</div>
<q-space />
<div class="page-option"></div>
<div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" label="合同样本链接" @click="CopyYB()" />
<q-btn color="accent" size="sm" class="q-mr-md" label="合同样本pdf下载" @click="downloadYb()" />
</div>
</template>
<template v-slot:body-cell-CreateByName="props">
<q-td :props="props">
......@@ -510,6 +513,20 @@ export default {
}
});
},
//下载合同样本
downloadYb(){
let msg = {
ContractId: 7,
CType: 1
};
GetDownLoadEducationContract(msg).then((res) => {
if (res.Code == 1) {
let sign = "吴春"+ '-' + 'JH-DZ-CD-0025'
downloadLocalFile(sign, res.Data);
}
});
},
//复制合同
copyContract(item) {
let msg = {
......@@ -521,6 +538,18 @@ export default {
}
});
},
//复制合同样本链接
CopyYB(){
var oInput = document.createElement("input");
var url = window.location.host;
oInput.value = url + "/#/contractConfirm";
document.body.appendChild(oInput);
oInput.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令
oInput.className = "oInput";
oInput.style.display = "none";
this.Info("复制成功!");
},
//复制URL
CopyUrl(item) {
var oInput = document.createElement("input");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment