From e0ad4c4c96129616648ebd42aa7b418c24278e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Tue, 5 Mar 2024 11:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=B7=B3=E8=BD=AC=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E8=87=AA=E5=8A=A8=E4=BF=9D=E5=AD=98=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/articleAdd.vue | 45 +++++++++++++++++------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index efada55..02f79ed 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -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;