Merge branch 'main' of D:\CF_work\ideaWorkSpace\business-card with conflicts.

This commit is contained in:
ly19960718 2021-03-22 17:53:45 +08:00
parent f7f991567b
commit cfd594072d
2 changed files with 10 additions and 13 deletions

View File

@ -1,11 +1,6 @@
server: server:
<<<<<<< HEAD port: 8080
port: 8090 url: http://127.0.0.1:8080/businesscard
url: http://127.0.0.1:8090/businesscard
=======
port: 8088
url: http://192.168.0.111:8088/businesscard
>>>>>>> 5a94052e7f98f2f26229a8ea58ceffc20b2b0ed6
system-title: 名片管理系统 system-title: 名片管理系统
system-sub-title: 名片系统 system-sub-title: 名片系统
servlet: servlet:
@ -34,11 +29,7 @@ spring:
db-type: mysql db-type: mysql
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: root
<<<<<<< HEAD
password: admin
=======
password: 123456 password: 123456
>>>>>>> 5a94052e7f98f2f26229a8ea58ceffc20b2b0ed6
initial-size: 2 initial-size: 2
min-idle: 2 min-idle: 2
max-active: 10 max-active: 10

View File

@ -81,7 +81,7 @@
{field: 'shopLogo', width: 180, title: '店铺LOGO', align:'center', {field: 'shopLogo', width: 180, title: '店铺LOGO', align:'center',
templet: function(row) { templet: function(row) {
var rowData = row[this.field]; var rowData = row[this.field];
return '<div id="imgShow"><img src="route/file/download/true/'+rowData+'"></div>'; return '<div class="imgShow"><img style="height: 30px;width: 30px;" src="route/file/download/true/'+rowData+'"></div>';
} }
}, },
{field: 'shopName', width: 180, title: '店铺名称', align:'center', {field: 'shopName', width: 180, title: '店铺名称', align:'center',
@ -135,7 +135,6 @@
{field: 'isCertification', width: 180, title: '是否认证', align:'center', {field: 'isCertification', width: 180, title: '是否认证', align:'center',
templet: function(row) { templet: function(row) {
var rowData = row[this.field]; var rowData = row[this.field];
console.log(rowData)
if(rowData == 0){ if(rowData == 0){
return "未认证"; return "未认证";
} }
@ -155,6 +154,8 @@
'count': data.total, 'count': data.total,
'data': data.rows 'data': data.rows
}; };
},done:function(){
} }
}); });
} }
@ -220,6 +221,11 @@
$(document).on('click', '#search', function() { $(document).on('click', '#search', function() {
reloadTable(1); reloadTable(1);
}); });
$(document).on('click', '.imgShow', function() {
});
// 事件 - 增删改 // 事件 - 增删改
table.on('toolbar(dataTable)', function(obj) { table.on('toolbar(dataTable)', function(obj) {
var layEvent = obj.event; var layEvent = obj.event;