聯(lián)系官方銷售客服
1835022288
028-61286886
插件名稱 | 表單系統(tǒng) V2.5 |
插件作者 | 迅睿官方團(tuán)隊 |
最近更新 | 2024-10-23 13:40:58 |
修復(fù)刪除表單時的故障問題 |
全局表單,在后臺讀取數(shù)據(jù)時,kssfzh 字段 如果在值最后統(tǒng)一加上空格?
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;
說結(jié)果集空格,你想的太復(fù)雜了,不需要改那么多文件
寫回調(diào)函數(shù)就可以了
參考文檔:《后臺顯示字段回調(diào)》