diff --git a/yanshouban/src/App.vue b/yanshouban/src/App.vue index 48b89e2..ced9d41 100644 --- a/yanshouban/src/App.vue +++ b/yanshouban/src/App.vue @@ -28,22 +28,26 @@ export default { created() { // this.fetchData() + let refreshToken= localStorage.getItem('refreshToken'); - // if (this.$store.state.user.token) { - // this.getPrivacySwitch(); - // } else if (refreshToken) { - // this.handleLogin(); - // } else { - // window.location.href = 'https://zhld.scjysm.com:1443/home'; // 直接跳转到指定的 URL - // } - if (refreshToken) { - console.log(refreshToken) - this.handleLogin(); - } else if (this.$store.state.user.token) { + + if (this.$store.state.user.token) { this.getPrivacySwitch(); - } else { - window.location.href = 'https://zhld.scjysm.com:1443/home'; // 直接跳转到指定的 URL + } else{ + this.handleLogin(); } +//     if (refreshToken) { +//       if(!this.$store.state.user.token) { +//         this.handleLogin(); +//       }   +//     } else { + +//     window.location.href = 'https://zhld.scjysm.com:1443/home'; // 直接跳转到指定的 URL +//     } +// if (this.$store.state.user.token) { +// this.getPrivacySwitch(); +// } + }, methods: { handleLogin () { diff --git a/yanshouban/src/api/rentalMan.js b/yanshouban/src/api/rentalMan.js index b6f3c64..92585f6 100644 --- a/yanshouban/src/api/rentalMan.js +++ b/yanshouban/src/api/rentalMan.js @@ -23,3 +23,31 @@ export function rentalAdd(data) { data }) } + +//导出出租管理 +export function excelRentOutQueryByPage(data) { + return request({ + url: '/cereLeasingInformation/excelRentOutQueryByPage', + method: 'post', + data, + responseType: 'blob' + }) +} +//导出决算管理 +export function excelManagementOfFinalAccountsForRentals(data) { + return request({ + url: '/cereLeasingInformation/excelManagementOfFinalAccountsForRentals', + method: 'post', + data, + responseType: 'blob' + }) +} +//导出续租管理 +export function excelLeaseRenewalManagement(data) { + return request({ + url: '/cereLeasingInformation/excelLeaseRenewalManagement', + method: 'post', + data, + responseType: 'blob' + }) +} diff --git a/yanshouban/src/utils/request.js b/yanshouban/src/utils/request.js index da1dea4..ccc88a8 100644 --- a/yanshouban/src/utils/request.js +++ b/yanshouban/src/utils/request.js @@ -21,9 +21,9 @@ if (host == '172.16.61.48' || host == '172.16.61.49 :5173' || host =='172.16.61. // PREFIX = 'http://172.16.61.48/meserver/admin-server'; // PREFIX = 'http://192.168.2.213:9003'; // PREFIX = 'http://8.130.38.56:8019/admin-server'; - // PREFIX = 'http://192.168.2.250:9003'; + PREFIX = 'http://192.168.8.106:9003'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server'; - PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; + // PREFIX = 'https://jy.scjysm.asia:18086/admin-server'; // PREFIX = 'http://172.16.61.126:8080/meserver/admin-server'; // PREFIX = 'https://wjdc.scjysm.asia:1443/meserver/admin-server' diff --git a/yanshouban/src/views/active/couponlist/component/shopList.vue b/yanshouban/src/views/active/couponlist/component/shopList.vue index 675562f..15cbb93 100644 --- a/yanshouban/src/views/active/couponlist/component/shopList.vue +++ b/yanshouban/src/views/active/couponlist/component/shopList.vue @@ -122,6 +122,16 @@ export default { const res = await businessListGetAll(formInline) this.total = res.data.total this.tableData = res.data.list + this.tableData.map(res=>{ + res.shopPhone = this.$decrypt(res.shopPhone) + res.shopPassword = this.$decrypt(res.shopPassword) + res.idCardNum = this.$decrypt(res.idCardNum) + res.emailAddress = this.$decrypt(res.emailAddress) + res.shopAdress = this.$decrypt(res.shopAdress) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.chargePersonPhone = this.$decrypt(res.chargePersonPhone) + + }) } } } diff --git a/yanshouban/src/views/ads/fangli/index.vue b/yanshouban/src/views/ads/fangli/index.vue index d719015..299ebed 100644 --- a/yanshouban/src/views/ads/fangli/index.vue +++ b/yanshouban/src/views/ads/fangli/index.vue @@ -168,10 +168,13 @@
编辑
+
+ 审核流程配置 +
启用
-
+
禁用
@@ -196,6 +199,28 @@
+ +
+ + + + + + +
+ 确定 + 取消 + +
+ +
+ +
@@ -281,7 +306,14 @@ export default { addAct:false,//新增框 banAct:false,//详情 steatqie:false,//编辑详情切换 - itemXiang:{} + itemXiang:{}, + peiShow:false, + // peiFormRules + peiId:'', + peiForm:{ + auditTime:'' + } + } }, @@ -500,6 +532,24 @@ export default { }) } }, + async peiCheck(){ + if(this.peiForm.auditTime ==''){ + this.$message({ + message: '请填写审核提醒时间', + }) + return; + } + await fangEdit({id:this.peiId,auditTime:this.peiForm.auditTime}) + this.peiShow = false + this.getAll() + }, + peizhi(item){ + this.peiForm = { + auditTime:'' + } + this.peiShow = true + this.peiId = item.id + }, } } diff --git a/yanshouban/src/views/business/autd/index.vue b/yanshouban/src/views/business/autd/index.vue index b74ce4d..8d130e6 100644 --- a/yanshouban/src/views/business/autd/index.vue +++ b/yanshouban/src/views/business/autd/index.vue @@ -448,6 +448,12 @@ export default { const res = await settlementGetAll(formInline) this.tableData = res.data.list this.total = res.data.total + this.tableData.map(res=>{ + res.shopPhone = this.$decrypt(res.shopPhone) + res.shopPassword = this.$decrypt(res.shopPassword) + res.emailAddress = this.$decrypt(res.emailAddress) + res.idCardNum = this.$decrypt(res.idCardNum) + }) }, luru(item){ this.hetongBox = true diff --git a/yanshouban/src/views/business/businessList/index.vue b/yanshouban/src/views/business/businessList/index.vue index 903c2a5..94de591 100644 --- a/yanshouban/src/views/business/businessList/index.vue +++ b/yanshouban/src/views/business/businessList/index.vue @@ -1058,6 +1058,15 @@ export default { const res = await businessListGetAll(formInline) this.total = res.data.total this.tableData = res.data.list + this.tableData.map(res=>{ + res.shopPhone = this.$decrypt(res.shopPhone) + res.shopPassword = this.$decrypt(res.shopPassword) + res.idCardNum = this.$decrypt(res.idCardNum) + res.emailAddress = this.$decrypt(res.emailAddress) + res.shopAdress = this.$decrypt(res.shopAdress) + res.legalRepresentative = this.$decrypt(res.legalRepresentative) + res.chargePersonPhone = this.$decrypt(res.chargePersonPhone) + }) }, // 编辑号码 inputPhone () { diff --git a/yanshouban/src/views/channel/list/index.vue b/yanshouban/src/views/channel/list/index.vue index 735163b..5c58538 100644 --- a/yanshouban/src/views/channel/list/index.vue +++ b/yanshouban/src/views/channel/list/index.vue @@ -178,6 +178,12 @@ export default { this.list = data.list this.tableOptions.total = data.total this.loading = false + this.list.map(res=>{ + res.name = this.$decrypt(res.name) + res.email = this.$decrypt(res.email) + res.idCardNum = this.$decrypt(res.idCardNum) + res.phone = this.$decrypt(res.phone) + }) }, /** * 分页 diff --git a/yanshouban/src/views/comment/commentSys/index.vue b/yanshouban/src/views/comment/commentSys/index.vue index a189139..b414e7d 100644 --- a/yanshouban/src/views/comment/commentSys/index.vue +++ b/yanshouban/src/views/comment/commentSys/index.vue @@ -293,6 +293,12 @@ export default { const res = await commentSysGetall(formParams) this.tableData = res.data.list this.total = res.data.total + this.tableData.map(res=>{ + res.name = this.$decrypt(res.name) + res.email = this.$decrypt(res.email) + res.idCardNum = this.$decrypt(res.idCardNum) + res.phone = this.$decrypt(res.phone) + }) } } } diff --git a/yanshouban/src/views/comprehensive/Lcinquiry/index.vue b/yanshouban/src/views/comprehensive/Lcinquiry/index.vue index 95f2d74..0f49240 100644 --- a/yanshouban/src/views/comprehensive/Lcinquiry/index.vue +++ b/yanshouban/src/views/comprehensive/Lcinquiry/index.vue @@ -107,7 +107,12 @@ async getAll(){ const res = await orderGetAll(this.formInline) const Orderlist = await materialChangeInquiry(res.data.list) this.tableData = Orderlist.data -console.log(Orderlist.data) + this.tableData.map(res=>{ + res.customerName = this.$decrypt(res.customerName) + res.receiveName = this.$decrypt(res.receiveName) + res.receivePhone = this.$decrypt(res.receivePhone) + res.receiveAdress = this.$decrypt(res.receiveAdress) + }) }, async search(){ this.formInline.dates = this.formParams.dates @@ -115,6 +120,12 @@ async search(){ const res = await orderGetAll(this.formInline) const Orderlist = await materialChangeInquiry(res.data.list) this.tableData = Orderlist.data + this.tableData.map(res=>{ + res.customerName = this.$decrypt(res.customerName) + res.receiveName = this.$decrypt(res.receiveName) + res.receivePhone = this.$decrypt(res.receivePhone) + res.receiveAdress = this.$decrypt(res.receiveAdress) + }) }, clear(){ this.formInline.dates = [] diff --git a/yanshouban/src/views/comprehensive/OrderRhq/index.vue b/yanshouban/src/views/comprehensive/OrderRhq/index.vue index 87c41c8..dca12f8 100644 --- a/yanshouban/src/views/comprehensive/OrderRhq/index.vue +++ b/yanshouban/src/views/comprehensive/OrderRhq/index.vue @@ -197,6 +197,12 @@ export default { this.tableData = res.data.list this.total = res.data.total this.tableLoading = false + this.tableData.map(res=>{ + res.customerName = this.$decrypt(res.customerName) + res.receiveName = this.$decrypt(res.receiveName) + res.receivePhone = this.$decrypt(res.receivePhone) + res.receiveAdress = this.$decrypt(res.receiveAdress) + }) }, // 导出订单 async orderDataExport() { diff --git a/yanshouban/src/views/comprehensive/dAddress/index.vue b/yanshouban/src/views/comprehensive/dAddress/index.vue index 6c162bf..c8803ee 100644 --- a/yanshouban/src/views/comprehensive/dAddress/index.vue +++ b/yanshouban/src/views/comprehensive/dAddress/index.vue @@ -120,6 +120,12 @@ const res = await orderGetAll(this.formInline) const Orderlist = await deliveryAddressStatistics(res.data.list) this.tableData = Orderlist.data + this.tableData.map(res=>{ + res.customerName = this.$decrypt(res.customerName) + res.receiveName = this.$decrypt(res.receiveName) + res.receivePhone = this.$decrypt(res.receivePhone) + res.receiveAdress = this.$decrypt(res.receiveAdress) + }) }, async search(){ this.formInline.dates = this.formParams.dates @@ -127,6 +133,12 @@ const res = await orderGetAll(this.formInline) const Orderlist = await deliveryAddressStatistics(res.data.list) this.tableData = Orderlist.data + this.tableData.map(res=>{ + res.customerName = this.$decrypt(res.customerName) + res.receiveName = this.$decrypt(res.receiveName) + res.receivePhone = this.$decrypt(res.receivePhone) + res.receiveAdress = this.$decrypt(res.receiveAdress) + }) }, clear(){ this.formInline.dates = [] diff --git a/yanshouban/src/views/comprehensive/psRanking/index.vue b/yanshouban/src/views/comprehensive/psRanking/index.vue index be9f4c5..c69a4f0 100644 --- a/yanshouban/src/views/comprehensive/psRanking/index.vue +++ b/yanshouban/src/views/comprehensive/psRanking/index.vue @@ -127,14 +127,14 @@ async getAll(){ const res = await orderGetAll(this.formInline) const Orderlist = await salesRanking(res.data.list) this.tableData = Orderlist.data -console.log(Orderlist.data) + }, async search(){ this.formInline.dates = this.formParams.dates const res = await orderGetAll(this.formInline) const Orderlist = await salesRanking(res.data.list) this.tableData = Orderlist.data - console.log(Orderlist.data) + }, clear(){ this.formParams.dates =[] diff --git a/yanshouban/src/views/couponmanagement/coupon.vue b/yanshouban/src/views/couponmanagement/coupon.vue index 2d8e7f8..3dad718 100644 --- a/yanshouban/src/views/couponmanagement/coupon.vue +++ b/yanshouban/src/views/couponmanagement/coupon.vue @@ -6,7 +6,7 @@
所需金额:{{ changecouponfrom() }} 元
- + @@ -33,7 +33,7 @@ 全部 - 选择类别 + 选择类别 @@ -50,15 +50,15 @@ 全平台 - 部分商家 + 部分商家 - @@ -102,7 +102,7 @@ - + diff --git a/yanshouban/src/views/shopRental/rentalMan/index.vue b/yanshouban/src/views/shopRental/rentalMan/index.vue index d93cc5a..7c7f39f 100644 --- a/yanshouban/src/views/shopRental/rentalMan/index.vue +++ b/yanshouban/src/views/shopRental/rentalMan/index.vue @@ -12,17 +12,14 @@ - - - - - - + + + - @@ -36,60 +33,59 @@ - 批量导出 - 导出 + style="background-color: #3F9B6A;color: #fff;padding:8px 15px;" @click="daochu">导出 - --> + - - + + + + - + - - - - - + + - - - - - @@ -111,346 +107,765 @@ + +
+
出租单
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + +
+
+ 租赁信息 +
+
+ + + + {{xiangData.tenant}} + + + + {{xiangData.intendedLeaseTerm}} + + + + {{xiangData.intentionalRent}} + + + + {{xiangData.leasingEntity}} + + + + {{xiangData.operator}} + + + + {{xiangData.state}} + + +
+
+
+
+ 合同信息 +
+
+ + + + {{heData.contractNumber}} + + + + {{heData.sectionNumber}} + + + + {{heData.contractName}} + + + + + {{heData.contractAmount}} + + + + + {{heData.earnestMoney}} + + + + + {{heData.contractSigningDate}} + + + + + {{heData.contractTerminationDate}} + + + + + {{heData.leaseStartDate}} + + + + + {{heData.lessorName}} + + + + + {{heData.telephone}} + + + + + {{heData.bankAccount}} + + + + + {{heData.tenantName}} + + + + + {{heData.tenantTelephone}} + + + + + {{heData.tenantBankAccount}} + + + + + {{heData.shopNumber}} + + + + + {{heData.shopName}} + + + + + {{heData.shopAddress}} + + + + + {{heData.shopArea}} + + + + + {{heData.storeFormats}} + + + + + {{heData.businessProjects}} + + + + + {{heData.appendicesContract}} + + + +
+
+
+
+
+ 返回 + + +
+
+
+
+ + +
租赁信息
- + - {{formInline.tenant}} - + {{xiangData.tenant}} + - {{formInline.intendedLeaseTerm}} - + {{xiangData.intendedLeaseTerm}} + - {{formInline.intentionalRent}} - + {{xiangData.intentionalRent}} + - {{formInline.leasingEntity}} - + {{xiangData.leasingEntity}} + - {{formInline.operator}} - + {{xiangData.operator}} + - {{formInline.state}} - + {{xiangData.state}} +
- + - {{formInline.leaseType}} - + {{xiangData.leaseType}} + - {{formInline.leaseCode}} - + {{xiangData.leaseCode}} + - {{formInline.leaseName}} - + {{xiangData.leaseName}} + - {{formInline.administrativeRegion}} - + {{xiangData.administrativeRegion}} + - {{formInline.leaseAddress}} - + {{xiangData.leaseAddress}} + - {{formInline.owner}} - + {{xiangData.owner}} + - {{formInline.commander}} - + {{xiangData.commander}} + - {{formInline.telephone}} - + {{xiangData.telephone}} + - {{formInline.scope}} - + {{xiangData.scope}} + - {{formInline.area}} - + {{xiangData.area}} + - {{formInline.completionTime}} - + {{xiangData.completionTime}} + - {{formInline.houseType}} - + {{xiangData.houseType}} + - {{formInline.mainFacilities}} - + {{xiangData.mainFacilities}} + - {{formInline.planeFigure}} - + {{xiangData.planeFigure}} + - {{formInline.feeStandards}} - + {{xiangData.feeStandards}} + - {{formInline.label}} - + {{xiangData.label}} + - {{formInline.promotionVideo}} - + {{xiangData.promotionVideo}} + - {{formInline.promotionImage}} - + {{xiangData.promotionImage}} + - {{formInline.notes}} - + {{xiangData.notes}} +
合同信息
- - - - {{formInline.contractNumber}} - - - - - {{formInline.sectionNumber}} - - - - - 232132 - - - - - 232132 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 1 - - - - - 点击上传 - - - + + + +
{{heData.contractNumber}}
+ +
+ + +
{{heData.sectionNumber}}
+ + +
+ + +
{{heData.contractName}}
+ +
+ + +
{{heData.contractAmount}}
+ +
+ + +
{{heData.contractAmount}}
+ + + +
+ + +
{{heData.contractSigningDate}}
+ +
+ + +
{{heData.contractTerminationDate}}
+ +
+ + +
{{heData.leaseStartDate}}
+ +
+ + +
{{heData.lessorName}}
+ +
+ + +
{{heData.telephone}}
+ +
+ + +
{{heData.bankAccount}}
+ +
+ + +
{{heData.tenantName}}
+ +
+ + +
{{heData.tenantTelephone}}
+ +
+ + +
{{heData.tenantBankAccount}}
+ +
+ + +
{{heData.shopNumber}}
+ +
+ + +
{{heData.shopName}}
+ +
+ + +
{{heData.shopAddress}}
+ +
+ + +
{{heData.shopArea}}
+ +
+ + +
{{heData.storeFormats}}
+ +
+ + +
{{heData.businessProjects}}
+ +
+ + + + +
@@ -470,50 +885,38 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + + + + + + - - + + + + - - + + + + + - - + + + + - + - + @@ -521,7 +924,7 @@
返回 - 保存 + 预览
@@ -530,64 +933,33 @@
入驻单
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - + +
- - + +
- - + +
- - -
-
- - -
-
- - -
-
- - + +
+
- - + +
-
+
-
+
@@ -600,403 +972,7 @@
- - -
-
出租单
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
- 资源类型 -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - -
-
-
-
-
- 租赁信息 -
-
- - - - qweqw - - - - - qweqw - - - - - qweqw - - - - - qweqw - - - - - qweqw - - - - - qweqw - - - -
-
-
-
- 合同信息 -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- 返回 - - -
-
-
-
- - -
@@ -1010,7 +986,8 @@ import { rentalGetAll, rentalDel, - rentalAdd + rentalAdd, + excelRentOutQueryByPage } from '../../../api/rentalMan.js' import { businessListGetAll, @@ -1062,23 +1039,29 @@ import { appendicesContract:'', }, tableData: [], + leaseStartDate:[], formSel: { - shopName:'', - search:'', - createUser:'', - page: '1', // 当前页 - pageSize: '10' // 每页记录数 + leaseName:'', + cereContractInformation:{ + tenantName:'', + shopName:'', + leaseStartDate:'', + }, + pageNumber: 1, + pageSize: 10, }, pageindex: { pageNumber: 1, pageSize: 10, }, zhong:{ - Num:'', - Name:'', - Time:'', - Data:'', - textarea:'' + intentionalRent:'', + belongingDepartment:'', + name:'', + zhifu:'', + zhifushuo:'', + gaizao:'', + noto:'', }, detaiList:{}, bianZt:true,//编辑切换 @@ -1086,6 +1069,21 @@ import { xiangTabs:'first', ruleForm:{}, edit:true, + businessStartTime:[], + idCardValidStart:[], + lvdaoList:[], + biangongyuanList:[], + xiangData:{}, + heData:{}, + contentStyle:{ + width:'20%', + height:'42px', + }, + labelStyle:{ + width:'150px', + height:'42px', + color:'#000', + }, } }, created() { @@ -1097,20 +1095,22 @@ import { methods: { chenge(val){ this.formSel={ - shopName:'', - search:'', - createUser:'', - page: '1', // 当前页 - pageSize: '10' // 每页记录数 + leaseName:'', + cereContractInformation:{ + tenantName:'', + shopName:'', + leaseStartDate:'', + }, + pageNumber: 1, + pageSize: 10, } this.leixing = !this.leixing }, async getAll(val) { - // const res = await rentalGetAll(this.pageindex) - // console.log(res.data.content) - // this.tableData = res.data.content - // this.total = res.data.content.length + const res = await rentalGetAll(this.pageindex) + this.total = res.data.numberOfElements + this.tableData = res.data.content }, // 新增确定按钮 @@ -1135,7 +1135,9 @@ import { }, //详情 - async details(val,item){ + details(val,item){ + this.xiangData = item + this.heData = item.cereContractInformation if(val == 1){ this.bianZt = false }else{ @@ -1149,6 +1151,13 @@ import { this.index = val this.detbox = false this.ggXin = true + this.zhong.lessorName = item.cereContractInformation.lessorName + this.zhong.tenantName = item.cereContractInformation.tenantName + this.zhong.leaseAddress = item.leaseAddress + this.zhong.leaseName = item.leaseName + this.zhong.completionTime = item.completionTime + this.zhong.intendedLeaseTerm = item.intendedLeaseTerm + this.zhong.intentionalRent = item.intentionalRent }, handleSizeChange(val) { this.pageSize = val @@ -1176,20 +1185,27 @@ import { }, // 查询按钮 async onSubmit() { - const res = await businessListGetAll(this.formSel) - this.total = res.data.total - this.tableData = res.data.list + if(this.leaseStartDate.length !=0){ + this.formSel.cereContractInformation.leaseStartDate = this.leaseStartDate.join(',') + } + const res = await rentalGetAll(this.formSel) + this.total = res.data.numberOfElements + this.tableData = res.data.content }, //重置按钮 resetting(){ this.formSel={ - shopName:'', - search:'', - createUser:'', - page: '1', // 当前页 - pageSize: '10' // 每页记录数 + leaseName:'', + cereContractInformation:{ + tenantName:'', + shopName:'', + leaseStartDate:'', + }, + pageNumber: 1, + pageSize: 10, }, - this.tableData = [] + this.leaseStartDate = [] + this.getAll() }, // 下载 async downloadPdf() { @@ -1215,6 +1231,8 @@ import { }, // 出租单查看 outlook(item){ + this.xiangData = item + this.heData = item.cereContractInformation this.outdan = true }, delList(){ @@ -1241,6 +1259,33 @@ import { }) }, + async daochu(){ + let res = await excelRentOutQueryByPage(this.pageindex) + if(!res){ + return + } + const blob = new Blob([res], { type: 'application/vnd.ms-excel' }) + const fileName = '出租管理列表.xls' + if ('download' in document.createElement('a')) { + // 非IE下载 + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'none' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) // 释放URL 对象 + document.body.removeChild(elink) + } else { + // IE10+下载 + navigator.msSaveBlob(blob, fileName) + } + this.$message({ + message: '导出成功', + type: 'success' + }) + + }, } } diff --git a/yanshouban/src/views/shopRental/warning/index.vue b/yanshouban/src/views/shopRental/warning/index.vue index 1ffbc1f..1168a1b 100644 --- a/yanshouban/src/views/shopRental/warning/index.vue +++ b/yanshouban/src/views/shopRental/warning/index.vue @@ -10,10 +10,10 @@
- + - + @@ -767,8 +767,11 @@ tableData4: [], tableData5: [], formSel: { - contractName:'', - tenantName:'', + cereContractInformation:{ + contractName:'', + tenantName:'', + }, + telephone:'', pageNumber: 1, pageSize: 10, @@ -805,8 +808,11 @@ methods: { chenge(val){ this.formSel={ - contractName:'', - tenantName:'', + cereContractInformation:{ + contractName:'', + tenantName:'', + }, + telephone:'', pageNumber: 1, pageSize: 10, @@ -901,13 +907,17 @@ //重置按钮 resetting(){ this.formSel={ - contractName:'', - tenantName:'', + cereContractInformation:{ + contractName:'', + tenantName:'', + }, + telephone:'', pageNumber: 1, pageSize: 10, } - } + this.getAll() + }, } }