This commit is contained in:
2025-03-28 09:24:59 +08:00
parent 2a62c4daa5
commit 9353d44b3f
4 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ class Firmcustomer extends Backend
->paginate($limit);
foreach ($list as $row) {
$row->visible(['id','customer_name','age','phone','rel_wx','rel_group','firmtags_ids','headimage','remark','responsible_pm','return_visit_content','status','create_time','admin_id']);
$row->visible(['id','name','age','phone','rel_wx','rel_group','firmtags_ids','headimage','remark','responsible_pm','return_visit_content','status','create_time','admin_id']);
$row->visible(['firmstoreprojectstwo']);
$row->getRelation('firmstoreprojectstwo')->visible(['name']);
$row->visible(['firmcustomerorigin']);

View File

@@ -10,7 +10,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Customer_name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-customer_name" data-rule="required" class="form-control" name="row[customer_name]" type="text" value="">
<input id="c-customer_name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
</div>
</div>
<div class="form-group">

View File

@@ -10,7 +10,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Customer_name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-customer_name" data-rule="required" class="form-control" name="row[customer_name]" type="text" value="{$row.customer_name|htmlentities}">
<input id="c-customer_name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.customer_name|htmlentities}">
</div>
</div>
<div class="form-group">

View File

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'customer_name', title: __('Customer_name'), operate: 'LIKE'},
{field: 'name', title: __('Customer_name'), operate: 'LIKE'},
{field: 'age', title: __('Age')},
{field: 'phone', title: __('Phone'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'rel_wx', title: __('Rel_wx'), operate: 'LIKE'},