diff --git a/src/components/AddTolist.vue b/src/components/AddTolist.vue new file mode 100644 index 0000000..c4d8df9 --- /dev/null +++ b/src/components/AddTolist.vue @@ -0,0 +1,98 @@ + + + + + + {{ item.title }} + {{ item.description }} + + 新建列表 + + + + + + + + + + + + diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 1ea3404..9390f45 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -56,7 +56,8 @@ - + diff --git a/src/components/EditProjectListConfig.vue b/src/components/EditProjectListConfig.vue new file mode 100644 index 0000000..48ca409 --- /dev/null +++ b/src/components/EditProjectListConfig.vue @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/NewProjectDialog.vue b/src/components/NewProjectDialog.vue index 27a85a7..07ce673 100644 --- a/src/components/NewProjectDialog.vue +++ b/src/components/NewProjectDialog.vue @@ -1,5 +1,5 @@ - + @@ -26,7 +26,7 @@ - + @@ -47,7 +47,7 @@ export default { }, created: false, newid: 0, - showdialog: false, + isVisible: false, openEdit }; }, @@ -59,7 +59,7 @@ export default { }, this.created = false this.newid = 0 - this.showdialog = true + this.isVisible = true }, async newProject() { await request.post('/project/', this.projectinfo).then((res) => { diff --git a/src/components/NewProjectList.vue b/src/components/NewProjectList.vue new file mode 100644 index 0000000..b14889b --- /dev/null +++ b/src/components/NewProjectList.vue @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/ProjectsCards.vue b/src/components/ProjectsCards.vue index 8b199c6..d916b94 100644 --- a/src/components/ProjectsCards.vue +++ b/src/components/ProjectsCards.vue @@ -1,7 +1,7 @@ - - + + diff --git a/src/pages/account/index.vue b/src/pages/account/index.vue index 5e3e3b8..d00307d 100644 --- a/src/pages/account/index.vue +++ b/src/pages/account/index.vue @@ -57,14 +57,14 @@ - - - 加载验证码 - - 刷新 - - 提交 - + + + 加载验证码 + + 刷新 + + 提交 + @@ -79,13 +79,13 @@ - - 加载验证码 + + 加载验证码 - 刷新 - - 提交 - + 刷新 + + 提交 + @@ -100,14 +100,14 @@ - - 加载验证码 + + 加载验证码 - 刷新 - - 提交 + 刷新 + + 提交 - + @@ -209,13 +209,18 @@ export default { url: "/my/set/userinfo", method: "post", data: { - "captcha": getResponse(), + "captcha": getResponse()||'', display_name: this.UserInfo.display_name, aboutme: this.UserInfo.motto, sex: this.select.abbr, }, - }); + }).catch((error) => { + console.log(error); + this.$toast.add({ severity: 'error', summary: '错误', detail: error, life: 3000 }); + + }) + ; console.log(response.status); this.$toast.add({ severity: 'info', summary: '修改个人信息', detail: response.status, life: 3000 }); @@ -229,10 +234,14 @@ export default { url: "/my/set/username", method: "post", data: { - "captcha": getResponse(), + "captcha": getResponse()||'', username: this.UserInfo.username, }, + }).catch((error) => { + console.log(error); + this.$toast.add({ severity: 'error', summary: '错误', detail: error, life: 3000 }); + }); this.$toast.add({ severity: 'info', summary: '修改用户名', detail: response.status, life: 3000 }); @@ -247,10 +256,14 @@ export default { url: "/my/set/pw", method: "post", data: { - "captcha": getResponse(), + "captcha": getResponse()||'', oldpw: this.oldpassword, newpw: this.newpassword }, + }).catch((error) => { + console.log(error); + this.$toast.add({ severity: 'error', summary: '错误', detail: error, life: 3000 }); + }); console.log(response.status); this.$toast.add({ severity: 'info', summary: '修改密码', detail: response.message, life: 3000 }); diff --git a/src/pages/projectlist/[id].vue b/src/pages/projectlist/[id].vue new file mode 100644 index 0000000..7ea8c45 --- /dev/null +++ b/src/pages/projectlist/[id].vue @@ -0,0 +1,112 @@ + + + + + {{ projectlist.title }} + + + + + + + + + ID:{{ projectlist.id }} + + + + + {{ projectlist.state }} + + + + + {{ projectlist.createTime }}创建 + + + + + {{ projectlist.description }} + + + + + + + + diff --git a/src/pages/projectlist/index.vue b/src/pages/projectlist/index.vue new file mode 100644 index 0000000..59eea71 --- /dev/null +++ b/src/pages/projectlist/index.vue @@ -0,0 +1,67 @@ + + 列表创建 + + + + {{ item.title }} + {{ item.state == 'private' ? '私密' : '公开' }} + + + {{ item.createTime + '创建,' + item.updateTime + '更新' }} + + + + {{ item.description }} + 编辑打开 + + + + + + + + + + + + + + + + + diff --git a/src/pages/projects/[id]/index.vue b/src/pages/projects/[id]/index.vue index 99017a6..14d4923 100644 --- a/src/pages/projects/[id]/index.vue +++ b/src/pages/projects/[id]/index.vue @@ -58,7 +58,8 @@ - + + @@ -74,6 +75,7 @@ import { init } from "@waline/client"; import ProjectRunner from "../../../components/ProjectRunner.vue"; import "@waline/client/style"; import { localuser } from "@/stores/user"; +import AddTolist from "../../../components/AddTolist.vue"; export default { components: { ProjectRunner }, data() { diff --git a/src/pages/projects/[id]/push.vue b/src/pages/projects/[id]/push.vue index d80581b..373e34d 100644 --- a/src/pages/projects/[id]/push.vue +++ b/src/pages/projects/[id]/push.vue @@ -32,7 +32,7 @@ - +