修改后台前端
This commit is contained in:
parent
631cdf1ef0
commit
0291f6e77f
@ -22,18 +22,11 @@
|
||||
visible: false,
|
||||
dataForm: {
|
||||
id: 0,
|
||||
pid: '',
|
||||
type: '',
|
||||
uid: '',
|
||||
toUid: '',
|
||||
postId: '',
|
||||
content: '',
|
||||
status: '',
|
||||
createTime: ''
|
||||
content: ''
|
||||
},
|
||||
dataRule: {
|
||||
status: [
|
||||
{ required: true, message: '评论状态不能为空', trigger: 'blur' }
|
||||
{ required: true, message: '评论状态未选择', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -51,14 +44,7 @@
|
||||
params: this.$http.adornParams()
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataForm.pid = data.comment.pid
|
||||
this.dataForm.type = data.comment.type
|
||||
this.dataForm.uid = data.comment.uid
|
||||
this.dataForm.toUid = data.comment.toUid
|
||||
this.dataForm.postId = data.comment.postId
|
||||
this.dataForm.content = data.comment.content
|
||||
this.dataForm.status = data.comment.status
|
||||
this.dataForm.createTime = data.comment.createTime
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -73,14 +59,7 @@
|
||||
method: 'post',
|
||||
data: this.$http.adornData({
|
||||
'id': this.dataForm.id || undefined,
|
||||
'pid': this.dataForm.pid,
|
||||
'type': this.dataForm.type,
|
||||
'uid': this.dataForm.uid,
|
||||
'toUid': this.dataForm.toUid,
|
||||
'postId': this.dataForm.postId,
|
||||
'content': this.dataForm.content,
|
||||
'status': this.dataForm.status,
|
||||
'createTime': this.dataForm.createTime
|
||||
'content': this.dataForm.content
|
||||
})
|
||||
}).then(({data}) => {
|
||||
if (data && data.code === 0) {
|
||||
|
@ -50,7 +50,7 @@ export default {
|
||||
},
|
||||
dataRule: {
|
||||
title: [{ required: true, message: "标题不能为空", trigger: "blur" }],
|
||||
url: [{ required: true, message: "路径不能为空", trigger: "blur" }],
|
||||
url: [{ required: true, message: "跳转路径不能为空", trigger: "blur" }],
|
||||
img: [{ required: true, message: "图片不能为空", trigger: "blur" }]
|
||||
},
|
||||
};
|
||||
|
@ -34,21 +34,8 @@ export default {
|
||||
visible: false,
|
||||
dataForm: {
|
||||
id: 0,
|
||||
uid: "",
|
||||
topicId: "",
|
||||
discussId: "",
|
||||
voteId: "",
|
||||
title: "",
|
||||
content: "",
|
||||
media: "",
|
||||
readCount: "",
|
||||
postTop: "",
|
||||
type: "",
|
||||
address: "",
|
||||
longitude: "",
|
||||
latitude: "",
|
||||
createTime: "",
|
||||
status: "",
|
||||
postTop: ""
|
||||
},
|
||||
};
|
||||
},
|
||||
@ -65,21 +52,8 @@ export default {
|
||||
params: this.$http.adornParams(),
|
||||
}).then(({ data }) => {
|
||||
if (data && data.code === 0) {
|
||||
this.dataForm.uid = data.post.uid;
|
||||
this.dataForm.topicId = data.post.topicId;
|
||||
this.dataForm.discussId = data.post.discussId;
|
||||
this.dataForm.voteId = data.post.voteId;
|
||||
this.dataForm.title = data.post.title;
|
||||
this.dataForm.content = data.post.content;
|
||||
this.dataForm.media = data.post.media;
|
||||
this.dataForm.readCount = data.post.readCount;
|
||||
this.dataForm.postTop = data.post.postTop;
|
||||
this.dataForm.type = data.post.type;
|
||||
this.dataForm.address = data.post.address;
|
||||
this.dataForm.longitude = data.post.longitude;
|
||||
this.dataForm.latitude = data.post.latitude;
|
||||
this.dataForm.createTime = data.post.createTime;
|
||||
this.dataForm.status = data.post.status;
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -96,21 +70,8 @@ export default {
|
||||
method: "post",
|
||||
data: this.$http.adornData({
|
||||
id: this.dataForm.id || undefined,
|
||||
uid: this.dataForm.uid,
|
||||
topicId: this.dataForm.topicId,
|
||||
discussId: this.dataForm.discussId,
|
||||
voteId: this.dataForm.voteId,
|
||||
title: this.dataForm.title,
|
||||
content: this.dataForm.content,
|
||||
media: this.dataForm.media,
|
||||
readCount: this.dataForm.readCount,
|
||||
postTop: this.dataForm.postTop,
|
||||
type: this.dataForm.type,
|
||||
address: this.dataForm.address,
|
||||
longitude: this.dataForm.longitude,
|
||||
latitude: this.dataForm.latitude,
|
||||
createTime: this.dataForm.createTime,
|
||||
status: this.dataForm.status,
|
||||
postTop: this.dataForm.postTop
|
||||
}),
|
||||
}).then(({ data }) => {
|
||||
if (data && data.code === 0) {
|
||||
|
@ -76,13 +76,7 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="topicName"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="归属"
|
||||
>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="title"
|
||||
header-align="center"
|
||||
@ -153,13 +147,6 @@
|
||||
label="点赞数"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="discussTitle"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="话题"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="postTop"
|
||||
header-align="center"
|
||||
|
Loading…
x
Reference in New Issue
Block a user