|
@@ -1562,7 +1562,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
label="操作"
|
|
label="操作"
|
|
- width="250px"
|
|
|
|
|
|
+ :width="review=='1'?'150px':'250px'"
|
|
fixed="right"
|
|
fixed="right"
|
|
v-if="isN != 1"
|
|
v-if="isN != 1"
|
|
>
|
|
>
|
|
@@ -1578,23 +1578,47 @@
|
|
<el-button
|
|
<el-button
|
|
@click="editTest(scope.row)"
|
|
@click="editTest(scope.row)"
|
|
type="primary"
|
|
type="primary"
|
|
- v-if="(examineData && examineData.type == 1) || !examineData"
|
|
|
|
|
|
+ v-if="((examineData && examineData.type == 1) || !examineData) && review !='1'"
|
|
size="small"
|
|
size="small"
|
|
>编辑</el-button
|
|
>编辑</el-button
|
|
>
|
|
>
|
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ @click="returnTest(scope.row)"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'"
|
|
|
|
+ >退回</el-button
|
|
|
|
+ >
|
|
|
|
+ <!-- v-if="((examineData && examineData.type == 1) || !examineData) && review == '1'" -->
|
|
|
|
+
|
|
|
|
+
|
|
<!-- <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
|
|
<!-- <el-button @click="setWordHtml(scope.row)" type="primary" size="small">导出答题信息</el-button>
|
|
<el-button @click="setWordTemplate(scope.row)" type="primary" size="small">word导出</el-button> -->
|
|
<el-button @click="setWordTemplate(scope.row)" type="primary" size="small">word导出</el-button> -->
|
|
<el-button
|
|
<el-button
|
|
@click="deleteTest(scope.row.id)"
|
|
@click="deleteTest(scope.row.id)"
|
|
type="primary"
|
|
type="primary"
|
|
size="small"
|
|
size="small"
|
|
- v-if="(examineData && examineData.type == 1) || !examineData"
|
|
|
|
|
|
+ v-if="((examineData && examineData.type == 1) || !examineData) && review !='1'"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="状态"
|
|
|
|
+ width="100px"
|
|
|
|
+ fixed="right"
|
|
|
|
+ align="center"
|
|
|
|
+ v-if="review==='1'"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <!-- v-if="review==='1'" -->
|
|
|
|
+ <span :class="`typeStatus typeStatus_${scope.row.type}`">{{ typeStatusList[scope.row.type] }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<el-table-column
|
|
<el-table-column
|
|
label="审核状态"
|
|
label="审核状态"
|
|
width="120px"
|
|
width="120px"
|
|
@@ -2209,7 +2233,8 @@ export default {
|
|
timeLimit:this.$route.query.timeLimit,
|
|
timeLimit:this.$route.query.timeLimit,
|
|
sortTime:[],
|
|
sortTime:[],
|
|
review:this.$route.query.review,
|
|
review:this.$route.query.review,
|
|
- defaultTimeLimit:[]
|
|
|
|
|
|
+ defaultTimeLimit:[],
|
|
|
|
+ typeStatusList:["","未提交","已提交","","已退回"]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
@@ -3179,6 +3204,7 @@ ${JSON.stringify(forAllList)}
|
|
cut: 0,
|
|
cut: 0,
|
|
uteaName: this.works[i].uteaName,
|
|
uteaName: this.works[i].uteaName,
|
|
courseJson: JSON.parse(this.works[i].courseJson),
|
|
courseJson: JSON.parse(this.works[i].courseJson),
|
|
|
|
+ type:this.works[i].type
|
|
});
|
|
});
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
@@ -4660,7 +4686,26 @@ ${JSON.stringify(item.array)}
|
|
// console.log(row);
|
|
// console.log(row);
|
|
// this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
|
|
// this.tableWorksArray.find(i=>i.id===row.id).isReview = "1";
|
|
// this.$forceUpdate()
|
|
// this.$forceUpdate()
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ //退回表单
|
|
|
|
+ returnTest(row){
|
|
|
|
+ if(row.type=='1')return this.$message.info("该表单未提交")
|
|
|
|
+ if(row.type=='4')return this.$message.info("该表单已退回")
|
|
|
|
+ let params = [{
|
|
|
|
+ id:row.id,
|
|
|
|
+ type:"4"
|
|
|
|
+ }];
|
|
|
|
+
|
|
|
|
+ this.ajax.post(this.$store.state.api+"update_testCourseWorks_typeById",params).then(res=>{
|
|
|
|
+ if(res.data==1){
|
|
|
|
+ this.tableWorksArray.find(i=>i.id==row.id).type = "4";
|
|
|
|
+ this.$message.success("表单退回成功");
|
|
|
|
+ }
|
|
|
|
+ }).catch(e=>{
|
|
|
|
+ console.log(e);
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
},
|
|
},
|
|
|
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
@@ -5820,4 +5865,33 @@ ${JSON.stringify(item.array)}
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
font-weight:bold;
|
|
font-weight:bold;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+.typeStatus{
|
|
|
|
+ padding: 4px 8px;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ border: solid 1px gray;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.typeStatus_2{
|
|
|
|
+ background:#F0F9F2;
|
|
|
|
+ border-color: #B5E3BF;
|
|
|
|
+ color:#5FC875;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.typeStatus_4{
|
|
|
|
+ background:#FEF5EC;
|
|
|
|
+ border-color: #FAD0A1;
|
|
|
|
+ color:#F7933B;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.typeStatus_1{
|
|
|
|
+ background:#EEF3FC;
|
|
|
|
+ border-color: #0F40F5;
|
|
|
|
+ color:#0F40F5;
|
|
|
|
+}
|
|
|
|
+
|
|
</style>
|
|
</style>
|