Selaa lähdekoodia

只读时快速列设置隐藏

zhongzewei 7 vuotta sitten
vanhempi
commit
70282bd019

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

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

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

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