Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
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
micro_app
gk
Commits
7f1f3ec1
Commit
7f1f3ec1
authored
Jul 24, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(gunRule): 枪次编辑优化
parent
de376271
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
gunRule.jsp
src/main/webapp/WEB-INF/views/cmpt/gunRule.jsp
+14
-4
No files found.
src/main/webapp/WEB-INF/views/cmpt/gunRule.jsp
View file @
7f1f3ec1
...
...
@@ -193,7 +193,7 @@
<
/n-gradient-text
>
<
/div
>
<
/n-descriptions-item
>
<
/n-descriptions
>
<
/n-descriptions
>
<
/n-card
>
<!--
顶部的搜索框
-->
...
...
@@ -315,7 +315,7 @@
<
/n-radio-group
>
<
/n-form-item
>
<
n
-
form
-
item
label
=
"组别"
path
=
"roadName"
>
<
n
-
select
:
options
=
"gunRules.map(v=>({label:v.roadName,value:v.roadName}))"
v
-
model
:
value
=
"playerFormValue.roadName"
>
<
n
-
select
@
update
:
value
=
"updateWaveOptions"
:
options
=
"gunRules.map(v=>({label:v.roadName,value:v.roadName}))"
v
-
model
:
value
=
"playerFormValue.roadName"
>
<
/n-select
>
<
/n-form-item
>
<
n
-
form
-
item
label
=
"枪次"
v
-
if
=
"gunRules.length"
>
...
...
@@ -734,6 +734,11 @@
activeMenu
.
value
=
value
}
// 更新枪次选项
const
updateWaveOptions
=
(
value
)
=>
{
playerFormValue
.
value
.
waveNumber
=
undefined
}
// 搜索
const
search
=
async
(
clear
=
false
)
=>
{
if
(
clear
)
keyword
.
value
=
''
...
...
@@ -808,6 +813,7 @@
const
downloadImportList
=
()
=>
{
// 在新窗口打卡
window
.
location
.
href
=
DOWNLOAD_IMPORT_LIST
getGunRules
()
}
// 随机分配
const
randomAssign
=
async
()
=>
{
...
...
@@ -837,7 +843,7 @@
if
(
data
.
code
!==
200
)
return
message
.
error
(
data
.
message
)
message
.
success
(
'随机分配成功'
)
get
Player
s
()
get
GunRule
s
()
}
// 初始化规则
const
initWaves
=
async
()
=>
{
...
...
@@ -935,7 +941,10 @@
message
.
error
(
err
.
message
)
}
if
(
res
.
code
!==
200
)
return
message
.
error
(
res
.
message
)
gunRules
.
value
=
res
.
data
gunRules
.
value
=
res
.
data
.
map
(
v
=>
({
...
v
,
startTime
:
v
.
startTime
.
slice
(
0
,
-
2
),
}))
if
(
res
.
data
.
length
)
{
changeGunRule
(
ruleIndex
.
value
===
-
1
?
0
:
ruleIndex
.
value
)
}
else
{
...
...
@@ -1135,6 +1144,7 @@
onPlayerModalCancel
,
onPlayerSubmit
,
waveOptions
,
updateWaveOptions
,
// 人员列表
keyword
,
pagination
,
...
...
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