| | |
| | | } |
| | | |
| | | |
| | | export const getExamDetail = (userId) => { |
| | | export const getExamDetail = (data) => { |
| | | return request({ |
| | | url: '/api/exampaper/getExamDetail', |
| | | method: 'get', |
| | | params: { |
| | | userId |
| | | } |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | |
| | | export const getNowTime = () => { |
| | | return request({ |
| | | url: '/api/exampaper/getdate/', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | //首页到时间计算成绩 |
| | | return request({ |
| | | url: '/api/exampaper/getdate/', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | //首页到时间计算成绩 |
| | | export const calculations = (id) => { |
| | | return request({ |
| | | url: '/api/examScore/getExamScore/', |
| | |
| | | id |
| | | } |
| | | }) |
| | | } |
| | | } |
| | |
| | | // return false; |
| | | }; |
| | | |
| | | getExamDetail(this.userInfo.user_id).then( |
| | | var data = { |
| | | userId:this.userInfo.user_id |
| | | } |
| | | getExamDetail(data).then( |
| | | (res) => { |
| | | that.resData = res.data.data[0]; |
| | | |
| | |
| | | form: {}, |
| | | search: {}, |
| | | option: { |
| | | // card: true, |
| | | // tip: false, |
| | | // searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: "auto", |
| | | index: true, |
| | |
| | | labelWidth: "120", |
| | | menuWidth: 200, |
| | | align: "center", |
| | | menuWidth: 90, |
| | | menu: false, |
| | | refreshBtn: false, |
| | | columnBtn: false, |
| | | emptyBtnText: " ", |
| | | searchBtnText: " ", |
| | | searchShowBtn: false, |
| | | // reserveSelection: true, |
| | | // selection: true, |
| | | column: [ |
| | | { |
| | | label: "姓名", |
| | |
| | | var times = new Date(); |
| | | this.year = times.getFullYear(); |
| | | this.month = Number(times.getMonth()) + 1; |
| | | if(this.month<10){ |
| | | this.month = "0"+this.month; |
| | | } |
| | | // console.log(this.month,123456); |
| | | this.day = times.getDate(); |
| | | if(this.day<10){ |
| | | this.day = "0"+this.day; |
| | | } |
| | | this.timeDom = this.year + "-" + this.month + "-" + this.day; |
| | | this.search["signTime"] = this.timeDom; |
| | | this.query["signTime"] = this.timeDom; |