实现对未交作业人员的查询和展示
This commit is contained in:
@@ -20,4 +20,6 @@ public class VUserfileService {
|
|||||||
public List<TbStudentlist> findStudentNoByWorkFolderAndCourseName(String workFolder, String courseName){
|
public List<TbStudentlist> findStudentNoByWorkFolderAndCourseName(String workFolder, String courseName){
|
||||||
return vUserfileRepository.findStudentNoByWorkFolderAndCourseName(workFolder,courseName);
|
return vUserfileRepository.findStudentNoByWorkFolderAndCourseName(workFolder,courseName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,9 @@ serverproperties:
|
|||||||
spring:
|
spring:
|
||||||
thymeleaf:
|
thymeleaf:
|
||||||
prefix: classpath:/templates/
|
prefix: classpath:/templates/
|
||||||
|
cache: false
|
||||||
|
check-template: true
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: com.mysql.jdbc.Driver
|
||||||
url: jdbc:mysql://localhost:3306/db_imis2?useUnicode=true&characterEncoding=utf-8&useSSL=true
|
url: jdbc:mysql://localhost:3306/db_imis2?useUnicode=true&characterEncoding=utf-8&useSSL=true
|
||||||
|
|||||||
@@ -314,7 +314,6 @@ var Main = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
openNotiSuccess(title, content) {
|
openNotiSuccess(title, content) {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: title,
|
title: title,
|
||||||
@@ -378,15 +377,15 @@ var Main = {
|
|||||||
console.log(file, fileList);
|
console.log(file, fileList);
|
||||||
},
|
},
|
||||||
ClickToJump(targe) {
|
ClickToJump(targe) {
|
||||||
window.location.href = "http://localhost:8080/cms/" + targe;
|
window.location.href = getRootPath_web()+"/" + targe;
|
||||||
},
|
},
|
||||||
handleDownload(row) {
|
handleDownload(row) {
|
||||||
/*var url = window.location.protocol+"://"+window.location.host+":"+window.location.port+"/"*/
|
/*var url = window.location.protocol+"://"+window.location.host+":"+window.location.port+"/"*/
|
||||||
window.open("http://localhost:8080/cms/download/dodownload?fileId=" + row.colfileid);
|
window.open(getRootPath_web()+"/download/dodownload?fileId=" + row.colfileid);
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
axios({
|
axios({
|
||||||
url: 'http://localhost:8080/cms/home/filedelete',
|
url: getRootPath_web()+'/home/filedelete',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
fileid: row.colfileid
|
fileid: row.colfileid
|
||||||
|
|||||||
@@ -314,7 +314,6 @@ var Main = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
openNotiSuccess(title, content) {
|
openNotiSuccess(title, content) {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
title: title,
|
title: title,
|
||||||
@@ -329,7 +328,7 @@ var Main = {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
uploadURL(row) {
|
uploadURL(row) {
|
||||||
return "http://localhost:8080/cms/moreUpload?courseName=" + row.coursename + "&folder=" + row.workfolder;
|
return getRootPath_web()+"/moreUpload?courseName=" + row.coursename + "&folder=" + row.workfolder;
|
||||||
},
|
},
|
||||||
limitTime(row) {
|
limitTime(row) {
|
||||||
return DateDiff(row.worktime.replace(/([^\s]+)\s.*/, "$1"), cur);
|
return DateDiff(row.worktime.replace(/([^\s]+)\s.*/, "$1"), cur);
|
||||||
@@ -338,7 +337,7 @@ var Main = {
|
|||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
axios({
|
axios({
|
||||||
url: 'http://localhost:8080/cms/' + url,
|
url: getRootPath_web()+'/' + url,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
content: this.$refs.content.value
|
content: this.$refs.content.value
|
||||||
|
|||||||
@@ -2,12 +2,21 @@ var Main = {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeIndex: '1',
|
activeIndex: '1',
|
||||||
|
dialogTableVisible: false,
|
||||||
formInline: {
|
formInline: {
|
||||||
name:'',
|
name:'',
|
||||||
name2:'',
|
name2:'',
|
||||||
content: '',
|
content: '',
|
||||||
folder: ''
|
folder: ''
|
||||||
},
|
},
|
||||||
|
UncommittedPersonList:[
|
||||||
|
{
|
||||||
|
listid: 1,
|
||||||
|
colstudentno:'15251101238',
|
||||||
|
colrealname:'符嘉阳',
|
||||||
|
sex:'男'
|
||||||
|
}
|
||||||
|
],
|
||||||
homeworkData: [
|
homeworkData: [
|
||||||
{
|
{
|
||||||
fileid: 56,
|
fileid: 56,
|
||||||
@@ -53,6 +62,25 @@ var Main = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
findUncommitStudent(row){
|
||||||
|
var that = this;
|
||||||
|
this.dialogTableVisible = true;
|
||||||
|
axios.get(getRootPath_web()+'/home/findStudentInCourseFile',
|
||||||
|
{
|
||||||
|
params: {
|
||||||
|
Folder: row.folder,
|
||||||
|
CourseName:row.courseName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
.then(function (response) {
|
||||||
|
console.log(response.data);
|
||||||
|
that.UncommittedPersonList = response.data;
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
})
|
||||||
|
},
|
||||||
togglePost(url){
|
togglePost(url){
|
||||||
axios({
|
axios({
|
||||||
url: getRootPath_web()+url,
|
url: getRootPath_web()+url,
|
||||||
@@ -73,6 +101,14 @@ var Main = {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
dialogClose(done) {
|
||||||
|
this.$confirm('确认关闭?')
|
||||||
|
.then(_ => {
|
||||||
|
done();
|
||||||
|
})
|
||||||
|
.catch(_ => {
|
||||||
|
});
|
||||||
|
},
|
||||||
handleSelect(key, keyPath) {
|
handleSelect(key, keyPath) {
|
||||||
console.log(key, keyPath);
|
console.log(key, keyPath);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -64,6 +64,6 @@
|
|||||||
</el-container>
|
</el-container>
|
||||||
</el-container>
|
</el-container>
|
||||||
</div>
|
</div>
|
||||||
<script th:src="@{/js/home.js}"></script>
|
<script th:src="@{/js/homePage.js}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,9 +1,7 @@
|
|||||||
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
|
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:th="http://www.thymeleaf.org">
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
<head th:include="dist/thymeleaf/common_head :: header('管理员主页')">
|
<head th:include="dist/thymeleaf/common_head :: header('管理员主页')"></head>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div th:insert="~{dist/thymeleaf/common_head :: #body_js}"></div>
|
<div th:insert="~{dist/thymeleaf/common_head :: #body_js}"></div>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
|||||||
@@ -304,6 +304,6 @@
|
|||||||
</el-container>
|
</el-container>
|
||||||
</el-container>
|
</el-container>
|
||||||
</div>
|
</div>
|
||||||
<script th:src="@{/js/home.js}"></script>
|
<script th:src="@{/js/homePage.js}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,50 +1,18 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
|
||||||
<html lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
<head>
|
xmlns:th="http://www.thymeleaf.org">
|
||||||
<meta charset="UTF-8">
|
<head th:include="dist/thymeleaf/common_head :: header('作业管理')">
|
||||||
<title>作业管理</title>
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
|
|
||||||
<!--<link rel="stylesheet" href="https://unpkg.com/element-ui@2.1.0/lib/theme-chalk/display.css">-->
|
|
||||||
<link rel="stylesheet" href="../../static/css/style.css">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<!-- 先引入 Vue -->
|
<div th:insert="~{dist/thymeleaf/common_head :: #body_js}"></div>
|
||||||
<script src="https://unpkg.com/vue/dist/vue.js"></script>
|
|
||||||
<!-- 引入组件库 -->
|
|
||||||
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
|
|
||||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header th:include="dist/thymeleaf/layout :: header"></el-header>
|
||||||
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
|
|
||||||
<el-menu-item index="1">首页</el-menu-item>
|
|
||||||
<el-submenu index="2">
|
|
||||||
<template slot="title">个人中心</template>
|
|
||||||
<el-menu-item index="2-1">选项1</el-menu-item>
|
|
||||||
<el-menu-item index="2-2">选项2</el-menu-item>
|
|
||||||
<el-menu-item index="2-3">选项3</el-menu-item>
|
|
||||||
</el-submenu>
|
|
||||||
<el-menu-item index="3" @click="ClickToJump('about')">关于</el-menu-item>
|
|
||||||
<el-menu-item index="4" @click="ClickToJump('feedback')">意见反馈</el-menu-item>
|
|
||||||
<el-menu-item index="5"><a href="login.jsp">登出</a></el-menu-item>
|
|
||||||
</el-menu>
|
|
||||||
</el-header>
|
|
||||||
<el-main>
|
<el-main>
|
||||||
<el-col :md="4" :lg="4" :xl="4" class="hidden-sm-and-down">
|
<el-col :md="4" :lg="4" :xl="4" class="hidden-sm-and-down">
|
||||||
<el-row><el-card class="box-card">
|
<el-row>
|
||||||
<div slot="header" class="clearfix">
|
<el-card th:include="dist/thymeleaf/layout :: userbox"></el-card>
|
||||||
<span>用户名</span><br>
|
|
||||||
<span>学号</span>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
|
||||||
<el-button type="text" @click="ClickToJump('home')">首页</el-button><br>
|
|
||||||
<el-button type="text" @click="ClickToJump('user')">个人中心</el-button><br>
|
|
||||||
<el-button type="text" @click="ClickToJump('about')">关于</el-button><br>
|
|
||||||
<el-button type="text" @click="ClickToJump('feedback')">意见反馈</el-button>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-card th:include="dist/thymeleaf/layout :: adminbox"></el-card>
|
<el-card th:include="dist/thymeleaf/layout :: adminbox"></el-card>
|
||||||
@@ -72,8 +40,25 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="folder" label="子文件夹" show-overflow-tooltip>
|
<el-table-column prop="folder" label="子文件夹" show-overflow-tooltip>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column fixed="right" label="操作" width="200">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button @click="handleDownload(scope.row)" type="success" plain
|
||||||
|
size="small">
|
||||||
|
批量下载
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" plain size="small"
|
||||||
|
@click="findUncommitStudent(scope.row)">未交名单</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</template></el-row>
|
</template></el-row>
|
||||||
|
<el-dialog title="未提交人员名单" :visible.sync="dialogTableVisible">
|
||||||
|
<el-table :data="UncommittedPersonList" :default-sort="{prop: 'colstudentno', order: 'ascending'}">
|
||||||
|
<el-table-column property="colstudentno" label="学号" sortable></el-table-column>
|
||||||
|
<el-table-column property="colrealname" label="姓名" sortable></el-table-column>
|
||||||
|
<el-table-column property="sex" label="性别" sortable></el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-dialog>
|
||||||
<el-row>
|
<el-row>
|
||||||
<h4>添加作业</h4>
|
<h4>添加作业</h4>
|
||||||
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
||||||
@@ -114,7 +99,6 @@
|
|||||||
</el-container>
|
</el-container>
|
||||||
</el-container>
|
</el-container>
|
||||||
</div>
|
</div>
|
||||||
<script src="../../static/js/homework.js"></script>
|
<script th:src="@{/js/homework.js}"></script>
|
||||||
<script src="../../static/js/common.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user