ソースを参照

Merge branch 'test' of https://git.agilestar.cn/spfm-group/spfm-market-front into test

syr 3 年 前
コミット
c750474a91
1 ファイル変更17 行追加8 行削除
  1. 17 8
      public/static/views/publiAccount.html

+ 17 - 8
public/static/views/publiAccount.html

@@ -98,7 +98,6 @@
 				i = Menus.length;
 			}
 		}
-		console.log(lockFlag)
         var id = '' //  模板id 查看/修改load时候用
         var powerFlag = '0'; // 权限控制 0 开启 1关闭
         var excelId = '';
@@ -122,7 +121,6 @@
                 }
 				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
 				var r = window.top.location.href.split('?')[1];
-				console.log(r == 'type=2')
 				var url = '/market/cadvLedger/load';
 				if(lockFlag == 'updata' && r == 'type=2'){
 					url = '/market/cadvLedger/loadProv';
@@ -148,7 +146,7 @@
 							// res.body[0].calcChain = [];
 							initExcel(res.body)
 						}else{
-							getData()
+							//getData()
 						}
                     }
                 });
@@ -241,7 +239,7 @@
 								// 	})
 								// 	return false
 								// }
-								
+
 						        // if (luckysheet.getSheet().readOnly != '') {
 						        //     if (luckysheet.getSheet().data[r][luckysheet.getSheet().data[r].length - 1] != null && luckysheet.getSheet().data[r][luckysheet.getSheet().data[r].length - 1].v !== userId) {
 						        //         window.top.$vm.$message({
@@ -265,14 +263,25 @@
                 } catch (err) {
                     console.log(err)
                 }
+
                 if (lockFlag == 'see') { // 查看预算跳转过来
-                    // $('#saves').hide()
-                  
                     $('#monthSelect').hide()
                 }else if (lockFlag == 'add') { // 查看预算跳转过来
-                  
 					$('#monthSelect').hide()
                 }
+                let r = window.top.location.href.split('?')[1];
+                if(r == 'type=2'){
+                    if(powerFlag == 1){
+                        $('#saves').hide();
+                        $('#imports').hide();
+                    }
+                    $('#monthSelect').hide();
+                }
+                if(r == 'type=3'){
+                    $('#imports').hide();
+                    $('#monthSelect').hide();
+                    $('#saves').hide();
+                }
                 initHandel()
             }
             // 绑定按钮事件
@@ -364,4 +373,4 @@
     </script>
 </body>
 
-</html>
+</html>