Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
026f530d
Commit
026f530d
authored
Nov 01, 2023
by
zhaopanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zpy 11.1
parent
39cc0f08
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
33 deletions
+37
-33
ruoyi-ui/src/permission.js
+1
-0
ruoyi-ui/src/router/index.js
+11
-0
ruoyi-ui/src/views/smartSchool/classAdviser/headmasterLesson/headmasterLesson.vue
+0
-0
ruoyi-ui/src/views/smartSchool/classAdviser/headmasterLesson/index.vue
+25
-33
No files found.
ruoyi-ui/src/permission.js
View file @
026f530d
...
...
@@ -19,6 +19,7 @@ const whiteList = [
"/printBarcodes"
,
"/printLesson"
,
"/studentTable"
,
"/headmasterLesson"
,
];
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
...
...
ruoyi-ui/src/router/index.js
View file @
026f530d
...
...
@@ -69,6 +69,7 @@ export const constantRoutes = [
),
hidden
:
true
,
},
//学生信息
{
path
:
"/studentTable"
,
component
:
()
=>
...
...
@@ -95,6 +96,16 @@ export const constantRoutes = [
),
hidden
:
true
,
},
//班主任课表
{
path
:
"/headmasterLesson"
,
component
:
()
=>
import
(
"@/views/smartSchool/classAdviser/headmasterLesson/headmasterLesson"
),
hidden
:
true
,
},
//学生注册
{
path
:
"/studentRegistra"
,
component
:
()
=>
...
...
ruoyi-ui/src/views/smartSchool/classAdviser/headmasterLesson/headmasterLesson.vue
View file @
026f530d
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/views/smartSchool/classAdviser/headmasterLesson/index.vue
View file @
026f530d
...
...
@@ -3,23 +3,15 @@
<el-row>
<el-col
:span=
"4"
>
<div
style=
"border:1px solid #DFE6EC; margin:0 10px 0 0"
>
<el-form
:inline=
"true"
:model=
"queryParams"
style=
"border-bottom:1px solid #DFE6EC; padding:10px 0 0 5px"
>
<el-form
:inline=
"true"
:model=
"queryParams"
style=
"border-bottom:1px solid #DFE6EC; padding:10px 0 0 5px"
>
<el-form-item
label=
"班级信息"
prop=
"year"
>
<el-select
v-model=
"queryParams.schoolYear"
style=
"width:100%"
size=
"mini"
@
change=
"handleYearChange"
>
<el-option
v-for=
"item in yearList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
></el-option>
<el-select
v-model=
"queryParams.schoolYear"
style=
"width:100%"
size=
"mini"
@
change=
"handleYearChange"
>
<el-option
v-for=
"item in yearList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
></el-option>
</el-select>
</el-form-item>
</el-form>
<el-tree
ref=
"tree"
node-key=
"id"
:data=
"treeData"
:expand-on-click-node=
"false"
highlight-current
default-expand-all
@
node-click=
"handleNodeClick"
>
<el-tree
ref=
"tree"
node-key=
"id"
:data=
"treeData"
:expand-on-click-node=
"false"
highlight-current
default-expand-all
@
node-click=
"handleNodeClick"
>
</el-tree>
</div>
</el-col>
...
...
@@ -28,8 +20,7 @@
<el-col>
<el-form
:inline=
"true"
:model=
"formData"
style=
"padding:12px 0 0 0"
>
<el-form-item>
<el-button
type=
"primary"
plain
size=
"mini"
icon=
"el-icon-printer"
@
click=
"printTable()"
>
打印
<el-button
type=
"primary"
plain
size=
"mini"
icon=
"el-icon-printer"
@
click=
"printTable()"
>
打印
</el-button>
</el-form-item>
<el-form-item
label=
"学期"
prop=
"region"
>
...
...
@@ -42,9 +33,8 @@
</el-col>
</el-row>
<div
id=
"postFormContainer"
>
<el-table
v-loading=
"loading"
:data=
"courseList"
:row-style=
"
{ height: '50px' }"
:cell-style="{ padding: '0' }" border
style="width: 1200px;">
<el-table
v-loading=
"loading"
:data=
"courseList"
:row-style=
"
{ height: '50px' }" :cell-style="{ padding: '0' }"
border style="width: 1200px;">
<!--
<el-table-column
:resizable=
"false"
class-name=
"elChgTbeClmn"
prop=
"lesson"
label=
"日期"
width=
"120"
align=
"center"
>
<template
slot=
"header"
slot-scope=
"scope"
>
<div
class=
"elHeadCon"
>
...
...
@@ -124,10 +114,10 @@ import {
getClassTreeList
,
getClassLessonTable
,
}
from
"@/api/smartSchool/lesson/index.js"
;
import
{
getYearList
}
from
"@/utils/utilLibrary/getYearList"
;
import
{
getFirstLeafNode
,
handleTreeData
}
from
"@/utils/utilLibrary/getTreeClass"
;
import
{
getNewYear
,
getCourseInfo
}
from
"@/api/smartSchool/teachAffairAdministration/lessonManage"
;
import
{
getYearList
}
from
"@/utils/utilLibrary/getYearList"
;
import
{
getFirstLeafNode
,
handleTreeData
}
from
"@/utils/utilLibrary/getTreeClass"
;
import
{
getNewYear
,
getCourseInfo
}
from
"@/api/smartSchool/teachAffairAdministration/lessonManage"
;
import
*
as
dd
from
'dingtalk-jsapi'
;
export
default
{
name
:
''
,
dicts
:
[
'relationship'
,
'Grade'
,
'Class'
,
'grade_type'
,
'sys_user_sex'
,
'education'
,
'student_type'
,
'child_state'
],
...
...
@@ -243,17 +233,19 @@ export default {
// 打印
printTable
()
{
// 重置表单
printJS
({
printable
:
'postFormContainer'
,
maxWidth
:
10000
,
header
:
''
,
ignoreElements
:
[
'no-print'
,
'back-no-print'
,
'front-no-print'
],
targetStyles
:
[
'*'
],
gridHeaderStyle
:
"border: 1px solid black"
,
type
:
"html"
,
gridStyle
:
`text-align: center; border: 1px solid black`
,
})
const
baseUrl
=
window
.
location
.
protocol
+
'//'
+
window
.
location
.
host
+
'/headmasterLesson'
;
const
urlWithParams
=
`
${
baseUrl
}
?courseList=
${
encodeURIComponent
(
JSON
.
stringify
(
this
.
courseList
))}
`
;
dd
.
biz
.
util
.
openLink
({
url
:
urlWithParams
,
onSuccess
:
()
=>
{
console
.
log
(
'跳转成功,准备打印'
);
// 打印条码
// this.printCode();
},
onFail
:
(
error
)
=>
{
console
.
error
(
'跳转失败'
,
error
);
}
});
},
//判断当前时间节点处在上学期还是下学期
getSession
()
{
...
...
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