去掉跳转步骤自动保存功能
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user