|
@@ -51,9 +51,11 @@
|
|
|
<NewChooseContent :showSyllabus="isFalse"
|
|
|
:showOther="isFalse"
|
|
|
:showQuestion="isFalse"
|
|
|
+ :showPaper="isFalse"
|
|
|
:defaultFiles="curRepair.blobUrl"
|
|
|
ref="chooseContentRef"
|
|
|
- @on-file-change="onSelectFile"></NewChooseContent>
|
|
|
+ @on-file-change="onSelectFile"
|
|
|
+ v-if="isRelatedContent"></NewChooseContent>
|
|
|
|
|
|
<Button class="modal-btn" :loading="isLoading" @click="onConfirmRelate">{{$t('evaluation.confirm')}}</Button>
|
|
|
</Modal>
|
|
@@ -71,7 +73,7 @@
|
|
|
<p style="margin: 15px 2px;">{{ $t('evaluation.repairResourse.link')}}{{ isSiteLink ? '' : $t('evaluation.repairResourse.tip1')}}</p>
|
|
|
|
|
|
<!-- 选择内容 -->
|
|
|
- <Button type="info" @click="isRelatedContent = true" v-if="isSiteLink">{{$t('evaluation.newExercise.chooseContent')}}</Button>
|
|
|
+ <Button type="info" @click="doSelectContent" v-if="isSiteLink">{{$t('evaluation.newExercise.chooseContent')}}</Button>
|
|
|
<!-- 手动输入 -->
|
|
|
<Input v-model="curOutLink" v-if="!isSiteLink" :placeholder="$t('evaluation.repairResourse.place2')" @on-enter="onAddOutLink"/>
|
|
|
<!-- 链接link列表 -->
|
|
@@ -135,6 +137,15 @@
|
|
|
this.defaultFiles = []
|
|
|
},
|
|
|
|
|
|
+ doSelectContent(){
|
|
|
+ this.isRelatedContent = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ if(this.$refs.chooseContentRef){
|
|
|
+ this.$refs.chooseContentRef.clickTab('content')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
/* 回车添加外部资源链接 */
|
|
|
onAddOutLink(){
|
|
|
if(this.isURL(this.curOutLink)){
|
|
@@ -219,9 +230,7 @@
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
- if(this.$refs.chooseContentRef){
|
|
|
- this.$refs.chooseContentRef.clickTab('content')
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
},
|
|
|
watch:{
|