智慧保安考试系统
Administrator
2022-01-14 f507902b5de50cd0b7ac4888ae6aa3ebf26e7ecc
签到查询修改
3 files modified
40 ■■■■ changed files
src/api/examapi/examination.js 22 ●●●● patch | view | raw | blame | history
src/views/exam/startexam.vue 5 ●●●● patch | view | raw | blame | history
src/views/qiandao/signIn.vue 13 ●●●● patch | view | raw | blame | history
src/api/examapi/examination.js
@@ -39,24 +39,22 @@
}
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/',
@@ -65,4 +63,4 @@
            id
        }
    })
}
}
src/views/exam/startexam.vue
@@ -279,7 +279,10 @@
        // 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];
src/views/qiandao/signIn.vue
@@ -56,9 +56,6 @@
      form: {},
      search: {},
      option: {
        // card: true,
        // tip: false,
        // searchSize: "mini",
        searchMenuSpan: 6,
        height: "auto",
        index: true,
@@ -73,15 +70,12 @@
        labelWidth: "120",
        menuWidth: 200,
        align: "center",
        menuWidth: 90,
        menu: false,
        refreshBtn: false,
        columnBtn: false,
        emptyBtnText: " ",
        searchBtnText: " ",
        searchShowBtn: false,
        // reserveSelection: true,
        // selection: true,
        column: [
          {
            label: "姓名",
@@ -153,7 +147,14 @@
    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;