记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
7d593848
Commit
7d593848
authored
Apr 25, 2022
by
sangchunxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1999 bug 提交
parent
dc5ef464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
24 deletions
+75
-24
list.html
...resources/templates/zhengzai/smile/organization/list.html
+75
-24
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/organization/list.html
View file @
7d593848
...
...
@@ -14,7 +14,8 @@
padding
:
0
20px
;
}
.picker
{
height
:
300px
;
display
:
flex
;
justify-content
:
flex-start
;
}
#addClassify
.selectClassify
label
{
display
:
flex
;
...
...
@@ -46,6 +47,33 @@
.item
div
a
{
margin-left
:
12px
;
}
/* 星星 */
.required-group-name
{
color
:
red
;
font-size
:
20px
;
position
:
relative
;
top
:
6px
;
}
.groupName
{
border
:
1px
solid
#dfdfdf
;
}
.required-province
{
color
:
red
;
display
:
inline-block
;
margin-right
:
3px
;
position
:
relative
;
top
:
6px
;
font-size
:
20px
;
}
/* 必填红色文字 */
.required-group-text
{
height
:
20px
;
color
:
red
;
}
.required-province-text
{
color
:
red
;
height
:
20px
;
}
</style>
</head>
<body
class=
"gray-bg"
>
...
...
@@ -65,10 +93,14 @@
<div
class=
"ibox-content"
>
<div
class=
"form-group"
>
<div
class=
"file-loading"
>
<span
class=
"required-group-name"
>
*
</span>
<input
class=
"groupName"
type=
"text"
placeholder=
"组名称"
>
<p
class=
"required-group-text"
></p>
<div
class=
"picker"
>
<span
class=
"required-province"
>
*
</span>
<div
class=
"demo"
id=
"demo-1"
></div>
</div>
<p
class=
"required-province-text"
></p>
<!-- <input class="groupMobile" type="text" placeholder="输入手机号选择总代" >-->
</div>
</div>
...
...
@@ -135,6 +167,7 @@
addressStr
:
[],
addressIds
:
[]
}
function
yes
()
{
var
groupName
=
$
(
'.groupName'
).
val
();
// var groupMobile = $('.groupMobile').val();
...
...
@@ -150,37 +183,54 @@
province
:
adArr
.
addressStr
[
0
],
provinceId
:
adArr
.
addressIds
[
0
]
+
''
};
if
(
editStatus
!=
''
)
{
postData
.
id
=
editStatus
;
$
.
ajax
({
type
:
'post'
,
url
:
orifix
+
'/updateOrg'
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
JSON
.
stringify
(
postData
),
success
:
function
(
e
)
{
$
(
".layui-layer-close1"
).
click
();
refreshItem
();
}
})
if
(
!
groupName
)
{
$
(
'.required-group-text'
).
text
(
'组名称为必填项!'
);
}
else
{
$
(
'.required-group-text'
).
text
(
''
);
}
if
(
!
adArr
.
addressStr
[
0
])
{
$
(
'.required-province-text'
).
text
(
'省名称为必填项!'
);
}
else
{
// postData.areaId = 0;
$
.
ajax
({
type
:
'post'
,
url
:
orifix
+
'/create'
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
JSON
.
stringify
(
postData
),
success
:
function
(
e
)
{
$
(
".layui-layer-close1"
).
click
();
refreshItem
();
}
})
$
(
'.required-province-text'
).
text
(
''
);
}
if
(
groupName
&&
adArr
.
addressStr
[
0
])
{
if
(
editStatus
!=
''
)
{
// edit
postData
.
id
=
editStatus
;
$
.
ajax
({
type
:
'post'
,
url
:
orifix
+
'/updateOrg'
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
JSON
.
stringify
(
postData
),
success
:
function
(
e
)
{
$
(
".layui-layer-close1"
).
click
();
refreshItem
();
$
(
'.required-group-text'
).
val
(
''
);
$
(
'.required-province-text'
).
val
(
''
);
}
})
}
else
{
// create
// postData.areaId = 0;
$
.
ajax
({
type
:
'post'
,
url
:
orifix
+
'/create'
,
headers
:{
"Content-Type"
:
"application/json;charset=UTF-8"
},
data
:
JSON
.
stringify
(
postData
),
success
:
function
(
e
)
{
$
(
".layui-layer-close1"
).
click
();
refreshItem
();
}
})
}
}
}
function
closeModal
(){
$
(
".layui-layer-close1"
).
click
();
}
// 新建组
$
(
"#button-open-10"
).
click
(
function
(){
$
(
'.editCon'
).
val
(
''
);
$
(
'.groupName'
).
val
(
''
);
...
...
@@ -226,6 +276,7 @@
$
(
'.editCon'
).
val
(
id
);
$
(
'.groupName'
).
val
(
e
.
data
.
name
);
// $('.groupMobile').val(e.data.address);
adArr
.
addressStr
[
0
]
=
e
.
data
.
province
$
.
getJSON
(
ctx
+
'smile/user/getAreaJson'
).
done
(
function
(
res
)
{
$
(
"#demo-1"
).
iPicker
({
level
:
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment