优化
This commit is contained in:
commit
aaa3b3b04f
5
src/components/EvaluationTeamFilter/desc.md
Normal file
5
src/components/EvaluationTeamFilter/desc.md
Normal 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
|
||||
@ -1,5 +1,4 @@
|
||||
// 考评组筛选
|
||||
<template>
|
||||
<template>
|
||||
<div class="team-filter commonFont">
|
||||
<el-dialog
|
||||
title="考评组筛选"
|
||||
@ -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 = []
|
||||
this.$refs.refChooseTable.clearSelection()
|
||||
if (this.seleactedList.length) {
|
||||
this.$refs.refChooseTable.clearSelection()
|
||||
this.seleactedList = []
|
||||
}
|
||||
},
|
||||
handleDelete (item, index) {
|
||||
this.seleactedList.splice(index, 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user