Procházet zdrojové kódy

fix: 采购单位招标动态跳转三级页权限更改

yangfeng před 4 roky
rodič
revize
caedc43e68

+ 8 - 6
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/unit_portrayal.js

@@ -1219,13 +1219,15 @@ var vNode = {
         },
         // 跳转三级页
         goDetail: function(item){
-          if (this.power.indexOf(5) > -1) {
-            if (item.id) {
-              var href = '/article/content/' + item.id + '.html'
-              location.href = href
-            } 
+          if (item.id) {
+            var href = '/jyapp/article/content/' + item.id + '.html'
+            location.href = href
           } else {
-            this.openDialog()
+            if (this.power.indexOf(5) == -1) {
+              this.openDialog()
+            } else {
+              console.log('没有id')
+            }
           }
         },
         // 求最大项目数量

+ 8 - 6
src/web/staticres/big-member/js/unit_portrayal.js

@@ -1214,14 +1214,16 @@ var vNode = {
         },
         // 跳转三级页
         goDetail: function(item){
-            if (this.power.indexOf(5) > -1) {
-              if (item.id) {
-                var href = '/article/content/' + item.id + '.html'
-                location.href = href
-              } 
-            } else {
+          if (item.id) {
+            var href = '/article/content/' + item.id + '.html'
+            location.href = href
+          } else {
+            if (this.power.indexOf(5) == -1) {
               this.openDialog()
+            } else {
+              console.log('没有id')
             }
+          }
         },
         // 求最大项目数量
         getMaxProjectCount: function (analysisArr) {