Browse Source

变量管理

moshaorui 5 months ago
parent
commit
a8113adf57

+ 1 - 0
app/Admin/Controllers/DistAppearanceVariableController.php

@@ -64,6 +64,7 @@ class DistAppearanceVariableController extends AdminController
             //排序
             $grid->model()->where('appearance_id', $appearanceId)->where('dist_id', $distId)->whereIn('template_ids', [0, $templateId])->orderBy("id",'asc');
             //增加js 向新增按钮添加参数还有编辑按钮添加参数
+
             Admin::script(
 <<<JS
 var button = $('.dialog-create');

+ 7 - 4
resources/views/admin/pages-custom/ace.blade.php

@@ -23,6 +23,9 @@
 
         background-color: #1e1e1e;
     }
+    .modal-body {
+        background-color: #e9ecef;
+    }
 
     .submenu {
         list-style: none;
@@ -44,8 +47,8 @@
         </div>
         <div class="col-10 main-panel"> <!-- 右侧80% -->
             <div class="main-panel-header">
-                <button type="button" class="btn btn-primary btn-sm" id="save-btn">保存</button>
-                <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#iframeModal" style="margin-left: 10px;">变量管理</button>
+                <button type="button" class="btn btn-primary btn-sm" id="save-btn">Save</button>
+                <button type="button" class="btn btn-success btn-sm" data-toggle="modal" data-target="#iframeModal">Variable Management</button>
             </div>
             <div class="main-panel-content" id="editor" style="width: 100%; height: 100%;"></div>
             <input type="hidden" name="template_id"  id="template_id" />
@@ -58,13 +61,13 @@
     <div class="modal-dialog modal-dialog-centered modal-xl">
         <div class="modal-content">
             <div class="modal-header">
-                <h5 class="modal-title" id="iframeModalLabel">变量管理</h5>
+                <h5 class="modal-title" id="iframeModalLabel">Variable Management</h5>
                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                     <span aria-hidden="true">&times;</span>
                 </button>
             </div>
             <div class="modal-body">
-                <iframe src="/prime-control/dist-template-var" width="100%" height="700px" frameborder="0"></iframe>
+                <iframe src="/prime-control/dist-template-var" width="100%" height="700px" frameborder="0" style="max-width: 100%;overflow: hidden"></iframe>
             </div>
             <div class="modal-footer">
                 <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>