|
@@ -60,6 +60,32 @@
|
|
|
>重置
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template slot="right">
|
|
|
+ <PermissionButton
|
|
|
+ menu-code="_views_user_template"
|
|
|
+ class-name="filter-item"
|
|
|
+ round
|
|
|
+ icon="el-icon-download"
|
|
|
+ name="下载模板"
|
|
|
+ @click="handleDownload"
|
|
|
+ />
|
|
|
+ <PermissionButton
|
|
|
+ menu-code="_views_user_import"
|
|
|
+ class-name="filter-item"
|
|
|
+ round
|
|
|
+ type="text"
|
|
|
+ name=""
|
|
|
+ style="padding: 0; margin-bottom: 10px"
|
|
|
+ >
|
|
|
+ <excelImport
|
|
|
+ ref="uploadControl"
|
|
|
+ flag="user/importExcel"
|
|
|
+ :style-type="1"
|
|
|
+ title="导入"
|
|
|
+ @fath="getList"
|
|
|
+ />
|
|
|
+ </PermissionButton>
|
|
|
+ </template>
|
|
|
<parentTable
|
|
|
v-loading="listLoading"
|
|
|
:data="pageData.records"
|
|
@@ -172,6 +198,9 @@
|
|
|
that.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleDownload(url) {
|
|
|
+ this.$utils.exportUtil('/user/download/importTemplate', {}, '模板下载')
|
|
|
+ },
|
|
|
resetSearch() {
|
|
|
this.listQuery = {
|
|
|
current: 1,
|