{{if !empty($form_table['base']['status_field']) and isset($form_table_data_list[$i][$form_table['base']['status_field']]) and $form_table_data_list[$i][$form_table['base']['status_field']] eq 0}}
class="am-active"
{{/if}}
>
{{foreach $form_table['form'] as $t}}
{{if !isset($t['is_list']) or $t['is_list'] eq 1}}
<!-- 1. 上下居中 -->
<!-- 2. 格子大小 -->
<!-- 3. 内容位置居(左|中|右) -->
<!-- 4. 格子是否固定(left|right 左|右) -->
<!-- 5. 是否操作列 -->
<tdclass="am-nowrap-initial
{{if isset($t['is_middle']) and $t['is_middle'] eq 1}}am-text-middle {{/if}}
{{if (!empty($t['view_key']) and isset($form_table_data_list[$i][$t['view_key']])) or (!empty($t['progress_data_key']) and isset($form_table_data_list[$i][$t['progress_data_key']]))}}
{{if isset($t['is_badge']) and $t['is_badge'] eq 1}}
am-badge {{if !empty($t['badge_key']) and !empty($t['badge_style']) and isset($form_table_data_list[$i][$t['badge_key']]) and isset($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]) and substr($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]], 0, 1) neq '#'}}am-badge-{{$t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]}} {{/if}}
{{if isset($t['is_color']) and $t['is_color'] eq 1 and !empty($t['color_key']) and !empty($t['color_style']) and isset($form_table_data_list[$i][$t['color_key']]) and isset($t['color_style'][$form_table_data_list[$i][$t['color_key']]]) and substr($t['color_style'][$form_table_data_list[$i][$t['color_key']]], 0, 1) neq '#'}}am-text-{{$t['color_style'][$form_table_data_list[$i][$t['color_key']]]}}{{/if}}
{{if isset($t['is_popup']) and $t['is_popup'] eq 1 and (!empty($t['popup_url']) or (!empty($t['popup_url_key']) and !empty($form_table_data_list[$i][$t['popup_url_key']])))}}submit-popup{{/if}}
{{if isset($t['is_modal']) and $t['is_modal'] eq 1 and (!empty($t['modal_url']) or (!empty($t['modal_url_key']) and !empty($form_table_data_list[$i][$t['modal_url_key']])))}}submit-modal{{/if}}"
{{if isset($t['is_badge']) and $t['is_badge'] eq 1 and !empty($t['badge_key']) and !empty($t['badge_style']) and is_array($t['badge_style']) and isset($form_table_data_list[$i][$t['badge_key']]) and isset($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]) and substr($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]], 0, 1) eq '#'}}background: {{$t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]}};{{/if}}
{{if isset($t['is_color']) and $t['is_color'] eq 1 and !empty($t['color_key']) and !empty($t['color_style']) and is_array($t['color_style']) and isset($form_table_data_list[$i][$t['color_key']]) and isset($t['color_style'][$form_table_data_list[$i][$t['color_key']]]) and substr($t['color_style'][$form_table_data_list[$i][$t['color_key']]], 0, 1) eq '#'}}color: {{$t['color_style'][$form_table_data_list[$i][$t['color_key']]]}};{{/if}}"
{{if isset($t['is_popover']) and $t['is_popover'] eq 1 and !empty($t['popover_field']) and !empty($form_table_data_list[$i][$t['popover_field']])}}data-am-popover="{content: '{{:PopoverContentHandle($form_table_data_list[$i][$t['popover_field']])}}', trigger: 'hover focus', theme: 'sm'}"{{/if}}
{{if isset($t['is_popup']) and $t['is_popup'] eq 1 and (!empty($t['popup_url']) or (!empty($t['popup_url_key']) and !empty($form_table_data_list[$i][$t['popup_url_key']])))}}
data-url="{{if !empty($t['popup_url_key']) and !empty($form_table_data_list[$i][$t['popup_url_key']])}}{{$form_table_data_list[$i][$t['popup_url_key']]}}{{else /}}{{if !empty($t['popup_url'])}}{{$t.popup_url}}{{/if}}{{/if}}"
{{if !empty($t['popup_title'])}}
data-title="{{$t.popup_title}}"
{{/if}}
{{if !empty($t['popup_class'])}}
data-class="{{$t.popup_class}}"
{{/if}}
{{if isset($t['popup_full'])}}
data-full="{{$t.popup_full}}"
{{/if}}
{{if isset($t['popup_full_max'])}}
data-full-max="{{$t.popup_full_max}}"
{{/if}}
{{if !empty($t['popup_full_max_size'])}}
data-full-max-size="{{$t.popup_full_max_size}}"
{{/if}}
{{/if}}
{{if isset($t['is_modal']) and $t['is_modal'] eq 1 and (!empty($t['modal_url']) or (!empty($t['modal_url_key']) and !empty($form_table_data_list[$i][$t['modal_url_key']])))}}
data-url="{{if !empty($t['modal_url_key']) and !empty($form_table_data_list[$i][$t['modal_url_key']])}}{{$form_table_data_list[$i][$t['modal_url_key']]}}{{else /}}{{if !empty($t['modal_url'])}}{{$t.modal_url}}{{/if}}{{/if}}"
{{if isset($t['is_first_tips']) and $t['is_first_tips'] eq 1 and ((!empty($t['first_tips_key']) and !empty($form_table_data_list[$i][$t['first_tips_key']])) or (!empty($t['first_tips_data'])))}}
{{if isset($t['is_first_link']) and $t['is_first_link'] eq 1 and ((!empty($t['first_link_key']) and !empty($form_table_data_list[$i][$t['first_link_key']])) or (!empty($t['first_link_data'])))}}
{{if isset($t['is_round_point']) and $t['is_round_point'] eq 1}}
<iclass="am-icon-circle am-margin-right-xs {{if !empty($t['round_point_key']) and !empty($t['round_point_style']) and is_array($t['round_point_style']) and isset($form_table_data_list[$i][$t['round_point_key']]) and isset($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]) and substr($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]], 0, 1) neq '#'}}am-text-{{$t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]}}{{/if}}"
style="{{if !empty($t['round_point_key']) and !empty($t['round_point_style']) and is_array($t['round_point_style']) and isset($form_table_data_list[$i][$t['round_point_key']]) and isset($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]) and substr($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]], 0, 1) eq '#'}}color: {{$t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]}};{{/if}}"></i>
{{/if}}
<!-- 前后固定拼接的值 前面 -->
{{if isset($t['view_join_first'])}}
<span>{{$t.view_join_first}}</span>
{{/if}}
<!-- 如果字段为数组则处理多个字段拼接数据 -->
{{if is_array($t['view_key'])}}
{{foreach $t['view_key'] as $fk=>$fv}}
{{if isset($form_table_data_list[$i][$fv])}}
<span>{{$form_table_data_list[$i][$fv]}}</span>
<!-- 多个字段拼接数据的的拼接字符 -->
{{if isset($t['view_key_join']) and $fk lt count($t['view_key'])-1}}
{{if !empty($t['key_field']) and !empty($t['post_url']) and !empty($form_table_data_list[$i][$t['key_field']]) and array_key_exists($t['view_key'], $form_table_data_list[$i])}}
(is_array($t['not_show_data']) and isset($form_table_data_list[$i][$t['not_show_key']]) and !in_array($form_table_data_list[$i][$t['not_show_key']], $t['not_show_data'])) or
(isset($t['not_show_type']) and isset($form_table_data_list[$i][$t['not_show_key']]) and (
($t['not_show_type'] eq 0 and $form_table_data_list[$i][$t['not_show_key']] eq $t['not_show_data']) or
($t['not_show_type'] eq 1 and $form_table_data_list[$i][$t['not_show_key']] gt $t['not_show_data']) or
($t['not_show_type'] eq 2 and $form_table_data_list[$i][$t['not_show_key']] lt $t['not_show_data'])
(is_array($t['not_show_data']) and isset($form_table_data_list[$i][$t['not_show_key']]) and !in_array($form_table_data_list[$i][$t['not_show_key']], $t['not_show_data'])) or
(isset($t['not_show_type']) and isset($form_table_data_list[$i][$t['not_show_key']]) and (
($t['not_show_type'] eq 0 and $form_table_data_list[$i][$t['not_show_key']] eq $t['not_show_data']) or
($t['not_show_type'] eq 1 and $form_table_data_list[$i][$t['not_show_key']] gt $t['not_show_data']) or
($t['not_show_type'] eq 2 and $form_table_data_list[$i][$t['not_show_key']] lt $t['not_show_data'])