实现对未交作业人员的查询和展示
This commit is contained in:
@@ -20,4 +20,6 @@ public class VUserfileService {
|
||||
public List<TbStudentlist> findStudentNoByWorkFolderAndCourseName(String workFolder, String courseName){
|
||||
return vUserfileRepository.findStudentNoByWorkFolderAndCourseName(workFolder,courseName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -9,6 +9,9 @@ serverproperties:
|
||||
spring:
|
||||
thymeleaf:
|
||||
prefix: classpath:/templates/
|
||||
cache: false
|
||||
check-template: true
|
||||
|
||||
datasource:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/db_imis2?useUnicode=true&characterEncoding=utf-8&useSSL=true
|
||||
|
||||
@@ -314,7 +314,6 @@ var Main = {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
openNotiSuccess(title, content) {
|
||||
this.$notify({
|
||||
title: title,
|
||||
@@ -378,15 +377,15 @@ var Main = {
|
||||
console.log(file, fileList);
|
||||
},
|
||||
ClickToJump(targe) {
|
||||
window.location.href = "http://localhost:8080/cms/" + targe;
|
||||
window.location.href = getRootPath_web()+"/" + targe;
|
||||
},
|
||||
handleDownload(row) {
|
||||
/*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) {
|
||||
axios({
|
||||
url: 'http://localhost:8080/cms/home/filedelete',
|
||||
url: getRootPath_web()+'/home/filedelete',
|
||||
method: 'post',
|
||||
data: {
|
||||
fileid: row.colfileid
|
||||
|
||||
@@ -314,7 +314,6 @@ var Main = {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
openNotiSuccess(title, content) {
|
||||
this.$notify({
|
||||
title: title,
|
||||
@@ -329,7 +328,7 @@ var Main = {
|
||||
});
|
||||
},
|
||||
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) {
|
||||
return DateDiff(row.worktime.replace(/([^\s]+)\s.*/, "$1"), cur);
|
||||
@@ -338,7 +337,7 @@ var Main = {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
axios({
|
||||
url: 'http://localhost:8080/cms/' + url,
|
||||
url: getRootPath_web()+'/' + url,
|
||||
method: 'post',
|
||||
data: {
|
||||
content: this.$refs.content.value
|
||||
|
||||
@@ -2,12 +2,21 @@ var Main = {
|
||||
data() {
|
||||
return {
|
||||
activeIndex: '1',
|
||||
dialogTableVisible: false,
|
||||
formInline: {
|
||||
name:'',
|
||||
name2:'',
|
||||
content: '',
|
||||
folder: ''
|
||||
},
|
||||
UncommittedPersonList:[
|
||||
{
|
||||
listid: 1,
|
||||
colstudentno:'15251101238',
|
||||
colrealname:'符嘉阳',
|
||||
sex:'男'
|
||||
}
|
||||
],
|
||||
homeworkData: [
|
||||
{
|
||||
fileid: 56,
|
||||
@@ -53,6 +62,25 @@ var Main = {
|
||||
})
|
||||
},
|
||||
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){
|
||||
axios({
|
||||
url: getRootPath_web()+url,
|
||||
@@ -73,6 +101,14 @@ var Main = {
|
||||
}
|
||||
})
|
||||
},
|
||||
dialogClose(done) {
|
||||
this.$confirm('确认关闭?')
|
||||
.then(_ => {
|
||||
done();
|
||||
})
|
||||
.catch(_ => {
|
||||
});
|
||||
},
|
||||
handleSelect(key, keyPath) {
|
||||
console.log(key, keyPath);
|
||||
},
|
||||
|
||||
@@ -64,6 +64,6 @@
|
||||
</el-container>
|
||||
</el-container>
|
||||
</div>
|
||||
<script th:src="@{/js/home.js}"></script>
|
||||
<script th:src="@{/js/homePage.js}"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +1,7 @@
|
||||
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:include="dist/thymeleaf/common_head :: header('管理员主页')">
|
||||
</head>
|
||||
|
||||
<head th:include="dist/thymeleaf/common_head :: header('管理员主页')"></head>
|
||||
<body>
|
||||
<div th:insert="~{dist/thymeleaf/common_head :: #body_js}"></div>
|
||||
<div id="app">
|
||||
|
||||
@@ -304,6 +304,6 @@
|
||||
</el-container>
|
||||
</el-container>
|
||||
</div>
|
||||
<script th:src="@{/js/home.js}"></script>
|
||||
<script th:src="@{/js/homePage.js}"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,50 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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">
|
||||
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:include="dist/thymeleaf/common_head :: header('作业管理')">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 先引入 Vue -->
|
||||
<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 th:insert="~{dist/thymeleaf/common_head :: #body_js}"></div>
|
||||
<div id="app">
|
||||
<el-container>
|
||||
<el-container>
|
||||
<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-header th:include="dist/thymeleaf/layout :: header"></el-header>
|
||||
<el-main>
|
||||
<el-col :md="4" :lg="4" :xl="4" class="hidden-sm-and-down">
|
||||
<el-row><el-card class="box-card">
|
||||
<div slot="header" class="clearfix">
|
||||
<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-card th:include="dist/thymeleaf/layout :: userbox"></el-card>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-card th:include="dist/thymeleaf/layout :: adminbox"></el-card>
|
||||
@@ -72,8 +40,25 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="folder" label="子文件夹" show-overflow-tooltip>
|
||||
</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>
|
||||
</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>
|
||||
<h4>添加作业</h4>
|
||||
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
||||
@@ -114,7 +99,6 @@
|
||||
</el-container>
|
||||
</el-container>
|
||||
</div>
|
||||
<script src="../../static/js/homework.js"></script>
|
||||
<script src="../../static/js/common.js"></script>
|
||||
<script th:src="@{/js/homework.js}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user