linwe
2024-12-20 9bfb8f9b0ad23e71a02b7e45d90b4c1d5efd617e
src/views/comprehensiveSearch/components/enterpriseList.vue
@@ -1,6 +1,6 @@
<!--  -->
<template>
    <div class=''>
    <div class='' v-if="serachIndex == 1">
        <div class="enterpriseList">
            <!-- 企业列表 -->
@@ -11,11 +11,9 @@
                <el-table-column align="center" prop="name" label="企业名称">
                </el-table-column>
            </el-table>
            <el-pagination :page-size="20" :pager-count="11" layout="prev, pager, next" :total="100"> </el-pagination>
        </div>
        <el-pagination :page-size="20" :pager-count="11" layout="prev, pager, next" :total="1000"> </el-pagination>
    </div>
</template>
@@ -23,26 +21,15 @@
export default {
    //import引入的组件需要注入到对象中才能使用
    components: {},
    // 父组件给子组件传过来的参数
    props: {
    },
    data() {
        //这里存放数据
        return {
            tableData: [{
                date: '2016-05-02',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-04',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1517 弄'
            }, {
                date: '2016-05-01',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1519 弄'
            }, {
                date: '2016-05-03',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1516 弄'
            }],
            show: false,
            serachIndex: 1,
            tableData: [],
            currentRow: null
        };
    },
@@ -65,7 +52,9 @@
    },
    //生命周期 - 挂载完成(可以访问DOM元素)
    mounted() {
        this.$EventBus.$on("searchIndex", (params) => {
            this.serachIndex = params.serachIndex
        })
    },
    beforeCreate() { }, //生命周期 - 创建之前
    beforeMount() { }, //生命周期 - 挂载之前