|
|
@ -7,10 +7,12 @@ |
|
|
|
@search="handleSearch" /> |
|
|
|
<el-card class="resi-card-table"> |
|
|
|
<div class="resi-row-btn"> |
|
|
|
<el-button |
|
|
|
size="small" |
|
|
|
<el-button size="small" |
|
|
|
class="diy-button--add" |
|
|
|
@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" |
|
|
@ -22,25 +24,20 @@ |
|
|
|
:on-success="handleExcelSuccess" |
|
|
|
:before-upload="beforeExcelUpload" |
|
|
|
:http-request="uploadHttpRequest"> |
|
|
|
<el-button |
|
|
|
size="small" |
|
|
|
<el-button size="small" |
|
|
|
class="diy-button--delete" |
|
|
|
:loading="importLoading">{{importBtnTitle}}</el-button> |
|
|
|
</el-upload> |
|
|
|
<el-button |
|
|
|
size="small" |
|
|
|
|
|
|
|
<el-button size="small" |
|
|
|
class="diy-button--reset" |
|
|
|
:loading="exportBtn" |
|
|
|
@click="handleExport">{{exportBtnTitle}}</el-button> |
|
|
|
<!-- <el-button type="primary" size="small">下载人口模板</el-button> --> |
|
|
|
<el-button |
|
|
|
class="diy-button--export" |
|
|
|
size="small" |
|
|
|
@click="handleExportModule('room')">下载人口模板</el-button> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<el-table ref="ref_table" :data="tableData" |
|
|
|
<el-table ref="ref_table" |
|
|
|
:data="tableData" |
|
|
|
v-loading="tableLoading" |
|
|
|
border |
|
|
|
style="width: 100%" |
|
|
@ -67,7 +64,9 @@ |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
:width="item.itemType === 'radio' ? computedWidth(item.label) : 180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a v-if="item.columnName == 'NAME'" class="name-a" @click="handleLook(scope.row)"> |
|
|
|
<a v-if="item.columnName == 'NAME'" |
|
|
|
class="name-a" |
|
|
|
@click="handleLook(scope.row)"> |
|
|
|
{{ handleFilterSpan(scope.row, item) }} |
|
|
|
</a> |
|
|
|
<span v-else>{{ handleFilterSpan(scope.row, item) }}</span> |
|
|
@ -85,13 +84,11 @@ |
|
|
|
<el-button @click="handleTransfer(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--detail" |
|
|
|
>调动</el-button> |
|
|
|
class="div-table-button--detail">调动</el-button> |
|
|
|
<el-button @click="handleChangeRecord(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--detail" |
|
|
|
>变更记录</el-button> |
|
|
|
class="div-table-button--detail">变更记录</el-button> |
|
|
|
<template v-if="filterEdit(scope.row.ORG_ID)"> |
|
|
|
<el-button @click="handleEdit(scope.row)" |
|
|
|
type="text" |
|
|
@ -114,7 +111,8 @@ |
|
|
|
v-model="selAllFlag" |
|
|
|
:disabled="selAllFlagDisabled" |
|
|
|
@change="handleSelectAll">全选</el-checkbox> |
|
|
|
<el-button v-if="selection.length > 0" style="margin-left:15px" |
|
|
|
<el-button v-if="selection.length > 0" |
|
|
|
style="margin-left:15px" |
|
|
|
type="danger" |
|
|
|
size="small" |
|
|
|
@click="deleteBatch">删除</el-button> |
|
|
|