فهرست منبع

feat: <运营商数据定制及分析>包权限分配人员限制解除

cuiyalong 1 سال پیش
والد
کامیت
4514d41398
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      entbase-pc/src/views/ent/components/powerPerson.vue

+ 4 - 2
entbase-pc/src/views/ent/components/powerPerson.vue

@@ -152,10 +152,12 @@ export default {
     }),
     deal_personList: function () {
       const arr = JSON.parse(JSON.stringify(this.personList))
+      // <运营商数据定制及分析>产品只对已经分配的用户进行禁用。分配其他权限的用户仍然可以分配此权限
+      const excludeCustom = this.selectData?.product_type?.includes('运营商数据定制及分析')
       arr.list && arr.list.forEach((items, x) => {
         const list = []
         items.users.forEach(item => {
-          if (this.pagetype === 'manage') {
+          if (this.pagetype === 'manage' && !excludeCustom) {
             if(this.userPerson && this.userPerson.length !== 0) {
               this.userPerson.forEach((v) => {
                 if (v.phone === item.phone) {
@@ -166,7 +168,7 @@ export default {
             }
           }
           this.selectedList.forEach((val, i) => {
-            if (this.pagetype === 'manage') {
+            if (this.pagetype === 'manage' && !excludeCustom) {
               if(this.userPerson && this.userPerson.length !== 0) {
                 this.userPerson.forEach((v) => {
                   if (v.phone === val.phone) {