From f5855c309000a4edaccdda759420d4a8e2412c44 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期五, 08 四月 2022 13:07:30 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/orderTable.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/static/js/orderTable.js b/src/main/webapp/static/js/orderTable.js
index 3beb1ea..5d4c8b1 100644
--- a/src/main/webapp/static/js/orderTable.js
+++ b/src/main/webapp/static/js/orderTable.js
@@ -1,3 +1,4 @@
+var insTb;
layui.config({
base: baseUrl + "/static/layui/lay/modules/" // 閰嶇疆妯″潡鎵�鍦ㄧ殑鐩綍
}).use(['table','laydate', 'form', 'admin'], function() {
@@ -10,10 +11,10 @@
/****************************************** 宸﹁竟琛� *************************************************/
- var insTb = table.render({
+ insTb = table.render({
elem: '#originTable',
url: baseUrl + '/order/nav/list/auth',
- height: 'full-100',
+ height: 'full-120',
headers: {token: localStorage.getItem('token')},
request: {
pageName: 'curr',
@@ -37,12 +38,11 @@
// '</p>'].join(''),
defaultToolbar: [],
cols: [[
- // {type: 'number', title: '#'},
+ // {type: 'numbers', title: '#'},
{field: 'orderTime', title: '鏃ユ湡'},
- {field: 'orderNo', title: '缂栧彿', align: 'center'}
+ {field: 'orderNo', title: '鍗曟嵁缂栧彿', align: 'center'}
]],
done: function (res, curr, count) {
- console.log(res)
$('#dictTable+.layui-table-view .layui-table-body tbody>tr:first').trigger('click');
}
});
@@ -56,7 +56,7 @@
/* 琛ㄦ牸閲嶇疆 */
form.on('submit(originTbReset)', function (data) {
insTb.reload({where: null});
- insTb2.reload({where: {host_id: null}, page: {curr: 1}});
+ insTb2.reload({where: null, page: {curr: 1}});
return false;
});
@@ -82,7 +82,7 @@
table.on('row(originTable)', function (obj) {
selObj = obj;
obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');
- insTb2.reload({where: {host_id: obj.data.id}, page: {curr: 1}});
+ insTb2.reload({where: {order_id: obj.data.id}, page: {curr: 1}});
});
/* 鏄剧ず琛ㄥ崟寮圭獥 */
--
Gitblit v1.9.1