From eb8655f4b9c0df4a6f14805a22131e79dac03654 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期二, 28 五月 2024 18:16:50 +0800 Subject: [PATCH] 修改了bug --- ruoyi-ui/src/views/marry/index.vue | 16 ++ ruoyi-ui/src/views/travel/index.vue | 19 ++- ruoyi-ui/src/views/bignote/index.vue | 10 + ruoyi-ui/src/views/contacts/index.vue | 15 ++ ruoyi-ui/src/views/economy/index.vue | 15 ++ ruoyi-ui/src/views/pet/index.vue | 17 ++- ruoyi-ui/src/views/secret/index.vue | 16 ++ ruoyi-ui/src/views/wish/index.vue | 15 ++ ruoyi-ui/src/views/collection/index.vue | 15 ++ ruoyi-ui/src/views/healthy/index.vue | 17 ++- ruoyi-ui/src/views/meeting/index.vue | 4 ruoyi-ui/src/views/doctor/index.vue | 15 ++ ruoyi-ui/src/views/honor/index.vue | 15 ++ ruoyi-ui/src/views/self/show.vue | 24 +++- ruoyi-ui/src/views/device/index.vue | 15 ++ ruoyi-ui/src/views/clean/index.vue | 17 ++- ruoyi-ui/src/views/selfeconomy/index.vue | 15 ++ ruoyi-ui/src/views/note/index.vue | 15 ++ 18 files changed, 206 insertions(+), 69 deletions(-) diff --git a/ruoyi-ui/src/views/bignote/index.vue b/ruoyi-ui/src/views/bignote/index.vue index 5522618..e6fb73a 100644 --- a/ruoyi-ui/src/views/bignote/index.vue +++ b/ruoyi-ui/src/views/bignote/index.vue @@ -80,7 +80,7 @@ <!--color: #000000;--> <!--line-height: 21px;--> <!--">瀹跺ぇ浜嬭</div>--> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -185,7 +185,7 @@ ></div> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -389,6 +389,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -504,7 +505,8 @@ getInfo(){ console.log('-----------------') getInfo().then(response=>{ - console.log(response) + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId }) }, @@ -552,7 +554,7 @@ _this.loading = false; }else{ _this.familyList = response.data.data; - + console.log(_this.familyList,'familyListfamilyListfamilyList') _this.total = response.data.total; _this.loading = false; } diff --git a/ruoyi-ui/src/views/clean/index.vue b/ruoyi-ui/src/views/clean/index.vue index b579620..211262e 100644 --- a/ruoyi-ui/src/views/clean/index.vue +++ b/ruoyi-ui/src/views/clean/index.vue @@ -65,7 +65,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -170,7 +170,7 @@ ></div> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -343,7 +343,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� @@ -354,6 +354,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -477,10 +478,16 @@ created() { this.getList(); this.getCateInfor() - + this.getInfo() }, methods: { - // + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, getSrc1(kind) { if (kind === 0) { return '淇濇磥' diff --git a/ruoyi-ui/src/views/collection/index.vue b/ruoyi-ui/src/views/collection/index.vue index acd4241..063c56e 100644 --- a/ruoyi-ui/src/views/collection/index.vue +++ b/ruoyi-ui/src/views/collection/index.vue @@ -126,7 +126,7 @@ <!-- line-height: 21px;--> <!-- ">鏀惰棌鍜岃崳瑾�</div>--> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -242,7 +242,7 @@ ></div> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -459,7 +459,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //瀵煎叆鎺ュ彛鍑芥暟 @@ -473,6 +473,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -607,8 +608,16 @@ created() { this.getList(); this.getTypeOptions(); + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { this.open = false; diff --git a/ruoyi-ui/src/views/contacts/index.vue b/ruoyi-ui/src/views/contacts/index.vue index a29c603..692fc15 100644 --- a/ruoyi-ui/src/views/contacts/index.vue +++ b/ruoyi-ui/src/views/contacts/index.vue @@ -75,7 +75,7 @@ <!-- line-height: 21px;--> <!-- ">閫氳褰�</div>--> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -212,7 +212,7 @@ </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -398,7 +398,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; import { Notification, MessageBox, Message, Loading } from 'element-ui' //瀵煎叆鎺ュ彛鍑芥暟 @@ -408,6 +408,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -568,12 +569,20 @@ }, created() { this.getList(); + this.getInfo() // this.getCateInfor() // for (let i = 0; i < this.contactList.length; i++) { // this.formDat[i] = this.contactList[i]; // } }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { this.open = false; diff --git a/ruoyi-ui/src/views/device/index.vue b/ruoyi-ui/src/views/device/index.vue index 29d6c69..c80b35d 100644 --- a/ruoyi-ui/src/views/device/index.vue +++ b/ruoyi-ui/src/views/device/index.vue @@ -75,7 +75,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -187,7 +187,7 @@ ></div> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -396,7 +396,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� @@ -406,6 +406,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, value:"", @@ -533,9 +534,17 @@ created() { this.getList(); // this.getCateInfor() + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, getSrc1(status) { if (status === 1) { diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index b5ec938..91f1e29 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -74,7 +74,7 @@ </el-form-item> </el-form> <div> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -191,7 +191,7 @@ </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -406,7 +406,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //瀵煎叆鎺ュ彛鍑芥暟 @@ -418,6 +418,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -551,8 +552,16 @@ created() { this.getList(); this.getTypeOptions(); + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { this.open = false; diff --git a/ruoyi-ui/src/views/economy/index.vue b/ruoyi-ui/src/views/economy/index.vue index d14e14a..dc6316d 100644 --- a/ruoyi-ui/src/views/economy/index.vue +++ b/ruoyi-ui/src/views/economy/index.vue @@ -48,7 +48,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -154,7 +154,7 @@ <el-table-column label="澶囨敞" prop="remark" sortable width="100" > <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -363,7 +363,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� @@ -374,6 +374,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, loading: true, @@ -510,9 +511,17 @@ created() { this.getList(); this.getCateInfor() + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, //鍩洪噾/鍙拌处鐨勯�夋嫨 getSrc1(type) { diff --git a/ruoyi-ui/src/views/healthy/index.vue b/ruoyi-ui/src/views/healthy/index.vue index 6dc0efc..63f02e2 100644 --- a/ruoyi-ui/src/views/healthy/index.vue +++ b/ruoyi-ui/src/views/healthy/index.vue @@ -52,7 +52,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -166,7 +166,7 @@ <el-table-column label="澶囨敞" prop="remark" sortable width="120" > <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -364,7 +364,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� @@ -376,6 +376,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, loading: true, @@ -490,11 +491,17 @@ }, created() { this.getList(); - + this.getInfo() }, methods: { - + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { diff --git a/ruoyi-ui/src/views/honor/index.vue b/ruoyi-ui/src/views/honor/index.vue index eb8d607..c502674 100644 --- a/ruoyi-ui/src/views/honor/index.vue +++ b/ruoyi-ui/src/views/honor/index.vue @@ -55,7 +55,7 @@ </el-form-item> </el-form> <div> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -168,7 +168,7 @@ <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> <!-- </el-table-column>--> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -385,7 +385,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //瀵煎叆鎺ュ彛鍑芥暟 @@ -397,6 +397,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -537,8 +538,16 @@ created() { this.getList(); this.getTypeOptions(); + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { this.open = false; diff --git a/ruoyi-ui/src/views/marry/index.vue b/ruoyi-ui/src/views/marry/index.vue index c669367..ae8973d 100644 --- a/ruoyi-ui/src/views/marry/index.vue +++ b/ruoyi-ui/src/views/marry/index.vue @@ -223,7 +223,7 @@ <el-container > - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col > <el-button plain @@ -358,7 +358,7 @@ </template> </el-table-column> <!-- 鎿嶄綔 --> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">淇敼</el-button> @@ -539,13 +539,14 @@ import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; import {listMarry,updateMarry,delMarryOld,addMarryOld,updateMarryOld} from "@/api/marry/index"; import { blobValidate } from '../../utils/ruoyi' +import {getInfo} from "@/api/login"; export default { name: "show", dicts: ['sys_normal_disable'], data() { return { - +userId: undefined, showOldSpouse:false,//鏄剧ず鍓嶄换淇℃伅 // 閬僵灞� disabled: false, @@ -729,9 +730,16 @@ }, created() { this.getList() + this.getInfo() }, methods: { - + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, handleMarryStatusChange() { // 鍒ゆ柇褰撳墠閫変腑鐨勫濮荤姸鎬佹槸鍚︿负鍐嶅 if (this.mrs === '3') { diff --git a/ruoyi-ui/src/views/meeting/index.vue b/ruoyi-ui/src/views/meeting/index.vue index 4687ece..859efee 100644 --- a/ruoyi-ui/src/views/meeting/index.vue +++ b/ruoyi-ui/src/views/meeting/index.vue @@ -1,5 +1,5 @@ <template> - <div class="app-container"> + <div class="app-container" style="opacity: 1;"> <el-backtop :bottom="150" :right="30"> <el-button type="primary" circle class="el-icon-top"></el-button> @@ -307,7 +307,7 @@ <el-option v-for="(item, index) in typeOptions2" :key="index" :label="item.label" :value="item.value" ></el-option> </el-select> --> - <el-input placeholder="寰呭鏍�" :disabled='true'></el-input> + <el-input placeholder="寰呭鎵�" :disabled='true'></el-input> </el-form-item> </el-form> diff --git a/ruoyi-ui/src/views/note/index.vue b/ruoyi-ui/src/views/note/index.vue index 7812537..6400c0a 100644 --- a/ruoyi-ui/src/views/note/index.vue +++ b/ruoyi-ui/src/views/note/index.vue @@ -85,7 +85,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -188,7 +188,7 @@ ></div> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -360,12 +360,14 @@ //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� import {listProperty,enload, getPropertyInfo, delProperty, getCategory, addProperty, uploadPic} from "@/api/note/index"; +import {getInfo} from "@/api/login"; import {Message} from "element-ui"; export default { name: "Role", dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -482,9 +484,16 @@ created() { this.getList(); this.getCateInfor() - + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { this.open = false; diff --git a/ruoyi-ui/src/views/pet/index.vue b/ruoyi-ui/src/views/pet/index.vue index 07c53ad..b904392 100644 --- a/ruoyi-ui/src/views/pet/index.vue +++ b/ruoyi-ui/src/views/pet/index.vue @@ -64,7 +64,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -115,7 +115,7 @@ </el-table-column> <el-table-column label="瀹犵墿id" prop="id" sortable width="100" /> <el-table-column label="涓讳汉濮撳悕" prop="masterName" sortable width="100" /> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -332,7 +332,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� @@ -342,6 +342,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -549,10 +550,16 @@ }, created() { this.getList(); - + this.getInfo() }, methods: { - + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // 鍙栨秷鎸夐挳 cancelData() { diff --git a/ruoyi-ui/src/views/secret/index.vue b/ruoyi-ui/src/views/secret/index.vue index f825da8..010bc0e 100644 --- a/ruoyi-ui/src/views/secret/index.vue +++ b/ruoyi-ui/src/views/secret/index.vue @@ -68,7 +68,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -178,7 +178,7 @@ </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -405,7 +405,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� @@ -416,6 +416,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, loading: true, @@ -567,10 +568,17 @@ created() { this.getList(); this.getCateInfo(); - + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, getCateInfo() { let _this = this diff --git a/ruoyi-ui/src/views/self/show.vue b/ruoyi-ui/src/views/self/show.vue index f831f86..f09916a 100644 --- a/ruoyi-ui/src/views/self/show.vue +++ b/ruoyi-ui/src/views/self/show.vue @@ -115,7 +115,7 @@ </el-form> <div> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -220,7 +220,7 @@ </el-table-column> <!-- </el-table-column>--> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -485,7 +485,7 @@ </template> </el-table-column> <!-- 鎿嶄綔--> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">淇敼</el-button> @@ -540,7 +540,7 @@ <template v-else><el-input v-model="scope.row.otherPolitical"></el-input></template> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">淇敼</el-button> @@ -605,7 +605,7 @@ ></el-date-picker></template> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">淇敼</el-button> @@ -658,7 +658,7 @@ <template v-else><el-input v-model="scope.row.cause"></el-input></template> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">淇敼</el-button> @@ -910,7 +910,7 @@ //瀵煎叆鎺ュ彛鍑芥暟 import {listNote,enload,getNote, addNote,updateNote, delNote,uploadPic} from "@/api/memo/index"; - +import {getInfo} from "@/api/login"; import { Notification, MessageBox, Message, Loading } from 'element-ui' //import { delFamilyevent, uploadPic } from '../../api/bignote' import { blobValidate } from '../../utils/ruoyi' @@ -923,6 +923,7 @@ data() { return { + userId: undefined, uploadFileList: [], uploadFileList1: [], // 閬僵灞� @@ -1295,9 +1296,16 @@ created() { this.getList(); this.getAutobiographyInfor() - + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, handleRemoveFile(file) { for(let i = 0; i < this.fileListOther.length; i++) { diff --git a/ruoyi-ui/src/views/selfeconomy/index.vue b/ruoyi-ui/src/views/selfeconomy/index.vue index 644eb7c..be926cd 100644 --- a/ruoyi-ui/src/views/selfeconomy/index.vue +++ b/ruoyi-ui/src/views/selfeconomy/index.vue @@ -74,7 +74,7 @@ <div> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -192,7 +192,7 @@ <el-table-column label="澶囨敞" prop="remark" sortable width="90" align="center"> <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -424,7 +424,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //瀵煎叆鎺ュ彛鍑芥暟 @@ -437,6 +437,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -595,11 +596,19 @@ created() { this.getList(); this.getCateInfor() + this.getInfo() // for (let i = 0; i < this.contactList.length; i++) { // this.formDat[i] = this.contactList[i]; // } }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, // getSrc1(status) { // if (status === 1) { diff --git a/ruoyi-ui/src/views/travel/index.vue b/ruoyi-ui/src/views/travel/index.vue index fd8087f..0f687f9 100644 --- a/ruoyi-ui/src/views/travel/index.vue +++ b/ruoyi-ui/src/views/travel/index.vue @@ -59,7 +59,7 @@ </el-form-item> </el-form> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -135,7 +135,7 @@ <!-- <el-table-column label="澶囨敞" prop="remark" sortable width="100" />--> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" @@ -184,7 +184,7 @@ - <el-table-column label="鎿嶄綔" align="center" sortable width="180" > + <el-table-column label="鎿嶄綔" align="center" sortable width="180" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button size="mini" @@ -236,7 +236,7 @@ <el-table-column label="闂ㄧエ" prop="entrance" sortable :show-overflow-tooltip="true" width="100px" /> <el-table-column label="璐墿" prop="shopping" sortable :show-overflow-tooltip="true" width="100px" /> - <el-table-column label="鎿嶄綔" align="center" sortable class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" sortable class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <el-button @@ -518,7 +518,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� @@ -541,6 +541,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, loading: true, @@ -783,8 +784,16 @@ }, created() { this.getList(); + this.getInfo() }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, //灞曞紑琛� expandRowClassName({ row, rowIndex }) { // 杩斿洖瀵瑰簲琛岀殑鏍峰紡閰嶇疆瀵硅薄 diff --git a/ruoyi-ui/src/views/wish/index.vue b/ruoyi-ui/src/views/wish/index.vue index 8d824f0..ea6bfbf 100644 --- a/ruoyi-ui/src/views/wish/index.vue +++ b/ruoyi-ui/src/views/wish/index.vue @@ -92,7 +92,7 @@ <div> - <el-row :gutter="10" class="mb8"> + <el-row :gutter="10" class="mb8" v-if="userId != 2"> <el-col :span="1.5"> <el-button type="primary" @@ -205,7 +205,7 @@ <el-table-column label="澶囨敞" prop="remark" sortable :show-overflow-tooltip="true" width="90" align="center"> <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> <div class="button-container"> <el-button @@ -422,7 +422,7 @@ <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; - +import {getInfo} from "@/api/login"; //瀵煎叆鎺ュ彛鍑芥暟 @@ -436,6 +436,7 @@ dicts: ['sys_normal_disable'], data() { return { + userId: undefined, // 閬僵灞� disabled: false, @@ -569,12 +570,20 @@ }, created() { this.getList(); + this.getInfo() // this.getCateInfor() // for (let i = 0; i < this.contactList.length; i++) { // this.formDat[i] = this.contactList[i]; // } }, methods: { + getInfo(){ + console.log('-----------------') + getInfo().then(response=>{ + console.log(response.user.roles[0].roleId,'roleID') + this.userId = response.user.roles[0].roleId + }) + }, getSrc1(isEffective) { if (isEffective === 1) { return '鏄�' -- Gitblit v1.9.1