From 7d0f5e94efc4313422c8a21a4551b7796a1b1a62 Mon Sep 17 00:00:00 2001 From: phper08 <phper08@gmail.com> Date: 星期一, 03 五月 2021 13:18:33 +0800 Subject: [PATCH] update ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java. --- ruoyi-ui/src/views/system/role/index.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/ruoyi-ui/src/views/system/role/index.vue b/ruoyi-ui/src/views/system/role/index.vue index 6e96faa..a2ecf0b 100644 --- a/ruoyi-ui/src/views/system/role/index.vue +++ b/ruoyi-ui/src/views/system/role/index.vue @@ -213,7 +213,7 @@ <el-input v-model="form.roleKey" :disabled="true" /> </el-form-item> <el-form-item label="鏉冮檺鑼冨洿"> - <el-select v-model="form.dataScope"> + <el-select v-model="form.dataScope" @change="dataScopeSelectChange"> <el-option v-for="item in dataScopeOptions" :key="item.value" @@ -524,6 +524,12 @@ this.title = "淇敼瑙掕壊"; }); }, + /** 閫夋嫨瑙掕壊鏉冮檺鑼冨洿瑙﹀彂 */ + dataScopeSelectChange(value) { + if(value !== '2') { + this.$refs.dept.setCheckedKeys([]); + } + }, /** 鍒嗛厤鏁版嵁鏉冮檺鎿嶄綔 */ handleDataScope(row) { this.reset(); -- Gitblit v1.9.3