提交代码

prv
姜玉琦 2024-03-20 21:21:16 +08:00
parent 5e7e2b8d4f
commit f1f3baf502
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ export default {
this.setTitle(); this.setTitle();
this.timerID = setInterval(this.updateTime, 1000); this.timerID = setInterval(this.updateTime, 1000);
this.updateTime(); this.updateTime();
let roleId = +this.$store.getters.roleId; let roleId = + this.$store.getters.roleId;
Cookies.remove("__ids__"); Cookies.remove("__ids__");
if ([5, 6, 7, 15, 16, 17, 99].includes(roleId)) { if ([5, 6, 7, 15, 16, 17, 99].includes(roleId)) {
this.isTypeBuser = true; this.isTypeBuser = true;
@ -192,7 +192,7 @@ export default {
this.isTypeBuser = false; this.isTypeBuser = false;
this.$api.dept.list().then(d => { this.$api.dept.list().then(d => {
this.$root.hasInitHeader = true; this.$root.hasInitHeader = true;
if (roleId < 3) { if (roleId < 4) {
this.depts = [{ text: '产发集团', id: 0 }, ...(d?.data || []).map(it => { this.depts = [{ text: '产发集团', id: 0 }, ...(d?.data || []).map(it => {
it.text = it.deptName; it.text = it.deptName;
it.id = it.deptId; it.id = it.deptId;