优化评价列表

Lvtianfang
许宏杰 2 years ago
parent 046c6d1164
commit f63938a9e6

@ -172,3 +172,9 @@
.image-view {
border: 1px solid #e6ebf5;
}
.dialog-box {
.pagination-container {
height: 10px;
}
}

@ -71,14 +71,14 @@
v-hasPermi="['zongzhi:article:add']"
>新增</el-button
>
<el-button
<!-- <el-button
type="success"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['zongzhi:article:edit']"
>修改</el-button
>
> -->
<el-button
type="danger"
size="mini"
@ -143,11 +143,8 @@
>
查看
</el-button>
<el-button
v-show="scope.row.status == 2"
type="info"
size="mini"
@click="handPj(scope.row)"
<!-- v-show="scope.row.status == 2" -->
<el-button type="info" size="mini" @click="handPj(scope.row)"
>评价</el-button
>
<el-button
@ -289,24 +286,28 @@
<dict-tag :options="dict.type.tc_pj_status" :value="form.status" />
</el-descriptions-item>
</el-descriptions>
<div style="margin-top: 15px"></div>
<el-descriptions
v-if="form.status == 1"
title="评价详情"
:column="2"
border
labelClassName="desLable"
<div
style="margin: 10px; font-size: 16px; font-weight: bold; color: #333"
>
<el-descriptions-item label="评价人">{{
formPj.appraiserName
}}</el-descriptions-item>
<el-descriptions-item label="评价时间">{{
formPj.createTime
}}</el-descriptions-item>
<el-descriptions-item label="评价内容" :span="2">{{
formPj.pjContent
}}</el-descriptions-item>
</el-descriptions>
评价列表
</div>
<el-table v-loading="loadingPj" :data="pjData">
<el-table-column label="评价人" align="center" prop="appraiserName" />
<el-table-column label="评价时间" align="center" prop="createTime" />
<el-table-column
label="评价内容"
align="center"
prop="pjContent"
:show-overflow-tooltip="true"
/>
</el-table>
<pagination
v-show="totalPj > 0"
:total="totalPj"
:page.sync="PjParams.pageNum"
:limit.sync="PjParams.pageSize"
@pagination="getListPj"
/>
</el-dialog>
<el-dialog
@ -395,9 +396,7 @@ export default {
pageNum: 1,
pageSize: 10,
type: null,
releaseTime: null,
source: null,
},
//
@ -405,6 +404,14 @@ export default {
//
rules: {},
formPj: {},
pjData: [],
PjParams: {
articleId: null,
pageNum: 1,
pageSize: 10,
},
loadingPj: true,
totalPj: 0,
currentData: {},
};
},
@ -473,7 +480,6 @@ export default {
},
//
reset() {
this.formPj = {};
this.form = {
id: null,
@ -505,6 +511,14 @@ export default {
status: null,
};
this.resetForm("form");
this.formPj = {};
this.pjData = [];
this.PjParams = {
articleId: null,
pageNum: 1,
pageSize: 10,
};
this.totalPj = 0;
},
/** 搜索按钮操作 */
handleQuery() {
@ -530,17 +544,25 @@ export default {
this.form = response.data;
if (row.status == 1) {
//
listEvaluate({ articleId: id }).then((res) => {
this.formPj = res.rows[0];
this.infoOpen = true;
this.infoTitle = "查看网络文章详情";
});
this.PjParams.articleId = id;
this.getListPj();
this.infoOpen = true;
this.infoTitle = "查看网络文章详情";
} else {
this.infoOpen = true;
this.infoTitle = "查看网络文章详情";
}
});
},
getListPj() {
this.loadingPj = true;
listEvaluate(this.PjParams).then((response) => {
this.pjData = response.rows;
this.totalPj = response.total;
this.loadingPj = false;
});
},
/** 新增按钮操作 */
handleAdd() {
this.reset();

Loading…
Cancel
Save