浏览代码

feat:修改账号权限逻辑

zhangxin 2 月之前
父节点
当前提交
4e968366b3
共有 4 个文件被更改,包括 15 次插入33 次删除
  1. 1 1
      pages.json
  2. 0 19
      pages/clue/mixins/clue.js
  3. 7 4
      pages/clue/post/index.vue
  4. 7 9
      store/modules/user.js

+ 1 - 1
pages.json

@@ -384,7 +384,7 @@
384 384
 				"pagePath": "pages/privateClue/index",
385 385
 				"iconPath": "static/tabs/private.png",
386 386
 				"selectedIconPath": "static/tabs/private1.png",
387
-				"visible": true		
387
+				"visible": false		
388 388
 			}, 
389 389
 			{
390 390
 				"text": "接单中心",

+ 0 - 19
pages/clue/mixins/clue.js

@@ -270,25 +270,6 @@ export default {
270 270
 					v.repetitionOperWeixinName = result;
271 271
 				}
272 272
 			})
273
-			// rows.push({
274
-			// 	id: 0,
275
-			// 	name: '全部',
276
-			// 	clueState: '',
277
-			// 	clueBizType: '',
278
-			// 	clueObjType: '',
279
-			// 	clueAdType: '',
280
-			// 	clueOperationId: '',
281
-			// 	clueOwnerId: '',
282
-			// 	followStatus: '',
283
-			// 	handleState: '',
284
-			// 	convertStatus: '',
285
-			// 	followCount: '',
286
-			// 	createTime: '',
287
-			// 	modifyTime: '',
288
-			// 	clueEntranceType: '',
289
-			// 	clueTagList: [],
290
-			// 	clueTagGroupVoList: [],
291
-			// })
292 273
 			
293 274
 			return rows;
294 275
 		}

+ 7 - 4
pages/clue/post/index.vue

@@ -26,11 +26,14 @@
26 26
 			</view>
27 27
 			<view class="info">
28 28
 				<view class="createTime">{{ item.createTime }}</view>
29
+			</view>
30
+			<view class="info">
29 31
 				<view>{{ item.appName }}</view>
30 32
 			</view>
31 33
 			<view class="info">
32
-				<view class="owner" style="margin-right: 20px;">所属人 {{ item.clueOwnerName ? item.clueOwnerName : "-" }}
33
-				</view>
34
+				<view class="owner">所属人 {{ item.clueOwnerName ? item.clueOwnerName : "-" }}</view>
35
+			</view>
36
+			<view class="info">
34 37
 				<view class="operation">运营人 {{ item.clueOperationName ? item.clueOperationName : "-" }}</view>
35 38
 			</view>
36 39
 		</view>
@@ -47,10 +50,10 @@
47 50
 				</view>
48 51
 			</view>
49 52
 		</view>
50
-		<!-- <view class="sendOrder inquiry" @click.stop="handleInquiry(item)">
53
+		<view class="sendOrder inquiry" @click.stop="handleInquiry(item)">
51 54
 			<image src='/static/publicClue/inquiry.png' mode="aspectFit" class="sendOrder_img"></image>
52 55
 			<view>询价</view>
53
-		</view> -->
56
+		</view>
54 57
 		<view class="sendOrder" @click.stop="handleSendOrder(item)">
55 58
 			<image src='/static/publicClue/littlePlane.png' mode="aspectFit" class="sendOrder_img"></image>
56 59
 			<view>发单</view>

+ 7 - 9
store/modules/user.js

@@ -174,21 +174,19 @@ function setupTabBar(userInfo) {
174 174
 		}
175 175
 	
176 176
 		const roles = userInfo.roles;
177
-		// 销售线索、我的是所有用户都有的
178
-		// 如果是销售经理SALESMAN,则也展示询价中心、核价中心
179
-		// 如果是其他角色,则也展示首页、线索公海、仓库、接单中心
177
+		// 我的 是所有用户都有的
178
+		// 如果是销售经理SALESMAN,则也展示询价中心、核价中心、仓库
179
+		// 如果是其他角色,则也展示首页、线索公海、接单中心
180 180
 		// 下标index从0开始
181 181
 		const hasSalesmanRole = roles.some(role => role.roleKey === 'SALESMAN');
182 182
 		if (hasSalesmanRole) {
183
-			uni.setTabBarItem({ index:3,visible: true });//询价中心
183
+			uni.setTabBarItem({ index: 2,visible: true });//仓库
184
+			uni.setTabBarItem({ index: 3,visible: true });//询价中心
184 185
 			uni.setTabBarItem({ index: 4,visible: true });//核价中心
185 186
 		}else{
186
-			// uni.setTabBarItem({ index:3,visible: true });//询价中心
187
-			// uni.setTabBarItem({ index: 4,visible: true });//核价中心
188
-
189
-			uni.setTabBarItem({ index:0,visible: true });//首页
187
+			uni.setTabBarItem({ index: 0,visible: true });//首页
190 188
 			uni.setTabBarItem({ index: 1,visible: true });//线索公海
191
-			uni.setTabBarItem({ index: 2,visible: true });//仓库
189
+			uni.setTabBarItem({ index: 5,visible: true });//销售线索
192 190
 			uni.setTabBarItem({ index: 6,visible: true });//接单中心
193 191
 		}
194 192
 }