|
@@ -131,7 +131,7 @@ export default {
|
|
],
|
|
],
|
|
userId: this.$route.query["userid"],
|
|
userId: this.$route.query["userid"],
|
|
selectStatus: "99",
|
|
selectStatus: "99",
|
|
- show: false,
|
|
|
|
|
|
+ show: true,
|
|
selectList: [],
|
|
selectList: [],
|
|
dataList: [],
|
|
dataList: [],
|
|
nowDoTaskId: [],
|
|
nowDoTaskId: [],
|
|
@@ -253,7 +253,7 @@ export default {
|
|
create_at: "2025-05-07 16.05.03",
|
|
create_at: "2025-05-07 16.05.03",
|
|
remarks: "备注",
|
|
remarks: "备注",
|
|
batch: batch,
|
|
batch: batch,
|
|
- status: "3",
|
|
|
|
|
|
+ status: "0",
|
|
createId: "",
|
|
createId: "",
|
|
jsonData: {
|
|
jsonData: {
|
|
file_ids: "",
|
|
file_ids: "",
|
|
@@ -464,6 +464,9 @@ export default {
|
|
Promise.all(promiseList)
|
|
Promise.all(promiseList)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.$message.success("创建成功");
|
|
this.$message.success("创建成功");
|
|
|
|
+ if(!this.dataList.find(i =>i.status == 1)){
|
|
|
|
+ this.startTask(this.dataList.find(i =>i.status == 0).id);
|
|
|
|
+ }
|
|
})
|
|
})
|
|
.catch(err => {
|
|
.catch(err => {
|
|
console.log("创建出错", err);
|
|
console.log("创建出错", err);
|
|
@@ -626,6 +629,10 @@ export default {
|
|
delete dataCopy.jsonData.baseMessage.editorBarData.tableList;
|
|
delete dataCopy.jsonData.baseMessage.editorBarData.tableList;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(dataCopy.jsonData.errorMessage){
|
|
|
|
+ delete dataCopy.jsonData.errorMessage;
|
|
|
|
+ }
|
|
|
|
+
|
|
console.log("dataCopy", dataCopy);
|
|
console.log("dataCopy", dataCopy);
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
@@ -777,6 +784,16 @@ export default {
|
|
).jsonData.steps = _stepList;
|
|
).jsonData.steps = _stepList;
|
|
let _fileData = _startData.jsonData.fileData;
|
|
let _fileData = _startData.jsonData.fileData;
|
|
let audioFile = await this.getVideoToVoiceAndUploadMixin(_fileData);
|
|
let audioFile = await this.getVideoToVoiceAndUploadMixin(_fileData);
|
|
|
|
+ if(audioFile.data==3){
|
|
|
|
+ this.dataList.find(
|
|
|
|
+ i => i.id === _startData.id
|
|
|
|
+ ).jsonData.errorMessage = {content:"视频提取音频失败",err:audioFile.err};
|
|
|
|
+
|
|
|
|
+ this.dataList.find(
|
|
|
|
+ i => i.id === _startData.id
|
|
|
|
+ ).status = "3"
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
if(!this.nowDoTaskId.includes(_startData.id))break;
|
|
if(!this.nowDoTaskId.includes(_startData.id))break;
|
|
_startData.jsonData.fileData.videoUrl = _fileData.url;
|
|
_startData.jsonData.fileData.videoUrl = _fileData.url;
|
|
_startData.jsonData.fileData.fileObj = audioFile.fileObj;
|
|
_startData.jsonData.fileData.fileObj = audioFile.fileObj;
|
|
@@ -1088,6 +1105,17 @@ export default {
|
|
//创建课堂 赋值好fileid 替换创建后课堂的基础数据 继续下一个任务
|
|
//创建课堂 赋值好fileid 替换创建后课堂的基础数据 继续下一个任务
|
|
let newOption = await this.createClassMixin(_startData.jsonData);
|
|
let newOption = await this.createClassMixin(_startData.jsonData);
|
|
|
|
|
|
|
|
+ if([1,2,3].includes(newOption.data)){
|
|
|
|
+ this.dataList.find(
|
|
|
|
+ i => i.id === _startData.id
|
|
|
|
+ ).jsonData.errorMessage = {content:"创建课堂失败",err:data.err};
|
|
|
|
+
|
|
|
|
+ this.dataList.find(
|
|
|
|
+ i => i.id === _startData.id
|
|
|
|
+ ).status = "3"
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ }
|
|
if(!this.nowDoTaskId.includes(_startData.id))break;
|
|
if(!this.nowDoTaskId.includes(_startData.id))break;
|
|
|
|
|
|
this.$emit("addNewCourseOption", newOption.data);
|
|
this.$emit("addNewCourseOption", newOption.data);
|
|
@@ -1259,7 +1287,8 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.b_n_left {
|
|
.b_n_left {
|
|
- width: calc(100% - 60px);
|
|
|
|
|
|
+ flex: 1;
|
|
|
|
+ /* width: calc(100% - 60px); */
|
|
height: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -1298,13 +1327,14 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.b_n_right {
|
|
.b_n_right {
|
|
- width: 60px;
|
|
|
|
|
|
+ width: auto;
|
|
height: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
color: rgba(150, 155, 163, 1);
|
|
color: rgba(150, 155, 163, 1);
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
|
+ white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
|
|
.b_bottom {
|
|
.b_bottom {
|