|
@@ -45,7 +45,7 @@
|
|
|
<el-col :span="24" class="leftDown">
|
|
|
<el-image :src="squareImage"></el-image>
|
|
|
<el-col :span="24" class="jobname">
|
|
|
- {{ item.publish_unit }}
|
|
|
+ {{ item.uname }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -137,11 +137,20 @@ export default {
|
|
|
this.$set(this, `detail`, res.data);
|
|
|
}
|
|
|
},
|
|
|
- async search({ skip = 0, limit = this.limit, newsid = this.newsid } = { skip: 0, limit: this.limit }) {
|
|
|
- let res = await this.commentquery({ skip, limit, newsid, status: 1 });
|
|
|
- console.log(res);
|
|
|
- this.$set(this, `list`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ async search({ skip = 0, limit = this.limit, newsid } = { skip: 0, limit: this.limit }) {
|
|
|
+ if (this.id) {
|
|
|
+ newsid = this.id;
|
|
|
+ let res = await this.commentquery({ skip, limit, newsid, status: 1 });
|
|
|
+ console.log(res);
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ } else {
|
|
|
+ newsid = this.newsid;
|
|
|
+ let res = await this.commentquery({ skip, limit, newsid, status: 1 });
|
|
|
+ console.log(res);
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ }
|
|
|
},
|
|
|
async submit() {
|
|
|
if (!this.user.uid) {
|
|
@@ -289,7 +298,7 @@ export default {
|
|
|
padding: 20px;
|
|
|
}
|
|
|
.main .two .twoInfo .right .info p {
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 17px;
|
|
|
overflow: hidden;
|
|
|
height: 160px;
|
|
|
}
|