diff --git a/src/components/System/Manage/oneFileManage.vue b/src/components/System/Manage/oneFileManage.vue
index b21824c..8873565 100644
--- a/src/components/System/Manage/oneFileManage.vue
+++ b/src/components/System/Manage/oneFileManage.vue
@@ -2,10 +2,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.content}}
+
+ {{ scope.row.content.substr(0,12)}}
+ ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 有效
+ 无效
+
+
+
+
+
+ 编辑
+ 提交
+
+
+
+
+
@@ -21,13 +171,15 @@ export default {
List:[],
dialogVisible:false,
form:{
- articleId:'',
- userId: '',
- articleContent: '',
- articleTitle: '',
- articleIco: '',
- readCount: '',
- isValid: '',
+ id:'',
+ userId:'',
+ lookNum:'',
+ oneFileName:'',
+ content:'',
+ language:'',
+ url:'',
+ isValid:'',
+ description:''
}
}
},
@@ -47,7 +199,7 @@ export default {
axios({
method: 'post',
// 请求的地址
- url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_article',
+ url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_onefile',
// URL 中的查询参数
params: {
articleId:id,
@@ -82,7 +234,7 @@ export default {
axios({
method: 'post',
// 请求的地址
- url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_article',
+ url: 'http://localhost:8082/helloGithub_war_exploded/updateisValid_onefile',
// URL 中的查询参数
params: {
articleId:id,
@@ -112,11 +264,12 @@ export default {
var that = this;
axios({
method:'post',
- url:'http://localhost:8082/helloGithub_war_exploded/selectAllArticleByadmin',
+ url:'http://localhost:8082/helloGithub_war_exploded/selectAllFileByAdmin',
params:{
}
}).then((res)=>{
that.List = res.data;
+ console.log(that.List);
})
// /selectAllArticleByadmin
},
@@ -151,10 +304,10 @@ export default {
axios({
method: 'post',
// 请求的地址
- url: 'http://localhost:8082/helloGithub_war_exploded/deleteArticleByAdmin',
+ url: 'http://localhost:8082/helloGithub_war_exploded/deleteFileByAdmin',
// URL 中的查询参数
params: {
- articleId: index.articleId,
+ id: index.id,
}
}).then(function (res) {
if (res.data.code === 500) {
@@ -188,16 +341,18 @@ export default {
axios({
method: 'post',
// 请求的地址
- url: 'http://localhost:8082/helloGithub_war_exploded/updateArticleByAdmin',
+ url: 'api/updateFileByAdmin',
// URL 中的查询参数
params: {
- articleId: this.form.articleId,
+ id: this.form.id,
userId: this.form.userId,
- articleContent: this.form.articleContent,
- articleTitle: this.form.articleTitle,
- articleIco: this.form.articleIco,
- readCount: this.form.readCount,
+ lookNum: this.form.lookNum,
+ oneFileName: this.form.oneFileName,
+ Content: this.form.content,
+ language: this.form.language,
+ url: this.form.url,
isValid: this.form.isValid,
+ description: this.form.description,
}
}).then(function (res) {
if (res.data.code === 500) {
@@ -234,6 +389,28 @@ export default {
}
-
+
+
\ No newline at end of file