|
|
|
@ -77,21 +77,30 @@ |
|
|
|
<div class="div_btn"> |
|
|
|
|
|
|
|
<el-button @click="handleExport" class="diy-button--white" size="small">导出</el-button> |
|
|
|
<el-button class="diy-button--white" size="small"> |
|
|
|
<el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" |
|
|
|
action="uploadUlr" :limit="1" :accept="'.xls,.xlsx'" :with-credentials="true" |
|
|
|
:show-file-list="false" :auto-upload="true" :on-progress="handleProgress" |
|
|
|
:on-success="handleExcelSuccess" :before-upload="beforeExcelUpload" |
|
|
|
:http-request="uploadHttpRequest"> |
|
|
|
上传导入 |
|
|
|
</el-upload> |
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px" |
|
|
|
<!-- <el-dropdown size="small" split-button type="primary" style="margin: 0 10px; height: 30px" |
|
|
|
@command="(command) => importTypeChange(command)"> |
|
|
|
导入 |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-menu slot="dropdown"> --> |
|
|
|
<!-- <el-dropdown-item command="0" @click.native="handleExportModule">下载模板</el-dropdown-item> --> |
|
|
|
<el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" |
|
|
|
<!-- <el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" |
|
|
|
action="uploadUlr" :limit="1" :accept="'.xls,.xlsx'" :with-credentials="true" |
|
|
|
:show-file-list="false" :auto-upload="true" :on-progress="handleProgress" |
|
|
|
:on-success="handleExcelSuccess" :before-upload="beforeExcelUpload" |
|
|
|
:http-request="uploadHttpRequest"> |
|
|
|
<el-dropdown-item command="1">上传导入</el-dropdown-item> |
|
|
|
</el-upload> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</el-dropdown-menu> --> |
|
|
|
<!-- </el-dropdown> --> |
|
|
|
</div> |
|
|
|
<el-table :data="tableData" border class="m-table-item" style="width: 100%" |
|
|
|
@selection-change="handleSelectionChange" :height="maxTableHeight"> |
|
|
|
|