rabin 2 yıl önce
ebeveyn
işleme
e7533d25ee
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      database/menu.php
  2. 1 1
      src/Lib/Input.php

+ 1 - 1
database/menu.php

@@ -381,7 +381,7 @@ return array
 			),
 			'type' => 'all',
 			'order' => array('reorder' => 'desc', 'id' => 'asc'),
-			'col' => 'id,id as value, name',
+			'col' => 'id,id as value, concat(name, "-", `key`) as name',
 		),
 	),
 );

+ 1 - 1
src/Lib/Input.php

@@ -1086,7 +1086,7 @@ class Input
             $(document).ready(function() {
 
                 layui.use(["table"], function() {
-                    init_xm("'.$xm_id.'", "'.$xm_radio.'", "'.$xm_tips.'", "'.$url.'", '.$xm_data.', ['.$xm_value.'], '.$xm_on.');
+                    init_xm("'.$xm_id.'", "'.$xm_radio.'", "'.$xm_tips.'", "'.$url.'", '.$xm_data.', ["'.$xm_value.'"], '.$xm_on.');
                 });
             });