From 8acb28f8ef070a90be79f4d7ef09bcefadb6f27f Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 23 Apr 2021 15:04:20 +0800
Subject: [PATCH] 20210423
---
src/main/resources/templates/febs/views/modules/contract/hold-list.html | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/contract/hold-list.html b/src/main/resources/templates/febs/views/modules/contract/hold-list.html
index 72cd8f6..78e61b0 100644
--- a/src/main/resources/templates/febs/views/modules/contract/hold-list.html
+++ b/src/main/resources/templates/febs/views/modules/contract/hold-list.html
@@ -60,7 +60,7 @@
</div>
</div>
</form>
- <table lay-filter="userTable" lay-data="{id: 'userTable'}"></table>
+ <table lay-filter="userTable-hold" lay-data="{id: 'userTable-hold'}"></table>
</div>
</div>
</div>
@@ -94,7 +94,7 @@
<script data-th-inline="none" type="text/javascript">
// 引入组件并初始化
- layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () {
+ layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect', 'enhance'], function () {
var $ = layui.jquery,
laydate = layui.laydate,
febs = layui.febs,
@@ -132,7 +132,7 @@
function initTable() {
tableIns = febs.table.init({
elem: $view.find('table'),
- id: 'userTable',
+ id: 'userTable-hold',
url: ctx + 'order/getHoldList',
cols: [[
{type: 'checkbox'},
@@ -177,7 +177,7 @@
setTimeout(function() {
var flag = true;
while(flag) {
- if (table.cache['userTable']) {
+ if (table.cache['userTable-hold']) {
setInterval(function () {
$.ajax({
url : ctx + 'order/getHoldList',
@@ -187,7 +187,7 @@
success : function(data) {
if (data.data.rows.length > 0) {
for(var i = 0, length = data.data.rows.length; i < length; i++) {
- table.renderSpecRow('userTable', i, data.data.rows[i]);
+ table.renderSpecRow('userTable-hold', i, data.data.rows[i]);
}
}
}
--
Gitblit v1.9.1