From 797cc9c1a5c90f413d46c5cb88e1ee5e3a84b071 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期二, 04 十月 2022 11:51:05 +0800 Subject: [PATCH] 修改用户只能分配单一角色 --- src/views/systemSetting/baseSetting/user/components/header/index.vue | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/systemSetting/baseSetting/user/components/header/index.vue b/src/views/systemSetting/baseSetting/user/components/header/index.vue index 67dcb8d..eeb8562 100644 --- a/src/views/systemSetting/baseSetting/user/components/header/index.vue +++ b/src/views/systemSetting/baseSetting/user/components/header/index.vue @@ -3,7 +3,7 @@ <div class="headerContent"> <div class="search"> <span>绛涢�夋潯浠�:</span> - <el-input placeholder="璇疯緭鍏ュ唴瀹�" v-model="search"></el-input> + <el-input placeholder="璇疯緭鍏ユ墜鏈哄彿杩涜鏌ヨ" v-model="search"></el-input> <div class="findBtn"> <el-button type="primary" @click="setSearch">鏌ヨ</el-button> </div> @@ -11,7 +11,8 @@ <div class="addUser"> <!-- :before-close="handleClose" --> <el-button class="addBtn" type="primary" @click="dialogCreate = true">娣诲姞鐢ㄦ埛</el-button> - <el-dialog :visible.sync="dialogCreate" title="鏂板璐︽埛" width="45%" v-if="dialogCreate"> + <el-dialog :visible.sync="dialogCreate" title="鏂板璐︽埛" width="45%" v-if="dialogCreate" + :before-close="handleClose"> <createUser @sendDialog="sendDialog" /> </el-dialog> </div> @@ -37,7 +38,15 @@ sendDialog(flag) { console.log(flag); this.dialogCreate = flag.flag; - this.$emit('setDialog', { flag:true }) + this.$emit('setDialog', { flag: true }) + }, + handleClose(done) { + this.$confirm('纭鍏抽棴锛�') + .then(_ => { + this.dialogCreate = false; + done(); + }) + .catch(_ => { }); } }, props: ['setDialog', 'getSearch', 'flag'], @@ -95,7 +104,7 @@ padding: 12px 30px; } - + } } </style> \ No newline at end of file -- Gitblit v1.8.0