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.
59 lines
1.2 KiB
59 lines
1.2 KiB
<template>
|
|
<div class="d-flex flex-wrap pb-3">
|
|
<!-- 团队名称 -->
|
|
<div>
|
|
<a-input
|
|
@change="handleChangeName"
|
|
placeholder="团队名称"
|
|
style="width: 150px"
|
|
v-model="teamName"
|
|
/>
|
|
<a-button @click="handleTableChange" class="mx-2" type="primary">搜索</a-button>
|
|
</div>
|
|
|
|
<div class="flex-1"></div>
|
|
|
|
<a-button @click="showModal" class="editable-add-btn" type="primary">增加</a-button>
|
|
|
|
<!-- 添加 -->
|
|
<r-d-member-add :visible="visible" @closeModal="closeModal" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import RDMemberAdd from 'components/RDMember/RDMemberAdd.vue';
|
|
|
|
export default {
|
|
name: 'RDMemberSearch',
|
|
components: {
|
|
RDMemberAdd,
|
|
},
|
|
data() {
|
|
return {
|
|
visible: false,
|
|
teamName: '',
|
|
};
|
|
},
|
|
methods: {
|
|
showModal() {
|
|
this.visible = true;
|
|
},
|
|
|
|
closeModal() {
|
|
this.visible = false;
|
|
},
|
|
|
|
handleChangeName(value) {
|
|
console.log('value: ', value);
|
|
this.teamName = value;
|
|
},
|
|
|
|
handleTableChange() {
|
|
console.log('搜索');
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
<style scoped lang="stylus"></style>
|
|
|