This commit is contained in:
2025-04-23 15:03:58 +08:00
parent c9b62477e6
commit da7a953ee2
3 changed files with 74 additions and 29 deletions

View File

@@ -1,18 +1,19 @@
<template>
<div><span style="font-size: 14px; color: #606266; margin: 0 10px 0 0">Research direction :</span>
<div>
<span style="font-size: 14px; color: #606266; margin: 0 10px 0 0">Research direction :</span>
<el-input
v-model="messform.email"
clearable
placeholder="Please enter email"
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
></el-input>
<el-input
v-model="messform.field"
clearable
placeholder="Please enter field"
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
></el-input>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
v-model="messform.email"
clearable
placeholder="Please enter email"
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
></el-input>
<el-input
v-model="messform.field"
clearable
placeholder="Please enter field"
style="width: 190px; display: inline-block; margin: 0 10px 20px 0"
></el-input>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
<el-table
:data="revTable"
border
@@ -38,16 +39,27 @@
<!-- <p class="tab_tie_col" v-if="scope.row.majorstr != ''"><span>Major: </span>{{ scope.row.majorstr }}</p> -->
</template>
</el-table-column>
<el-table-column prop="rs_num" label="Review Record" width="180">
<template slot-scope="scope">
Major review: {{ scope.row.major_times }} ({{ scope.row.major_rate }}%)
<br />
Cancel review : {{ scope.row.rd_num }}
<!-- <font style="margin-left: 5px">(Reviewing:{{ scope.row.now }})</font> -->
</template>
</el-table-column>
<el-table-column prop="rs_num" label="Reviewed Times" width="140">
<template slot-scope="scope">
Total: {{ scope.row.rs_num }}
<br />
<div>
<i class="el-icon-check" style="font-weight: bold; color: green;margin-right: 4px;"> </i> <span style="margin-right: 4px;color: green;">{{ scope.row.right_times }}</span>
<i class="el-icon-check" style="font-weight: bold; color: green; margin-right: 4px"> </i>
<span style="margin-right: 4px; color: green">{{ scope.row.right_times }}</span>
<span>({{ scope.row.right_rate }}%)</span>
</div>
<div>
<i class="el-icon-close" style="font-weight: bold; color: red;margin-right: 4px;"> </i> <span style="margin-right: 4px;color: red;">{{ scope.row.error_times }}</span>
<i class="el-icon-close" style="font-weight: bold; color: red; margin-right: 4px"> </i>
<span style="margin-right: 4px; color: red">{{ scope.row.error_times }}</span>
<span>({{ scope.row.error_rate }}%)</span>
</div>
<!-- <font style="margin-left: 5px">(Reviewing:{{ scope.row.now }})</font> -->
@@ -109,23 +121,24 @@ export default {
methods: {
// 获取编辑列表数据
getDate() {
this.$emit('loading',true)
this.$emit('loading', true);
this.$api
.post('/api/Recommend/lists', this.messform)
.then((res) => {
this.$emit('loading', false);
this.revTable = res.data.lists;
this.Total = res.data.total;
this.$emit('loading',false)
// this.loading = false;
})
.catch((err) => {
console.log(err);
this.$emit('loading', false);
});
},
// 关键字搜索
handleSearch() {
// this.loading = true;
// console.log(this.messform)
this.getDate();