“dzb”
2022-09-29 dc04c05b22a5323925218092a0687555a2a5c9c1
src/views/operate/disposal/casepool/pool/createUser/index.vue
@@ -1,26 +1,15 @@
<template>
    <div class="createUser">
        <div class="chooseArea" v-if="flag">
        <div class="chooseArea">
            <el-button type="primary" @click="toShow(0,'违规')">违规登记</el-button>
            <el-button type="primary" @click="toShow(1,'违建')">违建登记</el-button>
        </div>
        <div class="inputArea" v-else>
            <MyIll v-if="index===0" />
            <MyVio v-else />
        </div>
    </div>
</template>
<script>
import MyVio from './vio';
import MyIll from './ill';
export default {
    components: {
        MyIll, MyVio
    },
    data() {
        return {
            flag: true,
            index: 0,//0:违规,1:违建
        }
    },
    created() {
@@ -30,13 +19,12 @@
        toShow(idx, lab) {
            this.$confirm('您确定要去上报' + lab + '事件')
                .then(_ => {
                    console.log(1);
                    this.index = idx;
                    this.flag = false;
                    this.$emit('getPageProp',{flag:false,type:idx});
                })
                .catch(_ => { console.log('err') });
        }
    },
    props:['getPageProp']
}
</script>
<style lang="scss" scoped>