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

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