瀏覽代碼

fix:拓客经理生成二维码时校验角色是否有规则

zhanghui 2 年之前
父節點
當前提交
c274d8c915
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      pages/index/manager/manager.vue

+ 10 - 0
pages/index/manager/manager.vue

@@ -236,6 +236,16 @@
 
 			},
 			createQrCode(){
+
+				if (!this.roleBindRuleList || this.roleBindRuleList.length === 0){
+					uni.showToast({
+						icon: 'error',
+						duration: 3000,
+						title: '请先添加规则!'
+					});
+					return
+				}
+
 				let data = {
 					roleId:this.roleList[this.confirmRoleIndex].id,
 					parentId:this.userInfo.id