实现对未交作业人员的查询和展示
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user