|
@@ -806,6 +806,23 @@
|
|
|
<img src="../../assets/icon/checkedIs.png" alt v-else />
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="tool">
|
|
|
+ <div
|
|
|
+ class="whiteBIcon"
|
|
|
+ @click="addTools(10, itemTaskIndex, toolIndex)"
|
|
|
+ >
|
|
|
+ <img src="../../assets/icon/thirdToolList/time.png" alt />
|
|
|
+ <div style="margin: 5px 0">倒计时</div>
|
|
|
+ </div>
|
|
|
+ <div class="check" @click="addTools(10, itemTaskIndex, toolIndex)">
|
|
|
+ <img
|
|
|
+ src="../../assets/icon/checkNo.png"
|
|
|
+ alt
|
|
|
+ v-if="itemTool.tool.indexOf(10) == -1"
|
|
|
+ />
|
|
|
+ <img src="../../assets/icon/checkedIs.png" alt v-else />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="toolSort" v-if="itemTool.toolType == 1">
|
|
|
<div class="tool">
|
|
@@ -893,6 +910,23 @@
|
|
|
<img src="../../assets/icon/checkedIs.png" alt v-else />
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="tool">
|
|
|
+ <div
|
|
|
+ class="whiteBIcon"
|
|
|
+ @click="addTools(15, itemTaskIndex, toolIndex)"
|
|
|
+ >
|
|
|
+ <img src="../../assets/icon/thirdToolList/answer.png" alt />
|
|
|
+ <div style="margin: 5px 0">问答工具</div>
|
|
|
+ </div>
|
|
|
+ <div class="check" @click="addTools(15, itemTaskIndex, toolIndex)">
|
|
|
+ <img
|
|
|
+ src="../../assets/icon/checkNo.png"
|
|
|
+ alt
|
|
|
+ v-if="itemTool.tool.indexOf(15) == -1"
|
|
|
+ />
|
|
|
+ <img src="../../assets/icon/checkedIs.png" alt v-else />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="toolSort" v-if="itemTool.toolType == 2">
|
|
|
<div class="tool">
|
|
@@ -1485,6 +1519,35 @@
|
|
|
<el-button type="primary" @click="addChaptersDataTools">确定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="添加问答"
|
|
|
+ :visible.sync="dialogVisible8"
|
|
|
+ :append-to-body="true"
|
|
|
+ width="800px"
|
|
|
+ :before-close="handleClose"
|
|
|
+ class="dialog_diy"
|
|
|
+ >
|
|
|
+ <!-- v-for="(item, index) in unitJson[unitIndex].chapterInfo[0].taskJson[taskCount].toolChoose"
|
|
|
+ :key="index"-->
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ class="a_add_title"
|
|
|
+ style="
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div style="margin-right: 20px; font-size: 20px">问题:</div>
|
|
|
+ <el-input v-model="answerQ" placeholder="请输入您要问的问题" style="width: 400px"></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible8 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="addAnswer">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -1530,6 +1593,7 @@ export default {
|
|
|
dialogVisible5: false,
|
|
|
dialogVisible6: false,
|
|
|
dialogVisible7: false,
|
|
|
+ dialogVisible8: false,
|
|
|
publicTool: 0,
|
|
|
searchPeople: "",
|
|
|
userid: this.$route.query.userid,
|
|
@@ -1611,6 +1675,7 @@ export default {
|
|
|
inputShow: true,
|
|
|
toolIndex: 0,
|
|
|
cidType: 0,
|
|
|
+ answerQ:"",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -1725,7 +1790,8 @@ export default {
|
|
|
nextSteps() {
|
|
|
if (this.cidType == 1) {
|
|
|
if (this.steps == 1) {
|
|
|
- if (this.courseName != "") {// || this.courseText != ""
|
|
|
+ if (this.courseName != "") {
|
|
|
+ // || this.courseText != ""
|
|
|
this.steps = 3;
|
|
|
} else {
|
|
|
this.$message.error("请将信息填写完整");
|
|
@@ -1733,7 +1799,8 @@ export default {
|
|
|
}
|
|
|
} else if (this.steps == 3) {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
- if (this.courseName == "") {// || this.courseText == ""
|
|
|
+ if (this.courseName == "") {
|
|
|
+ // || this.courseText == ""
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -1741,9 +1808,8 @@ export default {
|
|
|
this.steps++;
|
|
|
}
|
|
|
} else {
|
|
|
- if (
|
|
|
- this.courseName == ""
|
|
|
- ) {// || this.courseText == "" || this.cover.length == 0
|
|
|
+ if (this.courseName == "") {
|
|
|
+ // || this.courseText == "" || this.cover.length == 0
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -1754,7 +1820,8 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (this.steps == 1) {
|
|
|
- if (this.courseName != "" ) {//|| this.courseText != ""
|
|
|
+ if (this.courseName != "") {
|
|
|
+ //|| this.courseText != ""
|
|
|
this.steps++;
|
|
|
} else {
|
|
|
this.$message.error("请将信息填写完整");
|
|
@@ -1771,7 +1838,8 @@ export default {
|
|
|
this.steps++;
|
|
|
} else if (this.steps == 3) {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
- if (this.courseName == "" ) {//|| this.courseText == ""
|
|
|
+ if (this.courseName == "") {
|
|
|
+ //|| this.courseText == ""
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -1779,7 +1847,8 @@ export default {
|
|
|
this.steps++;
|
|
|
}
|
|
|
} else {
|
|
|
- if (this.courseName == "") {// || this.courseText == ""
|
|
|
+ if (this.courseName == "") {
|
|
|
+ // || this.courseText == ""
|
|
|
this.$message.error("请将信息填写完整");
|
|
|
return;
|
|
|
} else {
|
|
@@ -2719,6 +2788,8 @@ export default {
|
|
|
].toolChoose[toolIndex];
|
|
|
}
|
|
|
this.dialogVisible5 = true;
|
|
|
+ }else if(i == 15){
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
chapAddTools(i) {
|
|
@@ -2925,6 +2996,7 @@ export default {
|
|
|
|
|
|
this.dialogVisible5 = false;
|
|
|
},
|
|
|
+ addAnswer() {},
|
|
|
selectCourseDetail() {
|
|
|
if (this.cid == "" || this.cid == undefined) {
|
|
|
console.log("这是新增课程");
|