-
-
{{index+1}}
-
{{article.title}}
-
{{article.type}}
-
{{article.label}}
-
{{article.releaseName}}
-
{{article.releaseTime}}
-
- 通过
- 驳回
-
+
+
+
+
+
+
+
{{index+1}}
+
{{article.title}}
+
{{article.type}}
+
{{article.label}}
+
{{article.releaseName}}
+
{{article.releaseTime}}
+
+ 通过
+ 驳回
+
+
+
共{{articleList.length}}条数据
-
共{{articleList.length}}条数据
@@ -41,6 +65,13 @@
},
data() {
return {
+ //参数
+ queryParams: {
+ content: '',
+ author: ''
+ },
+ //加载标志
+ loading: false,
//待审核文章列表
articleList: [],
//无数据
@@ -69,9 +100,8 @@
articleId: item.articleId,
operating: operating
}, res => {
- console.log("审核结果", res);
- if (res > 0) {
- this.$message({
+ if (res.data > 0) {
+ this.$notify({
type: 'success',
message: `${OPERATING[operating]}成功`
});
@@ -79,10 +109,7 @@
_this.getVerifyList();
}, 1000)
} else {
- this.$message({
- type: 'error',
- message: '服务器出小差了,请稍后再试'
- });
+ this.$notify.error('服务器出小差了,请稍后再试');
}
})
})
@@ -91,14 +118,15 @@
* 获取待审核文章列表
*/
getVerifyList() {
- this.$ajax.post('/admin/getVerifyList', {}, res => {
- console.log('待审核文章列表', res);
- if (res.length > 0) {
+ this.loading = true;
+ this.$ajax.post('/admin/getVerifyList', this.queryParams, res => {
+ if (res.data.length > 0) {
this.noDate = false;
- this.articleList = res;
+ this.articleList = res.data;
} else {
this.noDate = true;
}
+ this.loading = false
})
},
/**
diff --git a/HSLink-front/src/view/admin/helpReply/HelpReply.vue b/HSLink-front/src/view/admin/helpReply/HelpReply.vue
index 11970ab..a330f66 100644
--- a/HSLink-front/src/view/admin/helpReply/HelpReply.vue
+++ b/HSLink-front/src/view/admin/helpReply/HelpReply.vue
@@ -32,9 +32,8 @@
* 切换tab
*/
handleClick(tab, event) {
- console.log(tab, event);
},
-
+
}
}
diff --git a/HSLink-front/src/view/admin/helpReply/historyHelp/historyHelp.vue b/HSLink-front/src/view/admin/helpReply/historyHelp/historyHelp.vue
index 6afa0d4..5823761 100644
--- a/HSLink-front/src/view/admin/helpReply/historyHelp/historyHelp.vue
+++ b/HSLink-front/src/view/admin/helpReply/historyHelp/historyHelp.vue
@@ -53,13 +53,12 @@
*/
getHelpAnswerList() {
this.$ajax.post('/admin/getHelpAnswerList', {}, res => {
- res.forEach(item => {
+ res.data.forEach(item => {
if (item.answer_id !== undefined) {
this.historyHelpList.push(item);
}
this.historyHelpNoData = this.historyHelpList.length === 0 ? true : false;
});
- console.log('历史帮助答复列表', this.historyHelpList);
})
}
}
diff --git a/HSLink-front/src/view/admin/helpReply/notHelp/notHelp.vue b/HSLink-front/src/view/admin/helpReply/notHelp/notHelp.vue
index 9aa079b..7641842 100644
--- a/HSLink-front/src/view/admin/helpReply/notHelp/notHelp.vue
+++ b/HSLink-front/src/view/admin/helpReply/notHelp/notHelp.vue
@@ -49,14 +49,13 @@
answerId: userInfo.user_id,
answer: value,
id: help.id}, res => {
- console.log('帮助解决', res);
- if (res === 1) {
- this.$message({
+ if (res.data === 1) {
+ this.$notify({
type: 'success',
message: '提交成功'
});
} else {
- this.$message.error("提交失败")
+ this.$notify.error("提交失败")
}
})
})
@@ -73,13 +72,12 @@
*/
getHelpAnswerList() {
this.$ajax.post('/admin/getHelpAnswerList', {}, res => {
- res.forEach(item => {
+ res.data.forEach(item => {
if (item.answer_id === undefined) {
this.notHelpList.push(item);
}
this.notHelpNoData = this.notHelpList.length === 0 ? true : false;
});
- console.log('未帮助答复列表', this.notHelpList);
})
}
}
diff --git a/HSLink-front/src/view/admin/homepageManagement/HomepageManagement.vue b/HSLink-front/src/view/admin/homepageManagement/HomepageManagement.vue
index 3737e94..f278c83 100644
--- a/HSLink-front/src/view/admin/homepageManagement/HomepageManagement.vue
+++ b/HSLink-front/src/view/admin/homepageManagement/HomepageManagement.vue
@@ -5,6 +5,7 @@
+
@@ -12,9 +13,11 @@
diff --git a/HSLink-front/src/view/admin/homepageManagement/homepageManagement/RotationPhotoManagement.vue b/HSLink-front/src/view/admin/homepageManagement/homepageManagement/RotationPhotoManagement.vue
index b32686a..a4a4d0e 100644
--- a/HSLink-front/src/view/admin/homepageManagement/homepageManagement/RotationPhotoManagement.vue
+++ b/HSLink-front/src/view/admin/homepageManagement/homepageManagement/RotationPhotoManagement.vue
@@ -1,13 +1,12 @@
-
轮播图管理
-
+
-
-
+ fit='scale-down'/>
+
-
+
-
@@ -29,6 +27,8 @@
export default {
data() {
return{
+ //加载标志
+ loading: false,
//轮播图图片
rotationPhotoList: [],
//轮播图片URL列表
@@ -45,31 +45,24 @@
* 上传图片成功
*/
success(response, file, fileList) {
- console.log('上传图片', response);
this.$ajax.post('/admin/uploadRotationPhoto', {fileId: response.fileInfo.id}, res => {
- if (res === 1) {
- this.$message({
+ if (res.data === 1) {
+ this.$notify({
type: 'success',
message: '上传成功'
})
this.getRotationPhotoList();
} else {
- this.$message({
- type: 'error',
- message: '网络异常,请稍后再试'
- })
+ this.$notify.error('网络异常,请稍后再试')
}
})
-
+
},
/**
* 上传图片失败
*/
error() {
- this.$message({
- type: 'error',
- message: '网络异常,请稍后再试'
- })
+ this.$notify.error('网络异常,请稍后再试')
},
/**
* 删除图片
@@ -79,17 +72,14 @@
id: img.id,
fileEncryption: img.fileEncryption
}, res => {
- if (res === 1) {
- this.$message({
+ if (res.data === 1) {
+ this.$notify({
type: 'success',
message: '删除成功'
})
this.getRotationPhotoList();
} else {
- this.$message({
- type: 'error',
- message: '网络异常,请稍后再试'
- })
+ this.$notify.error('网络异常,请稍后再试')
}
})
},
@@ -101,14 +91,15 @@
},
//获取轮播图片
getRotationPhotoList() {
+ this.loading = true;
this.$ajax.post('/hs/getRotationPhotoList',{},res=>{
- console.log("轮播图列表",res);
- if (res.rotationPhotoList.length > 0) {
- this.rotationPhotoList = res.rotationPhotoList;
- res.rotationPhotoList.forEach(img => {
+ if (res.data.rotationPhotoList.length > 0) {
+ this.rotationPhotoList = res.data.rotationPhotoList;
+ res.data.rotationPhotoList.forEach(img => {
this.srcList.push(`${sessionStorage.getItem('url')}/hs/showImg/${img.fileEncryption}`)
});
}
+ this.loading = false
})
},
}
diff --git a/HSLink-front/src/view/admin/homepageManagement/plateManagement/PlateManagement.vue b/HSLink-front/src/view/admin/homepageManagement/plateManagement/PlateManagement.vue
new file mode 100644
index 0000000..21fdb55
--- /dev/null
+++ b/HSLink-front/src/view/admin/homepageManagement/plateManagement/PlateManagement.vue
@@ -0,0 +1,241 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HSLink-front/src/view/admin/personnelManagement/PersonnelManagement.vue b/HSLink-front/src/view/admin/personnelManagement/PersonnelManagement.vue
index 82df97f..6db414f 100644
--- a/HSLink-front/src/view/admin/personnelManagement/PersonnelManagement.vue
+++ b/HSLink-front/src/view/admin/personnelManagement/PersonnelManagement.vue
@@ -27,7 +27,6 @@
},
methods: {
handleClick(tab, event) {
- console.log(tab, event);
}
}
}
diff --git a/HSLink-front/src/view/admin/personnelManagement/personnelManagement/PersonnelManagement.vue b/HSLink-front/src/view/admin/personnelManagement/personnelManagement/PersonnelManagement.vue
index d272a91..3fcce4b 100644
--- a/HSLink-front/src/view/admin/personnelManagement/personnelManagement/PersonnelManagement.vue
+++ b/HSLink-front/src/view/admin/personnelManagement/personnelManagement/PersonnelManagement.vue
@@ -1,38 +1,132 @@
-
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
-
-
-