diff --git a/src/components/EvaluationTeamFilter/index.vue b/src/components/EvaluationTeamFilter/index.vue
index 94953dc..e1b2159 100644
--- a/src/components/EvaluationTeamFilter/index.vue
+++ b/src/components/EvaluationTeamFilter/index.vue
@@ -24,11 +24,13 @@
ref="refChooseTable"
max-height="394"
@selection-change="handleSelectionChange"
+ :row-key="handleGetRowKeys"
v-if="tableList.length"
>
{
+ let paraDic = Object.assign(this.pageInfo, this.filtersDic)
+ apiGetEvaluationTeamList(paraDic).then(res => {
this.pageInfo.currPage = res.data.currPage
this.pageInfo.totalCount = res.data.totalCount
this.pageInfo.totalPage = res.data.totalPage
this.tableList = res.data.list
})
- // for (let index = 0; index < 100; index++) {
- // let dic = { id: index.toString(), name: '12月绩效考核' + index.toString(), count: '12' }
- // this.tableList.push(dic)
- // }
},
// handleGetRowStyle () {
// return { 'height': '44px' }
@@ -190,22 +181,32 @@ export default {
},
handleCancel () {
this.handleClear()
+ this.tableList = []
+ this.seleactedList = []
+ this.pageInfo = {
+ currPage: 1,
+ pageSize: 1,
+ totalCount: 1,
+ totalPage: 1
+ }
this.$emit('close')
},
handleSubmit () {
this.$emit('submitClick', this.seleactedList)
+ this.handleCancel()
},
handleSelectionChange (val) {
this.seleactedList = val
},
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)