Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
d0ab3cd0
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1429
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
d0ab3cd0
编写于
9月 07, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 课程设置前端代码提交
上级
38fae53a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
237 addition
and
1 deletion
+237
-1
school/src/main/resources/template/js/yearSubject/saveYearSubject.js
...main/resources/template/js/yearSubject/saveYearSubject.js
+137
-0
school/src/main/resources/template/tpl/yearSubject/saveYearSubject.html
...n/resources/template/tpl/yearSubject/saveYearSubject.html
+97
-0
userauth/src/main/resources/template/js/appWorkPage/appWorkPageList.js
...main/resources/template/js/appWorkPage/appWorkPageList.js
+3
-1
未找到文件。
school/src/main/resources/template/js/yearSubject/saveYearSubject.js
0 → 100644
浏览文件 @
d0ab3cd0
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
laydate
'
,
'
form
'
,
'
table
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
,
laydate
=
layui
.
laydate
;
var
subjectList
=
[];
// 哪一届
laydate
.
render
({
elem
:
'
#year
'
,
type
:
'
year
'
,
max
:
'
date
'
});
// 获取学校列表
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
queryAllSchoolList
"
,
params
:
{},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
(
"
#schoolId
"
).
html
(
getDataUseHandlebars
(
getFileContent
(
'
tpl/template/select-option.tpl
'
),
json
));
form
.
render
(
"
select
"
);
}});
form
.
on
(
'
select(schoolId)
'
,
function
(
data
)
{
var
value
=
data
.
value
;
if
(
isNull
(
value
))
{
$
(
"
#facultyId
"
).
html
(
""
);
$
(
"
#majorId
"
).
html
(
""
);
}
else
{
var
params
=
{
schoolId
:
value
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
queryFacultyListBySchoolId
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
(
"
#facultyId
"
).
html
(
getDataUseHandlebars
(
getFileContent
(
'
tpl/template/select-option.tpl
'
),
json
));
$
(
"
#majorId
"
).
html
(
""
);
form
.
render
(
"
select
"
);
}});
}
});
form
.
on
(
'
select(facultyId)
'
,
function
(
data
)
{
var
value
=
data
.
value
;
if
(
isNull
(
value
))
{
$
(
"
#majorId
"
).
html
(
""
);
}
else
{
var
params
=
{
facultyId
:
value
};
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
queryMajorListByFacultyId
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
$
(
"
#majorId
"
).
html
(
getDataUseHandlebars
(
getFileContent
(
'
tpl/template/select-option.tpl
'
),
json
));
form
.
render
(
"
select
"
);
}});
}
});
matchingLanguage
();
form
.
render
();
var
tempParams
=
{};
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
console
.
log
(
111
)
tempParams
=
{
schoolId
:
$
(
"
#schoolId
"
).
val
(),
majorId
:
$
(
"
#majorId
"
).
val
(),
year
:
$
(
"
#year
"
).
val
()
}
// 获取科目列表
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
"
querySubjectListBySchoolId
"
,
params
:
{
schoolId
:
tempParams
.
schoolId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
subjectList
=
json
.
rows
;
},
async
:
false
});
// 获取该学年该专业的学期列表
var
params
=
{
majorId
:
tempParams
.
majorId
,
year
:
tempParams
.
year
}
var
tableDataList
=
[];
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
""
,
params
:
params
,
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
},
async
:
false
});
var
rowNum
=
1
;
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
item
[
"
id
"
]
=
rowNum
;
rowNum
++
;
});
table
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
get
'
,
data
:
tableDataList
,
even
:
true
,
page
:
false
,
limit
:
100
,
cols
:
[[
{
field
:
'
value
'
,
title
:
'
学期
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
d
.
name
;
}},
{
field
:
'
subject
'
,
title
:
'
科目
'
,
align
:
'
left
'
,
width
:
200
,
templet
:
function
(
d
)
{
return
`<div id="subject
${
d
.
id
}
" cus-id="
${
d
.
id
}
"></div>`
;
}},
]],
done
:
function
(
json
)
{
matchingLanguage
();
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
// 限制条件
var
subjectIds
=
isNull
(
item
.
subjectIds
)
?
''
:
(
$
.
isArray
(
item
.
subjectIds
)
?
item
.
subjectIds
.
toString
()
:
JSON
.
parse
(
item
.
subjectIds
).
toString
());
dataShowType
.
showData
(
subjectList
,
'
verificationSelect
'
,
"
subject
"
+
item
.
id
,
subjectIds
,
form
,
null
,
null
,
'
formerRequirement
'
);
});
}
});
}
return
false
;
});
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
majorId
:
tempParams
.
majorId
,
year
:
tempParams
.
year
,
};
var
tableDataList
=
[].
concat
(
table
.
cache
.
messageTable
);
$
.
each
(
tableDataList
,
function
(
i
,
item
)
{
item
.
subjectIds
=
dataShowType
.
getData
(
`subject
${
item
.
id
}
`
);
});
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
schoolBasePath
+
""
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
录入成功
"
,
{
icon
:
1
,
time
:
3000
});
}});
}
return
false
;
});
});
\ No newline at end of file
school/src/main/resources/template/tpl/yearSubject/saveYearSubject.html
0 → 100644
浏览文件 @
d0ab3cd0
<!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"
/>
<style>
.layui-table-cell
{
height
:
auto
;
text-overflow
:
inherit
;
overflow
:
visible
;
white-space
:
normal
;
word-wrap
:
break-word
;
}
.layui-table-cell
.layui-anim
{
height
:
180px
;
}
.place-holder
{
height
:
200px
;
}
</style>
</head>
<body>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
届
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"year"
name=
"year"
placeholder=
"请选择届"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
学校
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"schoolId"
lay-filter=
"schoolId"
lay-search=
""
lay-filter=
"schoolId"
win-verify=
"required"
>
<option
value=
""
>
请选择
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
院系
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"facultyId"
lay-filter=
"facultyId"
lay-search=
""
lay-filter=
"facultyId"
win-verify=
"required"
>
<option
value=
""
>
请选择
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
专业
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"majorId"
lay-filter=
"majorId"
lay-search=
""
win-verify=
"required"
>
<option
value=
""
>
请选择
</option>
</select>
</div>
</div>
</div>
<button
class=
"layui-btn list-form-search"
type=
"button"
id=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</form>
</div>
</div>
<div
style=
"margin:0 auto; padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
届:
</label>
<div
class=
"layui-input-block ver-center"
id=
"yearShow"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
专业:
</label>
<div
class=
"layui-input-block ver-center"
id=
"majorShow"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
学年科目信息
</label>
<div
class=
"layui-input-block"
>
<table
class=
"layui-table"
id=
"messageTable"
>
</table>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
>
保存
</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/yearSubject/
'
}).
use
(
'
saveYearSubject
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/js/appWorkPage/appWorkPageList.js
浏览文件 @
d0ab3cd0
...
@@ -41,7 +41,9 @@ layui.config({
...
@@ -41,7 +41,9 @@ layui.config({
return
"
页面
"
;
return
"
页面
"
;
}
}
}},
}},
{
field
:
'
desktopName
'
,
title
:
'
所属桌面
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
desktopId
'
,
title
:
'
所属桌面
'
,
align
:
'
left
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
isNull
(
d
.
deskTopMation
)
?
''
:
d
.
deskTopMation
.
name
;
}},
{
field
:
'
parentTitle
'
,
title
:
'
所属目录
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
parentTitle
'
,
title
:
'
所属目录
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
childNum
'
,
title
:
'
子页面数量
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
childNum
'
,
title
:
'
子页面数量
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
url
'
,
title
:
'
页面路径
'
,
align
:
'
left
'
,
width
:
300
},
{
field
:
'
url
'
,
title
:
'
页面路径
'
,
align
:
'
left
'
,
width
:
300
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录