|
|
@ -110,26 +110,26 @@ |
|
|
|
|
|
|
|
<div class="resi-row-btn"> |
|
|
|
<el-button class="diy-button--add" size="small" @click="handleAdd">新增</el-button> |
|
|
|
<!-- <el-button |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule('room')">下载模板</el-button> |
|
|
|
<el-upload |
|
|
|
ref="upload" |
|
|
|
class="upload-demo" |
|
|
|
action="uploadUlr" |
|
|
|
:limit="1" |
|
|
|
:accept="'.xls,.xlsx'" |
|
|
|
:with-credentials="true" |
|
|
|
:show-file-list="false" |
|
|
|
:auto-upload="true" |
|
|
|
:on-success="handleExcelSuccess" |
|
|
|
:before-upload="beforeExcelUpload" |
|
|
|
:http-request="uploadHttpRequest" |
|
|
|
> |
|
|
|
<el-button size="small" class="diy-button--delete" :loading="importLoading">{{importBtnTitle}}</el-button> |
|
|
|
</el-upload> |
|
|
|
<el-button class="diy-button--reset" size="small" :loading="exportBtn" @click="handleExport">{{ exportBtnTitle }}</el-button> --> |
|
|
|
<!-- <el-button--> |
|
|
|
<!-- class="diy-button--export"--> |
|
|
|
<!-- size="small"--> |
|
|
|
<!-- @click="handleExportModule('room')">下载模板</el-button>--> |
|
|
|
<!-- <el-upload--> |
|
|
|
<!-- ref="upload"--> |
|
|
|
<!-- class="upload-demo"--> |
|
|
|
<!-- action="uploadUlr"--> |
|
|
|
<!-- :limit="1"--> |
|
|
|
<!-- :accept="'.xls,.xlsx'"--> |
|
|
|
<!-- :with-credentials="true"--> |
|
|
|
<!-- :show-file-list="false"--> |
|
|
|
<!-- :auto-upload="true"--> |
|
|
|
<!-- :on-success="handleExcelSuccess"--> |
|
|
|
<!-- :before-upload="beforeExcelUpload"--> |
|
|
|
<!-- :http-request="uploadHttpRequest"--> |
|
|
|
<!-- >--> |
|
|
|
<!-- <el-button size="small" class="diy-button--delete" :loading="importLoading">{{importBtnTitle}}</el-button>--> |
|
|
|
<!-- </el-upload>--> |
|
|
|
<el-button class="diy-button--reset" size="small" :loading="exportBtn" @click="handleExport">{{ exportBtnTitle }}</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
@ -540,7 +540,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
async handleExportModule () { |
|
|
|
let url = "/resi/partymember/icpartymemberstyle/import/template-download" |
|
|
|
let url = "/resi/partymember/icPartyMember/import/template-download" |
|
|
|
|
|
|
|
|
|
|
|
let params = {} |
|
|
@ -590,7 +590,7 @@ export default { |
|
|
|
const formData = new FormData() //FormData对象,添加参数只能通过append('key', value)的形式添加 |
|
|
|
formData.append('file', file.file) //添加文件对象 |
|
|
|
this.$http |
|
|
|
.post('/resi/partymember/icpartymemberstyle/import', formData).then(res => { |
|
|
|
.post('/resi/partymember/icPartyMember/import', formData).then(res => { |
|
|
|
console.log('res-up', res) |
|
|
|
if (res.data.code == 0 && res.data.msg == 'success') { |
|
|
|
// this.$message.success('导入成功') |
|
|
@ -614,11 +614,12 @@ export default { |
|
|
|
let params = { |
|
|
|
agencyId: this.$store.state.user.agencyId, |
|
|
|
pageSize: 9999, |
|
|
|
pageNo: this.currentPage |
|
|
|
pageNo: this.currentPage, |
|
|
|
...this.searchForm |
|
|
|
} |
|
|
|
// .post('epmetuser/icresiuser/exportExcel', params) |
|
|
|
await axios({ |
|
|
|
url: window.SITE_CONFIG['apiURL'] + '/resi/partymember/icpartymemberstyle/export', |
|
|
|
url: window.SITE_CONFIG['apiURL'] + '/resi/partymember/icPartyMember/export', |
|
|
|
// url: 'epmetuser/icresiuser/exportExcel', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|