feat(admin): 新增师傅大厅筛选功能及表格布局组件

- 新增服务品类和服务类型筛选选项
- 新增订单距离筛选功能
- 新增admin-table-layout组件实现表格操作列固定
- 重构后台表格列布局,优化显示效果
- 新增位置相关工具函数及测试用例
- 升级版本号至1.0.89
这个提交包含在:
2026-11-19 14:39:28 +08:00
父节点 a608ef6506
当前提交 c37739656c
共有 50 个文件被更改,包括 572 次插入 和 405 次删除

查看文件

@@ -19,6 +19,28 @@
<!-- 优匠优服 橙白企业级品牌视觉引擎 -->
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
<style>
/* Keep actions visible inside the table's own horizontal scroll area. */
.bootstrap-table .fixed-table-body table { border-collapse: separate; border-spacing: 0; }
.bootstrap-table .fixed-table-body th.yjyf-table-operate,
.bootstrap-table .fixed-table-body td.yjyf-table-operate,
.bootstrap-table .fixed-table-header th.yjyf-table-operate {
position: sticky;
right: 0;
z-index: 2;
background: #fff;
white-space: nowrap;
box-shadow: -3px 0 6px rgba(0, 0, 0, .08);
}
.bootstrap-table .fixed-table-body th.yjyf-table-operate,
.bootstrap-table .fixed-table-header th.yjyf-table-operate { z-index: 3; background: #f7f8fa; }
.bootstrap-table .fixed-table-body .table-striped > tbody > tr:nth-of-type(odd) > td.yjyf-table-operate { background: #f9f9f9; }
.bootstrap-table .fixed-table-body .table-hover > tbody > tr:hover > td.yjyf-table-operate { background: #f5f5f5; }
/* Search controls wrap independently of the table's horizontal scrolling. */
.bootstrap-table .fixed-table-toolbar { height: auto; }
.bootstrap-table .commonsearch-table { max-width: 100%; }
</style>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="__CDN__/assets/js/html5shiv.js"></script>
@@ -28,4 +50,5 @@
var require = {
config: {$config|json_encode}
};
require.config.site.version += "-admin-list-20261119";
</script>

查看文件

@@ -541,34 +541,6 @@ class Master extends Base
}
$type = $this->request->param('type', 'all'); // all / fixed 一口价 / quote 师傅报价 / custom 用户自主定价
$buildBase = function () use ($catIds) {
$q = Db::name('order')->where('master_id', 0)
->where('status', 'in', [OrderStatus::PENDING_ACCEPT, OrderStatus::QUOTING]);
if (!empty($catIds)) {
$q->where('cat_id', 'in', $catIds);
}
return $q;
};
$build = function () use ($buildBase, $type) {
$q = $buildBase();
if ($type === 'fixed') {
$q->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'fixed');
} elseif ($type === 'quote') {
$q->where('status', 'in', [OrderStatus::PENDING_ACCEPT, OrderStatus::QUOTING])->where('price_type', 'quote');
} elseif ($type === 'custom') {
$q->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'custom');
}
return $q;
};
$counts = [
'all' => (int)$buildBase()->count(),
'fixed' => (int)$buildBase()->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'fixed')->count(),
'quote' => (int)$buildBase()->where('status', 'in', [OrderStatus::PENDING_ACCEPT, OrderStatus::QUOTING])->where('price_type', 'quote')->count(),
'custom' => (int)$buildBase()->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'custom')->count(),
];
$masterRecord = $this->masterInfo();
$rawLat = $this->request->param('lat', '');
$rawLng = $this->request->param('lng', '');
@@ -603,6 +575,58 @@ class Master extends Base
$validCoordCond = $this->getValidOrderCoordSql();
$distFormula = $this->getDistanceSqlFormula();
// 选项来自真实启用字典;分类始终受师傅技能范围约束。
$categoryQuery = Db::name('service_cat')->field('id,name')->where('status', 'normal');
if (!empty($catIds)) {
$categoryQuery->where('id', 'in', $catIds);
}
$filterCategories = $categoryQuery->order('weigh desc,id asc')->select();
$filterTypes = Db::name('service_type')->field('code,name')->where('status', 'normal')->order('weigh desc,id asc')->select();
$categoryId = max(0, (int)$this->request->param('cat_id', 0));
$serviceType = trim((string)$this->request->param('service_type', ''));
$distanceRaw = $this->request->param('distance_km', '');
$distanceKm = $distanceRaw === '' ? 0 : (float)$distanceRaw;
$categoryAllowed = array_map('intval', array_column($filterCategories, 'id'));
$typeAllowed = array_column($filterTypes, 'code');
if ($categoryId && !in_array($categoryId, $categoryAllowed, true)) $this->error('所选服务品类不可用');
if ($serviceType !== '' && (!preg_match('/^[a-z0-9_]+$/', $serviceType) || !in_array($serviceType, $typeAllowed, true))) $this->error('所选服务类型不可用');
if ($distanceRaw !== '' && (!is_numeric($distanceRaw) || $distanceKm <= 0 || $distanceKm > 200)) $this->error('订单距离无效');
if ($distanceKm > 0 && !$hasLocation) $this->error('请先选择接单位置');
$distanceCondition = '';
if ($distanceKm > 0) {
$distanceExpression = str_replace([':h_lat1', ':h_lng1', ':h_lat2'], [(string)$userLat, (string)$userLng, (string)$userLat], $distFormula);
$distanceCondition = $validCoordCond . ' AND ' . $distanceExpression . ' <= ' . (string)$distanceKm;
}
$buildBase = function () use ($catIds, $categoryId, $serviceType, $distanceCondition) {
$q = Db::name('order')->where('master_id', 0)
->where('status', 'in', [OrderStatus::PENDING_ACCEPT, OrderStatus::QUOTING]);
if (!empty($catIds)) $q->where('cat_id', 'in', $catIds);
if ($categoryId) $q->where('cat_id', $categoryId);
if ($serviceType !== '') {
// 订单快照记录每个商品的真实工项;历史订单缺少快照时不猜测。
$q->whereRaw("CASE WHEN JSON_VALID(goods_images) THEN JSON_CONTAINS(JSON_EXTRACT(goods_images, '$.goods_list[*].service_type'), JSON_QUOTE('" . $serviceType . "')) = 1 ELSE 0 END");
}
if ($distanceCondition !== '') $q->whereRaw($distanceCondition);
return $q;
};
$build = function () use ($buildBase, $type) {
$q = $buildBase();
if ($type === 'fixed') {
$q->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'fixed');
} elseif ($type === 'quote') {
$q->where('status', 'in', [OrderStatus::PENDING_ACCEPT, OrderStatus::QUOTING])->where('price_type', 'quote');
} elseif ($type === 'custom') {
$q->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'custom');
}
return $q;
};
$counts = [
'all' => (int)$buildBase()->count(),
'fixed' => (int)$buildBase()->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'fixed')->count(),
'quote' => (int)$buildBase()->where('status', 'in', [OrderStatus::PENDING_ACCEPT, OrderStatus::QUOTING])->where('price_type', 'quote')->count(),
'custom' => (int)$buildBase()->where('status', OrderStatus::PENDING_ACCEPT)->where('price_type', 'custom')->count(),
];
// 真实定位场景下的当前所在城市识别:优先使用实时传入城市;若未传入,根据 35km 内最近已知坐标订单推断,绝不拿跨城注册地误判
$locationCity = '';
if ($hasLocation) {
@@ -741,9 +765,14 @@ class Master extends Base
$goodsName = '';
$addonServices = '';
$fallbackImg = '';
$serviceTypeNames = [];
if (!empty($row['goods_images'])) {
$parsed = json_decode((string)$row['goods_images'], true);
if (is_array($parsed) && !empty($parsed['goods_list']) && is_array($parsed['goods_list'])) {
foreach ($parsed['goods_list'] as $goodsItem) {
$itemType = is_array($goodsItem) ? trim((string)($goodsItem['service_type_name'] ?? '')) : '';
if ($itemType !== '') $serviceTypeNames[] = $itemType;
}
$firstItem = $parsed['goods_list'][0];
if (is_array($firstItem)) {
$goodsName = isset($firstItem['goods_name']) && is_string($firstItem['goods_name'])
@@ -773,7 +802,7 @@ class Master extends Base
$row['goods_name'] = $goodsName ?: $row['service_name'];
$row['addon_services'] = rtrim(str_replace(';', ' · ', (string)$addonServices), ' ·');
$row['goods_num'] = max(1, (int)($row['goods_num'] ?? 1));
$row['service_type_tag'] = (strpos((string)$row['service_name'], '修') !== false || strpos((string)$row['service_name'], '检') !== false) ? '维修' : '安装';
$row['service_type_tag'] = implode(' / ', array_unique($serviceTypeNames));
$img = !empty($row['service_image']) ? $row['service_image'] : $fallbackImg;
if (empty($img) && !empty($row['service_id']) && !empty($serviceImgMap[(int)$row['service_id']])) {
@@ -821,6 +850,7 @@ class Master extends Base
'location_source' => $reqHasValidCoord ? 'realtime' : ($dbHasValidCoord ? 'saved' : 'none'),
'location_city' => $locationCity,
'serve_radius' => $serveRadius,
'filter_options' => ['categories' => $filterCategories, 'service_types' => $filterTypes],
]);
}

查看文件

@@ -4,7 +4,7 @@ return array (
'name' => '优匠优服',
'beian' => '',
'cdnurl' => '',
'version' => '1.0.88',
'version' => '1.0.89',
'timezone' => 'Asia/Shanghai',
'forbiddenip' => '',
'languages' =>

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template', 'cookie'], function ($, undefined, Backend, Table, Form, Template, undefined) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form', 'template', 'cookie'], function ($, undefined, Backend, Table, TableLayout, Form, Template, undefined) {
$.cookie.prototype.defaults = {path: Config.moduleurl};
var Controller = {

查看文件

@@ -0,0 +1,33 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery', 'table'], function ($) {
var configure = factory();
var original = $.fn.bootstrapTable;
var wrapped = function (options) {
if (options && typeof options === 'object') configure(options);
return original.apply(this, arguments);
};
$.extend(wrapped, original);
$.fn.bootstrapTable = wrapped;
return configure;
});
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
}
}(function () {
return function (options) {
if (!options || !Array.isArray(options.columns)) return options;
options.columns.forEach(function (columns) {
if (!Array.isArray(columns)) return;
columns.forEach(function (column) {
if (column.field !== 'operate') return;
var classes = (column.class || '').split(/\s+/).filter(Boolean);
if (classes.indexOf('yjyf-table-operate') === -1) classes.push('yjyf-table-operate');
column.class = classes.join(' ');
// Keep original cells and their handlers instead of cloning the table.
options.fixedColumns = false;
});
});
return options;
};
}));

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ($, undefined, Backend, Table, Form, undefined) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form', 'jstree'], function ($, undefined, Backend, Table, TableLayout, Form, undefined) {
//读取选中的条目
$.jstree.core.prototype.get_all_checked = function (full) {
var obj = this.get_selected(), i, j;

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function ($, undefined, Backend, Table, Form, Template) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form', 'template'], function ($, undefined, Backend, Table, TableLayout, Form, Template) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -26,20 +26,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '50px'},
{field: 'theme', title: '卡片主题', searchList: {"promo":"活动促销","brand":"平台实力","service":"服务主题"}, formatter: Table.api.formatter.label, custom: {promo: 'warning', brand: 'danger', service: 'primary'}},
{field: 'badge', title: __('Badge'), operate: 'LIKE'},
{
field: 'title',
title: '主标题 / 副标题',
operate: 'LIKE',
align: 'left',
formatter: function (v, row) {
var html = '<div><strong>' + Fast.api.escape(v || '-') + '</strong></div>';
if (row.subtitle) {
html += '<div class="text-muted" style="font-size:11.5px;">' + Fast.api.escape(row.subtitle) + '</div>';
}
return html;
}
},
{field: 'subtitle', title: __('Subtitle'), operate: 'LIKE', visible: false},
{field: 'title', title: '主标题', operate: 'LIKE', align: 'left'},
{field: 'subtitle', title: __('Subtitle'), operate: 'LIKE'},
{field: 'action_text', title: '按钮文案', operate: 'LIKE', formatter: function (v) { return v ? Fast.api.escape(v) : '<span class="text-muted">-</span>'; }},
{field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: function (v, row, index) {
return v ? Table.api.formatter.image.call(this, v, row, index) : '<span class="text-muted">-</span>';

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
function syncCouponTypeInputs() {
var $type = $('#c-type');
@@ -56,20 +56,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{field: 'min_amount', title: '使用门槛', operate: 'BETWEEN', formatter: function (v) {
return Number(v) > 0 ? ('满 ¥' + Number(v).toFixed(2)) : '<span class="text-success">无门槛</span>';
}},
{field: 'total', title: '领取 / 总量', operate: false, formatter: function (v, row) {
var claimed = row.real_claimed !== undefined ? row.real_claimed : (row.received || 0);
return '<strong>' + claimed + '</strong> / ' + (v || 0);
}},
{field: 'real_claimed', title: '已领取', operate: false},
{field: 'total', title: '发行总量', operate: false},
{field: 'used_count', title: '已核销', operate: false, formatter: function (v) {
return Number(v) > 0 ? '<span class="label label-success">' + v + ' 张</span>' : '<span class="text-muted">0 张</span>';
}},
{field: 'end_time', title: '有效期限', operate: false, formatter: function (v, row) {
var now = Math.floor(Date.now() / 1000);
var s = row.start_time ? Table.api.formatter.datetime.call({datetimeFormat: 'YYYY-MM-DD'}, row.start_time) : '-';
var e = v ? Table.api.formatter.datetime.call({datetimeFormat: 'YYYY-MM-DD'}, v) : '-';
var expired = v && Number(v) < now ? ' <span class="label label-default">已到期</span>' : '';
return '<small>' + s + ' ~ ' + e + '</small>' + expired;
}},
{field: 'start_time', title: '开始时间', operate: false, formatter: Table.api.formatter.datetime, datetimeFormat: 'YYYY-MM-DD'},
{field: 'end_time', title: '结束时间', operate: false, formatter: Table.api.formatter.datetime, datetimeFormat: 'YYYY-MM-DD'},
{field: 'status', title: __('Status'), searchList: {"normal":__('Normal'),"hidden":__('Hidden')}, formatter: Table.api.formatter.status},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
buttons: [

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var ORDER_MODE_MAP = {
all: '不限订单类型',
@@ -258,19 +258,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: '编号', width: '68px', sortable: true, operate: false},
{
field: 'name',
title: '规则名称',
align: 'left',
operate: 'LIKE',
formatter: function (v, row) {
var html = '<strong>' + Fast.api.escape(v || '') + '</strong>';
if (row.remark) {
html += '<div class="text-muted" style="font-size:11.5px;">' + Fast.api.escape(row.remark) + '</div>';
}
return html;
}
},
{field: 'name', title: '规则名称', align: 'left', operate: 'LIKE'},
{field: 'remark', title: '备注', operate: false, visible: false},
{
field: 'conditions_preview',
title: '适用条件',

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefined, Backend, Form, Table) {
define(['jquery', 'bootstrap', 'backend', 'form', 'table', 'backend/admin-table-layout'], function ($, undefined, Backend, Form, Table) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'upload'], function ($, undefined, Backend, Table, Form, Upload) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form', 'upload'], function ($, undefined, Backend, Table, TableLayout, Form, Upload) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -24,48 +24,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '55px'},
{field: 'invoice_sn', title: '申请单号', operate: 'LIKE'},
{
field: 'title',
title: '发票抬头 / 税号',
operate: 'LIKE',
align: 'left',
formatter: function (v, row) {
var html = '<div><strong>' + Fast.api.escape(v || '-') + '</strong></div>';
if (row.tax_no) {
html += '<div class="text-muted" style="font-size:11.5px;font-family:monospace;">' + Fast.api.escape(row.tax_no) + '</div>';
}
return html;
}
},
{field: 'title', title: '发票抬头', operate: 'LIKE', align: 'left'},
{field: 'tax_no', title: '税号', operate: 'LIKE', visible: false},
{field: 'title_type', title: '抬头类型', searchList: {"personal":__('Personal'),"enterprise":__('Enterprise')}, visible: false},
{field: 'type', title: '发票类型', searchList: {"normal":__('Ordinary'),"special":__('Special')}, formatter: Table.api.formatter.label, custom: {normal: 'info', special: 'warning'}},
{field: 'amount', title: '开票金额', operate: 'BETWEEN', formatter: function (v, row) {
var ordTxt = Number(row.order_count) > 0 ? (row.order_count + ' 笔工单') : '按额度';
return '<strong class="text-danger">¥' + Number(v || 0).toFixed(2) + '</strong><div class="text-muted" style="font-size:11px;">' + ordTxt + '</div>';
}},
{
field: 'merchant.name',
title: '申请主体 / 邮箱',
operate: 'LIKE',
align: 'left',
formatter: function (value, row) {
var nick = (row.user && row.user.nickname) ? Fast.api.escape(row.user.nickname) : '';
var main = value ? ('<strong>' + Fast.api.escape(value) + '</strong>') : (nick || '<span class="text-muted">个人用户</span>');
var sub = row.email ? Fast.api.escape(row.email) : (nick && value ? nick : '-');
return '<div>' + main + '</div><div class="text-muted" style="font-size:11.5px;">' + sub + '</div>';
}
},
{field: 'user.nickname', title: '申请用户', operate: 'LIKE', visible: false},
{field: 'amount', title: '开票金额', operate: 'BETWEEN'},
{field: 'merchant.name', title: '申请企业', operate: 'LIKE', align: 'left'},
{field: 'user.nickname', title: '申请用户', operate: 'LIKE'},
{field: 'email', title: '接收邮箱', operate: 'LIKE', visible: false},
{field: 'status', title: '处理状态', searchList: {"wait":__('Wait'),"issued":__('Issued'),"reject":__('Reject'),"cancel":__('Cancel')}, formatter: Table.api.formatter.status, custom: {wait: 'warning', issued: 'success', reject: 'danger', cancel: 'gray'}},
{field: 'invoice_no', title: '发票号码 / 附件', operate: 'LIKE', formatter: function (v, row) {
var html = v ? ('<code>' + Fast.api.escape(v) + '</code>') : '<span class="text-muted">-</span>';
if (row.invoice_file) {
html += ' <a href="' + Fast.api.cdnurl(row.invoice_file) + '" target="_blank" class="btn btn-xs btn-info"><i class="fa fa-file-pdf-o"></i> 电子票</a>';
}
return html;
}},
{field: 'invoice_no', title: '发票号码', operate: 'LIKE'},
{field: 'invoice_file', title: '电子票', operate: false, formatter: function (v) { return v ? '<a href="' + Fast.api.escape(Fast.api.cdnurl(v)) + '" target="_blank" rel="noopener">查看</a>' : '—'; }},
{field: 'audit_msg', title: '处理说明', operate: 'LIKE', visible: false},
{field: 'createtime', title: '申请时间', operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime, width: '145px'},
{field: 'operate', title: '操作', table: table, events: Table.api.events.operate,

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -38,11 +38,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
}},
{field: 'user.nickname', title: '维护用户', operate: 'LIKE'},
{field: 'email', title: '接收邮箱', operate: 'LIKE', formatter: function (v) { return v ? Fast.api.escape(v) : '-'; }},
{field: 'issued_count', title: '累计已开票', operate: false, formatter: function (v, row) {
var n = Number(v || 0);
if (!n) return '<span class="text-muted">0 笔</span>';
return '<span class="label label-success">' + n + ' 笔</span> <small class="text-danger">¥' + Number(row.issued_amount || 0).toFixed(2) + '</small>';
}},
{field: 'issued_count', title: '已开票数', operate: false},
{field: 'issued_amount', title: '已开票金额', operate: false},
{field: 'updatetime', title: '更新时间', operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime, width: '150px'},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
buttons: [

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -38,15 +38,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '55px'},
{
field: 'realname',
title: '师傅姓名 / 等级',
operate: 'LIKE',
align: 'left',
formatter: function (val, row) {
return '<strong>' + (val || '-') + '</strong> <span class="label label-default">LV.' + (row.level || 1) + '</span>';
}
},
{field: 'realname', title: '师傅姓名', operate: 'LIKE', align: 'left'},
{field: 'level', title: '等级', operate: false},
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
{field: 'city', title: '驻地城市', operate: 'LIKE'},
{
@@ -73,7 +66,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
operate: 'BETWEEN',
sortable: true,
formatter: function (val) {
return '<span style="color:#d97706;font-weight:700;"><i class="fa fa-star"></i> ' + (val || '5.0') + '</span>';
return '<span style="color:#d97706;font-weight:700;"><i class="fa fa-star"></i> ' + (val === null || val === undefined || val === '' ? '—' : val) + '</span>';
}
},
{field: 'order_count', title: '完工单数', sortable: true},

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -32,16 +32,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
{
field: 'master.realname',
title: '申报师傅',
operate: 'LIKE',
formatter: function (v, row) {
var mobile = (row.master && row.master.mobile) ? row.master.mobile : '';
return '<strong>' + Fast.api.escape(v || '-') + '</strong>' + (mobile ? '<div class="text-muted" style="font-size:11px;">' + Fast.api.escape(mobile) + '</div>' : '');
}
},
{field: 'master.mobile', title: '师傅电话', operate: 'LIKE', visible: false},
{field: 'master.realname', title: '申报师傅', operate: 'LIKE'},
{field: 'master.mobile', title: '师傅电话', operate: 'LIKE'},
{
field: 'cert_name',
title: '证书名称',

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -33,27 +33,11 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '55px'},
{
field: 'name',
title: '企业名称 / 信用代码',
operate: 'LIKE',
align: 'left',
formatter: function (val, row) {
return '<div><strong>' + (val || '-') + '</strong></div><div class="text-muted" style="font-size:11.5px;font-family:monospace;">' + (row.license_no || '-') + '</div>';
}
},
{field: 'name', title: '企业名称', operate: 'LIKE', align: 'left'},
{field: 'license_no', title: __('License_no'), operate: 'LIKE', visible: false},
{field: 'legal_person', title: '法人代表', operate: 'LIKE'},
{
field: 'contact',
title: '业务对接人',
operate: 'LIKE',
align: 'left',
formatter: function (val, row) {
return '<div>' + (val || '-') + '</div><div class="text-muted" style="font-size:11.5px;">' + (row.mobile || '') + '</div>';
}
},
{field: 'mobile', title: __('Mobile'), operate: 'LIKE', visible: false},
{field: 'contact', title: '业务对接人', operate: 'LIKE', align: 'left'},
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
{field: 'city', title: '所在城市', operate: 'LIKE'},
{
field: 'settle_type',
@@ -65,14 +49,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
: '<span class="label label-info">预付现结</span>';
}
},
{
field: 'order_count',
title: '发包单数 / 成交额',
operate: false,
formatter: function (val, row) {
return '<strong>' + (val || 0) + ' 单</strong> · <span style="color:#ea580c;font-weight:600;">¥' + (row.total_amount || '0.00') + '</span>';
}
},
{field: 'order_count', title: '发包单数', operate: false},
{field: 'total_amount', title: '成交额', operate: false},
{
field: 'member_count',
title: '协同员工',

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
function bindReceiveTypeToggle() {
$(document).off('change.msg changed.bs.select.msg', '#c-receive_type').on('change.msg changed.bs.select.msg', '#c-receive_type', function () {
@@ -41,16 +41,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '60px'},
{field: 'receive_type', title: '接收端', searchList: {"user":__('User'),"master":__('Master')}, formatter: Table.api.formatter.label, custom: {user: 'info', master: 'warning'}},
{field: 'receiver_name', title: '接收人', operate: false, formatter: function (v, row) {
var mob = row.receiver_mobile ? ' <small class="text-muted">(' + Fast.api.escape(row.receiver_mobile) + ')</small>' : '';
return '<strong>' + Fast.api.escape(v || '-') + '</strong>' + mob;
}},
{field: 'receiver_name', title: '接收人', operate: false},
{field: 'receiver_mobile', title: '接收电话', operate: false},
{field: 'type', title: __('Type'), searchList: {"order":__('Order'),"system":__('System'),"audit":__('Audit'),"remind":__('Remind')}, formatter: Table.api.formatter.label, custom: {order: 'primary', system: 'info', audit: 'warning', remind: 'success'}},
{field: 'order_no', title: '关联工单', operate: false, formatter: function (v) {
return v ? '<code>' + Fast.api.escape(v) + '</code>' : '<span class="text-muted">-</span>';
}},
{field: 'title', title: __('Title'), operate: 'LIKE'},
{field: 'content', title: __('Content'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'content', title: __('Content'), visible: false, operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
{field: 'is_read', title: __('Is_read'), searchList: {"0":"未读","1":"已读"}, formatter: Table.api.formatter.label, custom: {"0": 'warning', "1": 'success'}},
{field: 'createtime', title: '发送时间', operate: 'RANGE', addclass: 'datetimerange', autocomplete: false, formatter: Table.api.formatter.datetime, width: '150px'},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var escapeText = function (value) {
if (value === null || value === undefined || value === '') return '—';

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -25,43 +25,19 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
[
{checkbox: true},
{field: 'id', title: 'ID', sortable: true, operate: false, visible: false},
{field: 'out_trade_no', title: '商户支付单号', align: 'left', operate: 'LIKE', formatter: function (value, row) {
if (!value) return '-';
var sceneMap = {
'order': ['#2563eb', '#eff6ff', '订单支付'],
'quote': ['#0891b2', '#ecfeff', '报价支付'],
'diff': ['#d97706', '#fffbeb', '增项补差'],
'batch': ['#7c3aed', '#f5f3ff', '批次支付'],
'recharge': ['#c2410c', '#fff7ed', '用户充值']
};
var sc = sceneMap[row.scene] || ['#64748b', '#f8fafc', row.scene || ''];
var tag = sc[2] ? '<div style="margin-top:2px;"><span class="label" style="display:inline-block;padding:1px 5px;border-radius:3px;font-size:10.5px;font-weight:500;color:' + sc[0] + ';background:' + sc[1] + ';">' + sc[2] + '</span></div>' : '';
return '<span style="font-family:Menlo,Monaco,Consolas,monospace;font-size:11.5px;font-weight:600;color:#0f172a;">' + value + '</span>' + tag;
}},
{field: 'out_trade_no', title: '商户支付单号', align: 'left', operate: 'LIKE'},
{field: 'order.order_no', title: '关联订单', align: 'left', operate: 'LIKE', formatter: function (value, row) {
if (!value) return '<span class="text-muted">-</span>';
var service = row.order && row.order.service_name ? '<div style="font-size:11px;color:#64748b;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">' + row.order.service_name + '</div>' : '';
return '<a href="' + Fast.api.fixurl('order/detail/ids/' + row.order_id) + '" class="dialogit" data-title="订单详情" style="font-family:Menlo,Monaco,Consolas,monospace;font-size:11.5px;font-weight:600;color:#2563eb;">' + value + '</a>' + service;
return value ? '<a href="' + Fast.api.fixurl('order/detail/ids/' + row.order_id) + '" class="dialogit" data-title="订单详情">' + Fast.api.escape(value) + '</a>' : '—';
}},
{field: 'user.nickname', title: '支付用户', operate: 'LIKE', formatter: function (value, row) {
if (!value && (!row.user || !row.user.username)) return '<span class="text-muted">-</span>';
var name = value || (row.user ? row.user.username : '');
var mobile = row.user && row.user.mobile ? '<div style="font-size:11px;color:#64748b;font-family:monospace;">' + row.user.mobile + '</div>' : '';
return '<strong>' + name + '</strong>' + mobile;
{field: 'user.nickname', title: '支付用户', operate: 'LIKE'},
{field: 'scene', title: '业务场景', operate: '=', searchList: {'order': '订单支付', 'quote': '报价支付', 'diff': '增项补差', 'batch': '批次支付', 'recharge': '用户在线充值'}, formatter: function (value) {
var labels = {'order': '订单支付', 'quote': '报价支付', 'diff': '增项补差', 'batch': '批次支付', 'recharge': '用户在线充值'};
return Fast.api.escape(labels[value] || value || '');
}},
{field: 'scene', title: '业务场景', operate: '=', visible: false, searchList: {'order': '订单支付', 'quote': '报价支付', 'diff': '增项补差', 'batch': '批次支付', 'recharge': '用户在线充值'}},
{field: 'amount', title: '实付金额', operate: false, align: 'right', formatter: function (value) {
return '<span style="font-family:Menlo,Monaco,Consolas,monospace;font-size:13px;font-weight:700;color:#F0710D;">¥' + value + '</span>';
}},
{field: 'refund_amount', title: '已退 / 余款', operate: false, align: 'right', formatter: function (value, row) {
var val = Number(value || 0).toFixed(2);
var left = (Number(row.amount) - Number(value)).toFixed(2);
var html = '<span style="font-family:Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:600;color:' + (val > 0 ? '#dc2626' : '#94a3b8') + ';">¥' + val + '</span>';
if (left > 0 && (row.status === 'paid' || row.status === 'refund_failed')) {
html += '<div style="font-size:11px;color:#16a34a;font-family:monospace;">余 ¥' + left + '</div>';
}
return html;
}},
{field: 'refund_amount', title: '已退款金额', operate: false, align: 'right'},
{field: 'status', title: '流水状态', operate: '=', searchList: {'pending': '待支付', 'paid': '已支付', 'pay_failed': '支付失败', 'refunded': '已退款', 'refunding': '退款处理中', 'refund_failed': '退款失败', 'closed': '已关闭'}, formatter: function (value, row) {
var map = {
'pending': ['#64748b', '#f1f5f9', '待支付'],
@@ -74,11 +50,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
};
var item = map[value] || ['#64748b', '#f1f5f9', value];
var html = '<span class="label" style="display:inline-block;padding:2px 8px;border-radius:12px;font-size:11.5px;font-weight:600;color:' + item[0] + ';background:' + item[1] + ';border:1px solid ' + item[0] + '33;">' + item[2] + '</span>';
if (row.refund_status && row.refund_status !== 'none') {
var rfMap = {'processing': '退款受理中', 'success': '已到账', 'abnormal': '退款异常', 'closed': '退款关闭'};
var rfTxt = rfMap[row.refund_status] || '';
if (rfTxt) html += '<div style="font-size:10.5px;color:#64748b;margin-top:2px;">' + rfTxt + '</div>';
}
return html;
}},
{field: 'refund_status', title: '退款单状态', operate: '=', visible: false, searchList: {'none': '未发起', 'processing': '退款受理中', 'success': '退款成功', 'abnormal': '退款异常', 'closed': '退款已关闭'}},

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
function parseTagArr(val) {
if (!val) return [];

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ($, undefined, Backend, Table, Form, undefined) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form', 'jstree'], function ($, undefined, Backend, Table, TableLayout, Form, undefined) {
//读取选中的条目
$.jstree.core.prototype.get_all_checked = function (full) {
var obj = this.get_selected(), i, j;

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {
@@ -34,16 +34,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
{checkbox: true},
{field: 'index', title: '序号', operate: false, formatter: Table.api.formatter.index, width: '55px'},
{field: 'avatar', title: __('Avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false, width: '65px'},
{
field: 'nickname',
title: '会员昵称 / 账号',
operate: 'LIKE',
align: 'left',
formatter: function (val, row) {
return '<div><strong>' + (val || '-') + '</strong></div><div class="text-muted" style="font-size:11.5px;">' + (row.username || '') + ' (ID:' + row.id + ')</div>';
}
},
{field: 'username', title: __('Username'), operate: 'LIKE', visible: false},
{field: 'nickname', title: '会员昵称', operate: 'LIKE', align: 'left'},
{field: 'username', title: __('Username'), operate: 'LIKE'},
{field: 'id', title: 'ID', operate: false, visible: false},
{field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
{
field: 'role_badges',
@@ -52,7 +45,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
align: 'left',
formatter: function (val) {
if (!Array.isArray(val) || !val.length) {
return '<span class="label label-default">个人业主</span>';
return '—';
}
return val.map(function (b) {
var cls = b.type === 'master' ? 'warning' : (b.type === 'merchant' ? 'primary' : (b.type === 'member' ? 'info' : 'default'));

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefined, Backend, Form, Table) {
define(['jquery', 'bootstrap', 'backend', 'form', 'table', 'backend/admin-table-layout'], function ($, undefined, Backend, Form, Table) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'adminlte'], function ($, undefined, Backend, Table, Form, Adminlte) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form', 'adminlte'], function ($, undefined, Backend, Table, TableLayout, Form, Adminlte) {
var Controller = {
index: function () {

查看文件

@@ -1,4 +1,4 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
define(['jquery', 'bootstrap', 'backend', 'table', 'backend/admin-table-layout', 'form'], function ($, undefined, Backend, Table, TableLayout, Form) {
var Controller = {
index: function () {