Explorar el Código

fix修改的内容

huoyi hace 1 semana
padre
commit
14a26c2d23

+ 6 - 6
src/pages.json

@@ -415,12 +415,6 @@
415
     "paddingBottom": "0px",
415
     "paddingBottom": "0px",
416
     "marginBottom": "0px",
416
     "marginBottom": "0px",
417
     "list": [
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
         "pagePath": "pages/myToDoList/index",
419
         "pagePath": "pages/myToDoList/index",
426
         "iconPath": "/static/images/tabbar/message.png",
420
         "iconPath": "/static/images/tabbar/message.png",
@@ -434,6 +428,12 @@
434
         "text": "AI问答"
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
         "pagePath": "pages/work/index",
437
         "pagePath": "pages/work/index",
438
         "iconPath": "static/images/tabbar/work.png",
438
         "iconPath": "static/images/tabbar/work.png",
439
         "selectedIconPath": "static/images/tabbar/work_.png",
439
         "selectedIconPath": "static/images/tabbar/work_.png",

+ 2 - 2
src/pages/login.vue

@@ -78,7 +78,7 @@ export default {
78
   onLoad() {
78
   onLoad() {
79
     //#ifdef H5
79
     //#ifdef H5
80
     if (getToken()) {
80
     if (getToken()) {
81
-      this.$tab.reLaunch('/pages/myToDoList/index')
81
+      this.$tab.reLaunch('/pages/home-new/index')
82
     }
82
     }
83
     this.getStorage()
83
     this.getStorage()
84
     //#endif
84
     //#endif
@@ -164,7 +164,7 @@ export default {
164
       this.$store.dispatch('GetInfo').then(res => {
164
       this.$store.dispatch('GetInfo').then(res => {
165
         // 登录成功后调用showMessageTabRedDot更新消息tab红点状态
165
         // 登录成功后调用showMessageTabRedDot更新消息tab红点状态
166
         showMessageTabRedDot()
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
       <view class="filter-section">
5
       <view class="filter-section">
6
         <view class="filter-row">
6
         <view class="filter-row">
7
           <uni-data-picker
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
             class="filter-select" :localdata="departments" :placeholder="'请选择'" @change="handleinspectDeptIdChange"
9
             class="filter-select" :localdata="departments" :placeholder="'请选择'" @change="handleinspectDeptIdChange"
10
             :clear-icon="false" />
10
             :clear-icon="false" />
11
           <text v-if="dateRange.length > 0" class="days-count">共 {{ totalDays }} 天</text>
11
           <text v-if="dateRange.length > 0" class="days-count">共 {{ totalDays }} 天</text>
@@ -233,7 +233,7 @@ export default {
233
           { label: '按个人', value: 3 }
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
         return [
237
         return [
238
           { label: '按班组', value: 2 },
238
           { label: '按班组', value: 2 },
239
           { label: '按个人', value: 3 }
239
           { label: '按个人', value: 3 }
@@ -315,7 +315,7 @@ export default {
315
       if (this.getType == "MANAGER") {
315
       if (this.getType == "MANAGER") {
316
         dept = { inspectDepartmentId: this.formData.inspectDeptId }
316
         dept = { inspectDepartmentId: this.formData.inspectDeptId }
317
       }
317
       }
318
-      if (this.curUserRoles.includes('kezhang')) {
318
+      if (this.curUserRoles.includes('banzuzhang')) {
319
         const deptId = this.currentUser.userInfo.deptId;
319
         const deptId = this.currentUser.userInfo.deptId;
320
         dept = { inspectDepartmentId: deptId }
320
         dept = { inspectDepartmentId: deptId }
321
       }
321
       }
@@ -355,7 +355,7 @@ export default {
355
     },
355
     },
356
     // 初始化数据
356
     // 初始化数据
357
     async initData() {
357
     async initData() {
358
-      if (this.curUserRoles.includes('kezhang')) {
358
+      if (this.curUserRoles.includes('banzuzhang')) {
359
         this.defaultActive = 2
359
         this.defaultActive = 2
360
       }
360
       }
361
       // 使用data()中设置的默认今天日期,不再重置dateRange
361
       // 使用data()中设置的默认今天日期,不再重置dateRange
@@ -379,7 +379,7 @@ export default {
379
         const deptId = this.currentUser.userInfo && this.currentUser.userInfo.deptId;
379
         const deptId = this.currentUser.userInfo && this.currentUser.userInfo.deptId;
380
         const subDeptTree = await getDeptList({ parentId: deptId });
380
         const subDeptTree = await getDeptList({ parentId: deptId });
381
         // console.log(subDeptTree, "subDeptTree")
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
         let otherOption = this.curUserRoles.includes('test') ? buildBrigadeOptions(deptTree.data || [], true) : buildManagerOptions(subDeptTree.data, true);
384
         let otherOption = this.curUserRoles.includes('test') ? buildBrigadeOptions(deptTree.data || [], true) : buildManagerOptions(subDeptTree.data, true);
385
         console.log(otherOption, "this.departments")
385
         console.log(otherOption, "this.departments")

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

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

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

@@ -1502,7 +1502,7 @@ export default {
1502
           formData: payload,
1502
           formData: payload,
1503
           submitterId: this.currentUser.id,
1503
           submitterId: this.currentUser.id,
1504
           submitterName: this.currentUser.name,
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
         // isManager() {
346
         // isManager() {
347
         //     const roles = this.getUserRoles()
347
         //     const roles = this.getUserRoles()
348
-        //     return roles.includes('banzuzhang')
348
+        //     return roles.includes('xiaozuzhang')
349
         // },
349
         // },
350
         chooseDept() {
350
         chooseDept() {
351
             if (this.isStationMaster() || this.isBrigade()) {
351
             if (this.isStationMaster() || this.isBrigade()) {

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

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

+ 2 - 2
src/utils/common.js

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