Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
c979a445
提交
c979a445
authored
4月 22, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
驳回提交增加确认框
上级
31decb36
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
30 行增加
和
5 行删除
+30
-5
chapterWork.vue
src/modules/viewer/components/work/chapterWork.vue
+15
-3
chapterWorkComment.vue
src/modules/viewer/components/work/chapterWorkComment.vue
+15
-2
没有找到文件。
src/modules/viewer/components/work/chapterWork.vue
浏览文件 @
c979a445
...
@@ -68,7 +68,17 @@
...
@@ -68,7 +68,17 @@
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"buttons"
>
<
div
class
=
"buttons"
>
<
el
-
tooltip
:
content
=
"$t('viewerWork.workSubmitButtonTips')"
placement
=
"right"
>
<!--
驳回的提交
-->
<
el
-
popover
placement
=
"bottom"
width
=
"170"
v
-
model
=
"popoverVisible"
v
-
if
=
"detail.status === 1"
>
<
p
>
您已完成作业,确定提交?
<
/p
>
<
div
style
=
"text-align: right; margin-top: 10px"
>
<
el
-
button
size
=
"mini"
type
=
"text"
@
click
=
"popoverVisible = false"
>
取消
<
/el-button
>
<
el
-
button
type
=
"primary"
size
=
"mini"
@
click
=
"onSubmit"
>
确定提交
<
/el-button
>
<
/div
>
<
el
-
button
type
=
"primary"
:
disabled
=
"disabled"
slot
=
"reference"
>
{{
submitText
}}
<
/el-button
>
<
/el-popover
>
<!--
正常提交
-->
<
el
-
tooltip
:
content
=
"$t('viewerWork.workSubmitButtonTips')"
placement
=
"right"
v
-
else
>
<
el
-
button
type
=
"primary"
:
disabled
=
"disabled"
:
loading
=
"submitLoading"
@
click
=
"onSubmit"
>
{{
<
el
-
button
type
=
"primary"
:
disabled
=
"disabled"
:
loading
=
"submitLoading"
@
click
=
"onSubmit"
>
{{
submitText
submitText
}}
<
/el-button
>
}}
<
/el-button
>
...
@@ -154,7 +164,8 @@ export default {
...
@@ -154,7 +164,8 @@ export default {
rules
:
{
rules
:
{
user_answer
:
[{
required
:
true
,
message
:
'请输入'
,
trigger
:
'change'
}
]
user_answer
:
[{
required
:
true
,
message
:
'请输入'
,
trigger
:
'change'
}
]
}
,
}
,
dialogVisible
:
false
dialogVisible
:
false
,
popoverVisible
:
false
}
}
}
,
}
,
watch
:
{
watch
:
{
...
@@ -412,7 +423,8 @@ export default {
...
@@ -412,7 +423,8 @@ export default {
.
paper
-
check
-
item
{
.
paper
-
check
-
item
{
padding
:
5
px
0
;
padding
:
5
px
0
;
display
:
flex
;
display
:
flex
;
b
{
b
,
span
{
white
-
space
:
nowrap
;
white
-
space
:
nowrap
;
}
}
}
}
...
...
src/modules/viewer/components/work/chapterWorkComment.vue
浏览文件 @
c979a445
...
@@ -21,7 +21,19 @@
...
@@ -21,7 +21,19 @@
></el-form>
></el-form>
</
template
>
</
template
>
<div
class=
"button"
>
<div
class=
"button"
>
<el-button
type=
"primary"
:disabled=
"disabled"
@
click=
"handleSubmit"
>
{{
<!-- 驳回的提交 -->
<el-popover
placement=
"bottom"
width=
"170"
v-model=
"popoverVisible"
v-if=
"status === 1"
>
<p>
您已完成作业,确定提交?
</p>
<div
style=
"text-align: right; margin-top: 10px"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"popoverVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleSubmit"
>
确定提交
</el-button>
</div>
<el-button
type=
"primary"
:disabled=
"disabled"
slot=
"reference"
>
{{
$t('viewerWork.commentSubmitText')
}}
</el-button>
</el-popover>
<!-- 正常提交 -->
<el-button
type=
"primary"
:disabled=
"disabled"
@
click=
"handleSubmit"
v-else
>
{{
$t('viewerWork.commentSubmitText')
$t('viewerWork.commentSubmitText')
}}
</el-button>
}}
</el-button>
<p>
{{ $t('viewerWork.commentSubmitTips', { date: endDate }) }}
</p>
<p>
{{ $t('viewerWork.commentSubmitTips', { date: endDate }) }}
</p>
...
@@ -50,7 +62,8 @@ export default {
...
@@ -50,7 +62,8 @@ export default {
list
:
[],
list
:
[],
rules
:
{
rules
:
{
comment
:
[{
required
:
true
,
message
:
'请输入评价内容'
,
trigger
:
'change'
}]
comment
:
[{
required
:
true
,
message
:
'请输入评价内容'
,
trigger
:
'change'
}]
}
},
popoverVisible
:
false
}
}
},
},
computed
:
{
computed
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论