Commit d29a4e10 authored by sugar's avatar sugar

股权

parent 030a0ab9
......@@ -279,6 +279,7 @@ class Users extends Backend
$info['equity_code'] .= '+'.$params['equity_code'];
$equity_code = $info['equity_code'];
}
$params['signtime'] = strtotime($params['signtime']);
if($equity_code){
$this->model->where(['id' => $row['id']])->update(['equity_code' =>$equity_code,'signtime' =>$params['signtime']]);
}
......
......@@ -23,7 +23,7 @@
<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-Signtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signtime]" type="text" value="{:$row.signtime?datetime($row.signtime):''}">
<input id="c-Signtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signtime]" type="text" value="">
</div>
</div>
<div class="form-group layer-footer">
......
......@@ -54,7 +54,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{ field: 'brand', title: __('Brand'), operate: false, visible: false},
{ field: 'equity', title: __('Equity'), operate: false,sortable:true},
{ field: 'equity_code', title: __('Equity_code'), operate: 'LIKE' },
{ field: 'signtime', title: __('Signtime')},
{ field: 'signtime', title: __('Signtime'),operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{ field: 'user_type', title: __('User_type'), searchList: { "wechat": __('User_type wechat'), "app": __('User_type app') }, formatter: Table.api.formatter.normal },
{ field: 'status', title: __('Status'),visible: false, searchList: { "1": __('Status 1'), "2": __('Status 2') }, formatter: Table.api.formatter.status},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment