Commit 026f530d by zhaopanyu

zpy 11.1

parent 39cc0f08
...@@ -19,6 +19,7 @@ const whiteList = [ ...@@ -19,6 +19,7 @@ const whiteList = [
"/printBarcodes", "/printBarcodes",
"/printLesson", "/printLesson",
"/studentTable", "/studentTable",
"/headmasterLesson",
]; ];
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
......
...@@ -69,6 +69,7 @@ export const constantRoutes = [ ...@@ -69,6 +69,7 @@ export const constantRoutes = [
), ),
hidden: true, hidden: true,
}, },
//学生信息
{ {
path: "/studentTable", path: "/studentTable",
component: () => component: () =>
...@@ -95,6 +96,16 @@ export const constantRoutes = [ ...@@ -95,6 +96,16 @@ export const constantRoutes = [
), ),
hidden: true, hidden: true,
}, },
//班主任课表
{
path: "/headmasterLesson",
component: () =>
import(
"@/views/smartSchool/classAdviser/headmasterLesson/headmasterLesson"
),
hidden: true,
},
//学生注册
{ {
path: "/studentRegistra", path: "/studentRegistra",
component: () => component: () =>
......
...@@ -3,23 +3,15 @@ ...@@ -3,23 +3,15 @@
<el-row> <el-row>
<el-col :span="4"> <el-col :span="4">
<div style="border:1px solid #DFE6EC; margin:0 10px 0 0"> <div style="border:1px solid #DFE6EC; margin:0 10px 0 0">
<el-form :inline="true" :model="queryParams" <el-form :inline="true" :model="queryParams" style="border-bottom:1px solid #DFE6EC; padding:10px 0 0 5px">
style="border-bottom:1px solid #DFE6EC; padding:10px 0 0 5px">
<el-form-item label="班级信息" prop="year"> <el-form-item label="班级信息" prop="year">
<el-select v-model="queryParams.schoolYear" style="width:100%" <el-select v-model="queryParams.schoolYear" style="width:100%" size="mini" @change="handleYearChange">
size="mini" @change="handleYearChange"> <el-option v-for="item in yearList" :key="item.value" :value="item.value" :label="item.label"></el-option>
<el-option v-for="item in yearList" :key="item.value" :value="item.value"
:label="item.label"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-tree ref="tree" <el-tree ref="tree" node-key="id" :data="treeData" :expand-on-click-node="false" highlight-current
node-key="id" default-expand-all @node-click="handleNodeClick">
:data="treeData"
:expand-on-click-node="false"
highlight-current
default-expand-all
@node-click="handleNodeClick">
</el-tree> </el-tree>
</div> </div>
</el-col> </el-col>
...@@ -28,8 +20,7 @@ ...@@ -28,8 +20,7 @@
<el-col> <el-col>
<el-form :inline="true" :model="formData" style="padding:12px 0 0 0"> <el-form :inline="true" :model="formData" style="padding:12px 0 0 0">
<el-form-item> <el-form-item>
<el-button type="primary" plain size="mini" icon="el-icon-printer" <el-button type="primary" plain size="mini" icon="el-icon-printer" @click="printTable()">打印
@click="printTable()">打印
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item label="学期" prop="region"> <el-form-item label="学期" prop="region">
...@@ -42,9 +33,8 @@ ...@@ -42,9 +33,8 @@
</el-col> </el-col>
</el-row> </el-row>
<div id="postFormContainer"> <div id="postFormContainer">
<el-table v-loading="loading" :data="courseList" :row-style="{ height: '50px' }" <el-table v-loading="loading" :data="courseList" :row-style="{ height: '50px' }" :cell-style="{ padding: '0' }"
:cell-style="{ padding: '0' }" border border style="width: 1200px;">
style="width: 1200px;">
<!-- <el-table-column :resizable="false" class-name="elChgTbeClmn" prop="lesson" label="日期" width="120" align="center"> <!-- <el-table-column :resizable="false" class-name="elChgTbeClmn" prop="lesson" label="日期" width="120" align="center">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<div class="elHeadCon"> <div class="elHeadCon">
...@@ -124,10 +114,10 @@ import { ...@@ -124,10 +114,10 @@ import {
getClassTreeList, getClassTreeList,
getClassLessonTable, getClassLessonTable,
} from "@/api/smartSchool/lesson/index.js"; } from "@/api/smartSchool/lesson/index.js";
import {getYearList} from "@/utils/utilLibrary/getYearList"; import { getYearList } from "@/utils/utilLibrary/getYearList";
import {getFirstLeafNode, handleTreeData} from "@/utils/utilLibrary/getTreeClass"; import { getFirstLeafNode, handleTreeData } from "@/utils/utilLibrary/getTreeClass";
import {getNewYear, getCourseInfo} from "@/api/smartSchool/teachAffairAdministration/lessonManage"; import { getNewYear, getCourseInfo } from "@/api/smartSchool/teachAffairAdministration/lessonManage";
import * as dd from 'dingtalk-jsapi';
export default { export default {
name: '', name: '',
dicts: ['relationship', 'Grade', 'Class', 'grade_type', 'sys_user_sex', 'education', 'student_type', 'child_state'], dicts: ['relationship', 'Grade', 'Class', 'grade_type', 'sys_user_sex', 'education', 'student_type', 'child_state'],
...@@ -243,17 +233,19 @@ export default { ...@@ -243,17 +233,19 @@ export default {
// 打印 // 打印
printTable() { printTable() {
// 重置表单 const baseUrl = window.location.protocol + '//' + window.location.host + '/headmasterLesson';
printJS({ const urlWithParams = `${baseUrl}?courseList=${encodeURIComponent(JSON.stringify(this.courseList))}`;
printable: 'postFormContainer', dd.biz.util.openLink({
maxWidth: 10000, url: urlWithParams,
header: '', onSuccess: () => {
ignoreElements: ['no-print', 'back-no-print', 'front-no-print'], console.log('跳转成功,准备打印');
targetStyles: ['*'], // 打印条码
gridHeaderStyle: "border: 1px solid black", // this.printCode();
type: "html", },
gridStyle: `text-align: center; border: 1px solid black`, onFail: (error) => {
}) console.error('跳转失败', error);
}
});
}, },
//判断当前时间节点处在上学期还是下学期 //判断当前时间节点处在上学期还是下学期
getSession() { getSession() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment