Commit c5c56b44 by cwq0219

merge

2 parents eff76f85 748fc6c8
/*------------------------------------- /*-------------------------------------
layui 样式自定义 layui 样式自定义
-------------------------------------*/ -------------------------------------*/
.layui-btn+.layui-btn {
margin-left: 20px;
}
.layui-input:focus, .layui-input:focus,
.layui-textarea:focus { .layui-textarea:focus {
border-color: #1989FA !important; border-color: #1989FA !important;
...@@ -9,6 +11,9 @@ ...@@ -9,6 +11,9 @@
.layui-input{ .layui-input{
border-radius: 4px; border-radius: 4px;
} }
.layui-form-pane .layui-input{
border-radius: 0 4px 4px 0;
}
.layui-form-pane .layui-input-inline{ .layui-form-pane .layui-input-inline{
margin-left: -4px; margin-left: -4px;
} }
...@@ -138,10 +143,28 @@ border-color: #1989FA!important; ...@@ -138,10 +143,28 @@ border-color: #1989FA!important;
display: -webkit-box; display: -webkit-box;
} }
.layui-table-cell li{ .layui-table-cell li{
list-style: disc; list-style-type: none;
list-style-position: inside; }
.layui-table-cell li::before{
/* list-style: disc;
list-style-position: inside; */
content: "\2022";
color: #1989FA;
margin-right: 5px;
} }
.layui-table-cell li::marker{ .layui-table-cell li::marker{
color:#1989FA ; /*谷歌浏览器有::marker伪元素,ie浏览器没有,故使用伪元素替代蓝色原点*/
/* color:#1989FA ; */
}
/* 表格去所有边框 */
.layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r,
.layui-table-grid-down, .layui-table-header, .layui-table-page,
.layui-table-tips-main, .layui-table-tool, .layui-table-total,
.layui-table-view, .layui-table[lay-skin=line], .layui-table[lay-skin=row]{
border-style: none;
}
.layui-table-body tbody tr:not(:last-child){
border-bottom: 1px solid #DCDFE6;
} }
\ No newline at end of file \ No newline at end of file
...@@ -95,6 +95,9 @@ main { ...@@ -95,6 +95,9 @@ main {
min-height: calc(100% - 60px - 30px); min-height: calc(100% - 60px - 30px);
overflow: auto; overflow: auto;
background-color: #F7F7F7; background-color: #F7F7F7;
/* ie浏览器滚动条 */
/* -ms-scroll-chaining: chained;
-ms-overflow-style: none; */
} }
.search-block { .search-block {
padding: 8px 20px; padding: 8px 20px;
...@@ -106,8 +109,9 @@ main .table-page{ ...@@ -106,8 +109,9 @@ main .table-page{
padding: 5px; padding: 5px;
} }
main .table-page tr th:last-child .layui-table-cell{ main .table-page tr th:last-child .layui-table-cell{
text-align: center; text-align: center;
} }
footer { footer {
height: 30px; height: 30px;
flex-shrink: 0; flex-shrink: 0;
......
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
<title>员工管理</title> <title>员工管理</title>
</head> </head>
<style> <style>
.merchantNames{ .merchantNames,.searchInputBtn{
margin-left: 20px; margin-left: 20px;
} }
.creater,.status{ .creater,.status{
margin-right: 20px; margin-right: 20px;
} }
...@@ -75,8 +76,8 @@ ...@@ -75,8 +76,8 @@
</div> </div>
</div> </div>
<div class="layui-inline" style="float: rihg;" pane> <div class="layui-inline" style="float: rihg;" pane>
<button type="button" class="layui-btn layui-btn-normal" id="employeeSearch">查询</button> <button type="button" class="layui-btn layui-btn-normal searchInputBtn" id="employeeSearch">查询</button>
<button type="button" class="layui-btn layui-btn-normal" id="employeeExport">导出</button> <button type="button" class="layui-btn layui-btn-normal exportInputBtn" id="employeeExport">导出</button>
</div> </div>
</form> </form>
</div> </div>
...@@ -105,7 +106,7 @@ ...@@ -105,7 +106,7 @@
//创建table实例 //创建table实例
var employeeTable = table.render({ var employeeTable = table.render({
elem: '#employeeTable', elem: '#employeeTable',
skin: 'line', skin: 'nob',
cols: [ cols: [
[ [
//表头 //表头
...@@ -159,7 +160,8 @@ ...@@ -159,7 +160,8 @@
// table.reload('testReload', { // table.reload('testReload', {
// data: res.data.data // data: res.data.data
// }) // })
var data = res.data // var data = res.data
var data = helper.formateNullFieldData(res.data)
var options = { var options = {
data: data.data data: data.data
} }
......
...@@ -25,11 +25,15 @@ ...@@ -25,11 +25,15 @@
.layui-btn-xs { .layui-btn-xs {
cursor: pointer; cursor: pointer;
} }
<<<<<<< HEAD
.channel, .channel,
.accountLevel, .accountLevel,
.accountType, .accountType,
.customerStatus { .customerStatus {
=======
.channel,.accountLevel,.accountType,.customerStatus,.searchInputBtn{
>>>>>>> 748fc6c8146388d08c693751df225c092e4569de
margin-left: 20px; margin-left: 20px;
} }
</style> </style>
...@@ -93,7 +97,7 @@ ...@@ -93,7 +97,7 @@
<div class="layui-inline"> <div class="layui-inline">
<input class="layui-input" name="merchantName" placeholder="请输入商户名称"> <input class="layui-input" name="merchantName" placeholder="请输入商户名称">
</div> </div>
<div class="layui-inline"> <div class="layui-inline searchInputBtn">
<button class="layui-btn" lay-submit lay-filter="searchSubmit">查询</button> <button class="layui-btn" lay-submit lay-filter="searchSubmit">查询</button>
</div> </div>
</div> </div>
...@@ -192,7 +196,7 @@ ...@@ -192,7 +196,7 @@
var merchantTable = table.render({ var merchantTable = table.render({
elem: '#merchantTable', elem: '#merchantTable',
page: false, page: false,
skin: 'line', skin: 'nob',
cols: [ cols: [
[{ [{
field: 'index', field: 'index',
...@@ -236,7 +240,8 @@ ...@@ -236,7 +240,8 @@
}, { }, {
field: 'merchantLegalPersonPhone', field: 'merchantLegalPersonPhone',
title: '手机号', title: '手机号',
align: 'center' align: 'center',
width: 100
}, { }, {
field: 'merchantAddress', field: 'merchantAddress',
title: '商户地址', title: '商户地址',
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
//创建table实例 //创建table实例
var roleTable = table.render({ var roleTable = table.render({
elem: '#roleTable', elem: '#roleTable',
skin:'line', skin:'nob',
cols: [ cols: [
[ [
//表头 //表头
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
getTabelList(roleTable) getTabelList(roleTable)
// 获取table列表接口 // 获取table列表接口
function getTabelList(table, search = {}, isResetPageNum) { function getTabelList(table, search , isResetPageNum) {
var params = helper.clone(false, { var params = helper.clone(false, {
pageNum: page.pageNum, pageNum: page.pageNum,
pageSize: page.pageSize, pageSize: page.pageSize,
...@@ -119,7 +119,8 @@ ...@@ -119,7 +119,8 @@
request(params, request(params,
function(res) { function(res) {
console.log(res) console.log(res)
var data = res.data // var data = res.data
var data = helper.formateNullFieldData(res.data)
var options = { var options = {
data: data.data data: data.data
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!