| | |
| | | <template> |
| | | <el-dialog :visible.sync="show" :show-close="false" width="80%" top="51px"> |
| | | <el-dialog :visible.sync="show" :show-close="false" width="80%" top="51px" :close-on-click-modal="false"> |
| | | <div class="content"> |
| | | <el-form label-position="left" label-width="105px" :model="form" :rules="rules"> |
| | | <div class="title">个人信息</div> |
| | |
| | | props: ['show'], |
| | | data() { |
| | | return { |
| | | dialogVisible: this.show, |
| | | form: { |
| | | name: '', |
| | | region: '', |
| | |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.$store.state.userInfo, '111'); |
| | | }, |
| | | watch: { |
| | | show(val) { |
| | | this.dialogVisible = val |
| | | }, |
| | | dialogVisible(val) { |
| | | this.$emit('update:show', val); |
| | | }, |
| | | mounted() { |
| | | this.dialogVisible = this.show; |
| | | if (val) { |
| | | console.log(this.$store.state.userInfo, '111'); |
| | | } |
| | | } |
| | | } |
| | | }; |