联系官方销售客服
1835022288
028-61286886
全局表单,在后台读取数据时,kssfzh 字段 如果在值最后统一加上空格?
mytable.html
// 按自定义字段显示
{loop $list_field $i $tt}
field_columns.push({
// field: '{$i}',
field: '{if $i=="kssfzh"}kssfzh{else}{$i}{/if}',
title: '{dr_lang($tt.name)}',
align: '{if $tt.center}center{else}left{/if}',
switchable: true,
sortable: true,
{if $tt.width}width: '{$tt.width}px',{/if}
visible: true
});
{/list}
/App/Form/Control/Admin/Form.php
// 后台查看表单列表
protected function _Admin_List() {
$this->is_ajax_list = true;
list($tpl) = $this->_List();
$this->mytable = [
'foot_tpl' => '',
'link_tpl' => '',
'link_var' => 'html = html.replace(/\{id\}/g, row.id);
html = html.replace(/\{cid\}/g, row.id);
html = html.replace(/\{fid\}/g, "'.\Phpcmf\Service::L('Router')->class.'");',
];
$uriprefix = APP_DIR.'/'.\Phpcmf\Service::L('Router')->class;