Commit aa367f4e authored by zhengke's avatar zhengke

页面修改

parent aeb52802
...@@ -283,18 +283,22 @@ ...@@ -283,18 +283,22 @@
}, },
//跳转至编辑 //跳转至编辑
goContract(item) { goContract(item) {
   let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
     path: "/contractView", path: "/contractView",
     query: { query: {
ContractId:item.Id ContractId: item.Id
} }
   }); });
   window.open(routeUrl.href, '_blank'); window.open(routeUrl.href, '_blank');
}, },
//新增修改合同 //新增修改合同
EditContract(obj) { EditContract(obj) {
if (obj) { if (obj) {
this.eduObj = obj this.eduObj = {
OrderId: obj.OrderId,
GuestId: obj.GuestId,
ContractId: obj.Id
}
} else { } else {
this.eduObj = null this.eduObj = null
} }
...@@ -304,7 +308,7 @@ ...@@ -304,7 +308,7 @@
closeEdudia() { closeEdudia() {
this.isShowEduForm = false this.isShowEduForm = false
}, },
//刷新页面 //刷新页面a
refreshPage() { refreshPage() {
this.isShowEduForm = false; this.isShowEduForm = false;
this.getList(); this.getList();
...@@ -331,20 +335,20 @@ ...@@ -331,20 +335,20 @@
//下载pdf //下载pdf
downloadContract(item) { downloadContract(item) {
let msg = { let msg = {
ContractId:item.Id, ContractId: item.Id,
CType:item.CType CType: item.CType
} }
GetDownLoadEducationContract(msg).then(res => { GetDownLoadEducationContract(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
let sign=item.StudentName+'-'+item.ContractNo; let sign = item.StudentName + '-' + item.ContractNo;
downloadLocalFile(sign,res.Data); downloadLocalFile(sign, res.Data);
} }
}) })
}, },
//复制合同 //复制合同
copyContract(item){ copyContract(item) {
let msg = { let msg = {
ContractId:item.Id ContractId: item.Id
} }
SetEducationContractCopy(msg).then(res => { SetEducationContractCopy(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -356,7 +360,7 @@ ...@@ -356,7 +360,7 @@
CopyUrl(item) { CopyUrl(item) {
var oInput = document.createElement('input'); var oInput = document.createElement('input');
var url = window.location.host; var url = window.location.host;
oInput.value = url+'/#/contractConfirm'+`?ContractId=${item.Id}`; oInput.value = url + '/#/contractConfirm' + `?ContractId=${item.Id}`;
document.body.appendChild(oInput); document.body.appendChild(oInput);
oInput.select(); // 选择对象 oInput.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令 document.execCommand("Copy"); // 执行浏览器复制命令
......
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