| | |
| | | <el-button class="addBtn" type="primary" @click="dialogCreate = true">新增部门</el-button> |
| | | <el-dialog :visible.sync="dialogCreate" title="新增部门信息" width="45%" v-if="dialogCreate" |
| | | :before-close="handleClose"> |
| | | <createUser :refresh="context==='' ? getUserList : search " /> |
| | | <createUser :refresh="context==='' ? getUserList : search " @changMyDialog="changMyDialog" /> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | |
| | | this.search(); |
| | | }, |
| | | // 关闭dialog |
| | | changMyDialog(val) { |
| | | this.dialogUpdate = val.dialogFlag; |
| | | changMyDialog({flag}) { |
| | | this.dialogUpdate = flag; |
| | | this.dialogCreate = flag; |
| | | }, |
| | | handleClose(done) { |
| | | this.$confirm('确认关闭?') |