实现作业获取和展示

This commit is contained in:
F嘉阳
2018-02-07 09:50:12 +08:00
parent a3a0a32a0c
commit 62d38ac480
20 changed files with 259 additions and 121 deletions

View File

@@ -73,35 +73,7 @@ var Main = {
activeName:'login',
fileList: [],
DownloadList: [],
tableHomeworkData: [{
subject: '信息安全',
date: '2018-05-02',
name: '实验报告',
content: '实验报告',
remark:'3000字以上',
tempfile:'15251101238.docx'
}, {
subject: '信息安全',
date: '2018-05-02',
name: '实验报告',
content: '实验报告',
remark:'3000字以上',
tempfile:'15251101238.docx'
}, {
subject: '信息安全',
date: '2018-05-02',
name: '实验报告',
content: '实验报告',
remark:'3000字以上',
tempfile:'15251101238.docx'
}, {
subject: '信息安全',
date: '2018-05-02',
name: '实验报告',
content: '实验报告',
remark:'3000字以上',
tempfile:'15251101238.docx'
}],
tableHomeworkData: [],
tableData2: [{
date: '2016-05-02',
}, {
@@ -137,6 +109,14 @@ var Main = {
.catch(function (error) {
console.log(error);
});
axios.get('http://localhost:8080/cms/home/findAllHomework')
.then(function (response) {
console.log(response.data);
that.tableHomeworkData = response.data;
})
.catch(function (error) {
console.log(error);
});
})
},