去掉跳转步骤自动保存功能

This commit is contained in:
2024-03-05 11:44:53 +08:00
parent 63b603c027
commit e0ad4c4c96

View File

@@ -2317,6 +2317,7 @@ export default {
// 点击tab变化
StepCode(e) {
console.log('🚀 ~ StepCode ~ e111:', e);
console.log(e);
if (this.move_step > e) {
if (this.move_step == 2) {
@@ -2328,25 +2329,31 @@ export default {
this.$refs.articleform.validate((valid) => {
if (valid) {
if (this.move_step == 1) {
var flist = this.keywordsList;
var fstr = '';
for (var fu in flist) {
if (flist[fu].ke != '') {
fstr += flist[fu].ke.trim() + ',';
}
}
this.form.keyWords = fstr == '' ? '' : fstr.substring(0, fstr.length - 1);
this.$api.post('api/Article/addArticlePart1', this.form).then((res) => {
if (res.code == 0) {
this.stagingID = res.data.article_id;
this.form.article_id = res.data.article_id;
this.$message.success('Saving succeeded!');
this.move_step = 2; //进行步骤
this.show_step = 2; //显示内容
} else {
this.$message.error(res.msg);
}
});
//暂时注销 start
// var flist = this.keywordsList;
// var fstr = '';
// for (var fu in flist) {
// if (flist[fu].ke != '') {
// fstr += flist[fu].ke.trim() + ',';
// }
// }
// this.form.keyWords = fstr == '' ? '' : fstr.substring(0, fstr.length - 1);
// this.$api.post('api/Article/addArticlePart1', this.form).then((res) => {
// if (res.code == 0) {
// this.stagingID = res.data.article_id;
// this.form.article_id = res.data.article_id;
// this.$message.success('Saving succeeded!');
//暂时注销 End
this.move_step = 2; //进行步骤
this.show_step = 2; //显示内容
//暂时注销 start
// } else {
// this.$message.error(res.msg);
// }
// });
//暂时注销 End
} else if (this.move_step == 2) {
this.onStaging(2);
this.show_step = 3;