|
@ -7,35 +7,35 @@
|
7
|
7
|
<div class="list-tit">{{item.articleTitle}}</div>
|
8
|
8
|
<ul class="list-tag" v-if="flag!=1">
|
9
|
9
|
<li>{{item.company}}</li>
|
10
|
|
<li>发布于 {{timeChage(item)}}</li>
|
|
10
|
<li>发布于 {{comTime(item.publishTime)}}</li>
|
11
|
11
|
<li>阅读量 {{item.pageViews}}</li>
|
12
|
12
|
<li>赞 {{item.articleAgree}}</li>
|
13
|
13
|
<li>留言 {{item.leverNumber}}</li>
|
14
|
14
|
</ul>
|
15
|
15
|
<ul class="list-tag" v-if="(flag==1) && (item.status==1)">
|
16
|
|
<li>发布于</li>
|
|
16
|
<li>发布于 {{comTime(item.publishTime)}}</li>
|
17
|
17
|
<li>阅读量 {{item.pageViews}}</li>
|
18
|
18
|
<li>赞 {{item.articleAgree}}</li>
|
19
|
19
|
<li>留言 {{item.leverNumber}}</li>
|
20
|
20
|
</ul>
|
21
|
21
|
<ul class="list-tag" v-if="(flag==1) && (item.status==2)">
|
22
|
|
<li v-show="item.status">修改于{{timeChage(item)}}</li>
|
|
22
|
<li v-show="item.status">修改于{{comTime(item.publishTime)}}</li>
|
23
|
23
|
<li class="coRed">草稿</li>
|
24
|
24
|
<li class="coRed">将在 定时发布</li>
|
25
|
25
|
</ul>
|
26
|
26
|
<ul class="list-tag" v-if="(flag==1) && (item.status==0)">
|
27
|
|
<li v-show="item.status">修改于</li>
|
|
27
|
<li v-show="item.status">修改于{{comTime(item.publishTime)}}</li>
|
28
|
28
|
<li class="coRed">草稿</li>
|
29
|
29
|
</ul>
|
30
|
30
|
</div>
|
31
|
|
<div class="dele" v-if="flag === 1">
|
|
31
|
<div class="dele" v-if='flag === 1'>
|
32
|
32
|
<el-button type="primary" size="small" v-if="(item.status == 0 || item.status == 2)">修改</el-button>
|
33
|
|
<el-button type="danger" icon="el-icon-delete" circle @click="dele(item.articleId,index)></el-button>
|
|
33
|
<el-button type="danger" icon="el-icon-delete" circle @click="delet(item.articleId, index)"></el-button>
|
34
|
34
|
</div>
|
35
|
|
<div class="dele" v-else-if="flag === 2">
|
36
|
|
<el-button type="danger" icon="el-icon-delete" circle @click="dele(item.articleId,index)"></el-button>
|
|
35
|
<div class="dele" v-else-if='flag === 2'>
|
|
36
|
<el-button type="danger" icon="el-icon-delete" circle @click="delet(item.articleId, index)"></el-button>
|
37
|
37
|
</div>
|
38
|
|
<div class="dele" v-else-if="flag === 2">
|
|
38
|
<div class="dele" v-else-if='flag === 3'>
|
39
|
39
|
<el-button type="primary" size="small" @click.once="add(item.articleId)">{{addText}}</el-button>
|
40
|
40
|
</div>
|
41
|
41
|
</li>
|
|
@ -72,7 +72,7 @@
|
72
|
72
|
},
|
73
|
73
|
computed: {
|
74
|
74
|
imageDis: function (item) {
|
75
|
|
return (item.hasOrgLogo) ? this.orgImageAddId + item.articleImg : this.orgDefaultImage;
|
|
75
|
return (item.hasOrgLogo) ? this.orgImageAddId + item.articleImg : this.orgDefaultImage;
|
76
|
76
|
}
|
77
|
77
|
},
|
78
|
78
|
created() {
|
|
@ -91,18 +91,7 @@
|
91
|
91
|
this.expertList();
|
92
|
92
|
},
|
93
|
93
|
methods: {
|
94
|
|
timeChage(item) {
|
95
|
|
var nowTimg = new Date();
|
96
|
|
var startTime = (item.status !== 1) ? item.modifyTime : item.publishTime;
|
97
|
|
if (item.status == 2) {
|
98
|
|
startTime = item.publishTime;
|
99
|
|
}
|
100
|
|
if (nowTimg.getFullYear() === startTime.substring(0, 4)) {
|
101
|
|
return startTime.substring(4, 6).replace(/\b(0+)/gi, '') + '月' + startTime.substring(6, 8).replace(/\b(0+)/gi, '') + '日 ' + startTime.substring(8, 10) + ':' + startTime.substring(10, 12);
|
102
|
|
} else {
|
103
|
|
return startTime.substring(0, 4) + "年" + startTime.substring(4, 6).replace(/\b(0+)/gi, '') + '月' + startTime.substring(6, 8).replace(/\b(0+)/gi, '') + '日 ' + startTime.substring(8, 10) + ':' + startTime.substring(10, 12);
|
104
|
|
}
|
105
|
|
},
|
|
94
|
comTime: util.commenTime,
|
106
|
95
|
expertList() {
|
107
|
96
|
this.dataList = [];
|
108
|
97
|
this.$axios.get(util.ekexiuUrl + this.url, {
|
|
@ -112,7 +101,7 @@
|
112
|
101
|
this.dataList = [];
|
113
|
102
|
this.dataList = res.data.data;
|
114
|
103
|
this.total = res.data.total;
|
115
|
|
for (let i=0 ; i< res.data.data.length; i++) {
|
|
104
|
for (let i = 0; i < res.data.data.length; i++) {
|
116
|
105
|
if (this.flag !== 1) {
|
117
|
106
|
this.leaveWordTotal(res.data.data[i]);
|
118
|
107
|
this.companyName(res.data.data[i]);
|
|
@ -154,7 +143,7 @@
|
154
|
143
|
this.expertParameters.pageNo = val;
|
155
|
144
|
this.expertList();
|
156
|
145
|
},
|
157
|
|
dele(id, index) {
|
|
146
|
delet(id, index) {
|
158
|
147
|
this.$axios.post(httpUrl.hQuery.orgTrends.del, {
|
159
|
148
|
params: {
|
160
|
149
|
pid: this.platId,
|