Commit 2d28ea40 by xuyl

更新

1 parent 38e62d4c
...@@ -152,6 +152,7 @@ export default { ...@@ -152,6 +152,7 @@ export default {
this.defalutStartTime, this.defalutStartTime,
this.defalutEndTime, this.defalutEndTime,
]) ])
this.$emit('sendResetTable','reset')
this.$nextTick(() => { this.$nextTick(() => {
this.handleSearch() this.handleSearch()
}) })
......
<template> <template>
<div style='margin: 16px'> <div style='margin: 16px'>
<ProfitSearch ref='profitSearch' @sendSearchForm='getSearchForm' /> <ProfitSearch ref='profitSearch' @sendSearchForm='getSearchForm' @sendResetTable='reset' />
<el-button type='primary' size='small' @click='handleOutput' <el-button type='primary' size='small' @click='handleOutput'
>导出 >导出
</el-button </el-button
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
employeeCount: '', employeeCount: '',
totalPoints: '' totalPoints: ''
}, },
verificationWriteOff:true, verificationWriteOff: true,
profitSearchForm: {}, profitSearchForm: {},
dialogVisible: false, dialogVisible: false,
totalScore: '', totalScore: '',
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
this.verificationWriteOff = true this.verificationWriteOff = true
} }
}) })
if (!this.verificationWriteOff){ if (!this.verificationWriteOff) {
return this.$message({ return this.$message({
type: 'error', type: 'error',
message: '所选中的积分记录包含「是否积分提现=是」或「核销状态=已核销」,请剔除后再进行操作!' message: '所选中的积分记录包含「是否积分提现=是」或「核销状态=已核销」,请剔除后再进行操作!'
...@@ -260,6 +260,12 @@ export default { ...@@ -260,6 +260,12 @@ export default {
this.$refs.profitTable.refreshTable(false, true) this.$refs.profitTable.refreshTable(false, true)
}, 500) }, 500)
}, },
reset() {
if (this.choiceData){
this.$refs.profitTable.mutiSelectArr.list = []
this.$refs.profitTable.$children[0].clearSelection()
}
},
getTotalScore(val) { getTotalScore(val) {
let { totalScore } = val let { totalScore } = val
this.totalScore = totalScore this.totalScore = totalScore
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!