| | |
| | | <div class="addUser"> |
| | | <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"> |
| | | :before-close="handleClose2"> |
| | | <createUser :refresh="context==='' ? getUserList : search " @changMyDialog="changMyDialog" /> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="departDes" label="部门描述" min-width="10"> |
| | | </el-table-column> |
| | | <el-table-column prop="createTime" label="创建时间" min-width="10"> |
| | | </el-table-column> |
| | | <!-- <el-table-column prop="createTime" label="创建时间" min-width="10"> |
| | | </el-table-column> --> |
| | | <el-table-column prop="status" label="启用" min-width="5"> |
| | | <template slot-scope="scope"> |
| | | <el-switch class="switchStyle" v-model="scope.row.status" active-text="开" inactive-text="关" |
| | |
| | | this.dialogCreate = flag; |
| | | }, |
| | | handleClose(done) { |
| | | if (this.updateFlag) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | this.dialogUpdate = false; |
| | |
| | | done(); |
| | | }) |
| | | .catch(_ => { }); |
| | | } else { |
| | | done(); |
| | | } |
| | | }, |
| | | handleClose2(done) { |
| | | this.$confirm('确认关闭?') |
| | | .then(_ => { |
| | | done(); |
| | | }) |
| | | .catch(_ => { }); |
| | | } |
| | | }, |
| | | } |