Commit f57ca13a by zhaopanyu

公文流转修改 1.5

parent 09b589fb
import {createRouter, createWebHashHistory, createWebHistory} from "vue-router"; import {
import {Toast} from "vant"; createRouter,
createWebHashHistory,
createWebHistory,
} from "vue-router";
import { Toast } from "vant";
// createWebHistory // createWebHistory
const routes = [ const routes = [
/* 正常登录 */ /* 正常登录 */
// { // {
// path: "", // path: "",
// name: "login", // name: "login",
// component: () => import("../views/login/login.vue"), // component: () => import("../views/login/login.vue"),
// children: [ // children: [
// { // {
// path: "login", // path: "login",
// name: "login", // name: "login",
// component: () => import("../views/login/login.vue"), // component: () => import("../views/login/login.vue"),
// meta: { // meta: {
// requireAuth: true, // requireAuth: true,
// }, // },
// }, // },
// ], // ],
// }, // },
/* 钉钉免登陆 */ /* 钉钉免登陆 */
{ {
path: "", path: "",
name: "dd",
component: () => import("../views/dd.vue"),
children: [
{
path: "dd",
name: "dd", name: "dd",
component: () => import("../views/dd.vue"), component: () => import("../views/dd.vue"),
children: [
{
path: "dd",
name: "dd",
component: () => import("../views/dd.vue"),
meta: {
requireAuth: true,
},
},
],
},
// {
// path: "/dd",
// name: "dd",
// component: () => import("../views/dd.vue"),
// meta: {
// requireAuth: true,
// },
// },
/* 不用钉钉登录时 */
{
path: "/login",
name: "login",
component: () => import("../views/login/login.vue"),
meta: { meta: {
requireAuth: true, requireAuth: true,
}, },
}, },
],
/* 主页 */ },
{ // {
path: "/main", // path: "/dd",
name: "main", // name: "dd",
// children: [ // component: () => import("../views/dd.vue"),
// { // meta: {
// path: "main", // requireAuth: true,
// name: "Main", // },
// component: () => import("../views/tabbar/main/index.vue"), // },
// meta: { /* 不用钉钉登录时 */
// requireAuth: true, {
// }, path: "/login",
// }, name: "login",
// ], component: () => import("../views/login/login.vue"),
component: () => import("../views/tabbar/main/index.vue"), meta: {
}, requireAuth: true,
/* 个人信息 */ },
{ },
path: "/personInfo",
name: "PersonInfo",
component: () => import("../views/tabbar/PersonInfo.vue"),
},
/* 考试成绩*/
{
path: "/achievement",
name: "Achievement",
component: () => import("../views/parent/achievement.vue"),
},
/* 考试列表 教师端*/
{
path: "/exlisttec",
name: "Exlisttec",
component: () => import("../views/teacher/exlisttec.vue"),
},
/* 考试成绩 教师端*/
{
path: "/achievementtec",
name: "Achievementtec",
component: () => import("../views/teacher/achievementtec.vue"),
},
/* 考试列表*/
{
path: "/exlist",
name: "Exlist",
component: () => import("../views/parent/exlist.vue"),
},
/* 主页 */
{
path: "/main",
name: "main",
// children: [
// {
// path: "main",
// name: "Main",
// component: () => import("../views/tabbar/main/index.vue"),
// meta: {
// requireAuth: true,
// },
// },
// ],
component: () => import("../views/tabbar/main/index.vue"),
},
/* 个人信息 */
{
path: "/personInfo",
name: "PersonInfo",
component: () => import("../views/tabbar/PersonInfo.vue"),
},
/* 考试成绩*/
{
path: "/achievement",
name: "Achievement",
component: () => import("../views/parent/achievement.vue"),
},
/* 考试列表 教师端*/
{
path: "/exlisttec",
name: "Exlisttec",
component: () => import("../views/teacher/exlisttec.vue"),
},
/* 校历*/ /* 考试成绩 教师端*/
{ {
path: "/Calendar", path: "/achievementtec",
name: "Calendar", name: "Achievementtec",
component: () => import("../views/public/Calendar.vue"), component: () => import("../views/teacher/achievementtec.vue"),
}, },
/* 个人信息 老师*/ /* 考试列表*/
{ {
path: "/teacherInfo", path: "/exlist",
name: "TeacherInfo", name: "Exlist",
component: () => import("../views/tabbar/TeacherInfo.vue"), component: () => import("../views/parent/exlist.vue"),
}, },
/* 问卷调查列表 */ /* 校历*/
{ {
path: "/questionnairelist", path: "/Calendar",
name: "questionnairelist", name: "Calendar",
component: () => component: () => import("../views/public/Calendar.vue"),
import("../views/public/questionnaire/questionnairelist.vue"), },
}, /* 个人信息 老师*/
/* 问卷调查详情 */ {
{ path: "/teacherInfo",
path: "/questionnairedetail", name: "TeacherInfo",
name: "questionnairedetail", component: () => import("../views/tabbar/TeacherInfo.vue"),
component: () => },
import("../views/public/questionnaire/questionnairedetail.vue"),
},
/* 问卷调查列表 */
{
path: "/questionnairelist",
name: "questionnairelist",
component: () =>
import("../views/public/questionnaire/questionnairelist.vue"),
},
/* 问卷调查详情 */
{
path: "/questionnairedetail",
name: "questionnairedetail",
component: () =>
import("../views/public/questionnaire/questionnairedetail.vue"),
},
/* 学生请假 */ /* 学生请假 */
{ {
path: "/studentLeave", path: "/studentLeave",
name: "StudentLeave", name: "StudentLeave",
component: () => import("../views/parent/leave.vue"), component: () => import("../views/parent/leave.vue"),
}, },
/* 学生请假 */ /* 学生请假 */
{ {
path: "/studentLeavetask", path: "/studentLeavetask",
name: "studentLeavetask", name: "studentLeavetask",
component: () => import("../views/parent/studentLeavexj.vue"), component: () => import("../views/parent/studentLeavexj.vue"),
}, },
/* 学生请假详情 */ /* 学生请假详情 */
{ {
path: "/studentLeavedetail", path: "/studentLeavedetail",
name: "studentLeavedetail", name: "studentLeavedetail",
component: () => import("../views/parent/leavedetail.vue"), component: () => import("../views/parent/leavedetail.vue"),
// meta: { keepAlive: true }, //需要缓存的页面 } // meta: { keepAlive: true }, //需要缓存的页面 }
}, },
{ {
path: "/studentLeave/detail/:id", path: "/studentLeave/detail/:id",
name: "LeaveDetail", name: "LeaveDetail",
component: () => import("../views/parent/LeaveProcess.vue"), component: () => import("../views/parent/LeaveProcess.vue"),
}, },
/* 老师请假请假详情 */ /* 老师请假请假详情 */
{ {
path: "/teacherLeave", path: "/teacherLeave",
name: "teacherLeave", name: "teacherLeave",
component: () => import("../views/teacher/leave.vue"), component: () => import("../views/teacher/leave.vue"),
}, },
// /* 人物查询 */ // /* 人物查询 */
// { // {
// path: "/seachName", // path: "/seachName",
// name: "seachName", // name: "seachName",
// component: () => import("../views/public/seachName.vue"), // component: () => import("../views/public/seachName.vue"),
// }, // },
/* 冬夏时令 */ /* 冬夏时令 */
{ {
path: "/time", path: "/time",
name: "time", name: "time",
component: () => import("../views/public/time.vue"), component: () => import("../views/public/time.vue"),
}, },
/* 学生请假 申请页 */ /* 学生请假 申请页 */
{ {
path: "/studentLeaveApply", path: "/studentLeaveApply",
name: "StudentLeaveApply", name: "StudentLeaveApply",
component: () => import("../views/parent/StudentLeaveApply.vue"), component: () => import("../views/parent/StudentLeaveApply.vue"),
}, },
/* 校园介绍 */ /* 校园介绍 */
{ {
path: "/gardenIntr", path: "/gardenIntr",
name: "GardenIntr", name: "GardenIntr",
component: () => import("../views/tabbar/GardenIntr.vue"), component: () => import("../views/tabbar/GardenIntr.vue"),
}, },
/* 每日食谱 */ /* 每日食谱 */
{ {
path: "/everydayFood", path: "/everydayFood",
name: "EverydayFood", name: "EverydayFood",
component: () => import("../views/EverydayFood.vue"), component: () => import("../views/EverydayFood.vue"),
}, },
/* 消息通知 */ /* 消息通知 */
{ {
path: "/messageNotice", path: "/messageNotice",
name: "MessageNotice", name: "MessageNotice",
component: () => import("../views/MessageNotice.vue"), component: () => import("../views/MessageNotice.vue"),
}, },
/* 消息通知 详情 */ /* 消息通知 详情 */
{ {
path: "/messageNoticeDetail", path: "/messageNoticeDetail",
name: "MessageNoticeDetail", name: "MessageNoticeDetail",
component: () => import("../views/MessageNoticeDetail.vue"), component: () => import("../views/MessageNoticeDetail.vue"),
}, },
/* 德育 */ /* 德育 */
{ {
path: "/moralEducation", path: "/moralEducation",
name: "moralEducation", name: "moralEducation",
component: () => import("../views/parent/moralEducation/index.vue"), component: () => import("../views/parent/moralEducation/index.vue"),
}, },
/* 学生德育详情 */ /* 学生德育详情 */
{ {
path: "/moralEducationDetail", path: "/moralEducationDetail",
name: "moralEducationDetail", name: "moralEducationDetail",
component: () => import("../views/parent/moralEducation/detail.vue"), component: () => import("../views/parent/moralEducation/detail.vue"),
}, },
/* 教师列表页 家长端 */ /* 教师列表页 家长端 */
{ {
path: "/teacherList", path: "/teacherList",
name: "TeacherList", name: "TeacherList",
component: () => import("../views/parent/TeacherList.vue"), component: () => import("../views/parent/TeacherList.vue"),
}, },
/* 学生选课 家长端 */ /* 学生选课 家长端 */
{ {
path: "/studentCourseSelection", path: "/studentCourseSelection",
name: "studentCourseSelection", name: "studentCourseSelection",
component: () => import("../views/parent/studentCourseSelection/index"), component: () => import("../views/parent/studentCourseSelection/index"),
}, },
/* 学生选课 选课列表 */ /* 学生选课 选课列表 */
{ {
path: "/courseList", path: "/courseList",
name: "courseList", name: "courseList",
component: () => import("../views/parent/studentCourseSelection/courseList"), component: () =>
}, import("../views/parent/studentCourseSelection/courseList"),
/* 学生选课 家长端 超过日期页面 */ },
{ /* 学生选课 家长端 超过日期页面 */
path: "/studentCourse", {
name: "studentCourse", path: "/studentCourse",
component: () => import("../views/parent/studentCourseSelection/checkCourse"), name: "studentCourse",
}, component: () =>
/* 学生选课 家长端 学科成绩 */ import("../views/parent/studentCourseSelection/checkCourse"),
{ },
path: "/subjectAchievement", /* 学生选课 家长端 学科成绩 */
name: "subjectAchievement", {
component: () => import("../views/parent/studentCourseSelection/subjectAchievement"), path: "/subjectAchievement",
}, name: "subjectAchievement",
/* 学校社团 家长端 */ component: () =>
{ import("../views/parent/studentCourseSelection/subjectAchievement"),
path: "/schoolClub", },
name: "schoolClub", /* 学校社团 家长端 */
component: () => import("../views/parent/schoolClub/index"), {
}, path: "/schoolClub",
/* 学校社团-查看社团详情 家长端 */ name: "schoolClub",
{ component: () => import("../views/parent/schoolClub/index"),
path: "/schoolClub/clubDetail", },
name: "clubDetail", /* 学校社团-查看社团详情 家长端 */
component: () => import("../views/parent/schoolClub/clueDetail"), {
}, path: "/schoolClub/clubDetail",
/* 学校社团-查看社团详情 家长端 */ name: "clubDetail",
{ component: () => import("../views/parent/schoolClub/clueDetail"),
path: "/schoolClub/clubDetail/clubApply", },
name: "clubApply", /* 学校社团-查看社团详情 家长端 */
component: () => import("../views/parent/schoolClub/clubApply"), {
}, path: "/schoolClub/clubDetail/clubApply",
/* 学生选课 家长端 成绩查看 */ name: "clubApply",
{ component: () => import("../views/parent/schoolClub/clubApply"),
path: "/totalScoreView", },
name: "totalScoreView", /* 学生选课 家长端 成绩查看 */
component: () => import("../views/parent/studentCourseSelection/totalScoreView"), {
}, path: "/totalScoreView",
/* 教师列表页 教师端的 可以查看所有教师 */ name: "totalScoreView",
{ component: () =>
path: "/teacherListTeac", import("../views/parent/studentCourseSelection/totalScoreView"),
name: "TeacherListTeac", },
component: () => import("../views/teacher/TeacherListTeac.vue"), /* 教师列表页 教师端的 可以查看所有教师 */
}, {
// /* 课程表 */ path: "/teacherListTeac",
// { name: "TeacherListTeac",
// path: "/gradeSchedule", component: () => import("../views/teacher/TeacherListTeac.vue"),
// name: "GradeSchedule", },
// component: () => import("../views/tabbar/GradeSchedule.vue"), // /* 课程表 */
// }, // {
/* 课程表 */ // path: "/gradeSchedule",
{ // name: "GradeSchedule",
path: "/gradeSchedule", // component: () => import("../views/tabbar/GradeSchedule.vue"),
name: "GradeSchedule", // },
component: () => import("../views/tabbar/lesson.vue"), /* 课程表 */
}, {
/* 课程表 学生1111111111 */ path: "/gradeSchedule",
{ name: "GradeSchedule",
path: "/lesson", component: () => import("../views/tabbar/lesson.vue"),
name: "lesson", },
component: () => import("../views/tabbar/lesson.vue"), /* 课程表 学生1111111111 */
}, {
/* 班级列表页 */ path: "/lesson",
{ name: "lesson",
path: "/gradeList", component: () => import("../views/tabbar/lesson.vue"),
name: "GradeList", },
component: () => import("../views/parent/GradeList.vue"), /* 班级列表页 */
}, {
/* 班级列表页 教师端 */ path: "/gradeList",
{ name: "GradeList",
path: "/gradeListTeac", component: () => import("../views/parent/GradeList.vue"),
name: "GradeListTeac", },
component: () => import("../views/teacher/GradeListTeac.vue"), /* 班级列表页 教师端 */
}, {
/* 学生考勤页 */ path: "/gradeListTeac",
{ name: "GradeListTeac",
path: "/attendance", component: () => import("../views/teacher/GradeListTeac.vue"),
name: "Attendance", },
component: () => import("../views/Attendance.vue"), /* 学生考勤页 */
}, {
{ path: "/attendance",
path: "/courseSele", name: "Attendance",
name: "courseSele", component: () => import("../views/Attendance.vue"),
component: () => import("../views/parent/courseSele.vue"), },
}, {
// 综合素质 path: "/courseSele",
{ name: "courseSele",
path: "/qualitylist", component: () => import("../views/parent/courseSele.vue"),
name: "qualitylist", },
component: () => import("../views/parent/qualitylist.vue"), // 综合素质
}, {
/* 教师工资 */ path: "/qualitylist",
{ name: "qualitylist",
path: "/wagesdetail", component: () => import("../views/parent/qualitylist.vue"),
name: "WageList", },
component: () => import("../views/teacher/wagesdetail.vue"), /* 教师工资 */
}, {
{ path: "/wagesdetail",
path: "/wagesdetail/info/:id", name: "WageList",
name: "WageDetail", component: () => import("../views/teacher/wagesdetail.vue"),
component: () => import("../views/teacher/wagesDetails/WageDetail.vue"), },
}, {
//值班 path: "/wagesdetail/info/:id",
{ name: "WageDetail",
path: "/dutylist", component: () => import("../views/teacher/wagesDetails/WageDetail.vue"),
name: "dutylist", },
component: () => import("../views/teacher/Dutytable/list.vue"), //值班
}, {
{ path: "/dutylist",
path: "/dutydetail", name: "dutylist",
name: "Dutydetail", component: () => import("../views/teacher/Dutytable/list.vue"),
component: () => import("../views/teacher/Dutytable/detail.vue"), },
}, {
{ path: "/dutydetail",
path: "/dutydetailh", name: "Dutydetail",
name: "Dutydetailh", component: () => import("../views/teacher/Dutytable/detail.vue"),
component: () => import("../views/teacher/Dutytable/detailh.vue"), },
}, {
{ path: "/dutydetailh",
path: "/overworklist", name: "Dutydetailh",
name: "overworklist", component: () => import("../views/teacher/Dutytable/detailh.vue"),
component: () => import("../views/teacher/overwork/list.vue"), },
}, {
{ path: "/overworklist",
path: "/overworkdetail", name: "overworklist",
name: "overworkdetail", component: () => import("../views/teacher/overwork/list.vue"),
component: () => import("../views/teacher/overwork/detail.vue"), },
}, {
{ path: "/overworkdetail",
path: "/overworkapply", name: "overworkdetail",
name: "overworkapply", component: () => import("../views/teacher/overwork/detail.vue"),
component: () => import("../views/teacher/overwork/Apply.vue"), },
}, {
{ path: "/overworkapply",
path: "/patrollist", name: "overworkapply",
name: "patrollist", component: () => import("../views/teacher/overwork/Apply.vue"),
component: () => import("../views/teacher/patrol/list.vue"), },
}, {
{ path: "/patrollist",
path: "/patroldetail", name: "patrollist",
name: "patroldetail", component: () => import("../views/teacher/patrol/list.vue"),
component: () => import("../views/teacher/patrol/detail.vue"), },
}, {
{ path: "/patroldetail",
path: "/task", name: "patroldetail",
name: "task", component: () => import("../views/teacher/patrol/detail.vue"),
component: () => import("../views/teacher/task/index.vue"), },
}, {
{ path: "/task",
path: "/taskleave", name: "task",
name: "taskleave", component: () => import("../views/teacher/task/index.vue"),
component: () => import("../views/teacher/task/leavedetail.vue"), },
}, {
/* 教师考勤 */ path: "/taskleave",
{ name: "taskleave",
path: "/attendance", component: () => import("../views/teacher/task/leavedetail.vue"),
name: "Attendance", },
redirect: "/attendance/sign", /* 教师考勤 */
component: () => import("../views/teacher/attendance/Attendance.vue"), {
children: [ path: "/attendance",
{ name: "Attendance",
path: "sign", redirect: "/attendance/sign",
name: "Sign", component: () => import("../views/teacher/attendance/Attendance.vue"),
component: () => import("../views/teacher/attendance/Sign.vue"), children: [
}, {
{ path: "sign",
path: "history", name: "Sign",
name: "History", component: () => import("../views/teacher/attendance/Sign.vue"),
component: () => import("../views/teacher/attendance/History.vue"), },
}, {
], path: "history",
}, name: "History",
{
path: "/attendancelist",
name: "attendancelist",
component: () => import("../views/teacher/attendance/list.vue"),
},
{
path: "/attendanceHistory",
name: "attendanceHistory",
component: () => import("../views/teacher/attendance/History.vue"), component: () => import("../views/teacher/attendance/History.vue"),
}, },
{ ],
path: "/attendancedetail", },
name: "attendancedetail", {
component: () => import("../views/teacher/attendance/detail.vue"), path: "/attendancelist",
}, name: "attendancelist",
/* 场地申请 */ component: () => import("../views/teacher/attendance/list.vue"),
{ },
path: "/area", {
name: "area", path: "/attendanceHistory",
component: () => import("../views/areaApply/list"), name: "attendanceHistory",
}, component: () => import("../views/teacher/attendance/History.vue"),
{ },
path: "/areaDetail", {
name: "areaDetail", path: "/attendancedetail",
component: () => import("../views/areaApply/detail"), name: "attendancedetail",
}, component: () => import("../views/teacher/attendance/detail.vue"),
{ },
path: "/areaApply", /* 场地申请 */
name: "areaApply", {
component: () => import("../views/areaApply/apply"), path: "/area",
}, name: "area",
{ component: () => import("../views/areaApply/list"),
path: "/askForLeaveapply", },
name: "askForLeaveapply", {
component: () => import("../views/teacher/askForLeave/apply"), path: "/areaDetail",
}, name: "areaDetail",
{ component: () => import("../views/areaApply/detail"),
path: "/askForLeavealist", },
name: "askForLeavelist", {
component: () => import("../views/teacher/askForLeave/list"), path: "/areaApply",
}, name: "areaApply",
{ component: () => import("../views/areaApply/apply"),
path: "/askForLeavedetail", },
name: "askForLeavedetail", {
component: () => import("../views/teacher/askForLeave/detail"), path: "/askForLeaveapply",
}, name: "askForLeaveapply",
component: () => import("../views/teacher/askForLeave/apply"),
{ },
path: "/lessonall", {
name: "lessonall", path: "/askForLeavealist",
component: () => import("../views/teacher/lesson/all"), name: "askForLeavelist",
}, component: () => import("../views/teacher/askForLeave/list"),
{ },
path: "/lessonmy", {
name: "lessonmy", path: "/askForLeavedetail",
component: () => import("../views/teacher/lesson/my"), name: "askForLeavedetail",
}, component: () => import("../views/teacher/askForLeave/detail"),
},
{
path: "/SchoolTeacherAward",
name: "SchoolTeacherAward",
component: () => import("../views/teacher/SchoolTeacherAward"),
},
{
path: "/teacherResume",
name: "teacherResume",
component: () => import("../views/teacher/teacherResume"),
},
//审批列表
{
path: "/approvalList",
name: "materialPurchase",
component: () => import("../views/teacher/approvalList/index.vue"),
},
// 审批详情
{
path: "/approvalDetail",
name: "approvalDetail",
component: () => import("../views/teacher/approvalList/detail.vue"),
},
// 审批详情
{
path: "/teacherLeaveDetail",
name: "teacherLeaveDetail",
component: () => import("../views/teacher/approvalList/detailqj.vue"),
},
//我的领用
{
path: "/myUse",
name: "myUse",
component: () => import("../views/teacher/myUse/index.vue"),
},
//修改密码
{
path: "/changePassword",
name: "changePassword",
component: () => import("../views/public/changePassword/index.vue"),
},
//学生请假
{
path: "/stleavelist",
name: "stleavelist",
component: () => import("../views/parent/askForLeave/list.vue"),
},
{
path: "/stleavedetail",
name: "stleavedetail",
component: () => import("../views/parent/askForLeave/detail.vue"),
},
{
path: "/stspdetail",
name: "stspdetail",
component: () => import("../views/teacher/approvalList/detailqjst.vue"),
},
{
path: "/stleaveapply",
name: "stleaveapply",
component: () => import("../views/parent/askForLeave/apply.vue"),
},
{
path: "/infomationlist",
name: "infomationlist",
component: () => import("../views/parent/infomation/list.vue"),
},
{
path: "/infomationdetail",
name: "infomationdetail",
component: () => import("../views/parent/infomation/detail.vue"),
},
{
path: "/InforColl",
name: "InforColl",
component: () => import("../views/parent/InforCollection/index.vue"),
},
{
path: "/InforColledit",
name: "InforColledit",
component: () => import("../views/parent/InforCollection/edit.vue"),
},
{
path: "/InforCollapply",
name: "InforCollapply",
component: () => import("../views/parent/InforCollection/apply.vue"),
},
/** {
* Type:教师端 path: "/lessonall",
* Describe:后勤报修、校产管理 name: "lessonall",
* Date:2023-08-08 component: () => import("../views/teacher/lesson/all"),
**/ },
/* 后勤报修 */ {
{ path: "/lessonmy",
path: "/logisticsRepair", name: "lessonmy",
name: "logisticsRepair", component: () => import("../views/teacher/lesson/my"),
component: () => import("../views/teacher/logisticsRepair/index"), },
},
/* 后勤报修新增 */
{
path: "/addRepair",
name: "addRepair",
component: () => import("../views/teacher/logisticsRepair/addRepair"),
},
/* 后勤报修查看 */
{
path: "/checkRepair",
name: "checkRepair",
component: () => import("../views/teacher/logisticsRepair/checkRepair"),
},
/* 后勤报修反馈 */
{
path: "/feedbackRepair",
name: "feedbackRepair",
component: () => import("../views/teacher/logisticsRepair/feedbackRepair"),
},
/** 校产管理 schoolProperty 管理员权限 教师权限 **/
// 管理员 首页
{
path: "/schoolProperty",
name: "adminIndex",
component: () => import("../views/teacher/schoolProperty"),
},
// 管理员 物品借用列表页
{
path: "/schoolProperty/borrow",
name: "adminBorrowList",
component: () => import("../views/teacher/schoolProperty/borrowList"),
},
// 管理员 物品借用 新增、编辑、查看页面
{
path: "/schoolProperty/borrow/detail",
name: "adminBorrowDetail",
component: () => import("../views/teacher/schoolProperty/borrowDetail"),
},
// 管理员 归还列表页
{
path: "/schoolProperty/return",
name: "adminReturnList",
component: () => import("../views/teacher/schoolProperty/returnList"),
},
// 管理员 归还查看页
{
path: "/schoolProperty/return/detail",
name: "adminReturnDetail",
component: () => import("../views/teacher/schoolProperty/returnDetail"),
},
// 管理员 物品领用列表页
{
path: "/schoolProperty/use",
name: "adminUseList",
component: () => import("../views/teacher/schoolProperty/useList"),
},
// 管理员 物品领用 新增
{
path: "/schoolProperty/use/add",
name: "adminUseAdd",
component: () => import("../views/teacher/schoolProperty/useAdd"),
},
// 管理员 设备报修列表页
{
path: "/schoolProperty/device",
name: "adminDeviceList",
component: () => import("../views/teacher/schoolProperty/deviceList"),
},
// 管理员 设备维修列表页
{
path: "/schoolProperty/equipmentFix",
name: "equipmentFix",
component: () => import("../views/teacher/schoolProperty/equipmentFix"),
},
// 管理员 设备维修列表详情页
{
path: "/schoolProperty/equipmentFix/equipmentFixDetail",
name: "equipmentFixDetail",
component: () => import("../views/teacher/schoolProperty/equipmentFixDetail"),
},
// 设备报修新增、修改、查看、反馈页面
{
path: "/schoolProperty/device/info",
name: "deviceListInfo",
component: () => import("../views/teacher/schoolProperty/deviceListInfo"),
},
//扫码查看设备的详细信息
{
path: "/schoolProperty/equipmentInfo",
name: 'equipmentInfo',
component: () => import("../views/teacher/schoolProperty/equipmentInfo"),
}, {
/** 实验室管理 laboratoryManagement 管理员权限 教师权限 领导权限 级部权限 **/ path: "/SchoolTeacherAward",
{ name: "SchoolTeacherAward",
path: "/laboratoryManagement", component: () => import("../views/teacher/SchoolTeacherAward"),
name: 'laboratoryManagement', },
component: () => import("../views/teacher/laboratoryManagement/index.vue"), {
}, path: "/teacherResume",
//领导-实验室记录 name: "teacherResume",
{ component: () => import("../views/teacher/teacherResume"),
path: "/laboratoryManagement/laboratoryRecord", },
name: 'laboratoryRecord', //审批列表
component: () => import("../views/teacher/laboratoryManagement/leader/laboratoryRecord"), {
}, path: "/approvalList",
//领导-实验室完成情况统计 name: "materialPurchase",
{ component: () => import("../views/teacher/approvalList/index.vue"),
path: "/laboratoryManagement/laboratoryCompleteStatistics", },
name: 'laboratoryCompleteStatistics',
component: () => import("../views/teacher/laboratoryManagement/leader/laboratoryCompleteStatistics"),
},
{
path: '/laboratoryManagement/laboratoryCompleteStatistics/checkComplete',
name: 'checkComplete',
component: () => import("../views/teacher/laboratoryManagement/leader/checkComplete"),
},
// 实验室管理员 - 年级实验预约列表
{
path: '/laboratoryManagement/gradeLaboratory',
name: 'gradeLaboratory',
component: () => import("../views/teacher/laboratoryManagement/manager/gradeLaboratory"),
},
// 实验室管理员 - 年级实验预约列表查看
{
path: '/laboratoryManagement/gradeLaboratory/checkGradeComplete',
name: 'checkGradeComplete',
component: () => import("../views/teacher/laboratoryManagement/manager/checkGradeComplete"),
},
// 实验室管理员 - 教师实验室预约
{
path: '/laboratoryManagement/teacherLaboratory',
name: 'teacherLaboratory',
component: () => import("../views/teacher/laboratoryManagement/manager/teacherLaboratory"),
},
// 实验室管理员 - 教师实验室预约查看/申请审批
{
path: '/laboratoryManagement/teacherLaboratory/teacherLaboratoryApprove',
name: 'teacherLaboratoryApprove',
component: () => import("../views/teacher/laboratoryManagement/manager/teacherLaboratoryApprove"),
},
// 实验室管理员 - 个人实验审批
{
path: '/laboratoryManagement/personalLaboratoryApprove',
name: 'personalLaboratoryApprove',
component: () => import("../views/teacher/laboratoryManagement/manager/personalLaboratoryApprove"),
},
//级部申请-年级实验室预约
{
path: '/laboratoryManagement/gradeLaboratoryApprove',
name: 'gradeLaboratoryApprove',
component: () => import("../views/teacher/laboratoryManagement/levelPart/gradeLaboratoryApprove"),
},
//级部申请-年级实验室预约-新增/查看/修改
{
path: '/laboratoryManagement/gradeLaboratoryApprove/gradeLaboratoryDetail',
name: 'gradeLaboratoryDetail',
component: () => import("../views/teacher/laboratoryManagement/levelPart/gradeLaboratoryDetail"),
},
//级部申请-班级完成情况明细
{
path: '/laboratoryManagement/gradeLaboratoryComplete',
name: 'gradeLaboratoryComplete',
component: () => import("../views/teacher/laboratoryManagement/levelPart/gradeLaboratoryComplete"),
},
//级部申请-班级完成情况查看
{
path: '/laboratoryManagement/gradeLaboratoryComplete/checkGradeLaboratoryComplete',
name: 'checkGradeLaboratoryComplete',
component: () => import("../views/teacher/laboratoryManagement/levelPart/checkGradeLaboratoryComplete"),
},
//级部申请-实验室完成情况明细
{
path: '/laboratoryManagement/laboratoryCompleteDetail',
name: 'laboratoryCompleteDetail',
component: () => import("../views/teacher/laboratoryManagement/levelPart/laboratoryCompleteDetail"),
},
//级部申请-查看实验室完成情况
{
path: '/laboratoryManagement/laboratoryCompleteDetail/checkLaboratoryComplete',
name: 'checkLaboratoryComplete',
component: () => import("../views/teacher/laboratoryManagement/levelPart/checkLaboratoryComplete"),
}, // 审批详情
//教师申请-实验室安排 {
{ path: "/approvalDetail",
path: '/laboratoryManagement/laboratoryArrangement', name: "approvalDetail",
name: 'laboratoryArrangement', component: () => import("../views/teacher/approvalList/detail.vue"),
component: () => import("../views/teacher/laboratoryManagement/teacher/laboratoryArrangement"), },
}, // 审批详情
//教师申请-实验室安排查看、申请 {
{ path: "/teacherLeaveDetail",
path: '/laboratoryManagement/laboratoryArrangement/laboratoryArrangementDetail', name: "teacherLeaveDetail",
name: 'laboratoryArrangementDetail', component: () => import("../views/teacher/approvalList/detailqj.vue"),
component: () => import("../views/teacher/laboratoryManagement/teacher/laboratoryArrangementDetail"), },
}, //公文流转
//教师申请-实验室申请记录 {
{ path: "/moveMent",
path: '/laboratoryManagement/laboratoryApplicationRecord', name: "moveMent",
name: 'laboratoryApplicationRecord', component: () => import("../views/teacher/moveMent/index.vue"),
component: () => import("../views/teacher/laboratoryManagement/teacher/laboratoryApplicationRecord"), },
}, //传阅查看
//教师申请-实验室申请记录查看 {
{ path: "/InitiateAction",
path: '/laboratoryManagement/laboratoryApplicationRecord/checkLaboratoryApplication', name: "InitiateAction",
name: 'checkLaboratoryApplication', component: () => import("../views/teacher/moveMent/InitiateAction.vue"),
component: () => import("../views/teacher/laboratoryManagement/teacher/checkLaboratoryApplication"), },
}, //批阅
//教师申请-个人实验申请 {
{ path: "/readOver",
path: '/laboratoryManagement/PersonalLaboratoryApplication', name: "readOver",
name: 'PersonalLaboratoryApplication', component: () => import("../views/teacher/moveMent/readOver.vue"),
component: () => import("../views/teacher/laboratoryManagement/teacher/PersonalLaboratoryApplication"), },
}, //我的领用
//教师申请-个人实验申请新增、修改 {
{ path: "/myUse",
path: '/laboratoryManagement/PersonalLaboratoryApplication/PersonalLaboratoryApplyDetail', name: "myUse",
name: 'PersonalLaboratoryApplyDetail', component: () => import("../views/teacher/myUse/index.vue"),
component: () => import("../views/teacher/laboratoryManagement/teacher/PersonalLaboratoryApplyDetail"), },
}, //修改密码
/** 实验室管理 laboratoryManagement 管理员权限 教师权限 领导权限 级部权限 **/ {
path: "/changePassword",
name: "changePassword",
component: () => import("../views/public/changePassword/index.vue"),
},
//学生请假
{
path: "/stleavelist",
name: "stleavelist",
component: () => import("../views/parent/askForLeave/list.vue"),
},
{
path: "/stleavedetail",
name: "stleavedetail",
component: () => import("../views/parent/askForLeave/detail.vue"),
},
{
path: "/stspdetail",
name: "stspdetail",
component: () => import("../views/teacher/approvalList/detailqjst.vue"),
},
{
path: "/stleaveapply",
name: "stleaveapply",
component: () => import("../views/parent/askForLeave/apply.vue"),
},
{
path: "/infomationlist",
name: "infomationlist",
component: () => import("../views/parent/infomation/list.vue"),
},
{
path: "/infomationdetail",
name: "infomationdetail",
component: () => import("../views/parent/infomation/detail.vue"),
},
{
path: "/InforColl",
name: "InforColl",
component: () => import("../views/parent/InforCollection/index.vue"),
},
{
path: "/InforColledit",
name: "InforColledit",
component: () => import("../views/parent/InforCollection/edit.vue"),
},
{
path: "/InforCollapply",
name: "InforCollapply",
component: () => import("../views/parent/InforCollection/apply.vue"),
},
/** 安全管理 safetyManagement 教师端 **/ /**
{ * Type:教师端
path: '/safetyManagement', * Describe:后勤报修、校产管理
name: 'safetyManagement', * Date:2023-08-08
component: () => import("../views/teacher/safetyManagement/index.vue"), **/
}, /* 后勤报修 */
//个人安全管理-车辆出入登记 {
{ path: "/logisticsRepair",
path: '/safetyManagement/carAccessRegistration', name: "logisticsRepair",
name: 'carAccessRegistration', component: () => import("../views/teacher/logisticsRepair/index"),
component: () => import("../views/teacher/safetyManagement/carAccessRegistration"), },
}, /* 后勤报修新增 */
//个人安全管理-监控录像调阅 {
{ path: "/addRepair",
path: '/safetyManagement/monitoringCall', name: "addRepair",
name: 'monitoringCall', component: () => import("../views/teacher/logisticsRepair/addRepair"),
component: () => import("../views/teacher/safetyManagement/monitoringCall"), },
}, /* 后勤报修查看 */
//信息中心监控管理-监控调阅内部 {
{ path: "/checkRepair",
path: '/safetyManagement/monitoringCallInside', name: "checkRepair",
name: 'monitoringCallInside', component: () => import("../views/teacher/logisticsRepair/checkRepair"),
component: () => import("../views/teacher/safetyManagement/monitoringCallInside"), },
}, /* 后勤报修反馈 */
//信息中心监控管理-监控调阅外部 {
{ path: "/feedbackRepair",
path: '/safetyManagement/monitoringCallOutside', name: "feedbackRepair",
name: 'monitoringCallOutside', component: () => import("../views/teacher/logisticsRepair/feedbackRepair"),
component: () => import("../views/teacher/safetyManagement/monitoringCallOutside"), },
}, /** 校产管理 schoolProperty 管理员权限 教师权限 **/
//安全管理-车辆登记表 // 管理员 首页
{ {
path: '/safetyManagement/vehicleRegistration', path: "/schoolProperty",
name: 'vehicleRegistration', name: "adminIndex",
component: () => import("../views/teacher/safetyManagement/vehicleRegistration"), component: () => import("../views/teacher/schoolProperty"),
}, },
//安全管理-车辆出入登记申请列表 // 管理员 物品借用列表页
{ {
path: '/safetyManagement/carAccessRegistrationApply', path: "/schoolProperty/borrow",
name: 'carAccessRegistrationApply', name: "adminBorrowList",
component: () => import("../views/teacher/safetyManagement/carAccessRegistrationApply"), component: () => import("../views/teacher/schoolProperty/borrowList"),
}, },
//安全管理-监控调阅内部申请列表 // 管理员 物品借用 新增、编辑、查看页面
{ {
path: '/safetyManagement/monitoringCallInsideApply', path: "/schoolProperty/borrow/detail",
name: 'monitoringCallInsideApply', name: "adminBorrowDetail",
component: () => import("../views/teacher/safetyManagement/monitoringCallInsideApply"), component: () => import("../views/teacher/schoolProperty/borrowDetail"),
}, },
//安全管理-监控调阅外部申请列表 // 管理员 归还列表页
{ {
path: '/safetyManagement/monitoringCallOutsideApply', path: "/schoolProperty/return",
name: 'monitoringCallOutsideApply', name: "adminReturnList",
component: () => import("../views/teacher/safetyManagement/monitoringCallOutsideApply"), component: () => import("../views/teacher/schoolProperty/returnList"),
}, },
// 管理员 归还查看页
{
path: "/schoolProperty/return/detail",
name: "adminReturnDetail",
component: () => import("../views/teacher/schoolProperty/returnDetail"),
},
// 管理员 物品领用列表页
{
path: "/schoolProperty/use",
name: "adminUseList",
component: () => import("../views/teacher/schoolProperty/useList"),
},
// 管理员 物品领用 新增
{
path: "/schoolProperty/use/add",
name: "adminUseAdd",
component: () => import("../views/teacher/schoolProperty/useAdd"),
},
// 管理员 设备报修列表页
{
path: "/schoolProperty/device",
name: "adminDeviceList",
component: () => import("../views/teacher/schoolProperty/deviceList"),
},
// 管理员 设备维修列表页
{
path: "/schoolProperty/equipmentFix",
name: "equipmentFix",
component: () => import("../views/teacher/schoolProperty/equipmentFix"),
},
// 管理员 设备维修列表详情页
{
path: "/schoolProperty/equipmentFix/equipmentFixDetail",
name: "equipmentFixDetail",
component: () =>
import("../views/teacher/schoolProperty/equipmentFixDetail"),
},
// 设备报修新增、修改、查看、反馈页面
{
path: "/schoolProperty/device/info",
name: "deviceListInfo",
component: () => import("../views/teacher/schoolProperty/deviceListInfo"),
},
//扫码查看设备的详细信息
{
path: "/schoolProperty/equipmentInfo",
name: "equipmentInfo",
component: () => import("../views/teacher/schoolProperty/equipmentInfo"),
},
/** 实验室管理 laboratoryManagement 管理员权限 教师权限 领导权限 级部权限 **/
{
path: "/laboratoryManagement",
name: "laboratoryManagement",
component: () => import("../views/teacher/laboratoryManagement/index.vue"),
},
//领导-实验室记录
{
path: "/laboratoryManagement/laboratoryRecord",
name: "laboratoryRecord",
component: () =>
import("../views/teacher/laboratoryManagement/leader/laboratoryRecord"),
},
//领导-实验室完成情况统计
{
path: "/laboratoryManagement/laboratoryCompleteStatistics",
name: "laboratoryCompleteStatistics",
component: () =>
import(
"../views/teacher/laboratoryManagement/leader/laboratoryCompleteStatistics"
),
},
{
path: "/laboratoryManagement/laboratoryCompleteStatistics/checkComplete",
name: "checkComplete",
component: () =>
import("../views/teacher/laboratoryManagement/leader/checkComplete"),
},
// 实验室管理员 - 年级实验预约列表
{
path: "/laboratoryManagement/gradeLaboratory",
name: "gradeLaboratory",
component: () =>
import("../views/teacher/laboratoryManagement/manager/gradeLaboratory"),
},
// 实验室管理员 - 年级实验预约列表查看
{
path: "/laboratoryManagement/gradeLaboratory/checkGradeComplete",
name: "checkGradeComplete",
component: () =>
import(
"../views/teacher/laboratoryManagement/manager/checkGradeComplete"
),
},
// 实验室管理员 - 教师实验室预约
{
path: "/laboratoryManagement/teacherLaboratory",
name: "teacherLaboratory",
component: () =>
import("../views/teacher/laboratoryManagement/manager/teacherLaboratory"),
},
// 实验室管理员 - 教师实验室预约查看/申请审批
{
path: "/laboratoryManagement/teacherLaboratory/teacherLaboratoryApprove",
name: "teacherLaboratoryApprove",
component: () =>
import(
"../views/teacher/laboratoryManagement/manager/teacherLaboratoryApprove"
),
},
// 实验室管理员 - 个人实验审批
{
path: "/laboratoryManagement/personalLaboratoryApprove",
name: "personalLaboratoryApprove",
component: () =>
import(
"../views/teacher/laboratoryManagement/manager/personalLaboratoryApprove"
),
},
//级部申请-年级实验室预约
{
path: "/laboratoryManagement/gradeLaboratoryApprove",
name: "gradeLaboratoryApprove",
component: () =>
import(
"../views/teacher/laboratoryManagement/levelPart/gradeLaboratoryApprove"
),
},
//级部申请-年级实验室预约-新增/查看/修改
{
path: "/laboratoryManagement/gradeLaboratoryApprove/gradeLaboratoryDetail",
name: "gradeLaboratoryDetail",
component: () =>
import(
"../views/teacher/laboratoryManagement/levelPart/gradeLaboratoryDetail"
),
},
//级部申请-班级完成情况明细
{
path: "/laboratoryManagement/gradeLaboratoryComplete",
name: "gradeLaboratoryComplete",
component: () =>
import(
"../views/teacher/laboratoryManagement/levelPart/gradeLaboratoryComplete"
),
},
//级部申请-班级完成情况查看
{
path: "/laboratoryManagement/gradeLaboratoryComplete/checkGradeLaboratoryComplete",
name: "checkGradeLaboratoryComplete",
component: () =>
import(
"../views/teacher/laboratoryManagement/levelPart/checkGradeLaboratoryComplete"
),
},
//级部申请-实验室完成情况明细
{
path: "/laboratoryManagement/laboratoryCompleteDetail",
name: "laboratoryCompleteDetail",
component: () =>
import(
"../views/teacher/laboratoryManagement/levelPart/laboratoryCompleteDetail"
),
},
//级部申请-查看实验室完成情况
{
path: "/laboratoryManagement/laboratoryCompleteDetail/checkLaboratoryComplete",
name: "checkLaboratoryComplete",
component: () =>
import(
"../views/teacher/laboratoryManagement/levelPart/checkLaboratoryComplete"
),
},
//教师申请-实验室安排
{
path: "/laboratoryManagement/laboratoryArrangement",
name: "laboratoryArrangement",
component: () =>
import(
"../views/teacher/laboratoryManagement/teacher/laboratoryArrangement"
),
},
//教师申请-实验室安排查看、申请
{
path: "/laboratoryManagement/laboratoryArrangement/laboratoryArrangementDetail",
name: "laboratoryArrangementDetail",
component: () =>
import(
"../views/teacher/laboratoryManagement/teacher/laboratoryArrangementDetail"
),
},
//教师申请-实验室申请记录
{
path: "/laboratoryManagement/laboratoryApplicationRecord",
name: "laboratoryApplicationRecord",
component: () =>
import(
"../views/teacher/laboratoryManagement/teacher/laboratoryApplicationRecord"
),
},
//教师申请-实验室申请记录查看
{
path: "/laboratoryManagement/laboratoryApplicationRecord/checkLaboratoryApplication",
name: "checkLaboratoryApplication",
component: () =>
import(
"../views/teacher/laboratoryManagement/teacher/checkLaboratoryApplication"
),
},
//教师申请-个人实验申请
{
path: "/laboratoryManagement/PersonalLaboratoryApplication",
name: "PersonalLaboratoryApplication",
component: () =>
import(
"../views/teacher/laboratoryManagement/teacher/PersonalLaboratoryApplication"
),
},
//教师申请-个人实验申请新增、修改
{
path: "/laboratoryManagement/PersonalLaboratoryApplication/PersonalLaboratoryApplyDetail",
name: "PersonalLaboratoryApplyDetail",
component: () =>
import(
"../views/teacher/laboratoryManagement/teacher/PersonalLaboratoryApplyDetail"
),
},
/** 实验室管理 laboratoryManagement 管理员权限 教师权限 领导权限 级部权限 **/
/** 安全管理 safetyManagement 教师端 **/
{
path: "/safetyManagement",
name: "safetyManagement",
component: () => import("../views/teacher/safetyManagement/index.vue"),
},
//个人安全管理-车辆出入登记
{
path: "/safetyManagement/carAccessRegistration",
name: "carAccessRegistration",
component: () =>
import("../views/teacher/safetyManagement/carAccessRegistration"),
},
//个人安全管理-监控录像调阅
{
path: "/safetyManagement/monitoringCall",
name: "monitoringCall",
component: () => import("../views/teacher/safetyManagement/monitoringCall"),
},
//信息中心监控管理-监控调阅内部
{
path: "/safetyManagement/monitoringCallInside",
name: "monitoringCallInside",
component: () =>
import("../views/teacher/safetyManagement/monitoringCallInside"),
},
//信息中心监控管理-监控调阅外部
{
path: "/safetyManagement/monitoringCallOutside",
name: "monitoringCallOutside",
component: () =>
import("../views/teacher/safetyManagement/monitoringCallOutside"),
},
//安全管理-车辆登记表
{
path: "/safetyManagement/vehicleRegistration",
name: "vehicleRegistration",
component: () =>
import("../views/teacher/safetyManagement/vehicleRegistration"),
},
//安全管理-车辆出入登记申请列表
{
path: "/safetyManagement/carAccessRegistrationApply",
name: "carAccessRegistrationApply",
component: () =>
import("../views/teacher/safetyManagement/carAccessRegistrationApply"),
},
//安全管理-监控调阅内部申请列表
{
path: "/safetyManagement/monitoringCallInsideApply",
name: "monitoringCallInsideApply",
component: () =>
import("../views/teacher/safetyManagement/monitoringCallInsideApply"),
},
//安全管理-监控调阅外部申请列表
{
path: "/safetyManagement/monitoringCallOutsideApply",
name: "monitoringCallOutsideApply",
component: () =>
import("../views/teacher/safetyManagement/monitoringCallOutsideApply"),
},
]; ];
const router = createRouter({ const router = createRouter({
history: createWebHashHistory('zhxygzh'), history: createWebHashHistory("zhxygzh"),
// mode: "history", // mode: "history",
// base: process.env.BASE_URL, // base: process.env.BASE_URL,
routes, routes,
}); });
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// console.log(to,from); // console.log(to,from);
if (to.name == "development") { if (to.name == "development") {
Toast("开发中"); Toast("开发中");
return; return;
} }
next() next();
// next(); // next();
// if (!to.meta.noAuth) { // if (!to.meta.noAuth) {
// next({ name: "login" }); // next({ name: "login" });
// // 路由需要授权 // // 路由需要授权
// if (_.isEmpty(store.getters.wechatUserInfo)) { // if (_.isEmpty(store.getters.wechatUserInfo)) {
// // 获取用户信息 // // 获取用户信息
// if ( // if (
// !_.isEmpty(store.getters.openid) && // !_.isEmpty(store.getters.openid) &&
// !_.isEmpty(store.getters.accessToken) // !_.isEmpty(store.getters.accessToken)
// ) { // ) {
// // 存在openid和accessToken,已经授过权 // // 存在openid和accessToken,已经授过权
// // 判断accessToken是否过期,过期刷新token,获取用户信息 // // 判断accessToken是否过期,过期刷新token,获取用户信息
// store.dispatch('getUserInfo') // store.dispatch('getUserInfo')
// next() // next()
// } else { // } else {
// // todo 跳转网页授权 // // todo 跳转网页授权
// // 记录当前页面url // // 记录当前页面url
// localStorage.setItem('currentUrl', to.fullPath) // localStorage.setItem('currentUrl', to.fullPath)
// next({name: 'auth'}) // next({name: 'auth'})
// } // }
// } else { // } else {
// // todo 已经存在用户信息,需要定期更新 // // todo 已经存在用户信息,需要定期更新
// next() // next()
// } // }
// } else { // } else {
// // 路由不需要授权 // // 路由不需要授权
// next(); // next();
// } // }
}); });
export default router; export default router;
...@@ -58,7 +58,7 @@ export function loginOut() { ...@@ -58,7 +58,7 @@ export function loginOut() {
}); });
} }
export function getgetToken(id) { export function getgetToken(id) {
let result = axios.get("/wx/user/getToken") let result = axios.get("/wx/user/getToken");
return result; return result;
} }
...@@ -89,7 +89,7 @@ export function getjudgePermission() { ...@@ -89,7 +89,7 @@ export function getjudgePermission() {
export function getAttendanceList() { export function getAttendanceList() {
return axios.get( return axios.get(
"/school/studentAttendance/getAttendanceList?studentId=" + "/school/studentAttendance/getAttendanceList?studentId=" +
store.state.studentId store.state.studentId
); );
} }
...@@ -102,13 +102,13 @@ export function getCalendar(params) { ...@@ -102,13 +102,13 @@ export function getCalendar(params) {
export function getCalendardate(params) { export function getCalendardate(params) {
return axios.get( return axios.get(
"/wx/calendar/getCalendar/" + "/wx/calendar/getCalendar/" +
params.calendarId + params.calendarId +
"?date=" + "?date=" +
params.date + params.date +
"&pageSize=" + "&pageSize=" +
params.pageSize + params.pageSize +
"&pageNum=" + "&pageNum=" +
params.pageNum params.pageNum
); );
} }
...@@ -116,11 +116,11 @@ export function getCalendardate(params) { ...@@ -116,11 +116,11 @@ export function getCalendardate(params) {
export function getCalendarmoth(params) { export function getCalendarmoth(params) {
return axios.get( return axios.get(
"/wx/calendar/getMonth/" + "/wx/calendar/getMonth/" +
store.state.CalendarId + store.state.CalendarId +
"?start=" + "?start=" +
params.start + params.start +
"&end=" + "&end=" +
params.end params.end
); );
} }
...@@ -133,12 +133,12 @@ export function getResoucelist() { ...@@ -133,12 +133,12 @@ export function getResoucelist() {
export function getresourceDetails(params) { export function getresourceDetails(params) {
return axios.get( return axios.get(
"/wx/schoolResource/getResouceDetails/" + "/wx/schoolResource/getResouceDetails/" +
params.resourceId + params.resourceId +
"?pageSize=" + "?pageSize=" +
params.pageSize + params.pageSize +
"&pageNum=" + "&pageNum=" +
params.pageNum + params.pageNum +
(params.name ? "&name=" + params.name : "") (params.name ? "&name=" + params.name : "")
); );
} }
...@@ -158,11 +158,11 @@ export function getResouceupdateAll(resourceId, updateAll) { ...@@ -158,11 +158,11 @@ export function getResouceupdateAll(resourceId, updateAll) {
export function getResoucelistinfocommentList(params) { export function getResoucelistinfocommentList(params) {
return axios.get( return axios.get(
"/wx/schoolResource/commentList/" + "/wx/schoolResource/commentList/" +
params.detailsId + params.detailsId +
"?pageSize=" + "?pageSize=" +
params.pageSize + params.pageSize +
"&pageNum=" + "&pageNum=" +
params.pageNum, params.pageNum,
{ {
params: { params: {
studentId: store.state.studentId, studentId: store.state.studentId,
...@@ -195,9 +195,9 @@ export function getChildExam(params) { ...@@ -195,9 +195,9 @@ export function getChildExam(params) {
export function getStudentScore(examId) { export function getStudentScore(examId) {
return axios.get( return axios.get(
"/wx/schoolExam/getscore?studentId=" + "/wx/schoolExam/getscore?studentId=" +
store.state.studentId + store.state.studentId +
"&examId=" + "&examId=" +
examId examId
); );
} }
...@@ -205,13 +205,13 @@ export function getStudentScore(examId) { ...@@ -205,13 +205,13 @@ export function getStudentScore(examId) {
export function getChildExamtec(params) { export function getChildExamtec(params) {
return axios.get( return axios.get(
"/wx/schoolExam/list/" + "/wx/schoolExam/list/" +
params.gradeId + params.gradeId +
"?pageSize=" + "?pageSize=" +
params.pageSize + params.pageSize +
"&pageNum=" + "&pageNum=" +
params.pageNum + params.pageNum +
"&examName=" + "&examName=" +
params.examName params.examName
); );
} }
...@@ -301,7 +301,10 @@ export function messageinfoteac(id) { ...@@ -301,7 +301,10 @@ export function messageinfoteac(id) {
//消息读取 //消息读取
export function changeStatus(id) { export function changeStatus(id) {
let url = store.state.userLoginType == 1 ? "/wx/parentMessage/changeStatus/" : "/wx/message/changeStatus/" let url =
store.state.userLoginType == 1
? "/wx/parentMessage/changeStatus/"
: "/wx/message/changeStatus/";
let result = axios.put(url + id + "?status=1"); let result = axios.put(url + id + "?status=1");
return result; return result;
} }
...@@ -310,12 +313,12 @@ export function changeStatus(id) { ...@@ -310,12 +313,12 @@ export function changeStatus(id) {
export function getparentPushList(params) { export function getparentPushList(params) {
let result = axios.get( let result = axios.get(
"/wx/parentMessage/parentPushList/" + "/wx/parentMessage/parentPushList/" +
store.state.userInfo.userId + store.state.userInfo.userId +
"?" + "?" +
"pageSize=" + "pageSize=" +
params.pageSize + params.pageSize +
"&pageNum=" + "&pageNum=" +
params.pageNum params.pageNum
); );
return result; return result;
} }
...@@ -325,12 +328,12 @@ export function getteacherPushList(params) { ...@@ -325,12 +328,12 @@ export function getteacherPushList(params) {
console.log("我是老师"); console.log("我是老师");
let result = axios.get( let result = axios.get(
"/wx/message/teacherPushList/" + "/wx/message/teacherPushList/" +
store.state.userInfo.userId + store.state.userInfo.userId +
"?" + "?" +
"pageSize=" + "pageSize=" +
params.pageSize + params.pageSize +
"&pageNum=" + "&pageNum=" +
params.pageNum params.pageNum
); );
return result; return result;
} }
...@@ -455,8 +458,8 @@ export function getMemberByGradeId(params) { ...@@ -455,8 +458,8 @@ export function getMemberByGradeId(params) {
"?pageSize=" + params.pageSize + "&pageNum=" + params.pageNum + studentName "?pageSize=" + params.pageSize + "&pageNum=" + params.pageNum + studentName
? +"&studentName=" + params.studentName ? +"&studentName=" + params.studentName
: "" + gradeId == 0 : "" + gradeId == 0
? "" ? ""
: "&gradeId=" + params.gradeId; : "&gradeId=" + params.gradeId;
// let url = // let url =
// "/wx/schoolGrade/getMemberByGradeId" + // "/wx/schoolGrade/getMemberByGradeId" +
// params.gradeId==0? "+ // params.gradeId==0? "+
...@@ -634,14 +637,14 @@ export function cancelLeave(taskId, params) { ...@@ -634,14 +637,14 @@ export function cancelLeave(taskId, params) {
}); });
} }
//根据用户找到所在的组织 //根据用户找到所在的组织
export function getUserDept(userId){ export function getUserDept(userId) {
return axios({ return axios({
url: "/wx/teacherLeave/getUserDept/" + userId, url: "/wx/teacherLeave/getUserDept/" + userId,
method: "get", method: "get",
}); });
} }
//根据部门和部门id 获取当前机构的 科室主任 处室主任 //根据部门和部门id 获取当前机构的 科室主任 处室主任
export function getDeptGrapRole(deptName,deptId){ export function getDeptGrapRole(deptName, deptId) {
return axios({ return axios({
url: `/wx/teacherLeave/getDeptGrapRole?deptName=${deptName}&deptId=${deptId}`, url: `/wx/teacherLeave/getDeptGrapRole?deptName=${deptName}&deptId=${deptId}`,
method: "get", method: "get",
...@@ -1101,7 +1104,7 @@ export function getpersonalListinfo(id) { ...@@ -1101,7 +1104,7 @@ export function getpersonalListinfo(id) {
}); });
} }
//请假时间 //请假时间
export function getTotalTime(query,type) { export function getTotalTime(query, type) {
return axios({ return axios({
url: `/wx/teacherLeave/getTotalTime/${store.state.userInfo.userId}/${type}`, url: `/wx/teacherLeave/getTotalTime/${store.state.userInfo.userId}/${type}`,
method: "get", method: "get",
...@@ -1264,11 +1267,7 @@ export function postStudentLeave(params) { ...@@ -1264,11 +1267,7 @@ export function postStudentLeave(params) {
} }
export function postStudentLeavecancel(params) { export function postStudentLeavecancel(params) {
return axios({ return axios({
url: url: "/wx/studentLeave/cancel/" + params.taskId + "/" + params.instanceId,
"/wx/studentLeave/cancel/" +
params.taskId +
"/" +
params.instanceId,
method: "post", method: "post",
data: params.schoolStudentLeave, data: params.schoolStudentLeave,
}); });
...@@ -1319,7 +1318,7 @@ export function uploadfileImg(query) { ...@@ -1319,7 +1318,7 @@ export function uploadfileImg(query) {
}); });
} }
export function postexam(query, id, iscm) { export function postexam(query, id, iscm) {
let url = iscm ? "/wx/schoolDcwj/edit/" + id : "/wx/schoolDcwj/commit/" + id let url = iscm ? "/wx/schoolDcwj/edit/" + id : "/wx/schoolDcwj/commit/" + id;
return axios({ return axios({
url: url, url: url,
method: "POST", method: "POST",
...@@ -1345,18 +1344,18 @@ export function getschoolXxfbdetail(query) { ...@@ -1345,18 +1344,18 @@ export function getschoolXxfbdetail(query) {
}); });
} }
export function postfz(id, query) { export function postfz(id, query) {
let url = "/wx/schoolXxfb/commit/" + id let url = "/wx/schoolXxfb/commit/" + id;
return axios({ return axios({
url: url, url: url,
method: "POST", method: "POST",
params: { ...query } params: { ...query },
}); });
} }
/** /**
* 信息采集 * 信息采集
*/ */
export function getmatch(query) { export function getmatch(query) {
let url = "/wx/schoolInfo/match" let url = "/wx/schoolInfo/match";
return axios({ return axios({
url: url, url: url,
method: "get", method: "get",
...@@ -1364,16 +1363,15 @@ export function getmatch(query) { ...@@ -1364,16 +1363,15 @@ export function getmatch(query) {
}); });
} }
export function postmaintain(query) { export function postmaintain(query) {
let url = "/wx/schoolInfo/maintain" let url = "/wx/schoolInfo/maintain";
return axios({ return axios({
url: url, url: url,
method: "PUT", method: "PUT",
data: query data: query,
}); });
} }
export function getAcquisitionList(query) { export function getAcquisitionList(query) {
let url = "/wx/schoolInfo/getAcquisitionList/" + query let url = "/wx/schoolInfo/getAcquisitionList/" + query;
return axios({ return axios({
url: url, url: url,
method: "get", method: "get",
...@@ -1389,3 +1387,62 @@ export function getTotalDay(query) { ...@@ -1389,3 +1387,62 @@ export function getTotalDay(query) {
params: query, params: query,
}); });
} }
// 查询我的任务
//我的任务
export function mytaskList(userId) {
return axios.get("/wx/officialflow/taskList/" + userId);
}
// 详情页
export function lookList(id) {
let url = "/wx/officialflow/review/getInfo/" + id;
return axios({
url: url,
method: "get",
params: id,
});
}
// 批阅人操作
export function offiCialflow(query) {
let url = "/wx/officialflow/review/" + query.id; // 在路径和查询参数之间加上 ?
return axios({
url: url,
method: "put",
data: query,
});
}
// 发起人操作
export function offiCialflowfq(query) {
let url = "/wx/officialflow/initiator";
return axios({
url: url,
method: "put",
data: query,
});
}
// 传阅人操作
export function offiCialflowcy(query) {
let url = "/wx/officialflow/circulator/" + query.id;
return axios({
url: url,
method: "put",
data: query,
});
}
//批阅人下拉框
export function getSchoolLeader(query) {
return axios({
url: "/wx/officialflow/getSchoolLeader",
method: "get",
params: query,
});
}
//传阅人
export function getTeacherList(query) {
return axios({
url: "/wx/officialflow/getTeacherList",
method: "get",
params: query,
});
}
<template>
<van-nav-bar title="传阅" left-text="返回" left-arrow @click-left="goback" />
<div style="margin: 0.1rem;font-weight: 700;">
<span style="margin-left: 10px; font-size: 18px;font-family: PingFang SC;background-color: #faf9f9;">公文信息</span>
<table style="border: 1px solid #e5ecf4;">
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">发文字号</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4; " :colspan="3">{{ list && list.issuedNum ?
list.issuedNum : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">发文标题</td>
<td style=" font-size: 15px; border: 1px solid #e5ecf4;" :colspan="3">{{ list && list.issuedName ?
list.issuedName : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #f9f9f9;background-color: #faf9f9;">
收文时间
</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4; "> {{ list && list.receiveDate ?
list.receiveDate : '' }}</td>
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;background-color: #f9f9f9;background-color: #faf9f9; ">
办理期限</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4; ">{{ list && list.deadline ?
list.deadline : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">紧急程度</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4;" :colspan="3">{{ list && list.urgency ?
list.urgency : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-spe" style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">
简介</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4;" :colspan="3">{{ list && list.remarks ?
list.remarks : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-spe" style="font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">
文件
</td>
<td style="font-size: 15px;border: 1px solid #e5ecf4;" :colspan="3">
{{ list && list.fileList ? list.fileList.map(item => item.fjmc).join(', ') : '' }}
</td>
</tr>
</table>
</div>
<!-- 流转信息 -->
<div style="
text-align: left;
margin: 0.2rem;
height: 20px;
font-family: PingFang SC;
font-weight: 700;
color: #242627;
font-size: 18px;
">
<span style="margin-left: 10px; height: 20px">流转信息</span>
</div>
<!-- 表格信息 -->
<div style="
margin-left: 0.2rem;
text-align: center;
min-width: 315px;
height: 68px;
background: #f5f7f7;
border: 1px solid;
border-color: #eeeeee;
display: flex;
align-items: center;
justify-content: space-around;
">
<div style="
height: 67px;
line-height: 67px;
min-width: 60px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
border-right: 1px solid;
border-color: #eeeeee;
">
接收人
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 77px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
border-right: 1px solid;
border-color: #eeeeee;
">
接收时间
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
">
办理时间
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
">
意见
</div>
</div>
<div v-for="item in review" :key="item" style="
display: flex;
/* height: 70px;
line-height: 70px; */
align-items: center;
justify-content: space-around;
/* min-width: 315px; */
border: 1px solid;
border-color: #eeeeee;
">
<div style="
/* height: 67px;
line-height: 67px;
min-width: 101px; */
font-family: PingFang SC;
text-align: center;
color: #000000;
font-size: 14px;
border-right: 1px solid;
border-color: #eeeeee;
">
{{ item.userName }}
</div>
<div style="
min-width: 77px;
font-family: PingFang SC;
color: #000000;
font-size: 14px;
text-align: center;
border-right: 1px solid;
border-color: #eeeeee;
display: flex;
align-items: center;
flex-direction: column;
">
<div style="">{{ item.receiveTime }}</div>
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
text-align: center;
color: #000000;
font-size: 14px;
">
{{ item.finishTime }}
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
color: #000000;
text-align: center;
font-size: 14px;
">
{{ item.opinion }}
</div>
</div>
</template>
<script setup>
import { ref, toRefs, computed, reactive, onMounted } from "vue";
import {
mytaskList,// 查询我的任务
lookList,// 详情页
offiCialflow,// 批阅人操作
offiCialflowfq,// 发起人操作
offiCialflowcy,// 传阅人操作
getSchoolLeader,//批阅人下拉框
getTeacherList//传阅人下拉框
} from "@/service/home";
import { useRouter, useRoute } from "vue-router";
import { createApp } from 'vue';
import { Field, CellGroup } from 'vant';
import { useStore } from "vuex";
import { Toast } from "vant";
const router = useRouter();
const route = useRoute();
const xzdetail = ref();
const app = createApp();
const list = ref();
const review = ref();
const store = useStore();
// 提交表单
const postForm = ref(null);
const detail = JSON.parse(decodeURIComponent(route.query.detail)); // 接收参数
const state = ref({
opinion: "", //意见
receiveUser: "", //用户id
});
app.use(Field);
app.use(CellGroup);
const loadData = async () => {
let result = await lookList(detail.id, {
});
list.value = result.offical;
console.log(list, 'list');
review.value = result.review;
console.log(review, 'review');
};
console.log(loadData, 'loadData');
const goback = async () => {
try {
const query = {
id: detail.id,
userId: store.state.userInfo.teacherId,
}; // 创建一个空的 query 对象
await offiCialflowcy(query); // 调用 offiCialflowcy 接口,并传递 query 对象
router.back();
} catch (error) {
}
};
onMounted(async () => {
loadData();
});
</script>
<style lang="less" scoped>
table {
border-collapse: collapse;
border: 1px solid gray;
width: 100%;
font-size: 0.28rem;
tr {
width: 100%;
.td-width {
text-align: center;
padding: 0.2225rem;
}
.td-spe {
text-align: center;
padding: 0.3525rem;
}
}
}
</style>
\ No newline at end of file
<template>
<van-nav-bar title="公文流转" left-text="返回" left-arrow @click-left="goback" />
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
<van-list v-model:loading="state.loading" :finished="finished" :finished-text="loadingText" @load="onLoad">
<div class="c_main_list" v-for="item in list" :key="item" style="padding: 18px 12px 15px 17px">
<div style="
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 16px;
">
{{ item.issuedNum }}
</div>
<div style="font-size: 12px; margin: 10px -10px 10px -10px">
<van-cell-group inset>
<van-field v-model="item.issuedName" rows="4" autosize type="textarea" readonly placeholder="申请内容"
style="
background-color: #f5f7f7;
font-family: PingFang SC;
color: #6f787d;
font-size: 14px;
" />
</van-cell-group>
</div>
<div style="
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 23px;
">
<div v-if="item.receiveType == '1'" @click="goDetails(item)" class="flex_center" style="
width: 64px;
height: 32px;
border: 1px solid;
background: #ff7a6a;
border-radius: 3px;
font-family: PingFang SC;
font-weight: 700;
color: #ffffff;
font-size: 14px;
text-align: center;
margin-left: 10px;
">
批阅
</div>
<div v-if="item.receiveType == '2'" class="flex_center" @click="goDetails(item)" style="
width: 64px;
height: 32px;
background: #6aadff;
border-radius: 3px;
font-family: PingFang SC;
font-weight: 700;
color: #ffffff;
font-size: 14px;
text-align: center;
margin-left: 10px;
">
传阅
</div>
</div>
</div>
</van-list>
</van-pull-refresh>
<div class="box" style="
margin: 5px 6px 0 6px;
background-color: #ffffff;
height: 180px;
padding: 10px 10px 10px 10px;
"></div>
</template>
<script setup>
import { ref, toRefs, computed, reactive, onMounted } from "vue";
import { useRouter } from "vue-router";
import {
mytaskList,// 查询我的任务
lookList,// 详情页
offiCialflow,// 批阅人操作
offiCialflowfq,// 发起人操作
offiCialflowcy,// 传阅人操作
getSchoolLeader,//批阅人下拉框
getTeacherList//传阅人下拉框
} from "@/service/home";
import { Toast } from "vant";
import axios from "axios";
import { useStore } from "vuex";
import { formatDatetime } from "@/utils/time.js";
const state = reactive({
loading: false,
});
const receiveType = ref("");
const store = useStore();
const router = useRouter();
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
const refreshing = ref(false);
const pageNum = ref(0);
const option1 = [
{ text: "全部", value: "" },
];
const change = async () => {
refreshing.value = true;
onRefresh();
};
const goDetails = (item) => {
// 批阅
if (item.receiveType == 1) {
router.push({
path: "/readOver",
query: {
detail: encodeURIComponent(JSON.stringify(item)),
},
});
}
// 传阅 查看
else if (item.receiveType == 2) {
router.push({
path: "/InitiateAction",
query: {
detail: encodeURIComponent(JSON.stringify(item)),
},
});
}
};
const onLoad = async () => {
if (refreshing.value) {
list.value = [];
pageNum.value = 0;
refreshing.value = false;
}
pageNum.value += 1;
let result = await mytaskList(store.state.userInfo.teacherId);
console.log(result, 'result');
if (result.code == 200) {
list.value.push(...result.data);
list.value.length === result.total && (finished.value = true);
} else {
Toast("获取信息失败!");
loading.value = false;
return;
}
loading.value = false; // 设置loading为false,表示数据加载完成
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
onLoad();
};
const posttactleave = async () => {
let result = await postteacherLeave();
};
const goback = () => {
router.back();
};
</script>
<style lang="less" scoped>
.main_search_1 {
width: 100%;
flex: 1;
height: 15vw;
display: inline-block;
vertical-align: top;
margin: 0 0 -2px 0;
}
</style>
<template>
<van-nav-bar title="批阅" left-text="返回" left-arrow @click-left="goback" />
<van-row gutter="2"
style="line-height: 10px;display: flex;flex-direction: row;justify-content: center;align-items: center;">
<van-col span="20" @refresh="onRefresh">
<van-form ref="postForm">
<van-field style="font-family: PingFang SC;
font-weight: 700;
color: #242627;
font-size: 15px;" v-model="state.opinion" rows="1" autosize label="批阅意见" type="textarea"
placeholder="请输入内容" />
</van-form>
</van-col>
<van-col span="4">
<van-button type="primary" @click="onSubmit" style="height: 0.8rem; border-radius: 8px;">确定</van-button>
</van-col>
</van-row>
<div style="margin: 0.1rem;font-weight: 700;">
<span style="margin-left: 10px; font-size: 18px;font-family: PingFang SC;background-color: #faf9f9;">公文信息</span>
<table style="border: 1px solid #e5ecf4;">
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">发文字号</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4; " :colspan="3">{{ list && list.issuedNum ?
list.issuedNum : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">发文标题</td>
<td style=" font-size: 15px; border: 1px solid #e5ecf4;" :colspan="3">{{ list && list.issuedName ?
list.issuedName : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #f9f9f9;background-color: #faf9f9;">
收文时间
</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4; "> {{ list && list.receiveDate ?
list.receiveDate : '' }}</td>
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;background-color: #f9f9f9;background-color: #faf9f9; ">
办理期限</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4; ">{{ list && list.deadline ?
list.deadline : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-width"
style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">紧急程度</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4;" :colspan="3">{{ list && list.urgency ?
list.urgency : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-spe" style=" font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">
简介</td>
<td style=" font-size: 15px;border: 1px solid #e5ecf4;" :colspan="3">{{ list && list.remarks ?
list.remarks : '' }}</td>
</tr>
<tr style="border: 1px solid #e5ecf4;">
<td class="td-spe" style="font-size: 15px;border: 1px solid #e5ecf4;width: 25%;background-color: #faf9f9;">
文件
</td>
<td style="font-size: 15px;border: 1px solid #e5ecf4;" :colspan="3">
{{ list && list.fileList ? list.fileList.map(item => item.fjmc).join(', ') : '' }}
</td>
</tr>
</table>
</div>
<!-- 流转信息 -->
<div style="
text-align: left;
margin: 0.2rem;
height: 20px;
font-family: PingFang SC;
font-weight: 700;
color: #242627;
font-size: 18px;
">
<span style="margin-left: 10px; height: 20px">流转信息</span>
</div>
<!-- 表格信息 -->
<div style="
margin-left: 0.2rem;
text-align: center;
min-width: 315px;
height: 68px;
background: #f5f7f7;
border: 1px solid;
border-color: #eeeeee;
display: flex;
align-items: center;
justify-content: space-around;
">
<div style="
height: 67px;
line-height: 67px;
min-width: 60px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
border-right: 1px solid;
border-color: #eeeeee;
">
接收人
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 77px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
border-right: 1px solid;
border-color: #eeeeee;
">
接收时间
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
">
办理时间
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
font-weight: 700;
color: #000000;
font-size: 15px;
">
意见
</div>
</div>
<div v-for="item in review" :key="item" style="
display: flex;
/* height: 70px;
line-height: 70px; */
align-items: center;
justify-content: space-around;
/* min-width: 315px; */
border: 1px solid;
border-color: #eeeeee;
">
<div style="
/* height: 67px;
line-height: 67px;
min-width: 101px; */
font-family: PingFang SC;
text-align: center;
color: #000000;
font-size: 14px;
border-right: 1px solid;
border-color: #eeeeee;
">
{{ item.userName }}
</div>
<div style="
min-width: 77px;
font-family: PingFang SC;
color: #000000;
font-size: 14px;
text-align: center;
border-right: 1px solid;
border-color: #eeeeee;
display: flex;
align-items: center;
flex-direction: column;
">
<div style="">{{ item.receiveTime }}</div>
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
text-align: center;
color: #000000;
font-size: 14px;
">
{{ item.finishTime }}
</div>
<div style="
height: 67px;
line-height: 67px;
min-width: 137px;
font-family: PingFang SC;
color: #000000;
text-align: center;
font-size: 14px;
">
{{ item.opinion }}
</div>
</div>
</template>
<script setup>
import { ref, toRefs, computed, reactive, onMounted } from "vue";
import {
mytaskList,// 查询我的任务
lookList,// 详情页
offiCialflow,// 批阅人操作
offiCialflowfq,// 发起人操作
offiCialflowcy,// 传阅人操作
getSchoolLeader,//批阅人下拉框
getTeacherList//传阅人下拉框
} from "@/service/home";
import { useRouter, useRoute } from "vue-router";
import { createApp } from 'vue';
import { Field, CellGroup } from 'vant';
import { useStore } from "vuex";
import { Toast } from "vant";
const router = useRouter();
const route = useRoute();
const xzdetail = ref();
const app = createApp();
const list = ref();
const review = ref();
const store = useStore();
// 提交表单
const postForm = ref(null);
const detail = JSON.parse(decodeURIComponent(route.query.detail)); // 接收参数
console.log(detail, 'detail');
const state = ref({
opinion: "", //意见
receiveUser: "", //用户id
});
app.use(Field);
app.use(CellGroup);
const loadData = async () => {
let result = await lookList(detail.id, {
});
list.value = result.offical;
console.log(list, 'list');
review.value = result.review;
console.log(review, 'review');
};
// const onSubmit = () => {
// let data = {};
// data.userId = store.state.userInfo.teacherId;
// data.opinion = state.opinion.value;
// console.log("state.opinion:", state.opinion);
// console.log("store.state.userInfo.teacherId:", store.state.userInfo.teacherId);
// postForm.validate().then((valid) => {
// loading.value = true;
// offiCialflow(data).then((response) => {
// loading.value = false;
// Toast.success("提交成功");
// goLeave();
// }).catch((error) => {
// loading.value = false;
// Toast.fail("提交失败");
// });
// }).catch((message) => { });
// };
const onSubmit = async (item) => {
console.log(item);
let result = await offiCialflow({
id: detail.id,
opinion: state.value.opinion,
receiveUser: store.state.userInfo.teacherId,
});
if (result.code == 200) {
Toast("提交成功");
goback();
onRefresh();
} else {
Toast("提交失败!");
}
};
const onRefresh = () => {
// 清空列表数据
finished.value = false;
// 重新加载数据
// 将 loading 设置为 true,表示处于加载状态
loading.value = true;
onLoad();
};
console.log(loadData, 'loadData');
const goback = () => {
router.back();
};
onMounted(async () => {
loadData();
});
</script>
<style lang="less" scoped>
table {
border-collapse: collapse;
border: 1px solid gray;
width: 100%;
font-size: 0.28rem;
tr {
width: 100%;
.td-width {
text-align: center;
padding: 0.2225rem;
}
.td-spe {
text-align: center;
padding: 0.3525rem;
}
}
}
</style>
\ No newline at end of file
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