Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
647808af
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
647808af
编写于
7月 13, 2024
作者:
X
xqz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:作业批改
上级
a4715af5
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
84 addition
and
7 deletion
+84
-7
school/src/main/resources/template/js/homework/correct.js
school/src/main/resources/template/js/homework/correct.js
+32
-0
school/src/main/resources/template/js/homework/hasSubmit.js
school/src/main/resources/template/js/homework/hasSubmit.js
+19
-2
school/src/main/resources/template/js/homework/homeworkList.js
...l/src/main/resources/template/js/homework/homeworkList.js
+2
-2
school/src/main/resources/template/js/homework/noSubmit.js
school/src/main/resources/template/js/homework/noSubmit.js
+3
-2
school/src/main/resources/template/tpl/homework/correct.html
school/src/main/resources/template/tpl/homework/correct.html
+28
-0
school/src/main/resources/template/tpl/homework/hasSubmit.html
...l/src/main/resources/template/tpl/homework/hasSubmit.html
+0
-1
未找到文件。
school/src/main/resources/template/js/homework/correct.js
浏览文件 @
647808af
// 以下两个参数开启团队权限时有值
var
objectId
=
''
,
objectKey
=
''
;
// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断
var
serviceClassName
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
tagEditor
'
,
'
laydate
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
var
id
=
GetUrlParam
(
"
id
"
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
queryAssignmentSubById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
data
=
json
.
bean
;
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2024071300013
'
,
data
,
{
savePreParams
:
function
(
params
)
{
}
});
}
});
});
\ No newline at end of file
school/src/main/resources/template/js/homework/hasSubmit.js
浏览文件 @
647808af
...
...
@@ -29,6 +29,9 @@ layui.config({
{
field
:
'
accountNumber
'
,
title
:
'
学号
'
,
align
:
'
left
'
,
width
:
180
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
createMation
?.
accountNumber
);
}},
{
field
:
'
content
'
,
title
:
'
内容
'
,
align
:
'
left
'
,
width
:
180
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
content
+
'
</a>
'
;
}},
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
left
'
,
width
:
150
,
templet
:
function
(
d
)
{
var
str
=
''
;
if
(
d
.
state
==
'
beCorrected
'
)
{
...
...
@@ -39,12 +42,12 @@ layui.config({
return
str
;
}},
{
field
:
'
score
'
,
title
:
'
分数
'
,
align
:
'
left
'
,
width
:
150
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
]
,
align
:
'
center
'
,
width
:
250
},
{
field
:
'
lastUpdateTime
'
,
title
:
'
最后提交时间
'
,
align
:
'
center
'
,
width
:
250
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
257
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入名称
"
,
function
()
{
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
暂不支持搜索
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
...
...
@@ -55,11 +58,25 @@ layui.config({
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
correct
'
)
{
//批改
correct
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
});
// 详情
function
details
(
data
)
{
parent
.
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2024071300001&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
homeworkDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
//批改
function
correct
(
data
)
{
console
.
log
(
11
)
parent
.
parent
.
_openNewWindows
({
url
:
'
../../tpl/homework/correct.html?id=
'
+
data
.
id
,
title
:
'
作业批改
'
,
...
...
school/src/main/resources/template/js/homework/homeworkList.js
浏览文件 @
647808af
...
...
@@ -117,8 +117,8 @@ layui.config({
function
submit
(
data
)
{
parent
.
parent
.
_openNewWindows
({
url
:
'
../../tpl/homework/submit.html?id=
'
+
data
.
id
,
title
:
'
作业批改
'
,
pageId
:
"
homework
Correc
t
"
,
title
:
'
提交情况
'
,
pageId
:
"
homework
Submi
t
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
...
...
school/src/main/resources/template/js/homework/noSubmit.js
浏览文件 @
647808af
...
...
@@ -25,11 +25,12 @@ layui.config({
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
姓名
'
,
align
:
'
center
'
,
width
:
200
},
{
field
:
'
accountNumber
'
,
title
:
'
学号
'
,
align
:
'
left
'
,
width
:
200
},
{
field
:
'
signature
'
,
title
:
'
个性签名
'
,
align
:
'
left
'
,
width
:
250
}
{
field
:
'
signature
'
,
title
:
'
个性签名
'
,
align
:
'
left
'
,
width
:
250
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
250
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入名称
"
,
function
()
{
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
暂不支持搜索
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
...
...
school/src/main/resources/template/tpl/homework/correct.html
浏览文件 @
647808af
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto;padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
id=
"content"
></div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
type=
"button"
id=
"cancle"
><language
showName=
"com.skyeye.cancel"
></language></button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formWriteBean"
id=
"formWriteBean"
>
保存
</button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/homework/
'
}).
use
(
'
correct
'
);
</script>
</body>
</html>
school/src/main/resources/template/tpl/homework/hasSubmit.html
浏览文件 @
647808af
...
...
@@ -10,7 +10,6 @@
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"add"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录