实训调整
This commit is contained in:
parent
6127e21279
commit
6091119a5d
@ -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
|
||||
});
|
||||
|
@ -105,7 +105,7 @@ export default {
|
||||
width: '200',
|
||||
buttons: [
|
||||
{
|
||||
name: '编辑步骤',
|
||||
name: '编辑操作',
|
||||
type: 'primary',
|
||||
handleClick: this.handleEditOperate
|
||||
},
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user