维基管理后台
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.
 
 
 

51 lines
1020 B

<template>
<div class="d-flex flex-wrap pb-3">
<div class="d-flex flex-row">
<!-- 模块 -->
<a-input placeholder="标题code" v-model="titleCode" />
<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>
<!-- 添加 -->
<page-add :visible="visible" @closeModal="closeModal" />
</div>
</template>
<script>
import PageAdd from 'components/Page/PageAdd.vue';
export default {
name: 'PageSearch',
components: {
PageAdd,
},
data() {
return {
visible: false,
titleCode: '',
};
},
methods: {
showModal() {
this.visible = true;
},
closeModal() {
this.visible = false;
},
handleTableChange() {
const condition = { titleCode: this.titleCode };
this.$emit('getPageList', condition);
},
},
};
</script>
<style scoped lang="stylus"></style>