dever 3 years ago
parent
commit
6c9d481327

+ 0 - 1
assets/layadmin/html/console.html

@@ -374,7 +374,6 @@
   <script>
     layui.config({
         base: '../script/lib/layui/admin/' //静态资源所在路径
-        ,version: true
     }).extend({
         index: 'lib/index' //主入口模块
     }).use(['index', 'console']);

+ 0 - 1
assets/layadmin/html/home.html

@@ -54,7 +54,6 @@
   <script>
     layui.config({
         base: '../script/lib/layui/admin/' //静态资源所在路径
-        ,version: true
     }).extend({
         index: 'lib/index' //主入口模块
     }).use('index');

+ 1 - 2
assets/layadmin/html/project/database/list.html

@@ -6,7 +6,7 @@
   <script class="include" system="" path="inc/" file="head">include()</script>
   <link rel="stylesheet" href="../script/lib/layui/admin/modules/plugin/formselects/formselects.css" media="all" />
 </head>
-<body>
+<body> 
 <style id="addstyle">
 </style>
 <style>
@@ -154,7 +154,6 @@
   <script>
   layui.config({
     base: '../script/lib/layui/admin/' //静态资源所在路径
-    ,version: true
   }).extend({
     formSelects: 'plugin/formselects/formselects',
     index: 'lib/index' //主入口模块

+ 1 - 2
assets/layadmin/html/project/database/update.html

@@ -51,7 +51,7 @@
         <a target="_blank"><img src="#"></a>
         <span>项目名称</span>
     </div>
-</div>
+</div> 
 <div id="content_1" style="display:none;"></div>
 <div id="content_2">
   <div class="layui-fluid">
@@ -159,7 +159,6 @@
   <script id="update_script">
   layui.config({
     base: '../script/lib/layui/admin/' //静态资源所在路径
-    ,version: true
   }).extend({
     index: 'lib/index', //主入口模块
     formSelects: 'plugin/formselects/formselects'

+ 5 - 1
src/Lib/Input.php

@@ -773,7 +773,11 @@ class Input
                     if (isset($param['control']) && is_string($param['control']) && $param['control'] != $param['name']) {
                         $cjs = str_replace('update_', '', str_replace($param['control'], $param['name'], $js));
                     }
-                    $html .= '<input update_type="checked" class="autoload checkbox-checkall-' . $param['parent'] . ' ' . $param['name'] . ' update_value ' . (isset($param['valid']) ? $param['valid'] : '') . '" type="' . $param['update'] . '" name="' . $param['name'] . '[]" value="' . $k . '" ' . $check . ' ' . $cjs . '/> ' . $value . ' &nbsp;&nbsp;';
+                    $disabled = '';
+                    if (isset($param['disabled'])) {
+                        $disabled = 'disabled="true"';
+                    }
+                    $html .= '<input update_type="checked" class="autoload checkbox-checkall-' . $param['parent'] . ' ' . $param['name'] . ' update_value ' . (isset($param['valid']) ? $param['valid'] : '') . '" type="' . $param['update'] . '" name="' . $param['name'] . '[]" value="' . $k . '" ' . $check . ' ' . $cjs . ' ' . $disabled . '/> ' . $value . ' &nbsp;&nbsp;';
 
                     if (isset($param['bind'])) {
                         //$html .= '<script>$(document).ready(function(){$(".checkbox-checkall-'.$param['parent'].'").click();})</script>';

+ 1 - 1
template/default/inc/head.php

@@ -16,7 +16,7 @@ $view
 ->fetch(array('meta@content', 3), 	'manage/auth.config#title')
  
 # 初始化几个js变量
-->fetch('#script',	'<{Dever::script()}>config.template="<{$data["manage/auth.config"]["template"]}>";config.lib="<{Dever::config("host")->public}>"')
+->fetch('#script',	'<{Dever::script()}>config.template="<{$data["manage/auth.config"]["template"]}>";config.lib="<{Dever::config("host")->public}>";config.debug=true')
 
 ->fetch('#style', '<{Dever::load("manage/auth.loading") ? ".content,.content-page{margin-left: 0px;min-height:auto}" : ""}>')
 

+ 1 - 1
template/layadmin/inc/head.php

@@ -16,7 +16,7 @@ $view
 ->fetch(array('meta@content', 3), 	'manage/auth.config#title')
  
 # 初始化几个js变量
-->fetch('#script',	'<{Dever::script()}>config.template="<{$data["manage/auth.config"]["template"]}>";config.lib="<{Dever::config("host")->public}>"')
+->fetch('#script',	'<{Dever::script()}>config.template="<{$data["manage/auth.config"]["template"]}>";config.lib="<{Dever::config("host")->public}>";config.debug=false')
 
 ->fetch('#style', '<{Dever::load("manage/auth.loading") ? ".content,.content-page{margin-left: 0px;min-height:auto}" : ""}>')
 

+ 3 - 1
template/layadmin/project/database/list.php

@@ -6,8 +6,10 @@
 */
 $method = 'list'; 
 include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.php');
- 
+  
 $view  
+->set('fast', 'Dever::input("fast")')  
+
 ->fetch('#load_style', 'manage/database.res#css')
 ->fetch('#search_param', 'manage/database.info#search_param')
 ->fetch('#addstyle', 'manage/database.listStyle')    

+ 1 - 0
template/layadmin/project/database/update.php

@@ -8,6 +8,7 @@ $method = 'update';
 include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.php');
 
 $view
+->set('fast', 'Dever::input("fast")')  
 ->fetch('#load_style', 'manage/database.res#css')
 //->fetch('#list-desc', 'manage/database.info#update_desc')
 # form表单

+ 1 - 1
template/layadmin/project/list.php

@@ -7,7 +7,7 @@
 
 
 $view
-
+->set('fast', 'Dever::input("fast")')  
 ->fetch('body@class', 'theme-<{Dever::load("/auth.config#template")}>')
 
 # 小标题