diff --git a/src/components/Project/ProjectDetail.vue b/src/components/Project/ProjectDetail.vue index 457ab84..fc18531 100644 --- a/src/components/Project/ProjectDetail.vue +++ b/src/components/Project/ProjectDetail.vue @@ -16,9 +16,11 @@
- + + {{ briefTopName }} + {{projectTitle}} @@ -41,7 +43,7 @@
- +
@@ -936,4 +938,7 @@ export default { ::v-deep .el-page-header__content{ flex:1; } +::v-deep .title:hover{ + color: #00b2ff !important; +} \ No newline at end of file diff --git a/src/components/System/Manage/articleManage.vue b/src/components/System/Manage/articleManage.vue index bc63ff2..2562f6b 100644 --- a/src/components/System/Manage/articleManage.vue +++ b/src/components/System/Manage/articleManage.vue @@ -7,13 +7,17 @@
- + - + + + @@ -92,7 +97,7 @@
编辑 - 提交 + 提交
@@ -127,6 +132,79 @@ export default { this.GetData(); }, methods:{ + handleChangeStatus($event, id){ + if ($event === 1) { // 这里判断一下 + // 启用 + this.$confirm('确认启用吗?', '操作确认', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + axios({ + method: 'post', + // 请求的地址 + url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_article', + // URL 中的查询参数 + params: { + articleId:id, + isValid:$event + } + }).then(function (res) { + if (res.data.code === 200) { + Vue.prototype.$notify({ + title: '成功', + message: ('i', {style: 'color: teal'}, res.data.msg), + type: 'success', + offset: 50 + }); + } else { + Vue.prototype.$notify.error({ + title: '错误', + message: res.data.msg, + offset: 50 + }); + } + }) + }) + .catch(() => {}) + } else { + // 禁用 + this.$confirm('确认禁用吗?', '操作确认', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + axios({ + method: 'post', + // 请求的地址 + url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_article', + // URL 中的查询参数 + params: { + articleId:id, + isValid:$event + } + }).then(function (res) { + if (res.data.code === 200) { + Vue.prototype.$notify({ + title: '成功', + message: ('i', {style: 'color: teal'}, res.data.msg), + type: 'success', + offset: 50 + }); + } else { + Vue.prototype.$notify.error({ + title: '错误', + message: res.data.msg, + offset: 50 + }); + } + }) + }) + .catch(() => {}) + } + }, GetData(){ var that = this; axios({ @@ -134,7 +212,7 @@ export default { url:'http://localhost:8082/helloGithub_war_exploded/selectAllArticleByadmin', params:{ } - }).then(function(res){ + }).then((res)=>{ that.List = res.data; }) // /selectAllArticleByadmin diff --git a/src/components/System/Manage/categoryManage.vue b/src/components/System/Manage/categoryManage.vue index 89d7a1c..0b0a43e 100644 --- a/src/components/System/Manage/categoryManage.vue +++ b/src/components/System/Manage/categoryManage.vue @@ -8,7 +8,7 @@
- + @@ -20,6 +20,7 @@ :inactive-value="0" active-color="#13ce66" inactive-color="#ff4949" + @change="handleChangeStatus($event,scope.row.categoryId)" > @@ -104,6 +105,79 @@ export default { this.GetData(); }, methods:{ + handleChangeStatus($event, id){ + if ($event === 1) { // 这里判断一下 + // 启用 + this.$confirm('确认启用吗?', '操作确认', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + axios({ + method: 'post', + // 请求的地址 + url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_category', + // URL 中的查询参数 + params: { + categoryId:id, + isValid:$event + } + }).then(function (res) { + if (res.data.code === 200) { + Vue.prototype.$notify({ + title: '成功', + message: ('i', {style: 'color: teal'}, res.data.msg), + type: 'success', + offset: 50 + }); + } else { + Vue.prototype.$notify.error({ + title: '错误', + message: res.data.msg, + offset: 50 + }); + } + }) + }) + .catch(() => {}) + } else { + // 禁用 + this.$confirm('确认禁用吗?', '操作确认', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + axios({ + method: 'post', + // 请求的地址 + url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_category', + // URL 中的查询参数 + params: { + categoryId:id, + isValid:$event + } + }).then(function (res) { + if (res.data.code === 200) { + Vue.prototype.$notify({ + title: '成功', + message: ('i', {style: 'color: teal'}, res.data.msg), + type: 'success', + offset: 50 + }); + } else { + Vue.prototype.$notify.error({ + title: '错误', + message: res.data.msg, + offset: 50 + }); + } + }) + }) + .catch(() => {}) + } + }, GetData(){ var that = this; axios({ @@ -113,7 +187,6 @@ export default { } }).then(function(res){ that.List = res.data; - console.log(that.List); }) // /selectAllArticleByadmin }, diff --git a/src/components/System/Manage/commentManage.vue b/src/components/System/Manage/commentManage.vue index eaa9af5..9304af2 100644 --- a/src/components/System/Manage/commentManage.vue +++ b/src/components/System/Manage/commentManage.vue @@ -42,8 +42,12 @@ align="center" show-overflow-tooltip label="是否使用过"> - - + 用过 + 没用过 + + + + + + @@ -138,8 +156,8 @@
- 重置 - 提交 + 编辑 + 提交
@@ -173,6 +191,9 @@ export default { } }, methods:{ + editForm(){ + this.isEdit=false; + }, handleChangeStatus($event, id){ if ($event === 1) { // 这里判断一下 // 启用 diff --git a/src/components/System/Manage/projectManage.vue b/src/components/System/Manage/projectManage.vue index da38131..6c615b5 100644 --- a/src/components/System/Manage/projectManage.vue +++ b/src/components/System/Manage/projectManage.vue @@ -38,14 +38,21 @@ width="100" show-overflow-tooltip label="项目地址"> -
- + {{scope.row.projectUrl}} + + + - + +
+ width="120" - label="头像" :show-overflow-tooltip="true"> @@ -132,9 +132,6 @@ - diff --git a/src/components/User/UserComments.vue b/src/components/User/UserComments.vue index 2b566e7..8578129 100644 --- a/src/components/User/UserComments.vue +++ b/src/components/User/UserComments.vue @@ -13,7 +13,7 @@
- {{ this.$cookie.get('username') }} + {{ this.$cookie.get('username') }}
diff --git a/src/components/User/UserInfoPage.vue b/src/components/User/UserInfoPage.vue index d6844d9..60281ab 100644 --- a/src/components/User/UserInfoPage.vue +++ b/src/components/User/UserInfoPage.vue @@ -15,7 +15,7 @@
- +
@@ -145,7 +145,7 @@ export default { data(){ return{ activeName:'first', - username: null, + username: '', contributionValue:0, creatTime:null, projectNum:0, @@ -161,7 +161,7 @@ export default { } }, mounted() { - this.getUserInfo() + this.getUserInfo(); this.getUserDetail(); setTimeout(()=>{ this.updateUserLevel(); @@ -173,13 +173,11 @@ export default { created() { this.updateUserLevel(); this.getUserInfo(); - - }, watch: { $route () { if(this.$route.query.refresh){ - this.getUserInfo() //重新调用http请求实现页面的重新渲染 + this.getUserInfo(); //重新调用http请求实现页面的重新渲染 this.getUserDetail(); } },