Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8302017d
authored
Oct 23, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整
1 parent
c67c9ed1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
204 additions
and
126 deletions
css/layui.css
css/main.css
html/employee/detail.html
html/employee/validPeriod.html
html/merchant/add.html
html/merchant/detail.html
html/merchant/index.html
html/merchant/validPeriodForm.html
index.html
css/layui.css
View file @
8302017
...
...
@@ -322,4 +322,13 @@ border-color: var(--borderBlue)!important;
box-shadow
:
none
;
/* 0 2px 5px 0 rgb(0 0 0 / 10%) */
}
/* layui时间选择器 */
.laydate-footer-btns
span
:hover
{
color
:
var
(
--btnBlue
)
!important
;
}
.laydate-set-ym
span
:hover
{
color
:
var
(
--btnBlue
)
!important
;
}
.layui-laydate-header
i
:hover
,
.layui-laydate-header
span
:hover
{
color
:
var
(
--btnBlue
)
!important
;
}
css/main.css
View file @
8302017
...
...
@@ -121,10 +121,7 @@ main {
height
:
100%
;
}
main
.table-page
{
/* background-color: #ffffff; */
margin-top
:
16px
;
/* margin:15px 20px; */
/* padding: 5px; */
}
main
.table-page
tr
th
:last-child
.layui-table-cell
{
text-align
:
center
;
...
...
@@ -262,6 +259,11 @@ footer {
border-bottom-left-radius
:
0
;
border-left
:
none
;
}
#updateCircleAngle
{
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
border-left
:
none
;
}
.updateSelectAngle
.layui-select-title
.layui-input
{
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
...
...
@@ -310,3 +312,51 @@ footer {
background-color
:
white
;
}
/*ztree*/
.ztree
::-webkit-scrollbar
{
width
:
10px
;
height
:
10px
;
/* display: none; */
}
/*正常情况下滑块的样式*/
.ztree
::-webkit-scrollbar-thumb
{
background-color
:
rgba
(
0
,
0
,
0
,
0.05
);
border-radius
:
10px
;
box-shadow
:
inset
1px
1px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
/*鼠标悬浮在该类指向的控件上时滑块的样式*/
.ztree
::-webkit-scrollbar-thumb
{
/* background-color: rgba(0, 0, 0, 0.2); */
background
:
#e9e8ff
;
border-radius
:
10px
;
box-shadow
:
inset
1px
1px
0
rgba
(
0
,
0
,
0
,
0.1
);
}
/*鼠标悬浮在滑块上时滑块的样式*/
/* &::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
} */
/*正常时候的主干部分*/
.ztree
::-webkit-scrollbar-track
{
border-radius
:
10px
;
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
);
background-color
:
white
;
}
\ No newline at end of file
html/employee/detail.html
View file @
8302017
...
...
@@ -106,9 +106,9 @@
<main
class=
"wrapper detail"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<ul
class=
"layui-tab-title employeeDetail"
>
<li
lay-id=
"1"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"2"
>
账户权限
</li>
<li
lay-id=
"3"
>
修改记录
</li>
<li
lay-id=
"1"
style=
"padding: 0; width: 90px; margin-right: 20px"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"2"
style=
"padding: 0; width: 90px; margin-right: 20px"
>
账户权限
</li>
<li
lay-id=
"3"
style=
"padding: 0; width: 90px"
>
修改记录
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
...
...
@@ -176,12 +176,14 @@
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 80px"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 80px
; padding: 0 20px
"
>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3>
<div
class=
"layui-tab tabmutiple-content"
>
<table
class=
"layui-table"
id=
"recordTable"
style=
"padding-left: 20px"
></table>
<div
id=
"recordPage"
class=
"align-left"
style=
"margin-top: 20px; padding-left: 20px"
></div>
<div
class=
"table-page"
>
<table
class=
"layui-table"
id=
"recordTable"
></table>
<div
id=
"recordPage"
class=
"align-left"
></div>
</div>
</div>
</div>
</div>
...
...
@@ -261,24 +263,25 @@
{
field
:
'ip'
,
title
:
'登录IP'
,
align
:
'center'
,
width
:
120
align
:
'center'
},
{
field
:
'modifyContent'
,
title
:
'修改内容'
,
align
:
'center'
align
:
'center'
,
width
:
220
},
{
field
:
'userName'
,
title
:
'操作人'
,
align
:
'center'
align
:
'center'
,
width
:
180
},
{
field
:
'createdTime'
,
title
:
'操作时间'
,
align
:
'center'
,
width
:
18
0
width
:
20
0
}
]
]
...
...
html/employee/validPeriod.html
View file @
8302017
<!DOCTYPE html>
<html
lang=
"zh"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"修改有效期"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,商户管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
.valid-period
{
text-align
:
center
;
padding
:
20px
20px
;
background-color
:
#ffffff
;
}
</style>
<title>
修改有效期
</title>
</head>
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"修改有效期"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,商户管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<style>
.valid-period
{
text-align
:
center
;
padding
:
20px
20px
;
background-color
:
#ffffff
;
}
</style>
<title>
修改有效期
</title>
</head>
<body>
<div
id=
"app"
>
<main
class=
"valid-period"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-label required"
style=
"width: 120px;"
>
账户有效期:
</div>
<div
class=
"layui-input-inline"
style=
"width: auto;"
>
<select
name=
"effectiveTime"
id=
"periodSelect"
required
lay-verify=
"required"
>
<option
value=
""
>
请选择
</option>
</select>
<p
class=
"input-downtips"
>
(注:永久有效不超过所属工厂商户的有效期)
</p>
</div>
<button
id=
"periodVerifyBtn"
lay-submit
lay-filter=
"periodSubmit"
style=
"display: none;"
></button>
<!-- <div class="layui-form-item" style="padding: 40px 20px;">
<body>
<div
id=
"app"
>
<main
class=
"valid-period"
>
<form
class=
"layui-form"
lay-filter=
"periodFilter"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-label required"
style=
"width: 120px"
>
账户有效期:
</div>
<div
class=
"layui-input-inline"
style=
"width: auto"
>
<select
name=
"effectiveTime"
id=
"periodSelect"
required
lay-verify=
"required"
>
<option
value=
""
>
请选择
</option>
</select>
<p
class=
"input-downtips"
>
(注:永久有效不超过所属工厂商户的有效期)
</p>
</div>
<button
id=
"periodVerifyBtn"
lay-submit
lay-filter=
"periodSubmit"
style=
"display: none"
></button>
<!-- <div class="layui-form-item" style="padding: 40px 20px;">
<div class="layui-input-inline">
<button class="layui-btn layui-btn-sm" lay-submit lay-filter="validSubmit">立即提交</button>
<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
</div>
</div> -->
</div>
</form>
</main>
</div>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
layui
.
use
([
'form'
,
'request'
,
'helper'
],
function
()
{
var
form
=
layui
.
form
var
request
=
layui
.
request
var
$
=
layui
.
$
var
helper
=
layui
.
helper
var
currLayerIdx
=
parent
.
layer
.
getFrameIndex
(
window
.
name
)
var
baseData
=
{}
</div>
</form>
</main>
</div>
<script
src=
"https://www.layuicdn.com/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
layui
.
use
([
'form'
,
'request'
,
'helper'
],
function
()
{
var
form
=
layui
.
form
var
request
=
layui
.
request
var
$
=
layui
.
$
var
helper
=
layui
.
helper
var
currLayerIdx
=
parent
.
layer
.
getFrameIndex
(
window
.
name
)
var
baseData
=
{}
var
vaildData
=
{
id
:
getQueryString
(
'id'
),
effectiveTime
:
getQueryString
(
'effectiveTime'
)
}
getVaildPeriod
()
form
.
on
(
'submit(periodSubmit)'
,
function
(
data
)
{
console
.
log
(
data
.
field
,
vaildData
)
// 调接口
var
params
=
{
method
:
'cn.com.glsx.merchants.staff.updateValPerByStaffId'
,
effectiveTime
:
data
.
field
.
effectiveTime
,
id
:
vaildData
.
id
var
vaildData
=
{
id
:
getQueryString
(
'id'
),
effectiveTime
:
getQueryString
(
'effectiveTime'
)
}
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
helper
.
store
.
set
(
'isRefresh'
,
true
)
parent
.
layer
.
close
(
currLayerIdx
)
getVaildPeriod
()
form
.
on
(
'submit(periodSubmit)'
,
function
(
data
)
{
console
.
log
(
data
.
field
,
vaildData
)
// 调接口
var
params
=
{
method
:
'cn.com.glsx.merchants.staff.updateValPerByStaffId'
,
effectiveTime
:
data
.
field
.
effectiveTime
,
id
:
vaildData
.
id
}
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
helper
.
store
.
set
(
'isRefresh'
,
true
)
parent
.
layer
.
close
(
currLayerIdx
)
}
})
return
false
})
return
false
})
// 获取参数
function
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
)
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
)
if
(
r
!=
null
)
{
return
unescape
(
r
[
2
])
}
return
null
}
// 获取有效期
function
getVaildPeriod
()
{
request
({
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
dictType
:
'staff_validity_period'
},
function
(
res
)
{
if
(
res
.
code
===
'0'
)
{
baseData
.
effectiveTimeList
=
res
.
data
var
periodSelect
=
$
(
'#periodSelect'
)
$
.
each
(
baseData
.
effectiveTimeList
,
function
(
index
,
item
)
{
periodSelect
.
append
(
new
Option
(
item
.
dictLabel
,
item
.
dictValue
))
})
form
.
val
(
'periodFilter'
,
{
effectiveTime
:
vaildData
.
effectiveTime
})
console
.
log
(
vaildData
.
effectiveTime
)
form
.
render
(
'select'
)
// 获取参数
function
getQueryString
(
name
)
{
var
reg
=
new
RegExp
(
'(^|&)'
+
name
+
'=([^&]*)(&|$)'
,
'i'
)
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
)
if
(
r
!=
null
)
{
return
unescape
(
r
[
2
])
}
})
}
})
</script>
</body>
return
null
}
</html>
\ No newline at end of file
// 获取有效期
function
getVaildPeriod
()
{
request
(
{
method
:
'cn.com.glsx.merchants.menu.findAllDictData'
,
dictType
:
'staff_validity_period'
},
function
(
res
)
{
if
(
res
.
code
===
'0'
)
{
baseData
.
effectiveTimeList
=
res
.
data
var
periodSelect
=
$
(
'#periodSelect'
)
$
.
each
(
baseData
.
effectiveTimeList
,
function
(
index
,
item
)
{
periodSelect
.
append
(
new
Option
(
item
.
dictLabel
,
item
.
dictValue
))
})
form
.
val
(
'periodFilter'
,
{
effectiveTime
:
vaildData
.
effectiveTime
})
console
.
log
(
vaildData
.
effectiveTime
)
form
.
render
(
'select'
)
}
}
)
}
})
</script>
</body>
</html>
html/merchant/add.html
View file @
8302017
...
...
@@ -319,7 +319,7 @@
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
营业范围:
</label>
<div
class=
"layui-input-inline"
id=
"busiScopeEl"
></div>
<div
class=
"layui-input-inline
removeCheckBg
"
id=
"busiScopeEl"
></div>
</div>
<div
class=
"layui-form-item"
id=
"custom-scope"
>
<div
class=
"layui-form-item"
>
...
...
@@ -344,7 +344,7 @@
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
placeholder=
"车型品牌"
id=
"brand"
/>
<div
id=
"carBrandTree"
style=
"height: 200px; overflow-y: scroll"
></div>
<div
id=
"carBrandTree"
class=
"wrapper-tree"
style=
"height: 200px; overflow-y: scroll"
></div>
</div>
</div>
</div>
...
...
html/merchant/detail.html
View file @
8302017
...
...
@@ -210,6 +210,12 @@
width
:
100%
;
height
:
1px
;
}
.companyMsg
.layui-word-aux
{
color
:
#999
!important
;
padding-left
:
20px
!important
;
padding-right
:
5px
!important
;
padding-top
:
6px
;
}
.account-type-span
{
display
:
inline-block
;
/* width: 100px; */
...
...
@@ -318,7 +324,7 @@
</div>
</div>
</div>
<div
class=
"MsgWrap clearfix"
style=
"margin-bottom: 100px"
>
<div
class=
"MsgWrap c
ompanyMsg c
learfix"
style=
"margin-bottom: 100px"
>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title"
>
企业信息
</h3>
<div
class=
"detail-content clearfix"
>
...
...
@@ -326,7 +332,7 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户名称:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-
form-mid layui-
word-aux"
id=
"merchantName"
></div>
<div
class=
"layui-word-aux"
id=
"merchantName"
></div>
</div>
</div>
</div>
...
...
@@ -334,7 +340,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
简称:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantAbbreviation"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantAbbreviation"
></div>
</div>
</div>
</div>
...
...
@@ -342,7 +349,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户类型:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantTypeName"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantTypeName"
></div>
</div>
</div>
</div>
...
...
@@ -351,7 +359,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
id=
"orgTxt"
>
身份证:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantOrgcode"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantOrgcode"
></div>
</div>
</div>
</div>
...
...
@@ -360,7 +369,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
地址:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantAddress"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantAddress"
></div>
</div>
</div>
</div>
...
...
@@ -369,7 +379,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
联系人:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLegalPerson"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantLegalPerson"
></div>
</div>
</div>
</div>
...
...
@@ -378,7 +389,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
联系电话:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantLegalPersonPhone"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantLegalPersonPhone"
></div>
</div>
</div>
</div>
...
...
@@ -387,7 +399,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
营业范围:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"businessScopName"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"businessScopName"
></div>
</div>
</div>
</div>
...
...
@@ -396,7 +409,8 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"merchantBrandName"
></div>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"merchantBrandName"
></div>
</div>
</div>
</div>
...
...
html/merchant/index.html
View file @
8302017
...
...
@@ -294,7 +294,7 @@
field
:
'accountTypeNames'
,
title
:
'账户类型'
,
align
:
'left'
,
width
:
1
0
0
,
width
:
1
4
0
,
templet
:
'#accountTypeTpl'
},
{
...
...
html/merchant/validPeriodForm.html
View file @
8302017
This diff is collapsed.
Click to expand it.
index.html
View file @
8302017
...
...
@@ -4,6 +4,7 @@
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
/>
<meta
name=
"description"
content=
"广联帐户管理中心"
/>
<meta
http-equiv=
"Content-Security-Policy"
content=
"upgrade-insecure-requests"
/>
<title>
广联帐户管理中心
</title>
</head>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment