From ce1667716d7fe2e2f8a9868ace71b3d1990db62c Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 9 Dec 2021 15:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=97=B6?= =?UTF-8?q?=E5=80=99=E8=BF=94=E5=9B=9E=E5=88=97=E8=A1=A8=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=8A=E6=AC=A1=E9=80=89=E6=8B=A9=E5=88=9B=E5=BB=BA=E4=BA=BA?= =?UTF-8?q?=20=E6=9F=A5=E7=9C=8B=E8=BF=94=E5=9B=9E=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=BC=B9=E7=AA=97=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/Introduce.vue | 20 +++++++++++++ src/views/serve/projectAdd.vue | 7 +++-- src/views/serve/projectList.vue | 51 +++++++++++++++++---------------- 3 files changed, 50 insertions(+), 28 deletions(-) diff --git a/src/views/data/Introduce.vue b/src/views/data/Introduce.vue index 66e5f3d..0f9b402 100644 --- a/src/views/data/Introduce.vue +++ b/src/views/data/Introduce.vue @@ -24,11 +24,15 @@

数据源

+

关键字

+ + 保 存 +
{}) }, + save(){ + const keyword = this.newKeyword + if (keyword) { + if (this.keywordList.find(e => e.keyword === keyword)) return this.$message.error('请不要输入重复关键字!') + // this.confirmEdit() + this.$post(this.api.addKeyword,{ + categoryId: this.categoryId, + keyword + }).then(res => { + this.newKeyword = '' + this.getKeyword() + }).catch(res => {}) + } else { + this.confirmEdit() + } + }, addKeyword() { const keyword = this.newKeyword if (keyword) { diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue index 01dd204..590832f 100644 --- a/src/views/serve/projectAdd.vue +++ b/src/views/serve/projectAdd.vue @@ -229,9 +229,10 @@ export default { data() { return { projectId: this.$route.query.projectId, + founder: this.$route.query.founder, token: btoa(sessionStorage.getItem("token")), - isDetail: Boolean(this.$route.query.show), - + isDetail: this.$route.query.show, + isDetails:this.$route.query.isDetails, projectManage: { founder: 0, // 创建人角色(0、系统 1、老师) projectName: "", // 项目名称 @@ -331,7 +332,7 @@ export default { this.$confirm("确定返回?未更新的信息将不会保存。", "提示", { type: "warning" }).then(() => { - this.$router.back(); + this.$router.push(`/projectList?systemId=${this.$route.query.systemId}&show=${this.isDetails}&founder=${this.founder}`); }).catch(() => { }); } diff --git a/src/views/serve/projectList.vue b/src/views/serve/projectList.vue index 8d977b4..c5f0c29 100644 --- a/src/views/serve/projectList.vue +++ b/src/views/serve/projectList.vue @@ -17,7 +17,7 @@
- + @@ -26,7 +26,7 @@ - + - + - + @@ -137,7 +138,7 @@