Browse Source

fix修改的内容

huoyi 1 week ago
parent
commit
14a26c2d23

+ 6 - 6
src/pages.json

@@ -415,12 +415,6 @@
415 415
     "paddingBottom": "0px",
416 416
     "marginBottom": "0px",
417 417
     "list": [
418
-      // {
419
-      //   "pagePath": "pages/home-new/index",
420
-      //   "iconPath": "static/images/tabbar/home.png",
421
-      //   "selectedIconPath": "static/images/tabbar/home_.png",
422
-      //   "text": "首页"
423
-      // },
424 418
       {
425 419
         "pagePath": "pages/myToDoList/index",
426 420
         "iconPath": "/static/images/tabbar/message.png",
@@ -434,6 +428,12 @@
434 428
         "text": "AI问答"
435 429
       },
436 430
       {
431
+        "pagePath": "pages/home-new/index",
432
+        "iconPath": "static/images/tabbar/home.png",
433
+        "selectedIconPath": "static/images/tabbar/home_.png",
434
+        "text": "首页"
435
+      },
436
+      {
437 437
         "pagePath": "pages/work/index",
438 438
         "iconPath": "static/images/tabbar/work.png",
439 439
         "selectedIconPath": "static/images/tabbar/work_.png",

+ 2 - 2
src/pages/login.vue

@@ -78,7 +78,7 @@ export default {
78 78
   onLoad() {
79 79
     //#ifdef H5
80 80
     if (getToken()) {
81
-      this.$tab.reLaunch('/pages/myToDoList/index')
81
+      this.$tab.reLaunch('/pages/home-new/index')
82 82
     }
83 83
     this.getStorage()
84 84
     //#endif
@@ -164,7 +164,7 @@ export default {
164 164
       this.$store.dispatch('GetInfo').then(res => {
165 165
         // 登录成功后调用showMessageTabRedDot更新消息tab红点状态
166 166
         showMessageTabRedDot()
167
-        this.$tab.reLaunch('/pages/myToDoList/index')
167
+        this.$tab.reLaunch('/pages/home-new/index')
168 168
       })
169 169
     }
170 170
   }

+ 5 - 5
src/pages/seizeStatistics/index.vue

@@ -5,7 +5,7 @@
5 5
       <view class="filter-section">
6 6
         <view class="filter-row">
7 7
           <uni-data-picker
8
-            v-if="curUserRoles.includes('test') || curUserRoles.includes('jingli') || curUserRoles.includes('xingzheng')"
8
+            v-if="curUserRoles.includes('test') || curUserRoles.includes('bumenjingli') || curUserRoles.includes('xingzheng')"
9 9
             class="filter-select" :localdata="departments" :placeholder="'请选择'" @change="handleinspectDeptIdChange"
10 10
             :clear-icon="false" />
11 11
           <text v-if="dateRange.length > 0" class="days-count">共 {{ totalDays }} 天</text>
@@ -233,7 +233,7 @@ export default {
233 233
           { label: '按个人', value: 3 }
234 234
         ];
235 235
       }
236
-      if (this.getType == "MANAGER" || this.curUserRoles.includes('kezhang')) {
236
+      if (this.getType == "MANAGER" || this.curUserRoles.includes('banzuzhang')) {
237 237
         return [
238 238
           { label: '按班组', value: 2 },
239 239
           { label: '按个人', value: 3 }
@@ -315,7 +315,7 @@ export default {
315 315
       if (this.getType == "MANAGER") {
316 316
         dept = { inspectDepartmentId: this.formData.inspectDeptId }
317 317
       }
318
-      if (this.curUserRoles.includes('kezhang')) {
318
+      if (this.curUserRoles.includes('banzuzhang')) {
319 319
         const deptId = this.currentUser.userInfo.deptId;
320 320
         dept = { inspectDepartmentId: deptId }
321 321
       }
@@ -355,7 +355,7 @@ export default {
355 355
     },
356 356
     // 初始化数据
357 357
     async initData() {
358
-      if (this.curUserRoles.includes('kezhang')) {
358
+      if (this.curUserRoles.includes('banzuzhang')) {
359 359
         this.defaultActive = 2
360 360
       }
361 361
       // 使用data()中设置的默认今天日期,不再重置dateRange
@@ -379,7 +379,7 @@ export default {
379 379
         const deptId = this.currentUser.userInfo && this.currentUser.userInfo.deptId;
380 380
         const subDeptTree = await getDeptList({ parentId: deptId });
381 381
         // console.log(subDeptTree, "subDeptTree")
382
-        let firstOption = this.curUserRoles.includes('test') ? [{ value: null, deptType: null, text: '全站' }] : this.curUserRoles.includes('jingli') || this.curUserRoles.includes('xingzheng') ? [{ value: deptId, deptType: 'BRIGADE', text: '本队' }] : [];
382
+        let firstOption = this.curUserRoles.includes('test') ? [{ value: null, deptType: null, text: '全站' }] : this.curUserRoles.includes('bumenjingli') || this.curUserRoles.includes('xingzheng') ? [{ value: deptId, deptType: 'BRIGADE', text: '本队' }] : [];
383 383
         //如果是站长,则获取所有部门的大队,如果是经理或行政,则获取登陆角色部门下的主管
384 384
         let otherOption = this.curUserRoles.includes('test') ? buildBrigadeOptions(deptTree.data || [], true) : buildManagerOptions(subDeptTree.data, true);
385 385
         console.log(otherOption, "this.departments")

+ 1 - 1
src/pages/seizedReported/index.vue

@@ -309,7 +309,7 @@ export default {
309 309
     },
310 310
     // 判断是否为kezhang角色
311 311
     isKezhang() {
312
-      return this.$store?.state?.user?.roles?.includes('kezhang')
312
+      return this.$store?.state?.user?.roles?.includes('banzuzhang')
313 313
     },
314 314
     // 将item_check_method_options转换为字符串数组供uni-combox使用
315 315
     checkMethodCandidates() {

+ 1 - 1
src/pages/seizedReportedVoice/index.vue

@@ -1502,7 +1502,7 @@ export default {
1502 1502
           formData: payload,
1503 1503
           submitterId: this.currentUser.id,
1504 1504
           submitterName: this.currentUser.name,
1505
-          submitterRole: this.currentUser.roles.includes('banzuzhang') ? 'SEIZURE_REPORT_LEADER' : this.currentUser.roles.includes('SecurityCheck') ? 'SEIZURE_REPORT_STAFF' : '',
1505
+          submitterRole: this.currentUser.roles.includes('xiaozuzhang') ? 'SEIZURE_REPORT_LEADER' : this.currentUser.roles.includes('SecurityCheck') ? 'SEIZURE_REPORT_STAFF' : '',
1506 1506
         }
1507 1507
 
1508 1508
 

+ 1 - 1
src/pages/teamProfile/index.vue

@@ -345,7 +345,7 @@ export default {
345 345
         //班组长
346 346
         // isManager() {
347 347
         //     const roles = this.getUserRoles()
348
-        //     return roles.includes('banzuzhang')
348
+        //     return roles.includes('xiaozuzhang')
349 349
         // },
350 350
         chooseDept() {
351 351
             if (this.isStationMaster() || this.isBrigade()) {

+ 4 - 4
src/pages/workProfile/index.vue

@@ -4,7 +4,7 @@
4 4
         <view class="workProfileContainer">
5 5
             <!-- 下拉选择 -->
6 6
             <div class="filter-section" v-if="isSpecialUser || isJingLi">
7
-                <uni-data-select :class="{ 'filter-select': true, 'kezhang-style': isKeZhang }" v-model="selectedLevel"
7
+                <uni-data-select :class="{ 'filter-select': true, 'banzuzhang-style': isKeZhang }" v-model="selectedLevel"
8 8
                     :localdata="levelOptions" placeholder="请选择级别" :clear="false" @change="handleLevelChange"
9 9
                     :disabled="isKeZhang" />
10 10
             </div>
@@ -151,10 +151,10 @@ export default {
151 151
             return this.userRoles.includes('test')
152 152
         },
153 153
         isJingLi() {
154
-            return this.userRoles.includes('jingli')
154
+            return this.userRoles.includes('bumenjingli')
155 155
         },
156 156
         isKeZhang() {
157
-            return this.userRoles.includes('kezhang')
157
+            return this.userRoles.includes('banzuzhang')
158 158
         },
159 159
         curUserRoles() {
160 160
             return this.$store.state.user && this.$store.state.user.roles;
@@ -368,7 +368,7 @@ export default {
368 368
         }
369 369
     }
370 370
 
371
-    .kezhang-style {
371
+    .banzuzhang-style {
372 372
         ::v-deep .uni-stat-box {
373 373
             .uniui-bottom {
374 374
                 display: none !important;

+ 2 - 2
src/utils/common.js

@@ -464,7 +464,7 @@ export function checkRolePermission(role, path) {
464 464
       '/pages/voiceSubmissionDraft/index'
465 465
     ],
466 466
     //班组长
467
-    banzuzhang: [
467
+    xiaozuzhang: [
468 468
       '/pages/attendance/index',
469 469
       `/pages/seizedReported/index?params=${encodeURIComponent(JSON.stringify({ type: 'add' }))}`,
470 470
       '/pages/daily-exam/task-list/index',
@@ -477,7 +477,7 @@ export function checkRolePermission(role, path) {
477 477
       '/pages/voiceSubmissionDraft/index'
478 478
     ],
479 479
     //站长
480
-    kezhang: [
480
+    banzuzhang: [
481 481
       '/pages/attendance/index',
482 482
       '/pages/attendanceStatistics/index',
483 483
       '/pages/inspectionChecklist/index',