|
|
@ -34,7 +34,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
import { mapState, mapGetters, mapMutations } from 'vuex'; |
|
|
|
import { familyInfo } from '@/config/yyInfo'; |
|
|
|
|
|
|
|
export default { |
|
|
@ -45,7 +45,10 @@ export default { |
|
|
|
return { familyInfo }; |
|
|
|
}, |
|
|
|
|
|
|
|
computed: mapGetters('project', ['projectId']), |
|
|
|
computed: { |
|
|
|
...mapGetters('project', ['projectId']), |
|
|
|
...mapState('role', ['remindNum']), |
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
detail(val) { |
|
|
@ -62,6 +65,8 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapMutations('role', ['setRemindNum']), |
|
|
|
|
|
|
|
setDate(date) { |
|
|
|
if (!date || !date.familyId) return; |
|
|
|
const { familyInfo } = this; |
|
|
@ -87,6 +92,8 @@ export default { |
|
|
|
await this.$u.api.auditFamily(params); |
|
|
|
this.$emit('showToast', 'success', '审核成功'); |
|
|
|
this.$emit('queryFamilyList'); |
|
|
|
const num = this.remindNum; |
|
|
|
this.setRemindNum(num - 1); |
|
|
|
} catch (error) { |
|
|
|
console.error('error: ', error); |
|
|
|
this.$emit('showToast', 'error', '审核失败'); |
|
|
|