客户管理,个人资料页面优化
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<div class="panel panel-default panel-intro">
|
<div class="panel panel-default panel-intro">
|
||||||
|
|
||||||
<div class="panel-heading">
|
<!-- <div class="panel-heading">-->
|
||||||
{:build_heading(null,FALSE)}
|
<!-- {:build_heading(null,FALSE)}-->
|
||||||
<ul class="nav nav-tabs" data-field="status">
|
<!-- <ul class="nav nav-tabs" data-field="status">-->
|
||||||
<li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
|
<!-- <li class="{:$Think.get.status === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>-->
|
||||||
{foreach name="statusList" item="vo"}
|
<!-- {foreach name="statusList" item="vo"}-->
|
||||||
<li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
|
<!-- <li class="{:$Think.get.status === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>-->
|
||||||
{/foreach}
|
<!-- {/foreach}-->
|
||||||
</ul>
|
<!-- </ul>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
|
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@@ -19,23 +19,23 @@
|
|||||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
|
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
|
||||||
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('firmcustomer/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
|
<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('firmcustomer/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
|
||||||
<!-- <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('firmcustomer/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
|
<!-- <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('firmcustomer/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>-->
|
||||||
<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('firmcustomer/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
|
<!-- <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('firmcustomer/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
|
||||||
<!-- <a href="firmtags/add" class="btn btn-success btn-dialog" title="{:__('添加标签')}" ><i class="fa fa-plus"></i> {:__('添加标签')}</a>-->
|
<!-- <a href="firmtags/add" class="btn btn-success btn-dialog" title="{:__('添加标签')}" ><i class="fa fa-plus"></i> {:__('添加标签')}</a>-->
|
||||||
|
|
||||||
|
|
||||||
<div class="dropdown btn-group {:$auth->check('firmcustomer/multi')?'':'hide'}">
|
<!-- <div class="dropdown btn-group {:$auth->check('firmcustomer/multi')?'':'hide'}">-->
|
||||||
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
|
<!-- <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>-->
|
||||||
<ul class="dropdown-menu text-left" role="menu">
|
<!-- <ul class="dropdown-menu text-left" role="menu">-->
|
||||||
{foreach name="statusList" item="vo"}
|
<!-- {foreach name="statusList" item="vo"}-->
|
||||||
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key}">{:__('Set status to ' . $key)}</a></li>
|
<!-- <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:" data-params="status={$key}">{:__('Set status to ' . $key)}</a></li>-->
|
||||||
{/foreach}
|
<!-- {/foreach}-->
|
||||||
</ul>
|
<!-- </ul>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||||
data-operate-edit="{:$auth->check('firmcustomer/edit')}"
|
data-operate-edit=""
|
||||||
data-operate-del="{:$auth->check('firmcustomer/del')}"
|
data-operate-del="{:$auth->check('firmcustomer/del')}"
|
||||||
width="100%">
|
width="100%">
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="row animated fadeInRight">
|
<div class="row animated fadeInRight">
|
||||||
<div class="col-md-4">
|
<div class="col-md-4" style="width: 100%!important;">
|
||||||
<div class="box box-primary" >
|
<div class="box box-primary" >
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
{:__('Profile')}
|
{:__('Profile')}
|
||||||
@@ -62,18 +62,18 @@
|
|||||||
<label for="username" class="control-label">{:__('Username')}:</label>
|
<label for="username" class="control-label">{:__('Username')}:</label>
|
||||||
<input type="text" class="form-control" id="username" name="row[username]" value="{$admin.username|htmlentities}" disabled/>
|
<input type="text" class="form-control" id="username" name="row[username]" value="{$admin.username|htmlentities}" disabled/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<!-- <div class="form-group">-->
|
||||||
<label for="mobile" class="control-label">{:__('Mobile')}:</label>
|
<!-- <label for="mobile" class="control-label">{:__('Mobile')}:</label>-->
|
||||||
<input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$admin.mobile|htmlentities}" disabled/>
|
<!-- <input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$admin.mobile|htmlentities}" disabled/>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="form-group">
|
<!-- <div class="form-group">-->
|
||||||
<label for="email" class="control-label">{:__('Email')}:</label>
|
<!-- <label for="email" class="control-label">{:__('Email')}:</label>-->
|
||||||
<input type="text" class="form-control" id="email" name="row[email]" value="{$admin.email|htmlentities}" data-rule="required;email"/>
|
<!-- <input type="text" class="form-control" id="email" name="row[email]" value="{$admin.email|htmlentities}" data-rule="required;email"/>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="form-group">
|
<!-- <div class="form-group">-->
|
||||||
<label for="nickname" class="control-label">{:__('Nickname')}:</label>
|
<!-- <label for="nickname" class="control-label">{:__('Nickname')}:</label>-->
|
||||||
<input type="text" class="form-control" id="nickname" name="row[nickname]" value="{$admin.nickname|htmlentities}" data-rule="required"/>
|
<!-- <input type="text" class="form-control" id="nickname" name="row[nickname]" value="{$admin.nickname|htmlentities}" data-rule="required"/>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="password" class="control-label">{:__('Password')}:</label>
|
<label for="password" class="control-label">{:__('Password')}:</label>
|
||||||
<input type="password" class="form-control" id="password" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
|
<input type="password" class="form-control" id="password" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
|
||||||
@@ -108,30 +108,30 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<!-- <div class="col-md-8">-->
|
||||||
<div class="panel panel-default panel-intro panel-nav">
|
<!-- <div class="panel panel-default panel-intro panel-nav">-->
|
||||||
<div class="panel-heading">
|
<!-- <div class="panel-heading">-->
|
||||||
<ul class="nav nav-tabs">
|
<!-- <ul class="nav nav-tabs">-->
|
||||||
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> {:__('Admin log')}</a></li>
|
<!-- <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> {:__('Admin log')}</a></li>-->
|
||||||
</ul>
|
<!-- </ul>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<div class="panel-body">
|
<!-- <div class="panel-body">-->
|
||||||
<div id="myTabContent" class="tab-content">
|
<!-- <div id="myTabContent" class="tab-content">-->
|
||||||
<div class="tab-pane fade active in" id="one">
|
<!-- <div class="tab-pane fade active in" id="one">-->
|
||||||
<div class="widget-body no-padding">
|
<!-- <div class="widget-body no-padding">-->
|
||||||
<div id="toolbar" class="toolbar">
|
<!-- <div id="toolbar" class="toolbar">-->
|
||||||
{:build_toolbar('refresh')}
|
<!-- {:build_toolbar('refresh')}-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
|
<!-- <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">-->
|
||||||
|
|
||||||
</table>
|
<!-- </table>-->
|
||||||
|
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
|
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
|
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,24 +24,25 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||||||
sortName: 'id',
|
sortName: 'id',
|
||||||
fixedColumns: true,
|
fixedColumns: true,
|
||||||
fixedRightNumber: 1,
|
fixedRightNumber: 1,
|
||||||
|
searchFormVisible: true,
|
||||||
columns: [
|
columns: [
|
||||||
[
|
[
|
||||||
{checkbox: true},
|
{checkbox: true},
|
||||||
{field: 'id', title: __('Id')},
|
{field: 'id', title: __('Id'), operate: false},
|
||||||
{field: 'name', title: __('Customer_name'), operate: 'LIKE'},
|
{field: 'name', title: __('Customer_name'), operate: 'LIKE'},
|
||||||
{field: 'age', title: __('Age')},
|
{field: 'age', title: __('Age'), operate: false},
|
||||||
{field: 'phone', title: __('Phone'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
{field: 'phone', title: __('Phone'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||||
{field: 'rel_wx', title: __('Rel_wx'), operate: 'LIKE'},
|
{field: 'rel_wx', title: __('Rel_wx'), operate: 'LIKE'},
|
||||||
{field: 'rel_group', title: __('Rel_group'), operate: 'LIKE'},
|
{field: 'rel_group', title: __('Rel_group'), operate: 'LIKE'},
|
||||||
{field: 'firmtags_ids', title: __('Firmtags_ids'), operate: 'LIKE'},
|
{field: 'firmtags_ids', title: __('Firmtags_ids'), operate: 'LIKE'},
|
||||||
{field: 'headimage', title: __('Headimage'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
|
{field: 'headimage', title: __('Headimage'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
|
||||||
{field: 'remark', title: __('Remark'), operate: 'LIKE'},
|
{field: 'remark', title: __('Remark'), operate: false},
|
||||||
{field: 'responsible_pm', title: __('Responsible_pm'), operate: 'LIKE'},
|
{field: 'responsible_pm', title: __('Responsible_pm'), operate: false},
|
||||||
{field: 'status', title: __('Status'), searchList: {"yes":__('Status yes'),"no":__('Status no')}, formatter: Table.api.formatter.status},
|
{field: 'status', title: __('Status'), searchList: {"yes":__('Status yes'),"no":__('Status no')}, formatter: Table.api.formatter.status, operate: false},
|
||||||
{field: 'firmstoreprojectstwo.name', title: __('Firmstoreprojectstwo.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
{field: 'firmstoreprojectstwo.name', title: __('Firmstoreprojectstwo.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||||
{field: 'firmcustomerorigin.name', title: __('Firmcustomerorigin.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
{field: 'firmcustomerorigin.name', title: __('Firmcustomerorigin.name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
||||||
{field: 'admin_id', title: __('责任人'), operate: 'LIKE'},
|
{field: 'admin_id', title: __('责任人'), operate: false},
|
||||||
{field: 'create_time', title: __('Create_time'), operate:'RANGE', addclass:'datetimerange', autocomplete:false},
|
{field: 'create_time', title: __('Create_time'), operate:false, addclass:'datetimerange', autocomplete:false},
|
||||||
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,
|
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate,
|
||||||
|
|
||||||
buttons: [
|
buttons: [
|
||||||
@@ -90,6 +91,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'name',
|
||||||
|
icon: 'fa fa-pencil',
|
||||||
|
text: __('编辑客户'),
|
||||||
|
title: __('Edit'),
|
||||||
|
extend: 'data-toggle="tooltip" data-container="body"',
|
||||||
|
classname: 'btn btn-xs btn-warning btn-editone'
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// name: 'selectSendTime',
|
// name: 'selectSendTime',
|
||||||
// text: __('查看发送时间'),
|
// text: __('查看发送时间'),
|
||||||
|
|||||||
Reference in New Issue
Block a user