去掉跳转步骤自动保存功能
This commit is contained in:
@@ -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.$message.success('Saving succeeded!');
|
||||||
|
//暂时注销 End
|
||||||
this.move_step = 2; //进行步骤
|
this.move_step = 2; //进行步骤
|
||||||
this.show_step = 2; //显示内容
|
this.show_step = 2; //显示内容
|
||||||
} else {
|
|
||||||
this.$message.error(res.msg);
|
//暂时注销 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user