|
@@ -300,11 +300,26 @@
|
|
|
<img src="../../assets/icon/check.png" alt v-else />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="wordTeacher"
|
|
|
- @click="checkTemplate1(myWord)"
|
|
|
- v-if="cid != '' && cid != undefined"
|
|
|
- >
|
|
|
+ <div class="wordTeacher" @click="checkTemplate2()">
|
|
|
+ <div class="wordPic">
|
|
|
+ <img src="../../assets/icon/wordMub.png" alt />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ margin-top: 10px;
|
|
|
+ line-height: 19px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ padding: 0 20px;
|
|
|
+ "
|
|
|
+ >空项目</div>
|
|
|
+ <div class="checkword">
|
|
|
+ <img src="../../assets/icon/check.png" alt />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="wordTeacher" @click="checkTemplate1()">
|
|
|
<div class="wordPic">
|
|
|
<img src="../../assets/icon/wordMub.png" alt />
|
|
|
</div>
|
|
@@ -318,13 +333,13 @@
|
|
|
white-space: nowrap;
|
|
|
padding: 0 20px;
|
|
|
"
|
|
|
- >我的文档</div>
|
|
|
+ >我的项目</div>
|
|
|
<div class="checkword">
|
|
|
<img
|
|
|
src="../../assets/icon/checked.png"
|
|
|
alt
|
|
|
v-if="
|
|
|
- cid != '' && cid != undefined && clearArray.length == 0
|
|
|
+ clearArray.length == 0
|
|
|
"
|
|
|
/>
|
|
|
<img src="../../assets/icon/check.png" alt v-else />
|
|
@@ -1978,7 +1993,7 @@ export default {
|
|
|
},
|
|
|
getTemplate() {
|
|
|
this.ajax
|
|
|
- .get(this.$store.state.api + "getTemplateT", "")
|
|
|
+ .get(this.$store.state.api + "getCourseTemplateT", "")
|
|
|
.then((res) => {
|
|
|
this.templateArray = res.data[0];
|
|
|
})
|
|
@@ -1993,16 +2008,97 @@ export default {
|
|
|
this.dialogVisible6 = false;
|
|
|
},
|
|
|
checkTemplate(res) {
|
|
|
- this.clearArray.push(res.id);
|
|
|
- this.templateC = res;
|
|
|
- this.cTemplate = res.content;
|
|
|
- this.dialogVisible2 = true;
|
|
|
+ let _this = this;
|
|
|
+ _this
|
|
|
+ .$confirm("确定选择此模板吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ _this.unitJson = JSON.parse(res.chapters);
|
|
|
+ _this.steps++;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return;
|
|
|
+ });
|
|
|
+ // this.clearArray.push(res.id);
|
|
|
+ // this.templateC = res;
|
|
|
+ // this.cTemplate = res.content;
|
|
|
+ // this.dialogVisible2 = true;
|
|
|
},
|
|
|
checkTemplate1(w) {
|
|
|
- this.clearArray.splice(0, this.clearArray.length);
|
|
|
- this.templateC.title = "我的文档";
|
|
|
- this.cTemplate = w != "undefined" ? w : "";
|
|
|
- this.dialogVisible2 = true;
|
|
|
+ this.steps++;
|
|
|
+ // this.clearArray.splice(0, this.clearArray.length);
|
|
|
+ // this.templateC.title = "我的文档";
|
|
|
+ // this.cTemplate = w != "undefined" ? w : "";
|
|
|
+ // this.dialogVisible2 = true;
|
|
|
+ },
|
|
|
+ checkTemplate2() {
|
|
|
+ let _this = this;
|
|
|
+ _this
|
|
|
+ .$confirm("确定选择空模板吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ _this.unitJson = [
|
|
|
+ {
|
|
|
+ dyName: "", //单元标题
|
|
|
+ // dyText: "",
|
|
|
+ // startTime: "", //开始时间
|
|
|
+ // endTime: "", //结束时间
|
|
|
+ // isTalk: false, //是否开启评价
|
|
|
+ chapterInfo: [
|
|
|
+ {
|
|
|
+ isread: false,
|
|
|
+ chapterid: this.guid(),
|
|
|
+ title: "",
|
|
|
+ courseName: "",
|
|
|
+ taskJson: [
|
|
|
+ {
|
|
|
+ task: "",
|
|
|
+ taskDetail: "",
|
|
|
+ chapterData: [],
|
|
|
+ toolText: "",
|
|
|
+ toolChoose: [
|
|
|
+ {
|
|
|
+ tool: null,
|
|
|
+ toolDetail: "",
|
|
|
+ toolType: 0,
|
|
|
+ askCount: 1,
|
|
|
+ askTitle: "",
|
|
|
+ askJson: [
|
|
|
+ { askstitle: "", askItem: 1, checkList: [] },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ isShowTools: false,
|
|
|
+ askCount: 1,
|
|
|
+ isFold: 0,
|
|
|
+ askTitle: "",
|
|
|
+ askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
+ checkJson: [{ checkCount: [], checkPerent: [] }],
|
|
|
+ homeworkList: [],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ itemCount: 1,
|
|
|
+ // question: "",
|
|
|
+ fileList1: [],
|
|
|
+ video: [],
|
|
|
+ testData: [],
|
|
|
+ pData: [],
|
|
|
+ templateArray: [],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.steps++;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return;
|
|
|
+ });
|
|
|
},
|
|
|
wordNext() {
|
|
|
// this.cTemplate = this.templateC.content;
|