| | |
| | | <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() { |
| | |
| | | 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> |