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 @@