Commit 8cfe410e by 李长胜

修改样式

1 parent f226a8bf
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
} }
.layui-disabled, .layui-disabled:hover{ .layui-disabled, .layui-disabled:hover{
color: #999!important; color: #999!important;
font-family: PingFangSC-Regular, PingFang SC; /* font-family: PingFangSC-Regular, PingFang SC; */
} }
.layui-tab-content xm-select { .layui-tab-content xm-select {
border-color: #E6E6E6!important; border-color: #E6E6E6!important;
...@@ -145,6 +145,7 @@ ...@@ -145,6 +145,7 @@
/* 分页器的修改 */ /* 分页器的修改 */
.layui-laypage button{ .layui-laypage button{
border-radius: 4px; border-radius: 4px;
font-family: PingFang-Regular;
} }
.layui-laypage .layui-laypage-skip input:focus{ .layui-laypage .layui-laypage-skip input:focus{
border-color: var(--borderBlue)!important; border-color: var(--borderBlue)!important;
...@@ -152,7 +153,7 @@ border-color: var(--borderBlue)!important; ...@@ -152,7 +153,7 @@ border-color: var(--borderBlue)!important;
.layui-laypage a, .layui-laypage span,.layui-laypage .layui-laypage-skip{ .layui-laypage a, .layui-laypage span,.layui-laypage .layui-laypage-skip{
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; /* font-family: PingFangSC-Regular, PingFang SC; */
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
...@@ -229,6 +230,9 @@ border-color: var(--borderBlue)!important; ...@@ -229,6 +230,9 @@ border-color: var(--borderBlue)!important;
.layui-table-body tbody tr:not(:last-child){ .layui-table-body tbody tr:not(:last-child){
border-bottom: 1px solid #DCDFE6; border-bottom: 1px solid #DCDFE6;
} }
.layui-table-box{
border-bottom: 1px solid #DCDFE6;
}
/* 设置表头颜色 */ /* 设置表头颜色 */
.layui-table thead tr{ .layui-table thead tr{
background-color: #F4F6FC; background-color: #F4F6FC;
......
...@@ -17,7 +17,7 @@ website: http://code.google.com/p/jquerytree/ ...@@ -17,7 +17,7 @@ website: http://code.google.com/p/jquerytree/
padding: 0; padding: 0;
margin: 0; margin: 0;
font-size: 12px; font-size: 12px;
font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif /* font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif */
} }
.ztree { .ztree {
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<div class="topbottomwrap"> <div class="topbottomwrap">
<div class="grayLine"></div> <div class="grayLine"></div>
<h3 class="content-title sub-title" id="accountAuth">账户权限</h3> <h3 class="content-title sub-title" id="accountAuth">账户权限</h3>
<div class="layui-tab tabmutiple-content" style="padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px;" lay-filter="roleAuth"> <div class="layui-tab tabmutiple-content" style="padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px" lay-filter="roleAuth">
<ul class="layui-tab-title"></ul> <ul class="layui-tab-title"></ul>
<div class="layui-tab-content"></div> <div class="layui-tab-content"></div>
</div> </div>
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<h3 class="content-title sub-title" id="record">修改记录</h3> <h3 class="content-title sub-title" id="record">修改记录</h3>
<div class="layui-tab tabmutiple-content" style="padding: 0 20px; background-color: #fff"> <div class="layui-tab tabmutiple-content" style="padding: 0 20px; background-color: #fff">
<table class="layui-table" id="recordTable"></table> <table class="layui-table" id="recordTable"></table>
<div id="recordPage" class="align-center"></div> <div id="recordPage" class="align-left"></div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -98,22 +98,22 @@ ...@@ -98,22 +98,22 @@
var status = $('#status') var status = $('#status')
var cols = [ var cols = [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80 }, { field: '', title: '序号', type: 'numbers', width: 60 },
{ field: 'staffName', title: '员工姓名', width: 120, align: 'center' }, { field: 'staffName', title: '员工姓名', width: 120, align: 'center' },
// { field: 'staffCode', title: '员工号', align: 'center' }, // { field: 'staffCode', title: '员工号', align: 'center' },
{ field: 'roleName', title: '角色', align: 'center' }, { field: 'roleName', title: '角色', align: 'center' },
{ field: 'staffPhone', title: '登录手机号', align: 'center', width: 125 }, { field: 'staffPhone', title: '登录手机号', align: 'center', width: 125 },
{ field: 'entmicroName', title: '企微号', align: 'center', width: 125 }, { field: 'entmicroName', title: '企微号', align: 'center', width: 125 },
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center', width: 80 },
{ field: 'createdAccount', title: '创建者', align: 'center' }, { field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 }, { field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 110 }, { field: 'updatedTime', title: '更新时间', align: 'center', width: 110 },
{ title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' }, { title: '操作', width: 160, align: 'left', toolbar: '#employeeBar' },
{ field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true } { field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
] ]
var colums = [ var colums = [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80 }, { field: '', title: '序号', type: 'numbers', width: 60 },
{ field: 'staffName', title: '员工姓名', width: 180, align: 'center' }, { field: 'staffName', title: '员工姓名', width: 180, align: 'center' },
// { field: 'staffCode', title: '员工号', align: 'center' }, // { field: 'staffCode', title: '员工号', align: 'center' },
{ field: 'entmicroName', title: '员工企微号', align: 'center', width: 125 }, { field: 'entmicroName', title: '员工企微号', align: 'center', width: 125 },
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
{ field: 'merchantUserResponse', title: '所属企微', align: 'center', width: 125 }, { field: 'merchantUserResponse', title: '所属企微', align: 'center', width: 125 },
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 180 }, { field: 'updatedTime', title: '更新时间', align: 'center', width: 180 },
{ title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' }, { title: '操作', width: 160, align: 'left', toolbar: '#employeeBar' },
{ field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true } { field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
] ]
//创建table实例 //创建table实例
......
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
<div class="layui-input-inline"> <div class="layui-input-inline">
<input id="scopeCus" class="layui-input business-scope-cust" maxlength="15" placeholder="请自定义营业范围,建议不超过10个" /> <input id="scopeCus" class="layui-input business-scope-cust" maxlength="15" placeholder="请自定义营业范围,建议不超过10个" />
</div> </div>
<div class="layui-input-inline option-btns"> <div class="layui-input-inline option-btns" style="margin-left: 20px">
<button type="button" class="layui-btn btn-no-border" data-type="handleAddScope"> <button type="button" class="layui-btn btn-no-border" data-type="handleAddScope">
<i class="layui-icon layui-icon-add-circle scope-btn"></i> <i class="layui-icon layui-icon-add-circle scope-btn"></i>
</button> </button>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
zoom: 1; zoom: 1;
} }
.clearfix::after { .clearfix::after {
content: ""; content: '';
display: block; display: block;
height: 0; height: 0;
clear: both; clear: both;
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
.option-btns { .option-btns {
height: 38px; height: 38px;
margin-left: 20px;
} }
.wrap-add-signal { .wrap-add-signal {
...@@ -136,15 +137,17 @@ ...@@ -136,15 +137,17 @@
.edit-box #accountTypeEl .layui-form-checked span, .edit-box #accountTypeEl .layui-form-checked span,
#accountTypeEl .layui-form-checked:hover span { #accountTypeEl .layui-form-checked:hover span {
background-color: #5850FF !important; background-color: #5850ff !important;
} }
.edit-box #accountTypeEl .layui-form-checked i, .edit-box #accountTypeEl .layui-form-checked i,
#accountTypeEl .layui-form-checked:hover i { #accountTypeEl .layui-form-checked:hover i {
color: #5850FF !important; color: #5850ff !important;
} }
.layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed>i { .layui-form-radio:hover *,
color: #5850FF !important; .layui-form-radioed,
.layui-form-radioed > i {
color: #5850ff !important;
} }
.pageTitle { .pageTitle {
background-color: #fff; background-color: #fff;
...@@ -244,8 +247,7 @@ ...@@ -244,8 +247,7 @@
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">商户地址:</label> <label class="layui-form-label">商户地址:</label>
<div class="layui-input-inline w-70"> <div class="layui-input-inline w-70">
<input style="color: #333333 !important;" name="merchantAddress" disabled <input style="color: #333333 !important" name="merchantAddress" disabled class="layui-input layui-btn-disabled" id="addrEl" placeholder="请选择商户地址" />
class="layui-input layui-btn-disabled" id="addrEl" placeholder="请选择商户地址">
<!-- <div class="m-t-10" id="addrEl">请选择商户地址</div> --> <!-- <div class="m-t-10" id="addrEl">请选择商户地址</div> -->
<button type="button" class="layui-btn" data-type="handleSelectAddr">选择地址</button> <button type="button" class="layui-btn" data-type="handleSelectAddr">选择地址</button>
</div> </div>
...@@ -270,7 +272,7 @@ ...@@ -270,7 +272,7 @@
<label class="layui-form-label">联系人:</label> <label class="layui-form-label">联系人:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input class="layui-input" maxlength="15" name="merchantLegalPerson" placeholder="请输入联系人姓名" /> <input class="layui-input" maxlength="15" name="merchantLegalPerson" placeholder="请输入联系人姓名" />
<div style="width: 100%; height: 28px;"></div> <div style="width: 100%; height: 28px"></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -657,21 +659,26 @@ ...@@ -657,21 +659,26 @@
return '请填入正确的驻店电话' return '请填入正确的驻店电话'
} }
}, },
otherReq: function(value,item){ otherReq: function (value, item) {
var verifyName=$(item).attr('name') var verifyName = $(item).attr('name'),
, verifyType=$(item).attr('type') verifyType = $(item).attr('type'),
,formElem=$(item).parents('.layui-form')//获取当前所在的form元素,如果存在的话 formElem = $(item).parents('.layui-form'), //获取当前所在的form元素,如果存在的话
,verifyElem=formElem.find('input[name='+verifyName+']')//获取需要校验的元素 verifyElem = formElem.find('input[name=' + verifyName + ']'), //获取需要校验的元素
,isTrue= verifyElem.is(':checked')//是否命中校验 isTrue = verifyElem.is(':checked'), //是否命中校验
,focusElem = verifyElem.next().find('i.layui-icon');//焦点元素 focusElem = verifyElem.next().find('i.layui-icon') //焦点元素
if(!isTrue || !value){ if (!isTrue || !value) {
//定位焦点 //定位焦点
focusElem.css(verifyType=='radio'?{"color":"#FF5722"}:{"border-color":"#FF5722"}); focusElem.css(verifyType == 'radio' ? { color: '#FF5722' } : { 'border-color': '#FF5722' })
//对非输入框设置焦点 //对非输入框设置焦点
focusElem.first().attr("tabIndex","1").css("outline","0").blur(function() { focusElem
focusElem.css(verifyType=='radio'?{"color":""}:{"border-color":""}); .first()
}).focus(); .attr('tabIndex', '1')
return '必填项不能为空'; .css('outline', '0')
.blur(function () {
focusElem.css(verifyType == 'radio' ? { color: '' } : { 'border-color': '' })
})
.focus()
return '必填项不能为空'
} }
} }
}) })
...@@ -717,7 +724,7 @@ ...@@ -717,7 +724,7 @@
'merchantLoginAccount', 'merchantLoginAccount',
'merchantLoginPassword', 'merchantLoginPassword',
'merchantAccountLevel', 'merchantAccountLevel',
'effectiveTime', 'effectiveTime'
] ]
if (formData.isloginName == 'on') { if (formData.isloginName == 'on') {
params.isloginName = 1 params.isloginName = 1
...@@ -972,27 +979,27 @@ ...@@ -972,27 +979,27 @@
reader.onload() reader.onload()
}) })
$('#sevenday').on('click', function() { $('#sevenday').on('click', function () {
var startTime = new Date(new Date().setHours(0,0,0,0)) var startTime = new Date(new Date().setHours(0, 0, 0, 0))
var endTime = startTime * 1 + 86400 * 7 * 1000 var endTime = startTime * 1 + 86400 * 7 * 1000
console.log(helper.dateFormat(startTime), endTime) console.log(helper.dateFormat(startTime), endTime)
$('#effectiveStarttime').val(helper.dateFormat(startTime)) $('#effectiveStarttime').val(helper.dateFormat(startTime))
$('#expireDate').val(helper.dateFormat(endTime)) $('#expireDate').val(helper.dateFormat(endTime))
}) })
$('#oneyear').on('click', function() { $('#oneyear').on('click', function () {
var startTime = new Date(new Date().setHours(0,0,0,0)) var startTime = new Date(new Date().setHours(0, 0, 0, 0))
var endTime = startTime.setFullYear(startTime.getFullYear() + 1) var endTime = startTime.setFullYear(startTime.getFullYear() + 1)
console.log(helper.dateFormat(endTime)) console.log(helper.dateFormat(endTime))
$('#effectiveStarttime').val(helper.dateFormat(new Date(new Date().setHours(0,0,0,0)))) $('#effectiveStarttime').val(helper.dateFormat(new Date(new Date().setHours(0, 0, 0, 0))))
$('#expireDate').val(helper.dateFormat(endTime)) $('#expireDate').val(helper.dateFormat(endTime))
}) })
$('#twoyears').on('click', function() { $('#twoyears').on('click', function () {
var startTime = new Date(new Date().setHours(0,0,0,0)) var startTime = new Date(new Date().setHours(0, 0, 0, 0))
var endTime = startTime.setFullYear(startTime.getFullYear() + 2) var endTime = startTime.setFullYear(startTime.getFullYear() + 2)
console.log(helper.dateFormat(endTime)) console.log(helper.dateFormat(endTime))
$('#effectiveStarttime').val(helper.dateFormat(new Date(new Date().setHours(0,0,0,0)))) $('#effectiveStarttime').val(helper.dateFormat(new Date(new Date().setHours(0, 0, 0, 0))))
$('#expireDate').val(helper.dateFormat(endTime)) $('#expireDate').val(helper.dateFormat(endTime))
}) })
...@@ -1434,8 +1441,7 @@ ...@@ -1434,8 +1441,7 @@
// 选项卡标题的lay-id属性值 // 选项卡标题的lay-id属性值
id: id id: id
}) })
var getTpl = var getTpl = `<form class="layui-form layui-form-pane layui-tab-form" action="">
`<form class="layui-form layui-form-pane layui-tab-form" action="">
<div class="layui-form-item" pane> <div class="layui-form-item" pane>
<label class="layui-form-label">选择产品:</label> <label class="layui-form-label">选择产品:</label>
<div class="layui-input-block" id="project${id}"> <div class="layui-input-block" id="project${id}">
...@@ -1518,12 +1524,11 @@ ...@@ -1518,12 +1524,11 @@
$(`#nodata${id}`).removeClass('hide') $(`#nodata${id}`).removeClass('hide')
$(`#nodata${id}`).addClass('show') $(`#nodata${id}`).addClass('show')
} }
} }
} }
// 产品复选框change事件 // 产品复选框change事件
form.on('checkbox(filter)', function(data) { form.on('checkbox(filter)', function (data) {
console.log(data, '33333333333') console.log(data, '33333333333')
var roleId = +data.elem.dataset.id var roleId = +data.elem.dataset.id
var projectId = data.value var projectId = data.value
......
...@@ -114,10 +114,15 @@ ...@@ -114,10 +114,15 @@
} }
.updateRecord { .updateRecord {
text-align: center; text-align: left;
color: #999; color: #999;
background-color: #fff; background-color: #fff;
padding: 0 10px; /* padding: 0 10px; */
/* margin: 0 10px; */
}
.align-pos {
margin-top: 5px;
display: inline-block;
} }
.mb21 { .mb21 {
...@@ -151,7 +156,7 @@ ...@@ -151,7 +156,7 @@
} }
.fixed-btn { .fixed-btn {
width: 140px; /* width: 140px; */
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
font-size: 12px; font-size: 12px;
...@@ -408,7 +413,7 @@ ...@@ -408,7 +413,7 @@
</div> </div>
<div class="layui-tab-item updateRecord"> <div class="layui-tab-item updateRecord">
<table class="layui-table" id="recordTable"></table> <table class="layui-table" id="recordTable"></table>
<div id="recordPage" class="align-center"></div> <div id="recordPage" class="align-pos"></div>
<!-- <span class="no-data"> 暂无记录</span> --> <!-- <span class="no-data"> 暂无记录</span> -->
</div> </div>
</div> </div>
...@@ -501,8 +506,7 @@ ...@@ -501,8 +506,7 @@
{ {
field: 'ip', field: 'ip',
title: '登录IP', title: '登录IP',
align: 'center', align: 'center'
width: 120
}, },
{ {
field: 'modifyContent', field: 'modifyContent',
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
var merchantName = $('#merchantName') var merchantName = $('#merchantName')
var cols = [ var cols = [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80 }, { field: '', title: '序号', type: 'numbers', width: 60 },
{ field: 'roleName', title: '角色名称', align: 'center' }, { field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'roleCode', title: '角色号', align: 'center' }, { field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'merchantName', title: '所属商户名', align: 'center' }, { field: 'merchantName', title: '所属商户名', align: 'center' },
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
{ fixed: 'right', title: '操作', minWidth: 160, align: 'center', toolbar: '#roleBar' } { fixed: 'right', title: '操作', minWidth: 160, align: 'center', toolbar: '#roleBar' }
] ]
var colums = [ var colums = [
{ field: '', title: '序号', type: 'numbers', width: 80 }, { field: '', title: '序号', type: 'numbers', width: 60 },
{ field: 'roleName', title: '角色名称', align: 'center' }, { field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'roleCode', title: '角色号', align: 'center' }, { field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!