“dzb”
2022-10-19 e500f3ad66d88053118d76f4c838f6f176736615
src/views/operate/lawEnforcement/index.vue
@@ -1,8 +1,21 @@
<template>
    <div class="law-enforcement">
        <MyTable :tableData="list" :tableOption="tableOption" @openDialog="changeDialog">
        <!-- table表格展示 -->
        <MyTable
        :tableData="list"
        :tableOption="tableOption"
        :totalNum="totalNum"
        @getCurrentPage="getCurrentPage"
        @openDialog="changeDialog">
            <template #operation="{info}">
                <div class="btn">
                    <!-- 操作区域 -->
                    <!-- {{getData(info)}} -->
                    <span @click="dataView(info)">查看</span>
                </div>
            </template>
        </MyTable>
        <!-- 组件区 -->
        <!-- 弹窗 -->
        <div class="dialog">
            <el-dialog v-if="visible" :visible.async="visible" title="问题登记" width="60%" :before-close="handleClose">
                <MyView  :viewData=showData   />
@@ -74,8 +87,12 @@
                ]
            },
            visible:false,
            totalNum:'',
            showData:{},
        }
    },
    created(){
        this.totalNum = this.list.length;
    },
    methods:{
        // 关闭对话框
@@ -92,6 +109,14 @@
            console.log(index,mykey);
            this.showData = this.list[index];
            this.visible = true;
        },
        // 数据展示
        dataView(data) {
            console.log(data);
        },
        // 获取当前页数据
        getCurrentPage(current){
            console.log(current);
        }
    }
}