1、增加字段类型
2、修复增加字段时的一处bug
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<dl class="fieldlist" data-name="{$name}">
|
||||
<dd>
|
||||
<ins>键名</ins>
|
||||
<ins>键值</ins>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
|
||||
</dd>
|
||||
<textarea name="{$name}" class="form-control hide" cols="30" rows="5">{$value}</textarea>
|
||||
</dl>
|
||||
+1
-1
@@ -133,7 +133,7 @@ class Model extends \think\Model{
|
||||
public function getAttrGroupAttr($value, $data){
|
||||
$list = [];
|
||||
if ($data['attribute_group']) {
|
||||
$row = explode(PHP_EOL, $data['attribute_group']);
|
||||
$row = explode(";", $data['attribute_group']);
|
||||
foreach ($row as $r) {
|
||||
list($key, $label) = explode(":", $r);
|
||||
$list[$key] = ['key' => $key, 'label' => $label];
|
||||
|
||||
Reference in New Issue
Block a user