mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
fix
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<iframe
|
||||
id="iframe"
|
||||
style="width: 100%; height: 100%;"
|
||||
:src="iframeUrl + '/exam/viewanswer?id=' + datasource.answerId "
|
||||
:src="iframeUrl + '/exam/viewanswer?id=' + answerId?answerId:datasource.answerId "
|
||||
frameborder="0"
|
||||
name="myframe"
|
||||
security="restricted"
|
||||
@@ -54,6 +54,10 @@ export default {
|
||||
default: function () {
|
||||
return {};
|
||||
},
|
||||
},
|
||||
answerId:{
|
||||
type: String,
|
||||
default: "",
|
||||
}
|
||||
},
|
||||
setup(props,ctx){
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="answerDatasource"/>
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="answerDatasource" :answerId="answerId"/>
|
||||
<!-- 查看作业抽屉 -->
|
||||
<CKWork
|
||||
v-model:CWvisible="CWvisible"
|
||||
@@ -340,10 +340,11 @@ const batchFinish = () => {
|
||||
};
|
||||
|
||||
const answerDatasource = ref(props.datasource);
|
||||
|
||||
const answerId = ref('');
|
||||
const showExamAnswer = (answerId) => {
|
||||
console.log(answerDatasource.value)
|
||||
console.log(answerDatasource.value,answerId)
|
||||
answerDatasource.value.answerId = answerId;
|
||||
answerId.value = answerId;
|
||||
CAvisible.value = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user