|
@@ -61,15 +61,15 @@
|
|
|
<button class="layui-btn" id="customer_add"><i
|
|
|
class="layui-icon layui-icon-add-circle"></i>添加
|
|
|
</button>
|
|
|
- <button class="layui-nav">
|
|
|
+ <!--<button class="layui-nav">
|
|
|
<div class="layui-nav-item">
|
|
|
<a href="javascript:;" style="color:#fff;">导入</a>
|
|
|
- <dl class="layui-nav-child"> <!-- 二级菜单 -->
|
|
|
+ <dl class="layui-nav-child">
|
|
|
<dd><a href="#" id="btn_import">执行导入</a></dd>
|
|
|
<dd><a href="#" id="btn_download">下载模板</a></dd>
|
|
|
</dl>
|
|
|
</div>
|
|
|
- </button>
|
|
|
+ </button>-->
|
|
|
</div>
|
|
|
<form class="layui-form" lay-filter="query-form-element1">
|
|
|
<div class="seach_items">
|
|
@@ -124,15 +124,15 @@
|
|
|
|
|
|
table.render({
|
|
|
elem: '#customer_datagrid'
|
|
|
- , url: '/new_customer/customer/'
|
|
|
+ , url: '/customer/'
|
|
|
, cols: [[
|
|
|
{field: 'name', title: '姓名', width: 200}
|
|
|
- , {field: 'gender', title: "性别", width: 70}
|
|
|
+ , {field: 'gender_text', title: "性别", width: 70}
|
|
|
, {field: 'tel', title: '电话', width: 150}
|
|
|
- , {field: 'area', title: '小区', width: 200}
|
|
|
+ , {field: 'village', title: '小区', width: 200}
|
|
|
, {field: 'address', title: '地址', width: 200}
|
|
|
- , {field: 'origin_text', title: '来源', width: 100}
|
|
|
- , {field: 'subject', title: '项目', width: 200}
|
|
|
+ , {field: 'source', title: '来源', width: 100}
|
|
|
+ , {field: 'project', title: '项目', width: 200}
|
|
|
, {field: 'notes', title: '备注', width: 200}
|
|
|
, {field: 'report_status_text', title: '报备状态', width: 200}
|
|
|
, {field: 'check_user', title: '审核人', width: 100}
|
|
@@ -170,7 +170,7 @@
|
|
|
layer.confirm('确定要删除吗?', function (index) {
|
|
|
layer.close(index);
|
|
|
admin.req({
|
|
|
- url: '/tenant/customer/' + data.id + '/'
|
|
|
+ url: '/customer/' + data.id + '/'
|
|
|
, type: 'delete'
|
|
|
, done: function (res) {
|
|
|
table.reload('customer_datagrid', {});
|
|
@@ -183,7 +183,7 @@
|
|
|
type: 2,
|
|
|
title: '修改',
|
|
|
shadeClose: false,
|
|
|
- area: ['600px', '600px'],
|
|
|
+ area: ['50%', '80%'],
|
|
|
btn: ['保存', '取消'],
|
|
|
yes: function (index, dom) {
|
|
|
layui.onSubmitChild = function (data) {
|
|
@@ -213,7 +213,7 @@
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: '添加',
|
|
|
- area: ['600px', '600px'],
|
|
|
+ area: ['50%', '80%'],
|
|
|
btn: ['保存', '取消'],
|
|
|
yes: function (index, dom) {
|
|
|
layui.onSubmitChild = function (data) {
|