This commit is contained in:
熊成强 2020-10-29 16:29:53 +08:00
commit aaa3b3b04f
2 changed files with 21 additions and 7 deletions

View File

@ -0,0 +1,5 @@
# <dialog-team-filter :dialogVisible="showTem" :filtersDic="filtersDic" @close="showTem=false" @submitClick="handlSubmitClick" ></dialog-team-filter>
# dialogVisible Boolean false 隐藏 true 显示
# filtersDic Object 筛选参数
# @close function 关闭弹窗
# @submitClick function 提交结果 传参 选中list

View File

@ -1,4 +1,3 @@
//
<template>
<div class="team-filter commonFont">
<el-dialog
@ -25,10 +24,13 @@
ref="refChooseTable"
max-height="394"
@selection-change="handleSelectionChange"
:row-key="handleGetRowKeys"
v-if="tableList.length"
>
<el-table-column
type="selection"
width="40"
:reserve-selection="true"
></el-table-column>
<el-table-column
prop="name"
@ -66,13 +68,11 @@
:data="seleactedList"
:show-header="false"
max-height="394"
:row-key="handleGetRowKeys"
v-if="seleactedList.length>0"
>
<el-table-column
type="selection"
width="40"
:reserve-selection="true"
>
<template slot-scope="scope">
<i
@ -186,6 +186,14 @@ export default {
},
handleCancel () {
this.handleClear()
this.tableList = []
this.seleactedList = []
this.pageInfo = {
currPage: 1,
pageSize: 1,
totalCount: 1,
totalPage: 1
}
this.$emit('close')
},
handleSubmit () {
@ -205,12 +213,13 @@ export default {
},
handleCurrentChange (val) {
this.pageInfo.currPage = val
this.filtersDic['currPage'] = this.pageInfo.currPage
this.handleDataList()
},
handleClear () {
this.seleactedList = []
if (this.seleactedList.length) {
this.$refs.refChooseTable.clearSelection()
this.seleactedList = []
}
},
handleDelete (item, index) {
this.seleactedList.splice(index, 1)