|
@@ -1429,6 +1429,13 @@
|
|
|
>
|
|
|
资源
|
|
|
</button>
|
|
|
+
|
|
|
+ <button
|
|
|
+ class="c_pub_button_add pub_btn_add_img"
|
|
|
+ @click="openAddApp(itemTaskIndex)"
|
|
|
+ >
|
|
|
+ Ai应用
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<div
|
|
|
v-if="
|
|
@@ -2351,26 +2358,26 @@
|
|
|
<div class="whiteBIcon" @click.stop="
|
|
|
openTools(itemTaskIndex, 72, toolIndex)
|
|
|
">
|
|
|
- <img
|
|
|
+ <img
|
|
|
style="object-fit: cover;height: 80px;"
|
|
|
:src="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson ?
|
|
|
unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.json.icon :
|
|
|
require('../../../assets/icon/firstToolList/appStore.png')"
|
|
|
alt />
|
|
|
-
|
|
|
+
|
|
|
<div style="margin: 5px 0" >
|
|
|
- <div
|
|
|
+ <div
|
|
|
v-if="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson"
|
|
|
>
|
|
|
- <el-tooltip class="item" effect="dark"
|
|
|
- :content="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name"
|
|
|
+ <el-tooltip class="item" effect="dark"
|
|
|
+ :content="unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name"
|
|
|
placement="top">
|
|
|
<div class="Ovh">
|
|
|
{{unitJson[unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson.name}}
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<span v-else>
|
|
|
应用中心
|
|
|
</span>
|
|
@@ -5356,7 +5363,7 @@
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
|
|
|
+ <!-- <div class="class_item" style="position:absolute; margin:0" v-if="grade2.length">
|
|
|
<el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
</div> -->
|
|
|
<el-checkbox-group
|
|
@@ -5461,9 +5468,9 @@
|
|
|
</el-checkbox-group>
|
|
|
<div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogVisibleMember = false">取 消</el-button>
|
|
@@ -7396,7 +7403,7 @@
|
|
|
:englishVoiceJson="englishVoiceJson"
|
|
|
@setEnglishVoiceJson="setEnglishVoiceJson"
|
|
|
></EnglishVoice>
|
|
|
- <appDialog ref="appDialog"></appDialog>
|
|
|
+ <appDialog ref="appDialog" @success="selectAppSuccess"></appDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -9904,9 +9911,9 @@ export default {
|
|
|
_check2.push(_id);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (_check2.length==0 && _check.length==0) {
|
|
|
-
|
|
|
+
|
|
|
}else{
|
|
|
this.checkAll2 = _check2.length === _check.length;
|
|
|
}
|
|
@@ -10817,8 +10824,8 @@ export default {
|
|
|
_res = JSON.parse(res.chapters);
|
|
|
this.updateCourseState(parseInt(res.state));
|
|
|
}
|
|
|
- if(_this.unitJson.length == 1
|
|
|
- && _this.unitJson[0].chapterInfo[0].taskJson.length == 1
|
|
|
+ if(_this.unitJson.length == 1
|
|
|
+ && _this.unitJson[0].chapterInfo[0].taskJson.length == 1
|
|
|
&& !_this.unitJson[0].chapterInfo[0].taskJson[0].task
|
|
|
&& !_this.unitJson[0].chapterInfo[0].taskJson[0].taskDetail
|
|
|
&& !_this.unitJson[0].chapterInfo[0].taskJson[0].chapterData.length){
|
|
@@ -10863,7 +10870,7 @@ export default {
|
|
|
return;
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
checkTemplate(res) {
|
|
|
let _this = this;
|
|
@@ -11478,7 +11485,7 @@ export default {
|
|
|
].toolChoose[toolIndex].englishVoiceJson
|
|
|
)
|
|
|
)
|
|
|
- : {
|
|
|
+ : {
|
|
|
title:'',
|
|
|
detail:'',
|
|
|
array:[]
|
|
@@ -11510,13 +11517,13 @@ export default {
|
|
|
].toolChoose[toolIndex].appJson
|
|
|
)
|
|
|
)
|
|
|
- : {
|
|
|
+ : {
|
|
|
url:'',
|
|
|
};
|
|
|
this.$forceUpdate();
|
|
|
this.$refs.appDialog.openG(appJson,this.unitIndex,itemTaskIndex,toolIndex);
|
|
|
}
|
|
|
- if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
|
|
|
+ if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
|
|
|
&& !!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson){
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson = null
|
|
|
}
|
|
@@ -11800,7 +11807,7 @@ export default {
|
|
|
].toolChoose[toolIndex].tool.push(i);
|
|
|
}
|
|
|
|
|
|
- if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
|
|
|
+ if(this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].tool[0] != 72
|
|
|
&& !!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson){
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex].toolChoose[toolIndex].appJson = null
|
|
|
}
|
|
@@ -14472,6 +14479,25 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ openAddApp(i) {
|
|
|
+ this.lineCount = i;
|
|
|
+ this.$refs.appDialog.openG("", "", "", "", 1);
|
|
|
+ },
|
|
|
+ selectAppSuccess({ data, type }) {
|
|
|
+ console.log(data);
|
|
|
+ data.forEach(i => {
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ this.lineCount
|
|
|
+ ].chapterData.push({
|
|
|
+ name: i.name,
|
|
|
+ title: i.name,
|
|
|
+ url: i.url,
|
|
|
+ type: 8
|
|
|
+ });
|
|
|
+ this.imgChange1(null, null, 8, this.lineCount);
|
|
|
+ });
|
|
|
+ this.dialogVisible7 = false;
|
|
|
+ }
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
clearTimeout(this.timer);
|
|
@@ -18647,6 +18673,6 @@ ol {
|
|
|
display: -webkit-box;
|
|
|
-webkit-box-orient: vertical;
|
|
|
overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
+ text-overflow: ellipsis;
|
|
|
}
|
|
|
</style>
|