记得上下班打卡 | 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
99edbfe7
Commit
99edbfe7
authored
Aug 09, 2022
by
sangchunxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 select 后 晴空input
parent
d4830a4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
add.html
...rces/templates/zhengzai/sweet/affiliatedActivity/add.html
+12
-2
edit.html
...ces/templates/zhengzai/sweet/affiliatedActivity/edit.html
+11
-7
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/affiliatedActivity/add.html
View file @
99edbfe7
...
...
@@ -382,6 +382,9 @@
setTimeout
(()
=>
{
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
createListenerSearch
(
i
+
1
)
$
(
`#listActiveType
${
i
+
1
}
`
).
change
(
function
()
{
$
(
'#listRemoteSearch'
+
(
i
+
1
)
+
' input'
).
attr
(
'value'
,
''
)
})
}
},
500
)
...
...
@@ -456,7 +459,7 @@
// 只有一组,可添加
if
(
dynamicDomLength
)
{
if
(
dynamicDomLength
>=
0
)
{
console
.
log
(
'dynamicDomLength'
,
dynamicDomLength
)
$
(
'.sortable-list'
).
append
(
dynamicAddDom
)
...
...
@@ -467,7 +470,14 @@
searchAjax
(
val
,
dynamicDomLength
+
1
)
})
},
600
)
},
500
)
setTimeout
(()
=>
{
$
(
`#listActiveType
${
dynamicDomLength
+
1
}
`
).
change
(
function
()
{
$
(
'#listRemoteSearch'
+
(
dynamicDomLength
+
1
)
+
' input'
).
attr
(
'value'
,
''
)
})
},
800
)
}
else
{
layer
.
msg
(
'不能添加'
)
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/sweet/affiliatedActivity/edit.html
View file @
99edbfe7
...
...
@@ -364,7 +364,6 @@
if
(
itemId
)
{
// 请求数据
promiseMethods
(
'/kylin-recommend-active/getActiveById'
,
'post'
,
{
mid
:
itemId
}).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
if
(
res
)
{
list
=
res
.
list
...
...
@@ -391,6 +390,9 @@
setTimeout
(()
=>
{
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
createListenerSearch
(
i
+
1
)
$
(
`#listActiveType
${
i
+
1
}
`
).
change
(
function
()
{
$
(
'#listRemoteSearch'
+
(
i
+
1
)
+
' input'
).
attr
(
'value'
,
''
)
})
}
},
500
)
...
...
@@ -406,8 +408,6 @@
}
},
800
)
}
else
{
layer
.
msg
(
res
.
message
)
}
...
...
@@ -478,7 +478,7 @@
// 只有一组,可添加
if
(
dynamicDomLength
)
{
if
(
dynamicDomLength
>=
0
)
{
$
(
'.sortable-list'
).
append
(
dynamicAddDom
)
setTimeout
(()
=>
{
...
...
@@ -488,6 +488,13 @@
},
500
)
setTimeout
(()
=>
{
$
(
`#listActiveType
${
dynamicDomLength
+
1
}
`
).
change
(
function
()
{
$
(
'#listRemoteSearch'
+
(
dynamicDomLength
+
1
)
+
' input'
).
attr
(
'value'
,
''
)
})
},
800
)
}
else
{
layer
.
msg
(
'不能添加'
)
}
...
...
@@ -554,7 +561,6 @@
function
searchAjax
(
val
,
index
)
{
let
_selectVal
=
$
(
"#listActiveType"
+
index
).
find
(
"option:selected"
).
val
()
// 当前子select val
if
(
_selectVal
)
{
let
_params
=
{}
if
(
_selectVal
==
1
)
{
...
...
@@ -639,8 +645,6 @@
status
:
Number
(
$
(
"#status"
).
find
(
"option:selected"
).
val
())
}
console
.
log
(
'_params'
,
_params
)
// 修改活动
promiseMethods
(
'/kylin-recommend-active/updateKylinRecommendActive'
,
'post'
,
JSON
.
stringify
(
_params
),
'application/json'
).
then
(
res
=>
{
...
...
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