diff --git a/src/assets/scss/people-info.scss b/src/assets/scss/people-info.scss index fa0354ca..24428cdd 100644 --- a/src/assets/scss/people-info.scss +++ b/src/assets/scss/people-info.scss @@ -8,11 +8,20 @@ .wrap { position: relative; - margin: 120px auto; - padding: 20px; - width: 1000px; + margin: 5vh auto; + height: 90vh; + width: 1040px; background-color: #fff; + .wrap2 { + box-sizing: border-box; + padding: 20px; + height: 90vh; + width: 1040px; + overflow-y: auto; + overflow-x: hidden; + } + .title { padding: 10px; font-size: 22px; @@ -33,6 +42,7 @@ .btn-close { position: absolute; + z-index: 2; top: -30px; right: -30px; cursor: pointer; diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 63dce11e..b65d924a 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -48,6 +48,7 @@ @selection-change="selectionChange"> { console.log('res----dddd', res) // this.download(res.data, title + '.xls') diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue index a3a53089..425ff0ad 100644 --- a/src/views/modules/communityParty/elegant/index.vue +++ b/src/views/modules/communityParty/elegant/index.vue @@ -66,7 +66,6 @@ > {{importBtnTitle}} - {{ exportBtnTitle }} @@ -382,28 +381,68 @@ export default { this.uploading = true this.unloadPencent = Number(file.percentage.toFixed(0)) }, + download (data, fileName) { + console.log('data', data) + if (!data) { + return + } + + var csvData = new Blob([data]) + + if (window.navigator && window.navigator.msSaveOrOpenBlob) { + window.navigator.msSaveOrOpenBlob(csvData, fileName) + } + // for Non-IE (chrome, firefox etc.) + else { + var a = document.createElement('a') + document.body.appendChild(a) + a.style = 'display: none' + var url = window.URL.createObjectURL(csvData) + a.href = url + a.download = fileName + a.click() + a.remove() + window.URL.revokeObjectURL(url) + } + }, async handleExportModule () { let url = "/resi/partymember/icpartymemberstyle/import/template-download" let params = {} - await this.$http - .post(url, params) + // app.ajax.exportFilePost( + // url, + // params, + // (data, rspMsg) => { + + // this.download(data, 'a.xls') + // }, + // (rspMsg, data) => { + // this.$message.error(rspMsg); + // } + // ); + await this.$http({ + method: 'POST', + url, + responseType: 'blob', + data: params + }) .then(res => { - // this.download(res.data, title + '.xls') + console.log('res-------dd', res) if (res.headers["content-disposition"]) { let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1]) - console.log('filename', fileName) - let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) - var url = window.URL.createObjectURL(blob) - var aLink = document.createElement('a') - aLink.style.display = 'none' - aLink.href = url - aLink.setAttribute('download', fileName) - document.body.appendChild(aLink) - aLink.click() - document.body.removeChild(aLink) //下载完成移除元素 - window.URL.revokeObjectURL(url) //释放掉blob对象 + this.download(res.data, fileName) + // console.log('filename', fileName) + // let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' }) + // var url = window.URL.createObjectURL(blob) + // var aLink = document.createElement('a') + // aLink.style.display = 'none' + // aLink.href = url + // aLink.setAttribute('download', fileName) + // document.body.appendChild(aLink) + // aLink.click() + // document.body.removeChild(aLink) //下载完成移除元素 + // window.URL.revokeObjectURL(url) //释放掉blob对象 } else this.$message.error('下载失败') }) .catch(err => { diff --git a/src/views/modules/communityService/dqfwzx/index.vue b/src/views/modules/communityService/dqfwzx/index.vue index b0de99cb..dd5e2388 100644 --- a/src/views/modules/communityService/dqfwzx/index.vue +++ b/src/views/modules/communityService/dqfwzx/index.vue @@ -17,11 +17,13 @@ :key="'ct' + index" v-for="(item, index) in tableData" > -
- 修改 - 删除 +
+ 修改
-
{{ item.centerName }}
社区地址:
@@ -79,6 +81,7 @@ @click="handleOrder(scope.$index)" type="text" size="small" + style="color: #1c6afd" >预约 @@ -86,7 +89,7 @@ @click="handleOrderList(scope.$index)" type="text" size="small" - style="margin-right: 10px; color: #00a7a9" + style="margin-right: 10px; color: #1c6afd" >预约记录 @@ -155,7 +158,7 @@ - + diff --git a/src/views/modules/shequ/cpts/xuqiu-info.vue b/src/views/modules/shequ/cpts/xuqiu-info.vue index 2e75d5ae..2c378f73 100644 --- a/src/views/modules/shequ/cpts/xuqiu-info.vue +++ b/src/views/modules/shequ/cpts/xuqiu-info.vue @@ -219,6 +219,8 @@ export default { } .form { margin-top: 30px; + height: 60vh; + overflow-y: auto; }