Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kaoshi-java
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
单欣鑫
kaoshi-java
Commits
2096476c
Commit
2096476c
authored
Oct 23, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.BUG修复
parent
0625c764
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
TbExamNoticeMapper.xml
...em/src/main/resources/mapper/hezhi/TbExamNoticeMapper.xml
+3
-3
index.vue
ruoyi-ui/src/views/hezhi/examSubject/index.vue
+1
-0
index.vue
ruoyi-ui/src/views/hezhi/notice/index.vue
+12
-4
No files found.
ruoyi-system/src/main/resources/mapper/hezhi/TbExamNoticeMapper.xml
View file @
2096476c
...
@@ -185,10 +185,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -185,10 +185,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-- 动态排序字段:未过期标记为0(排前面),已过期标记为1(排后面)
-- 动态排序字段:未过期标记为0(排前面),已过期标记为1(排后面)
CASE
CASE
WHEN ten.exam_start_time >= CURDATE() THEN 0
WHEN ten.exam_start_time >= CURDATE() THEN 0
ELSE 1 END AS isExpired
,
ELSE 1 END AS isExpired
ter.exam_registration_id as examRegistrationId
#
ter.exam_registration_id as examRegistrationId
FROM tb_exam_notice ten
FROM tb_exam_notice ten
LEFT JOIN tb_exam_registration ter on ten.exam_id = ter.exam_id and ten.batch_index = ter.exam_batch_index
#
LEFT JOIN tb_exam_registration ter on ten.exam_id = ter.exam_id and ten.batch_index = ter.exam_batch_index
WHERE ten.status = 0 AND ten.del_flag = 0
WHERE ten.status = 0 AND ten.del_flag = 0
<if
test=
"searchValue != null and searchValue != ''"
>
<if
test=
"searchValue != null and searchValue != ''"
>
AND (ten.exam_notice_name LIKE CONCAT('%', #{searchValue}, '%') OR ten.exam_notice_introduce LIKE CONCAT('%', #{searchValue}, '%'))
AND (ten.exam_notice_name LIKE CONCAT('%', #{searchValue}, '%') OR ten.exam_notice_introduce LIKE CONCAT('%', #{searchValue}, '%'))
...
...
ruoyi-ui/src/views/hezhi/examSubject/index.vue
View file @
2096476c
...
@@ -87,6 +87,7 @@
...
@@ -87,6 +87,7 @@
<span
v-if=
"scope.row.examType ? scope.row.examType.includes('1') : false"
>
模拟考试
</span>
<span
v-if=
"scope.row.examType ? scope.row.examType.includes('1') : false"
>
模拟考试
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"专业名称"
align=
"center"
prop=
"subjectWarehouseClassName"
width=
"120px"
/>
<el-table-column
label=
"等级"
align=
"center"
prop=
"level"
width=
"100px"
>
<el-table-column
label=
"等级"
align=
"center"
prop=
"level"
width=
"100px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.tb_subject_level"
:value=
"scope.row.level"
/>
<dict-tag
:options=
"dict.type.tb_subject_level"
:value=
"scope.row.level"
/>
...
...
ruoyi-ui/src/views/hezhi/notice/index.vue
View file @
2096476c
...
@@ -307,11 +307,19 @@ export default {
...
@@ -307,11 +307,19 @@ export default {
{
required
:
true
,
message
:
"
内容不能为空
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
内容不能为空
"
,
trigger
:
"
blur
"
},
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
||
value
.
replace
(
/<
[^
>
]
+>/g
,
''
).
trim
()
===
''
)
{
if
(
!
value
)
{
callback
(
new
Error
(
'
请输入有效内容
'
));
return
callback
(
new
Error
(
'
请输入有效内容
'
));
}
else
{
callback
();
}
}
// 临时移除图片标签,检查剩余文本内容
const
contentWithoutImages
=
value
.
replace
(
/<img
[^
>
]
*>/gi
,
''
);
const
cleanText
=
contentWithoutImages
.
replace
(
/<
[^
>
]
+>/g
,
''
).
trim
();
// 如果有图片或者有文本内容,都算有效
const
hasImages
=
/<img
[^
>
]
*>/i
.
test
(
value
);
const
hasText
=
cleanText
!==
''
;
if
(
!
hasImages
&&
!
hasText
)
{
return
callback
(
new
Error
(
'
请输入有效内容
'
));
}
callback
();
},
},
trigger
:
'
blur
'
trigger
:
'
blur
'
}
}
...
...
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