瀏覽代碼

只读时快速列设置隐藏

zhongzewei 7 年之前
父節點
當前提交
70282bd019
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      web/building_saas/main/js/views/main_tree_col.js
  2. 1 0
      web/building_saas/main/js/views/project_view.js

+ 3 - 0
web/building_saas/main/js/views/main_tree_col.js

@@ -483,6 +483,9 @@ let colSettingObj = {
 };
 };
 
 
 function switchTznrHtml(show) {
 function switchTznrHtml(show) {
+    if(projectReadOnly){
+        return;
+    }
     if(show){
     if(show){
         let newHmtl = $('#switchTznr').html().replace('隐藏', '显示');
         let newHmtl = $('#switchTznr').html().replace('隐藏', '显示');
         $('#switchTznr').html(newHmtl);
         $('#switchTznr').html(newHmtl);

+ 1 - 0
web/building_saas/main/js/views/project_view.js

@@ -2172,6 +2172,7 @@ function disableTools(){
     $('#upMove').remove();
     $('#upMove').remove();
     $('#downMove').remove();
     $('#downMove').remove();
     $('#ZLFB_btn').remove();
     $('#ZLFB_btn').remove();
+    $('#switchTznr').remove();
     $('a[name="lockBills"]').remove();
     $('a[name="lockBills"]').remove();
     //关于计算
     //关于计算
     $('#poj-settings-4').find('input').prop('disabled', 'disabled');
     $('#poj-settings-4').find('input').prop('disabled', 'disabled');