lrf402788946 4 anni fa
parent
commit
1775edaef2
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 2 2
      src/layout/user/workList.vue
  2. 1 0
      src/views/user/leaveDetail.vue

+ 2 - 2
src/layout/user/workList.vue

@@ -7,8 +7,8 @@
             <el-col :span="item.score ? 14 : 18">科目:{{ item.subname }}</el-col>
             <el-col :span="item.score ? 14 : 18">科目:{{ item.subname }}</el-col>
             <el-col :span="4">{{ item.score }}</el-col>
             <el-col :span="4">{{ item.score }}</el-col>
             <el-col :span="6" class="anniu" v-if="!item.have">
             <el-col :span="6" class="anniu" v-if="!item.have">
-              <el-button v-if="item.display === 'second'" type="primary" size="small" @click="clickBtn(item.subname, item.subid, item._id)">在线作答</el-button>
-              <el-button v-else type="primary" size="small" @click="clickzy(item.subid, item.subname, item._id)">上传作业</el-button>
+              <el-button type="primary" size="small" @click="clickBtn(item.subname, item.subid, item._id)">在线作答</el-button>
+              <el-button type="primary" size="small" @click="clickzy(item.subid, item.subname, item._id)">上传作业</el-button>
             </el-col>
             </el-col>
             <el-col :span="6" class="anniu" v-else>
             <el-col :span="6" class="anniu" v-else>
               已提交作业
               已提交作业

+ 1 - 0
src/views/user/leaveDetail.vue

@@ -61,6 +61,7 @@ export default {
       data.termid = this.user.termid;
       data.termid = this.user.termid;
       data.classid = this.user.classid;
       data.classid = this.user.classid;
       data.stuname = this.user.name;
       data.stuname = this.user.name;
+      data.schid = this.user.schid;
       let res = await this.create(data);
       let res = await this.create(data);
       if (res.errcode === 0) {
       if (res.errcode === 0) {
         let msg = `${this.keyWord}添加成功`;
         let msg = `${this.keyWord}添加成功`;