From 383d703e74dfb165bc66f29b3c677d50fb71d391 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 12 九月 2022 15:12:27 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/cstmr/cstmr.js | 50 +-----------------------
src/main/webapp/views/cstmr/cstmr.html | 3 -
src/main/webapp/views/index.html | 2
src/main/webapp/views/cstmrType/cstmrType.html | 8 +++
4 files changed, 12 insertions(+), 51 deletions(-)
diff --git a/src/main/webapp/static/js/cstmr/cstmr.js b/src/main/webapp/static/js/cstmr/cstmr.js
index 90696ef..6069426 100644
--- a/src/main/webapp/static/js/cstmr/cstmr.js
+++ b/src/main/webapp/static/js/cstmr/cstmr.js
@@ -17,9 +17,10 @@
page: true,
limit: 15,
limits: [15, 30, 50, 100, 200, 500],
- toolbar: '#toolbar',
- cellMinWidth: 50,
+ cellMinWidth: 100,
height: 'full-120',
+ size: 'sm',
+ skin: 'nob',
cols: [[
{type: 'checkbox'}
// ,{field: 'id', align: 'center',title: 'ID'}
@@ -105,44 +106,6 @@
return d.id;
}));
break;
- case 'exportData':
- admin.confirm('纭畾瀵煎嚭Excel鍚�', {shadeClose: true}, function(){
- var titles=[];
- var fields=[];
- obj.config.cols[0].map(function (col) {
- if (col.type === 'normal' && col.hide === false && col.toolbar == null) {
- titles.push(col.title);
- fields.push(col.field);
- }
- });
- var exportData = {};
- $.each($('#search-box [name]').serializeArray(), function() {
- exportData[this.name] = this.value;
- });
- var param = {
- 'cstmr': exportData,
- 'fields': fields
- };
- $.ajax({
- url: baseUrl+"/cstmr/export/auth",
- headers: {'token': localStorage.getItem('token')},
- data: JSON.stringify(param),
- dataType:'json',
- contentType:'application/json;charset=UTF-8',
- method: 'POST',
- success: function (res) {
- layer.closeAll();
- if (res.code === 200) {
- table.exportFile(titles,res.data,'xls');
- } else if (res.code === 403) {
- top.location.href = baseUrl+"/";
- } else {
- layer.msg(res.msg, {icon: 2})
- }
- }
- });
- });
- break;
}
});
@@ -228,13 +191,6 @@
// 鎼滅储
form.on('submit(search)', function (data) {
pageCurr = 1;
- tableReload(false);
- });
-
- // 閲嶇疆
- form.on('submit(reset)', function (data) {
- pageCurr = 1;
- clearFormVal($('#search-box'));
tableReload(false);
});
diff --git a/src/main/webapp/views/cstmr/cstmr.html b/src/main/webapp/views/cstmr/cstmr.html
index 1caa784..dfb4974 100644
--- a/src/main/webapp/views/cstmr/cstmr.html
+++ b/src/main/webapp/views/cstmr/cstmr.html
@@ -36,8 +36,7 @@
<button class="layui-btn icon-btn" lay-filter="search" lay-submit>
<i class="layui-icon"></i>鎼滅储
</button>
- <button class="layui-btn icon-btn" lay-filter="reset" lay-submit>
- <i class="layui-icon"></i>閲嶇疆
+ <button id="addBtn" class="layui-btn icon-btn btn-add"><i class="layui-icon"></i>娣诲姞
</button>
</div>
</div>
diff --git a/src/main/webapp/views/cstmrType/cstmrType.html b/src/main/webapp/views/cstmrType/cstmrType.html
index 6be29a1..ccb00d2 100644
--- a/src/main/webapp/views/cstmrType/cstmrType.html
+++ b/src/main/webapp/views/cstmrType/cstmrType.html
@@ -166,7 +166,13 @@
response: {
statusCode: 200
},
- size: 'lg'
+ size: 'lg', // sm lg
+ // skin: 'nob'
+ /**
+ * line 锛堣杈规椋庢牸锛�
+ row 锛堝垪杈规椋庢牸锛�
+ nob 锛堟棤杈规椋庢牸锛�
+ */
});
// 宸ュ叿鏉$偣鍑讳簨浠�
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 45c260d..bcaad85 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -147,7 +147,7 @@
$('#hostName').text(res.data.hostName);
}
if (res.data.root) {
- showHost();
+ // showHost();
}
} else if (res.code === 403) {
top.location.href = baseUrl + "/login";
--
Gitblit v1.9.1