优化
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">
|
<div class="team-filter commonFont">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="考评组筛选"
|
title="考评组筛选"
|
||||||
@ -25,10 +24,13 @@
|
|||||||
ref="refChooseTable"
|
ref="refChooseTable"
|
||||||
max-height="394"
|
max-height="394"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
:row-key="handleGetRowKeys"
|
||||||
|
v-if="tableList.length"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="40"
|
width="40"
|
||||||
|
:reserve-selection="true"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="name"
|
prop="name"
|
||||||
@ -66,13 +68,11 @@
|
|||||||
:data="seleactedList"
|
:data="seleactedList"
|
||||||
:show-header="false"
|
:show-header="false"
|
||||||
max-height="394"
|
max-height="394"
|
||||||
:row-key="handleGetRowKeys"
|
|
||||||
v-if="seleactedList.length>0"
|
v-if="seleactedList.length>0"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
type="selection"
|
type="selection"
|
||||||
width="40"
|
width="40"
|
||||||
:reserve-selection="true"
|
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<i
|
<i
|
||||||
@ -186,6 +186,14 @@ export default {
|
|||||||
},
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
this.handleClear()
|
this.handleClear()
|
||||||
|
this.tableList = []
|
||||||
|
this.seleactedList = []
|
||||||
|
this.pageInfo = {
|
||||||
|
currPage: 1,
|
||||||
|
pageSize: 1,
|
||||||
|
totalCount: 1,
|
||||||
|
totalPage: 1
|
||||||
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
},
|
},
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
@ -205,12 +213,13 @@ export default {
|
|||||||
},
|
},
|
||||||
handleCurrentChange (val) {
|
handleCurrentChange (val) {
|
||||||
this.pageInfo.currPage = val
|
this.pageInfo.currPage = val
|
||||||
this.filtersDic['currPage'] = this.pageInfo.currPage
|
|
||||||
this.handleDataList()
|
this.handleDataList()
|
||||||
},
|
},
|
||||||
handleClear () {
|
handleClear () {
|
||||||
this.seleactedList = []
|
if (this.seleactedList.length) {
|
||||||
this.$refs.refChooseTable.clearSelection()
|
this.$refs.refChooseTable.clearSelection()
|
||||||
|
this.seleactedList = []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleDelete (item, index) {
|
handleDelete (item, index) {
|
||||||
this.seleactedList.splice(index, 1)
|
this.seleactedList.splice(index, 1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user