You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
741 B

<template>
<div class="mt-3">
<!-- 多选 -->
<a-select mode="multiple" style="width: 100%" placeholder="请选择成员" @change="handleChange">
<a-select-option :value="member.memberId" v-for="member in members" :key="member.memberId"> {{ member.name }} </a-select-option>
</a-select>
</div>
</template>
<script>
import { mapState, mapMutations } from 'vuex';
export default {
data() {
return {};
},
computed: mapState('home', ['members']),
methods: {
...mapMutations('home', ['setMemberIdList']),
handleChange(value) {
this.setMemberIdList(value);
setTimeout(() => {
this.$emit('changeTime');
}, 1000);
},
},
};
</script>
<style lang="less" scoped>
</style>