|
@@ -11,9 +11,9 @@
|
|
<div class="student_button">
|
|
<div class="student_button">
|
|
<button class="r_pub_button_course" @mouseenter="btnDisplay = true" @mouseleave="btnDisplay = false">
|
|
<button class="r_pub_button_course" @mouseenter="btnDisplay = true" @mouseleave="btnDisplay = false">
|
|
<span @click="goToCourse3()">创建协同建构</span>
|
|
<span @click="goToCourse3()">创建协同建构</span>
|
|
- <!-- <div v-show="btnDisplay" class="buttonBox">
|
|
|
|
|
|
+ <div v-show="btnDisplay" class="buttonBox">
|
|
<div type="primary" @click="goToCourseSimple()">极速创建</div>
|
|
<div type="primary" @click="goToCourseSimple()">极速创建</div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
</button>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -510,12 +510,23 @@ export default {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ formatDateTime2(timestamp){
|
|
|
|
+ const date = new Date(timestamp); // 根据时间戳创建Date对象
|
|
|
|
+ const year = date.getFullYear(); // 获取年份
|
|
|
|
+ const month = date.getMonth() + 1; // 获取月份,需要加1
|
|
|
|
+ const day = date.getDate(); // 获取日期
|
|
|
|
+ const formattedDate = `${year}-${this.handlerZero(month)}-${this.handlerZero(day)}`; // 拼接成格式化后的日期字符串
|
|
|
|
+ return formattedDate;
|
|
|
|
+ },
|
|
|
|
+ handlerZero(param){
|
|
|
|
+ return param= param<10?('0'+param):param
|
|
|
|
+ },
|
|
goToCourseSimple(){
|
|
goToCourseSimple(){
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
uid: this.userid,
|
|
uid: this.userid,
|
|
- //title: top.US.userInfo.username,
|
|
|
|
- title: "黄明浩的创建",
|
|
|
|
|
|
+ title: top.US.userInfo.username+this.formatDateTime2(new Date().getTime())+"的快速创建",
|
|
|
|
+ //title: "黄明浩"+this.formatDateTime2(new Date().getTime())+"的快速创建",
|
|
brief: "",
|
|
brief: "",
|
|
cover:
|
|
cover:
|
|
JSON.stringify([
|
|
JSON.stringify([
|
|
@@ -529,21 +540,22 @@ export default {
|
|
evaId: "",
|
|
evaId: "",
|
|
astudent:"",
|
|
astudent:"",
|
|
see: 1,
|
|
see: 1,
|
|
- chapters: "",
|
|
|
|
- template: "undefined" ,
|
|
|
|
|
|
+ chapters: JSON.stringify([{"dyName":"","chapterInfo":[{"isread":false,"chapterid":"468faf7e-ff3e-c2bf-2829-a78fd5fea04e","title":"","courseName":"","taskJson":[{"task":"","taskDetail":"","chapterData":[],"toolChoose":[{"tool":[],"toolDetail":"","toolType":0,"askCount":1,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}]}],"toolText":"","isShowTools":false,"askCount":1,"isFold":0,"askTitle":"","askJson":[{"askstitle":"","askItem":1,"checkList":[]}],"checkJson":[{"checkCount":[],"checkPerent":[]}],"homeworkList":[],"proVisible":false,"proVisible2":false}],"itemCount":1,"fileList1":[],"video":[],"testData":[],"pData":[],"templateArray":[]}]}]),
|
|
|
|
+ template: "" ,
|
|
courseType: JSON.stringify(this.courseTypeId),
|
|
courseType: JSON.stringify(this.courseTypeId),
|
|
ateacher:"",
|
|
ateacher:"",
|
|
- inviteCode: "",
|
|
|
|
|
|
+ inviteCode: "[]",
|
|
},
|
|
},
|
|
];
|
|
];
|
|
this.ajax
|
|
this.ajax
|
|
.post(this.$store.state.api + "addSynergyCourse", params)
|
|
.post(this.$store.state.api + "addSynergyCourse", params)
|
|
- .then((res) => {
|
|
|
|
|
|
+ .then(() => {
|
|
// if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
|
|
// if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
|
|
this.$message({
|
|
this.$message({
|
|
message: "新增成功",
|
|
message: "新增成功",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
|
|
+ this.getCourse();
|
|
// }
|
|
// }
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|