企业后台增加一键发送
This commit is contained in:
@@ -229,10 +229,7 @@ class Firmcustomer extends Backend
|
||||
->paginate($limit);
|
||||
|
||||
foreach ($list as $row) {
|
||||
// $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']);
|
||||
$row->getRelation('firmcustomerorigin')->visible(['name']);
|
||||
}
|
||||
|
||||
@@ -275,10 +272,6 @@ class Firmcustomer extends Backend
|
||||
$row->getRelation('firmstoreprojectstwo')->visible(['name']);
|
||||
$row->visible(['firmcustomerorigin']);
|
||||
$row->getRelation('firmcustomerorigin')->visible(['name']);
|
||||
//$row->visible(['admin']);
|
||||
//$row->getRelation('admin')->visible(['nickname']);
|
||||
$row->admin_id = Db::table('fa_admin')->where('id',$row->admin_id)->value('nickname');
|
||||
$row->responsible_pm = Db::table('fa_admin')->where('id',$row->responsible_pm)->value('nickname');
|
||||
}
|
||||
|
||||
$result = array("total" => $list->total(), "rows" => $list->items(),'mess_id'=>$massId);
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
||||
<input type="hidden" name="row[customer_ids]" value="{$customerIds}">
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('企业')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<input id="c-firm_id" min="0" data-rule="required"
|
||||
data-source="firm/index" class="form-control selectpage"
|
||||
name="row[firm_id]" type="text" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-xs-12 col-sm-2">{:__('Messages_content')}:</label>
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
|
||||
Reference in New Issue
Block a user