Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
daf76bc4
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1194
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看板
提交
daf76bc4
编写于
6月 22, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 学校管理模块代码修改
上级
f91aafd2
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
355 addition
and
6 deletion
+355
-6
school/src/main/resources/template/js/chapter/chapterList.js
school/src/main/resources/template/js/chapter/chapterList.js
+3
-1
school/src/main/resources/template/js/chapter/write.js
school/src/main/resources/template/js/chapter/write.js
+53
-0
school/src/main/resources/template/js/subject/subjectManage.js
...l/src/main/resources/template/js/subject/subjectManage.js
+2
-5
school/src/main/resources/template/js/subjectClass/list.js
school/src/main/resources/template/js/subjectClass/list.js
+142
-0
school/src/main/resources/template/js/subjectClass/manage.js
school/src/main/resources/template/js/subjectClass/manage.js
+38
-0
school/src/main/resources/template/tpl/chapter/write.html
school/src/main/resources/template/tpl/chapter/write.html
+28
-0
school/src/main/resources/template/tpl/subjectClass/list.html
...ol/src/main/resources/template/tpl/subjectClass/list.html
+30
-0
school/src/main/resources/template/tpl/subjectClass/manage.html
.../src/main/resources/template/tpl/subjectClass/manage.html
+22
-0
web/src/main/resources/template/assets/lib/layui/custom.js
web/src/main/resources/template/assets/lib/layui/custom.js
+1
-0
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+18
-0
web/src/main/resources/template/assets/lib/layui/customer/skyeye/schoolUtil.js
...s/template/assets/lib/layui/customer/skyeye/schoolUtil.js
+18
-0
未找到文件。
school/src/main/resources/template/js/chapter/chapterList.js
浏览文件 @
daf76bc4
var
objectKey
=
""
;
var
objectId
=
""
;
var
subjectClassesId
=
""
;
layui
.
config
({
base
:
basePath
,
...
...
@@ -14,6 +15,7 @@ layui.config({
table
=
layui
.
table
;
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
subjectClassesId
=
GetUrlParam
(
"
subjectClassesId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
...
...
@@ -66,7 +68,7 @@ layui.config({
// 新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023082800010&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
,
null
)
,
url
:
'
../../tpl/chapter/write.html?objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
+
'
&subjectClassesId=
'
+
subjectClassesId
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
chapterAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
...
...
school/src/main/resources/template/js/chapter/write.js
0 → 100644
浏览文件 @
daf76bc4
// 以下两个参数开启团队权限时有值
var
objectId
=
''
,
objectKey
=
''
;
// 根据以下两个参数判断:工作流的判断是否要根据serviceClassName的判断
var
serviceClassName
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
var
id
=
GetUrlParam
(
"
id
"
);
var
objectId
=
GetUrlParam
(
"
objectId
"
);
var
objectKey
=
GetUrlParam
(
"
objectKey
"
);
var
subjectClassesId
=
GetUrlParam
(
"
subjectClassesId
"
);
if
(
isNull
(
id
))
{
dsFormUtil
.
initAddPageForStatic
(
'
content
'
,
'
FP2023082800010
'
,
{
saveData
:
function
(
params
)
{
params
.
objectId
=
objectId
;
params
.
objectKey
=
objectKey
;
params
.
subjectClassesId
=
subjectClassesId
;
console
.
log
(
params
);
// 保存数据
// AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertPurchaseOrderToTurnDelivery", params: params, type: 'json', method: "POST", callback: function(json) {
// parent.layer.close(index);
// parent.refreshCode = '0';
// }});
}
});
}
else
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
erpBasePath
+
"
queryPurchaseOrderTransById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
data
=
json
.
bean
;
dsFormUtil
.
initEditPageForStatic
(
'
content
'
,
'
FP2023082800011
'
,
data
,
{
savePreParams
:
function
(
params
)
{
},
saveData
:
function
(
params
)
{
// 保存数据
// AjaxPostUtil.request({url: sysMainMation.erpBasePath + "insertPurchaseOrderToTurnDelivery", params: params, type: 'json', method: "POST", callback: function(json) {
// parent.layer.close(index);
// parent.refreshCode = '0';
// }});
}
});
}});
}
});
\ No newline at end of file
school/src/main/resources/template/js/subject/subjectManage.js
浏览文件 @
daf76bc4
...
...
@@ -19,11 +19,8 @@ layui.config({
pageUrl
:
systemCommonUtil
.
getUrl
(
'
FP2023082800004&id=
'
+
objectId
,
null
)
}],
suffixData
:
[{
title
:
'
章节
'
,
pageUrl
:
'
../../tpl/chapter/chapterList.html
'
},
{
title
:
'
知识点
'
,
pageUrl
:
'
../../tpl/knowledge/knowledgeList.html
'
title
:
'
班级
'
,
pageUrl
:
'
../../tpl/subjectClass/list.html
'
}],
element
:
layui
.
element
,
object
:
{
...
...
school/src/main/resources/template/js/subjectClass/list.js
0 → 100644
浏览文件 @
daf76bc4
var
objectKey
=
""
;
var
objectId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
sysMainMation
.
schoolBasePath
+
'
querySubjectClassesList
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
section
'
,
title
:
'
章节
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
'
第
'
+
d
.
section
+
'
章
'
;
}},
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
300
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
name
+
'
</a>
'
;
}},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
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
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
table
.
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
else
if
(
layEvent
===
'
del
'
)
{
//删除
del
(
data
);
}
else
if
(
layEvent
===
'
manager
'
)
{
// 管理
manager
(
data
);
}
});
// 新增
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023082800010&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
,
null
),
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
],
pageId
:
"
chapterAdd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 编辑
function
edit
(
data
)
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023082800011&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
+
'
&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
chapterEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 管理
function
manager
(
data
)
{
parent
.
_openNewWindows
({
url
:
'
../../tpl/subjectClass/manage.html?objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
+
'
&subjectClassesId=
'
+
data
.
id
,
title
:
"
科目班级管理
"
,
pageId
:
"
subjectClassManager
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 详情
function
details
(
data
)
{
parent
.
_openNewWindows
({
url
:
systemCommonUtil
.
getUrl
(
'
FP2023082800012&objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
+
'
&id=
'
+
data
.
id
,
null
),
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
chapterDetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}});
}
// 删除
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
deleteChapterById
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
DELETE
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{
objectKey
:
objectKey
,
objectId
:
objectId
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
subjectClassList
'
,
{});
});
\ No newline at end of file
school/src/main/resources/template/js/subjectClass/manage.js
0 → 100644
浏览文件 @
daf76bc4
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
var
objectId
=
GetUrlParam
(
"
objectId
"
);
var
objectKey
=
GetUrlParam
(
"
objectKey
"
);
var
subjectClassesId
=
GetUrlParam
(
"
subjectClassesId
"
);
tabPageUtil
.
init
({
id
:
'
tab
'
,
prefixData
:
[{
title
:
'
详情
'
,
pageUrl
:
systemCommonUtil
.
getUrl
(
'
FP2023082800004&id=
'
+
objectId
,
null
)
}],
suffixData
:
[{
title
:
'
章节
'
,
pageUrl
:
'
../../tpl/chapter/chapterList.html?subjectClassesId=
'
+
subjectClassesId
},
{
title
:
'
知识点
'
,
pageUrl
:
'
../../tpl/knowledge/knowledgeList.html?subjectClassesId=
'
+
subjectClassesId
}],
element
:
layui
.
element
,
object
:
{
objectId
:
objectId
,
objectKey
:
objectKey
,
}
});
form
.
render
();
});
\ No newline at end of file
school/src/main/resources/template/tpl/chapter/write.html
0 → 100644
浏览文件 @
daf76bc4
<!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/chapter/
'
}).
use
(
'
write
'
);
</script>
</body>
</html>
\ No newline at end of file
school/src/main/resources/template/tpl/subjectClass/list.html
0 → 100644
浏览文件 @
daf76bc4
<!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
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;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
manager
"
>
管理
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
</script>
</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/subjectClass/
'
}).
use
(
'
list
'
);
</script>
</body>
</html>
\ No newline at end of file
school/src/main/resources/template/tpl/subjectClass/manage.html
0 → 100644
浏览文件 @
daf76bc4
<!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
class=
"body-box"
>
<div
class=
"layui-col-xs12"
style=
"height: 100%"
id=
"tab"
>
</div>
</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/subjectClass/
'
}).
use
(
'
manage
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/assets/lib/layui/custom.js
浏览文件 @
daf76bc4
...
...
@@ -31,6 +31,7 @@ var customerJS = {
"
skyeyeClassEnumUtil
"
:
"
../../assets/lib/layui/customer/skyeye/skyeyeClassEnumUtil.js
"
,
// 动态枚举插件
"
teamObjectPermissionUtil
"
:
"
../../assets/lib/layui/customer/teamObjectPermissionUtil.js
"
,
// 团队成员权限插件
"
catalogTreeUtil
"
:
"
../../assets/lib/layui/customer/tree/catalogTreeUtil.js
"
,
// 目录功能的工具类
"
schoolUtil
"
:
"
../../assets/lib/layui/customer/skyeye/schoolUtil.js
"
,
// 学校模块工具类
};
//系统基础信息
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
daf76bc4
...
...
@@ -192,6 +192,24 @@ var dsFormUtil = {
})
},
/**
* 加载动态表单(新增操作---自定义数据)
*
* @param showBoxId 显示位置
* @param pageId 布局id/布局编码
* @param newOptions 配置参数
*/
initAddPageForStatic
:
function
(
showBoxId
,
pageId
,
newOptions
)
{
if
(
!
isNull
(
newOptions
))
{
for
(
var
pro
in
newOptions
)
{
dsFormUtil
.
options
[
pro
]
=
newOptions
[
pro
];
}
}
dsFormUtil
.
getPageMation
(
pageId
,
function
(
pageMation
)
{
dsFormUtil
.
initCreatePage
(
showBoxId
,
pageMation
);
})
},
getPageMation
:
function
(
pageId
,
callback
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dsformpage006
"
,
params
:
{
id
:
pageId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
let
pageMation
=
json
.
bean
;
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/schoolUtil.js
0 → 100644
浏览文件 @
daf76bc4
// 学校模块相关工具类
var
schoolUtil
=
{
/**
* 获取当前登陆用户所属的学校列表
*
* @param callback 回执函数
*/
queryMyBelongSchoolList
:
function
(
callback
)
{
AjaxPostUtil
.
request
({
url
:
schoolBasePath
+
"
schoolmation008
"
,
params
:
{},
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
if
(
typeof
(
callback
)
==
"
function
"
)
{
callback
(
json
);
}
},
async
:
false
});
},
};
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录