ソースを参照

feat: 显示隐藏上报说明

caipin 3 日 前
親
コミット
70ca1cb66a
2 ファイル変更、4 行追加、1 行削除
  1. 3 0
      app/public/js/filesjs.js
  2. 1 1
      app/view/file/filesjs.ejs

+ 3 - 0
app/public/js/filesjs.js

@@ -1959,7 +1959,9 @@ $(document).ready(function() {
 
 
     const showSideTools = function(show) {
     const showSideTools = function(show) {
         const left = $('#left-view'), right = $('#right-view'), parent = left.parent();
         const left = $('#left-view'), right = $('#right-view'), parent = left.parent();
+        const uploadTipsPanel = $('#filing-upload-tips-panel');
         if (show) {
         if (show) {
+            uploadTipsPanel.hide();
             right.show();
             right.show();
             autoFlashHeight();
             autoFlashHeight();
             const percent = 100 - right.outerWidth() / parent.width() * 100;
             const percent = 100 - right.outerWidth() / parent.width() * 100;
@@ -1967,6 +1969,7 @@ $(document).ready(function() {
         } else {
         } else {
             left.css('width', '100%');
             left.css('width', '100%');
             right.hide();
             right.hide();
+            uploadTipsPanel.show();
         }
         }
         // 容器宽度变化后再刷新 SpreadJS,避免继续使用展开前的画布尺寸。
         // 容器宽度变化后再刷新 SpreadJS,避免继续使用展开前的画布尺寸。
         setTimeout(refreshSideLayout, 0);
         setTimeout(refreshSideLayout, 0);

+ 1 - 1
app/view/file/filesjs.ejs

@@ -108,7 +108,7 @@
                                         </tbody>
                                         </tbody>
                                     </table>
                                     </table>
                                 </div>
                                 </div>
-                                <div class="border ml-2" style="width: 250px; flex: 0 1 250px; min-width: 180px; max-width: 320px; min-height: 260px; overflow: hidden;">
+                                <div class="border ml-2" id="filing-upload-tips-panel" style="width: 250px; flex: 0 1 250px; min-width: 180px; max-width: 320px; min-height: 260px; overflow: hidden;">
                                     <div class="font-weight-bold text-center border-bottom py-2">上报说明</div>
                                     <div class="font-weight-bold text-center border-bottom py-2">上报说明</div>
                                     <div id="filing-upload-tips" class="p-3 text-muted"
                                     <div id="filing-upload-tips" class="p-3 text-muted"
                                          style="white-space: pre-wrap; overflow-wrap: anywhere; max-height: calc(100vh - 230px); overflow-y: auto;">暂无上报说明</div>
                                          style="white-space: pre-wrap; overflow-wrap: anywhere; max-height: calc(100vh - 230px); overflow-y: auto;">暂无上报说明</div>