实训调整

This commit is contained in:
fan 2022-08-30 09:30:27 +08:00
parent 6127e21279
commit 6091119a5d
3 changed files with 5 additions and 6 deletions

View File

@ -82,7 +82,7 @@ export function getTrainingAll(trainingId) {
/** 单独更新当前用户的某个实训草稿的初始背景 */
export function updateTrainingBackgroud(data) {
return request({
url: `/api/v2/draft/training/update/content/backgroud`,
url: `/api/v2/draft/training/update/content/background`,
method: 'post',
data
});

View File

@ -105,7 +105,7 @@ export default {
width: '200',
buttons: [
{
name: '编辑步骤',
name: '编辑操作',
type: 'primary',
handleClick: this.handleEditOperate
},

View File

@ -37,7 +37,7 @@ export default {
name: 'EditOperate',
data() {
return {
title: '编辑步骤',
title: '编辑操作',
dialogVisible: false,
dialogWidth: 500,
stepDetail: {
@ -58,7 +58,6 @@ export default {
params: val.params || {},
t: 'C'
};
console.log(data, '********');
this.stepDetail.operations.push(data);
}
}
@ -79,13 +78,13 @@ export default {
this.stepDetail.operations.splice(index, 1);
},
backStepList() {
this.$emit('backStepList', this.stepDetail);
this.dialogVisible = false;
this.stepDetail = {
id: '',
description: '',
operations: []
};
this.$emit('backStepList', this.stepDetail);
this.dialogVisible = false;
},
covertString(data) {
// const datate = {