From 96d560aa132a9638a45f5f6b44f456ffb6836948 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 08 Jun 2021 10:45:49 +0800
Subject: [PATCH] 搜索数据
---
widgets/searchL/Widget.js | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/widgets/searchL/Widget.js b/widgets/searchL/Widget.js
index 9da4092..a2093b9 100644
--- a/widgets/searchL/Widget.js
+++ b/widgets/searchL/Widget.js
@@ -102,6 +102,10 @@
}
},
createData:function(d){
+ var i = 1;
+ for(var k in d){
+ d[k].tableId = i ++;
+ }
var data = d;
this.beginLayUi(data);
},
@@ -144,10 +148,10 @@
, last: false //不显示尾页
}
, cols: [[
- { field: 'id', width: 59, align: 'center', unresize: true, title: '序号' }
- , { field: 'username', width: 90, align: 'center', unresize: true, title: '图层名称' }
- , { field: 'style1', width: 95, align: 'center', unresize: true, title: '图层属性1' }
- , { field: 'style2', width: 95, align: 'center', unresize: true, title: '图层属性2' }
+ { field: 'tableId', width: 59, align: 'center', unresize: true, title: '序号' }
+ , { field: 'geoName', width: 90, align: 'center', unresize: true, title: '图层名称' }
+ , { field: 'databaseName', width: 95, align: 'center', unresize: true, title: '图层属性1' }
+ , { field: 'serviceUrl', width: 95, align: 'center', unresize: true, title: '图层属性2' }
, { fixed: 'right', width: 115, align: 'center', unresize: true, title: '操作', toolbar: '#demoTable' }
]],
data: data,
--
Gitblit v1.9.3