mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -212,7 +212,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-input v-model:value="formData.source" style="width: 400px; height: 40px; border-radius: 8px" :disabled="taskIndex >= 0"
|
<a-input v-model:value="formData.source" style="width: 400px; height: 40px; border-radius: 8px" :disabled="taskIndex >= 0"
|
||||||
placeholder="请输入数据来源" :maxlength="20" />
|
placeholder="请输入数据来源" :maxlength="120" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_item2">
|
<div class="main_item2">
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<div class="queabox" v-for="items,index in item.optionDetailList" :key="index">
|
<div class="queabox" v-for="items,index in item.optionDetailList" :key="index">
|
||||||
<a-radio
|
<a-radio
|
||||||
v-model:checked="checked"
|
v-model:checked="checked"
|
||||||
:value="items.optionId"
|
:value="items.id"
|
||||||
>
|
>
|
||||||
{{items.optionName}}
|
{{items.optionName}}
|
||||||
</a-radio>
|
</a-radio>
|
||||||
@@ -50,8 +50,7 @@
|
|||||||
import { toRefs,reactive } from '@vue/reactivity';
|
import { toRefs,reactive } from '@vue/reactivity';
|
||||||
import {computed} from "vue";
|
import {computed} from "vue";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
// import * as api from "../../api/indexTaskManage";
|
import * as api from "../../api/indexTaskManage";
|
||||||
import {queryStemByStemId} from '@/api/indexVote';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name:"CheckWork",
|
name:"CheckWork",
|
||||||
@@ -127,19 +126,23 @@ export default {
|
|||||||
function getData() {
|
function getData() {
|
||||||
console.log('我是请求的参数', {
|
console.log('我是请求的参数', {
|
||||||
"courseId": props.courseID,
|
"courseId": props.courseID,
|
||||||
"userInfo": userInfo.value,
|
"studentId": userInfo.value.id,
|
||||||
"voteId": props.voteID
|
"voteSubmitId": props.voteID
|
||||||
})
|
})
|
||||||
queryStemByStemId(props.courseID).then(res=>{
|
api.QueryVoteTaskDetailById({
|
||||||
|
"courseId": props.courseID,
|
||||||
|
"studentId": userInfo.value.id,
|
||||||
|
"voteSubmitId": props.voteID
|
||||||
|
}).then(res=>{
|
||||||
console.log(res)
|
console.log(res)
|
||||||
state.voteResource = res.data.data
|
state.voteResource = res.data.data
|
||||||
|
|
||||||
let choiceArr = []
|
let choiceArr = []
|
||||||
//2023-02-28
|
|
||||||
let dataQuestion = state.voteResource.voteStemDtoList
|
let dataQuestion = state.voteResource.voteStemDtoList
|
||||||
for(let i=0;i<dataQuestion.length;i++){
|
for(let i=0;i<dataQuestion.length;i++){
|
||||||
for(let j=0;j<dataQuestion[i].optionDetailList.length;j++){
|
for(let j=0;j<dataQuestion[i].optionDetailList.length;j++){
|
||||||
if(dataQuestion[i].optionDetailList[j].isAnswer){
|
if(dataQuestion[i].optionDetailList[j].isAnswer){
|
||||||
choiceArr.push(dataQuestion[i].optionDetailList[j].optionId)
|
choiceArr.push(dataQuestion[i].optionDetailList[j].id)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if(j==dataQuestion[i].optionDetailList.length - 1 && dataQuestion[i].optionDetailList[j].isAnswer == false){
|
if(j==dataQuestion[i].optionDetailList.length - 1 && dataQuestion[i].optionDetailList[j].isAnswer == false){
|
||||||
|
|||||||
@@ -287,7 +287,7 @@
|
|||||||
v-model:value="formData.source"
|
v-model:value="formData.source"
|
||||||
style="width: 400px; height: 40px; border-radius: 8px"
|
style="width: 400px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入数据来源"
|
placeholder="请输入数据来源"
|
||||||
:maxlength="20"
|
:maxlength="120"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -375,6 +375,7 @@ export default {
|
|||||||
background-color: #fafafa !important;
|
background-color: #fafafa !important;
|
||||||
}
|
}
|
||||||
.crevoteDrawer {
|
.crevoteDrawer {
|
||||||
|
z-index: 9999;
|
||||||
.drawerMain {
|
.drawerMain {
|
||||||
.header {
|
.header {
|
||||||
height: 73px;
|
height: 73px;
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
<EScore v-model:eScorevisible="eScorevisible" />
|
<EScore v-model:eScorevisible="eScorevisible" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<!-- 查看答卷抽屉 -->
|
<!-- 查看答卷抽屉 -->
|
||||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource"/>
|
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource1"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
{text.record.status === 1 || text.record.status === 9 ?
|
{text.record.status === 1 || text.record.status === 9 ?
|
||||||
<a onClick={()=>{
|
<a onClick={()=>{
|
||||||
state.studentKid = text.record.studentKid;
|
state.studentKid = text.record.studentKid;
|
||||||
state.datasource = text.record;
|
state.datasource1 = text.record;
|
||||||
state.CAvisible = true;
|
state.CAvisible = true;
|
||||||
}}>查看答卷 </a> :
|
}}>查看答卷 </a> :
|
||||||
<span style="color:rgba(0, 0, 0, 0.25);cursor:not-allowed;"> 查看答卷 </span>
|
<span style="color:rgba(0, 0, 0, 0.25);cursor:not-allowed;"> 查看答卷 </span>
|
||||||
@@ -334,7 +334,7 @@ export default {
|
|||||||
loadingData: true,
|
loadingData: true,
|
||||||
studentKid: '',
|
studentKid: '',
|
||||||
CAvisible: false,
|
CAvisible: false,
|
||||||
datasource: ''
|
datasource1: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<EScore v-model:eScorevisible="eScorevisible" />
|
<EScore v-model:eScorevisible="eScorevisible" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<!-- 查看答卷抽屉 -->
|
<!-- 查看答卷抽屉 -->
|
||||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource" />
|
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource1" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -306,7 +306,7 @@ export default {
|
|||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
state.studentKid = text.record.studentKid;
|
state.studentKid = text.record.studentKid;
|
||||||
state.datasource = text.record;
|
state.datasource1 = text.record;
|
||||||
state.CAvisible = true;
|
state.CAvisible = true;
|
||||||
}}>
|
}}>
|
||||||
查看答卷
|
查看答卷
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
disabled
|
disabled
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
state.studentKid = text.record.studentKid;
|
state.studentKid = text.record.studentKid;
|
||||||
state.datasource = text.record;
|
state.datasource1 = text.record;
|
||||||
state.CAvisible = true;
|
state.CAvisible = true;
|
||||||
}}>
|
}}>
|
||||||
查看答卷
|
查看答卷
|
||||||
@@ -336,7 +336,7 @@ export default {
|
|||||||
loadingData: true,
|
loadingData: true,
|
||||||
studentKid: '',
|
studentKid: '',
|
||||||
CAvisible: false,
|
CAvisible: false,
|
||||||
datasource: ''
|
datasource1: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
|
|||||||
@@ -366,12 +366,13 @@
|
|||||||
:key="item.stageId"
|
:key="item.stageId"
|
||||||
@click="stageChange(item, index)"
|
@click="stageChange(item, index)"
|
||||||
>
|
>
|
||||||
{{ item.name || "无阶段" }}
|
<div v-if="item.id === '0'">无阶段</div>
|
||||||
|
<div v-else>{{ "阶段" + (index + 1) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="stage1">阶段1</div>
|
<!-- <div class="stage1">阶段1</div>
|
||||||
<div class="stage2">阶段2</div> -->
|
<div class="stage2">阶段2</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="stagesecond">
|
<div class="stagesecond" v-if="choosedStageName">
|
||||||
<div class="staname">阶段名称:</div>
|
<div class="staname">阶段名称:</div>
|
||||||
<div class="stamess">{{ choosedStageName }}</div>
|
<div class="stamess">{{ choosedStageName }}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -465,7 +466,7 @@
|
|||||||
<button class="edit">
|
<button class="edit">
|
||||||
<img
|
<img
|
||||||
class="editimg"
|
class="editimg"
|
||||||
src="../../assets/images/projectadd/edit.png"
|
src="../../assets/images/projectadd/edit1.png"
|
||||||
/>
|
/>
|
||||||
<span class="editext">编辑</span>
|
<span class="editext">编辑</span>
|
||||||
</button>
|
</button>
|
||||||
@@ -2918,13 +2919,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
levelList.stageList = res.data.data.stageList;
|
levelList.stageList = res.data.data.stageList;
|
||||||
if (levelList.stageList.length === 1) {
|
if (
|
||||||
|
levelList.stageList.length === 1 &&
|
||||||
|
levelList.stageList[0].id === "0"
|
||||||
|
) {
|
||||||
// 无解段任务
|
// 无解段任务
|
||||||
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
state.rankjieduan = [{ value: 0, label: "无阶段" }];
|
||||||
state.valuestu2 = 0;
|
state.valuestu2 = 0;
|
||||||
} else {
|
} else {
|
||||||
// 有阶段任务
|
// 有阶段任务
|
||||||
console.log(levelList.stageList);
|
console.log("有阶段任务", levelList.stageList);
|
||||||
let arrStage = [];
|
let arrStage = [];
|
||||||
for (let i = 0; i < levelList.stageList.length; i++) {
|
for (let i = 0; i < levelList.stageList.length; i++) {
|
||||||
if (levelList.stageList[i].id !== "0") {
|
if (levelList.stageList[i].id !== "0") {
|
||||||
@@ -5962,12 +5966,13 @@ export default {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 38px;
|
right: 38px;
|
||||||
top: 0;
|
top: 0;
|
||||||
color: #4ea6ff;
|
color: #fff;
|
||||||
background: #ffffff;
|
background: #4ea6ff;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
border: 1px solid #4ea6ff;
|
border: 1px solid #4ea6ff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
.editimg {
|
.editimg {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
@@ -5981,15 +5986,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit:hover {
|
// .edit:hover {
|
||||||
color: #ffffff;
|
// color: #ffffff;
|
||||||
background-color: #4ea6ff;
|
// background-color: #4ea6ff;
|
||||||
cursor: pointer;
|
// cursor: pointer;
|
||||||
|
|
||||||
.editimg {
|
// .editimg {
|
||||||
background-image: url("../../assets/images/projectadd/edit1.png");
|
// background-image: url("../../assets/images/projectadd/edit1.png");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
.second {
|
.second {
|
||||||
|
|||||||
Reference in New Issue
Block a user