|
@@ -119,19 +119,14 @@
|
|
|
|
|
|
table.render({
|
|
|
elem: '#customer_datagrid'
|
|
|
- , url: '/agent/'
|
|
|
+ , url: '/agent/agent/'
|
|
|
, cols: [[
|
|
|
{field: 'name', title: '名称', width: 150}
|
|
|
- , {field: 'relation_user', title: "联系人", width: 100}
|
|
|
- , {field: 'tel', title: '联系电话', width: 150}
|
|
|
+ , {field: 'tel', title: '电话', width: 150}
|
|
|
, {field: 'area', title: '区域', width: 200}
|
|
|
, {field: 'address', title: '地址', width: 200}
|
|
|
- , {field: 'bank', title: '开户行', width: 100}
|
|
|
- , {field: 'account', title: '信用代码', width: 200}
|
|
|
- , {field: 'enable_text', title: '是否在用', width: 100}
|
|
|
- , {field: 'notes', title: '备注', width: 200}
|
|
|
- , {field: 'create_user', title: '创建人', width: 100}
|
|
|
- , {field: 'create_time', title: '创建时间', width: 150}
|
|
|
+ , {field: 'create_user', title: '添加人', width: 100}
|
|
|
+ , {field: 'create_time', title: '添加时间', width: 150}
|
|
|
, {width: 150, align: 'center', fixed: 'right', toolbar: '#customer-operate-bar'}
|
|
|
]]
|
|
|
, page: true
|
|
@@ -182,7 +177,7 @@
|
|
|
layer.confirm('确定要删除吗?', function (index) {
|
|
|
layer.close(index);
|
|
|
admin.req({
|
|
|
- url: '/tenant/customer/' + data.id + '/'
|
|
|
+ url: '/agent/agent/' + data.id + '/'
|
|
|
, type: 'delete'
|
|
|
, done: function (res) {
|
|
|
table.reload('customer_datagrid', {});
|
|
@@ -195,7 +190,7 @@
|
|
|
type: 2,
|
|
|
title: '修改',
|
|
|
shadeClose: false,
|
|
|
- area: ['45%', '65%'],
|
|
|
+ area: ['40%', '50%'],
|
|
|
btn: ['保存', '取消'],
|
|
|
yes: function (index, dom) {
|
|
|
layui.onSubmitChild = function (data) {
|
|
@@ -225,7 +220,7 @@
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
title: '添加',
|
|
|
- area: ['45%', '65%'],
|
|
|
+ area: ['40%', '50%'],
|
|
|
btn: ['保存', '取消'],
|
|
|
yes: function (index, dom) {
|
|
|
layui.onSubmitChild = function (data) {
|