From fde51ab55f45247dec40542974056e56b54a034c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=E5=98=89=E9=98=B3?= Date: Tue, 27 Feb 2018 16:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=83=A8=E5=88=86js=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/user.js | 39 ++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/src/main/resources/static/js/user.js b/src/main/resources/static/js/user.js index ad8dc7c..f55483d 100644 --- a/src/main/resources/static/js/user.js +++ b/src/main/resources/static/js/user.js @@ -140,6 +140,20 @@ var Main = { workfolder: "第一次作业" } ], + NoticeList:[ + { + noticeid: 1, + adminid: 1, + noticeContent: "系统正式上线,Alpha测试版", + issueTime: "2018-2-26 11:00" + }, + { + noticeid: 2, + adminid: 1, + noticeContent: "系统,测试", + issueTime: "2018-2-26 11:13" + } + ] } }, methods: { @@ -231,11 +245,32 @@ var Main = { var that = this; axios.get(getRootPath_web()+'/home/userinfo') .then(function (response) { - console.log(response.data); + //console.log(response.data); that.ruleForm2 = response.data; }) .catch(function (error) { - console.log(error); + //console.log(error); + that.openNotiError("错误", response.data.message); + }); + axios.get(getRootPath_web()+'/home/findAllHomework') + .then(function (response) { + console.log(response.data); + that.tableHomeworkData = response.data; + //that.limitTime = response.data; + }) + .catch(function (error) { + //console.log(error); + that.openNotiError("错误", response.data.message); + }); + axios.get(getRootPath_web()+'/home/findAllNotice') + .then(function (response) { + console.log(response.data); + that.NoticeList = response.data; + //that.limitTime = response.data; + }) + .catch(function (error) { + //console.log(error); + that.openNotiError("错误", response.data.message); }); }) }