parent
2136ac654f
commit
ce0fd7a792
|
|
@ -10,35 +10,54 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="colHeader-right">
|
<div class="colHeader-right">
|
||||||
<el-space :size="12" class="colHeader-right-1">
|
<el-space :size="12" class="colHeader-right-1">
|
||||||
<el-input v-model="form.title" placeholder="输入标题关键字进行搜索" class="input-with-select"
|
<el-input v-model="form.title" placeholder="输入标题关键字进行搜索" class="input-with-select" @keyup.enter="handleSearch">
|
||||||
@keyup.enter="handleSearch">
|
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
|
||||||
<el-input v-model="form.content" placeholder="输入内容关键字进行搜索" class="input-with-select"
|
<el-input v-model="form.content" placeholder="输入内容关键字进行搜索" class="input-with-select" @keyup.enter="handleSearch">
|
||||||
@keyup.enter="handleSearch">
|
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
|
||||||
<el-select-v2 v-model="form.sourcename" :options="tagSourceList" clearable placeholder="媒体来源"
|
<el-select-v2
|
||||||
size="large" style="width: 240px" filterable @change="handleSearch" />
|
v-model="form.sourcename"
|
||||||
|
:options="tagSourceList"
|
||||||
|
clearable
|
||||||
|
placeholder="媒体来源"
|
||||||
|
size="large"
|
||||||
|
style="width: 240px"
|
||||||
|
filterable
|
||||||
|
@change="handleSearch"
|
||||||
|
/>
|
||||||
</el-space>
|
</el-space>
|
||||||
<el-space :size="12" class="colHeader-right-1" style="margin-top: 10px">
|
<el-space :size="12" class="colHeader-right-1" style="margin-top: 10px">
|
||||||
<el-date-picker v-model="daterange" type="daterange" range-separator="至"
|
<el-date-picker
|
||||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
v-model="daterange"
|
||||||
style="margin-right: 12px" @change="handleSearch" />
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
start-placeholder="选择报道时间"
|
||||||
|
end-placeholder="选择报道时间"
|
||||||
|
style="margin-right: 12px"
|
||||||
|
@change="handleSearch"
|
||||||
|
/>
|
||||||
|
|
||||||
<div style="display: flex; flex-wrap: nowrap; align-items: center">
|
<div style="display: flex; flex-wrap: nowrap; align-items: center">
|
||||||
<span>评分范围:</span>
|
<span>评分范围:</span>
|
||||||
<el-input type="number" v-model="form.minScore" style="width: 80px" placeholder="最低"
|
<el-input
|
||||||
:min="0" :max="100" @keyup.enter="handleSearch" />
|
type="number"
|
||||||
|
v-model="form.minScore"
|
||||||
|
style="width: 80px"
|
||||||
|
placeholder="最低"
|
||||||
|
:min="0"
|
||||||
|
:max="100"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
/>
|
||||||
<i style="color: #ccc"> - </i>
|
<i style="color: #ccc"> - </i>
|
||||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高"
|
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高" :min="0" :max="100" @keyup.enter="handleSearch">
|
||||||
:min="0" :max="100" @keyup.enter="handleSearch">
|
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -50,24 +69,27 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<tableComponents ref="tableRef" :tableData="tableData" style="margin-top: 20px" @sortChange="sortChange"
|
<tableComponents
|
||||||
:tableLoading="tableLoading" @currentChange="currentChange" @sizeChange="sizeChange">
|
ref="tableRef"
|
||||||
|
:tableData="tableData"
|
||||||
|
style="margin-top: 20px"
|
||||||
|
@sortChange="sortChange"
|
||||||
|
:tableLoading="tableLoading"
|
||||||
|
@currentChange="currentChange"
|
||||||
|
@sizeChange="sizeChange"
|
||||||
|
>
|
||||||
<el-table-column prop="title" label="标题" align="left" width="300">
|
<el-table-column prop="title" label="标题" align="left" width="300">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="资讯评分" sortable="custom" align="center">
|
<el-table-column label="资讯评分" sortable="custom" align="center">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<!-- {{ scope.row.score != 0 && scope.row.score != null ? scope.row.score : '-' }} -->
|
<!-- {{ scope.row.score != 0 && scope.row.score != null ? scope.row.score : '-' }} -->
|
||||||
<div @click="getScoreDetail(scope.row.id)"
|
<div @click="getScoreDetail(scope.row.id)" :class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||||
:class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
|
||||||
{{ scope.row.score }}
|
{{ scope.row.score }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column prop="inputDate" label="报道时间" sortable="custom" align="center">
|
<el-table-column prop="inputDate" label="报道时间" sortable="custom" align="center">
|
||||||
|
|
@ -82,18 +104,24 @@
|
||||||
<div class="option">
|
<div class="option">
|
||||||
<el-button type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
<el-button type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||||
<!-- <el-button type="text" @click="toDetail(scope.row, false)">编辑</el-button> -->
|
<!-- <el-button type="text" @click="toDetail(scope.row, false)">编辑</el-button> -->
|
||||||
<el-button type="text" v-if="scope.row.status == 2"
|
<el-button type="text" v-if="scope.row.status == 2" @click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
||||||
@click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
|
||||||
<el-button type="text" v-else @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
<el-button type="text" v-else @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
||||||
<el-button type="text" style="color: #ff1818" @click="doDeleteNewsFn(scope.row)">删除</el-button>
|
<el-button type="text" style="color: #ff1818" @click="doDeleteNewsFn(scope.row)">删除</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</tableComponents>
|
</tableComponents>
|
||||||
<DetailDrawer v-if="drawer" v-model="drawer" :data="newsData" :readOnly="readOnly" :type="newstype"
|
<DetailDrawer
|
||||||
@handleEditStatus="handleEditStatus" @doNewsPublishFn="doNewsPublishFn" @doDeleteNewsFn="doDeleteNewsFn"
|
v-if="drawer"
|
||||||
@getData="getData" />
|
v-model="drawer"
|
||||||
|
:data="newsData"
|
||||||
|
:readOnly="readOnly"
|
||||||
|
:type="newstype"
|
||||||
|
@handleEditStatus="handleEditStatus"
|
||||||
|
@doNewsPublishFn="doNewsPublishFn"
|
||||||
|
@doDeleteNewsFn="doDeleteNewsFn"
|
||||||
|
@getData="getData"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
||||||
<div class="score-detail">
|
<div class="score-detail">
|
||||||
|
|
@ -103,8 +131,9 @@
|
||||||
<el-row>[{{ scoreDetail?.industryLabel.join(',') }}]</el-row>
|
<el-row>[{{ scoreDetail?.industryLabel.join(',') }}]</el-row>
|
||||||
<el-row justify="space-between">
|
<el-row justify="space-between">
|
||||||
<el-col :span="12">置信度:[{{ scoreDetail?.industryConfidence.join(',') }}]</el-col>
|
<el-col :span="12">置信度:[{{ scoreDetail?.industryConfidence.join(',') }}]</el-col>
|
||||||
<el-col :span="12" style="text-align: right">分类评分:<span style="color: #36a4f8">[{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail?.industryScore.join(',') }}]</span></el-col>
|
>分类评分:<span style="color: #36a4f8">[{{ scoreDetail?.industryScore.join(',') }}]</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -114,8 +143,9 @@
|
||||||
<el-row>[{{ scoreDetail?.conceptLabel.join(',') }}]</el-row>
|
<el-row>[{{ scoreDetail?.conceptLabel.join(',') }}]</el-row>
|
||||||
<el-row justify="space-between">
|
<el-row justify="space-between">
|
||||||
<el-col :span="12">置信度:[{{ scoreDetail?.conceptConfidence.join(',') }}]</el-col>
|
<el-col :span="12">置信度:[{{ scoreDetail?.conceptConfidence.join(',') }}]</el-col>
|
||||||
<el-col :span="12" style="text-align: right">概念评分:<span style="color: #36a4f8">[{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail?.conceptScore.join(',') }}]</span></el-col>
|
>概念评分:<span style="color: #36a4f8">[{{ scoreDetail?.conceptScore.join(',') }}]</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -125,20 +155,21 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">媒体影响力</el-col>
|
<el-col :span="12">媒体影响力</el-col>
|
||||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail?.sourceImpact
|
>评分:<span style="color: #36a4f8">{{ scoreDetail?.sourceImpact }}</span></el-col
|
||||||
}}</span></el-col>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">中国股市相关性</el-col>
|
<el-col :span="12">中国股市相关性</el-col>
|
||||||
<el-col :span="12" style="text-align: right">置信度:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail?.chinaFactor
|
>置信度:<span style="color: #36a4f8">{{ scoreDetail?.chinaFactor }}</span></el-col
|
||||||
}}</span></el-col>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">资讯质量</el-col>
|
<el-col :span="12">资讯质量</el-col>
|
||||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail?.publicOpinionScore }}</span></el-col>
|
>评分:<span style="color: #36a4f8">{{ scoreDetail?.publicOpinionScore }}</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row rule">
|
<el-row class="score-detail-row rule">
|
||||||
<el-col :span="24">*计算规则</el-col>
|
<el-col :span="24">*计算规则</el-col>
|
||||||
|
|
@ -146,9 +177,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row" justify="space-between">
|
<el-row class="score-detail-row" justify="space-between">
|
||||||
<el-col :span="12">资讯评分</el-col>
|
<el-col :span="12">资讯评分</el-col>
|
||||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{
|
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{ scoreDetail?.newsScore }}</el-col>
|
||||||
scoreDetail?.newsScore
|
|
||||||
}}</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
@ -331,7 +360,7 @@ async function copyUrl(res) {
|
||||||
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
||||||
// http://192.168.31.5:8881/#/pages/detail/index?id=0&needPay=0&type=article
|
// http://192.168.31.5:8881/#/pages/detail/index?id=0&needPay=0&type=article
|
||||||
ElMessage.success('复制成功');
|
ElMessage.success('复制成功');
|
||||||
return import.meta.env.VITE_API_URL_H5 + '/#/pages/detail/index?id=' + res.id + '&needPay=0';
|
return import.meta.env.VITE_API_URL_H5 + '/#/pages/realtimeInfo/pc/indexPC?id=' + res.id + '&type=2';
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
clipboardBean.on('success', function (e) {
|
clipboardBean.on('success', function (e) {
|
||||||
|
|
@ -437,7 +466,7 @@ async function getScoreDetail(id: any) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const tableRef = ref()
|
const tableRef = ref();
|
||||||
function restData() {
|
function restData() {
|
||||||
form.value.title = null;
|
form.value.title = null;
|
||||||
form.value.content = null;
|
form.value.content = null;
|
||||||
|
|
@ -445,8 +474,8 @@ function restData() {
|
||||||
form.value.minScore = null;
|
form.value.minScore = null;
|
||||||
form.value.maxScore = null;
|
form.value.maxScore = null;
|
||||||
daterange.value = null;
|
daterange.value = null;
|
||||||
form.value.orderBy = "inputDate"
|
form.value.orderBy = 'inputDate';
|
||||||
form.value.direction = "desc"
|
form.value.direction = 'desc';
|
||||||
|
|
||||||
tableRef.value.clearSort();
|
tableRef.value.clearSort();
|
||||||
|
|
||||||
|
|
@ -552,8 +581,6 @@ onMounted(async () => {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.score-active {
|
.score-active {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,13 @@
|
||||||
|
|
||||||
<div class="colHeader-right">
|
<div class="colHeader-right">
|
||||||
<el-space :size="12" class="colHeader-right-1">
|
<el-space :size="12" class="colHeader-right-1">
|
||||||
<el-input v-model="form.keyword" placeholder="输入标题/内容关键字进行搜索(以空格隔开)" class="input-with-select"
|
<el-input
|
||||||
@keyup.enter="handleSearch" style="width: 455px">
|
v-model="form.keyword"
|
||||||
|
placeholder="输入标题/内容关键字进行搜索(以空格隔开)"
|
||||||
|
class="input-with-select"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
style="width: 455px"
|
||||||
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -17,15 +22,32 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span>行业分类:</span>
|
<span>行业分类:</span>
|
||||||
<el-tree-select v-model="form.industry" :data="industryList" multiple
|
<el-tree-select
|
||||||
:render-after-expand="false" filterable show-checkbox style="width: 240px"
|
v-model="form.industry"
|
||||||
@check="handleCheckChange" @clear="handleSearch" node-key="id" collapse-tags
|
:data="industryList"
|
||||||
collapse-tags-tooltip clearable :props="defaultProps">
|
multiple
|
||||||
|
:render-after-expand="false"
|
||||||
|
filterable
|
||||||
|
show-checkbox
|
||||||
|
style="width: 240px"
|
||||||
|
@check="handleCheckChange"
|
||||||
|
@clear="handleSearch"
|
||||||
|
node-key="id"
|
||||||
|
collapse-tags
|
||||||
|
collapse-tags-tooltip
|
||||||
|
clearable
|
||||||
|
:props="defaultProps"
|
||||||
|
>
|
||||||
</el-tree-select>
|
</el-tree-select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-input v-model="form.tag" placeholder="匹配多个概念标签(以空格隔开)" class="input-with-select"
|
<el-input
|
||||||
@keyup.enter="handleSearch" style="width: 280px">
|
v-model="form.tag"
|
||||||
|
placeholder="匹配多个概念标签(以空格隔开)"
|
||||||
|
class="input-with-select"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
style="width: 280px"
|
||||||
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -33,26 +55,53 @@
|
||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<div class="colHeader-right-2">
|
<div class="colHeader-right-2">
|
||||||
<el-date-picker v-model="daterange" type="daterange" range-separator="至"
|
<el-date-picker
|
||||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
v-model="daterange"
|
||||||
style="margin-right: 12px" @change="handleSearch" />
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
start-placeholder="选择报道时间"
|
||||||
|
end-placeholder="选择报道时间"
|
||||||
|
style="margin-right: 12px"
|
||||||
|
@change="handleSearch"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-select-v2 v-model="form.mediaId" :options="tagSourceList" clearable placeholder="媒体来源"
|
<el-select-v2
|
||||||
size="large" style="width: 240px" filterable @change="handleSearch" />
|
v-model="form.mediaId"
|
||||||
|
:options="tagSourceList"
|
||||||
|
clearable
|
||||||
|
placeholder="媒体来源"
|
||||||
|
size="large"
|
||||||
|
style="width: 240px"
|
||||||
|
filterable
|
||||||
|
@change="handleSearch"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-select clearable v-model="form.deleted" size="large" style="width: 150px; margin-left: 10px"
|
<el-select
|
||||||
placeholder="筛选删除状态" @change="handleSearch">
|
clearable
|
||||||
|
v-model="form.deleted"
|
||||||
|
size="large"
|
||||||
|
style="width: 150px; margin-left: 10px"
|
||||||
|
placeholder="筛选删除状态"
|
||||||
|
@change="handleSearch"
|
||||||
|
>
|
||||||
<el-option :value="1" label="已删除资讯"></el-option>
|
<el-option :value="1" label="已删除资讯"></el-option>
|
||||||
<el-option :value="0" label="未删除资讯"></el-option>
|
<el-option :value="0" label="未删除资讯"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
||||||
<span>评分范围:</span>
|
<span>评分范围:</span>
|
||||||
<el-input type="number" v-model="form.minScore" style="width: 80px" placeholder="最低"
|
<el-input
|
||||||
:min="0" :max="100" @keyup.enter="handleSearch" />
|
type="number"
|
||||||
|
v-model="form.minScore"
|
||||||
|
style="width: 80px"
|
||||||
|
placeholder="最低"
|
||||||
|
:min="0"
|
||||||
|
:max="100"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
/>
|
||||||
<i style="color: #ccc"> - </i>
|
<i style="color: #ccc"> - </i>
|
||||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高"
|
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高" :min="0" :max="100" @keyup.enter="handleSearch">
|
||||||
:min="0" :max="100" @keyup.enter="handleSearch">
|
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -65,8 +114,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<tableComponents ref="tableRef" :tableData="tableData" style="margin-top: 20px" @sortChange="sortChange"
|
<tableComponents
|
||||||
:tableLoading="tableLoading" @currentChange="currentChange" @sizeChange="sizeChange">
|
ref="tableRef"
|
||||||
|
:tableData="tableData"
|
||||||
|
style="margin-top: 20px"
|
||||||
|
@sortChange="sortChange"
|
||||||
|
:tableLoading="tableLoading"
|
||||||
|
@currentChange="currentChange"
|
||||||
|
@sizeChange="sizeChange"
|
||||||
|
>
|
||||||
<el-table-column prop="title" label="标题" align="left" width="380">
|
<el-table-column prop="title" label="标题" align="left" width="380">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
||||||
|
|
@ -84,16 +140,16 @@
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
||||||
<el-dropdown-item :command="1"
|
<el-dropdown-item :command="1" v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
||||||
v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
|
||||||
|
|
||||||
<el-dropdown-item :command="3"
|
<el-dropdown-item :command="3" v-if="Session.get('userInfoLocal').userType != '01'">审核中</el-dropdown-item>
|
||||||
v-if="Session.get('userInfoLocal').userType != '01'">审核中</el-dropdown-item>
|
<el-dropdown-item :command="4" v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'"
|
||||||
<el-dropdown-item :command="4"
|
>已二审</el-dropdown-item
|
||||||
v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'">已二审</el-dropdown-item>
|
>
|
||||||
<el-dropdown-item :command="2">已发布</el-dropdown-item>
|
<el-dropdown-item :command="2">已发布</el-dropdown-item>
|
||||||
<el-dropdown-item :command="-1"
|
<el-dropdown-item :command="-1" v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'"
|
||||||
v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'">退改中</el-dropdown-item>
|
>退改中</el-dropdown-item
|
||||||
|
>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
@ -101,8 +157,7 @@
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<!-- 新闻状态 0-草稿 1-未发布 2-已发布 -->
|
<!-- 新闻状态 0-草稿 1-未发布 2-已发布 -->
|
||||||
<div class="r_point" :style="{ color: '#000' }">
|
<div class="r_point" :style="{ color: '#000' }">
|
||||||
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }">
|
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }"></div>
|
||||||
</div>
|
|
||||||
<text v-if="scope.row.status == 0" style="color: rgba(0, 0, 0, 0.65)">草稿</text>
|
<text v-if="scope.row.status == 0" style="color: rgba(0, 0, 0, 0.65)">草稿</text>
|
||||||
<text v-if="scope.row.status == 1" style="color: rgba(0, 0, 0, 0.65)">未发布</text>
|
<text v-if="scope.row.status == 1" style="color: rgba(0, 0, 0, 0.65)">未发布</text>
|
||||||
<text v-if="scope.row.status == 2" style="color: rgba(0, 0, 0, 0.65)">已发布</text>
|
<text v-if="scope.row.status == 2" style="color: rgba(0, 0, 0, 0.65)">已发布</text>
|
||||||
|
|
@ -146,8 +201,7 @@
|
||||||
|
|
||||||
<el-table-column prop="score" label="资讯评分" sortable="custom" align="center" width="100">
|
<el-table-column prop="score" label="资讯评分" sortable="custom" align="center" width="100">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div @click="getScoreDetail(scope.row.id)"
|
<div @click="getScoreDetail(scope.row.id)" :class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||||
:class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
|
||||||
{{ scope.row.score }}
|
{{ scope.row.score }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -156,16 +210,14 @@
|
||||||
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div>
|
<div>
|
||||||
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ?
|
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ? scope.row.publishTime : scope.row.updateTime }}</div>
|
||||||
scope.row.publishTime : scope.row.updateTime }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="250" fixed="right">
|
<el-table-column label="操作" align="center" width="250" fixed="right">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div class="option">
|
<div class="option">
|
||||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn" @click="copyUrl(scope.row)">复制</el-button>
|
||||||
@click="copyUrl(scope.row)">复制</el-button>
|
|
||||||
<!--
|
<!--
|
||||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px"
|
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px"
|
||||||
@click="doRecoverFn(scope.row)">
|
@click="doRecoverFn(scope.row)">
|
||||||
|
|
@ -201,9 +253,16 @@
|
||||||
</tableComponents>
|
</tableComponents>
|
||||||
|
|
||||||
<keep-alive>
|
<keep-alive>
|
||||||
<DetailDrawer v-model="drawer" :data="newsData" :readOnly="readOnly" :type="newstype"
|
<DetailDrawer
|
||||||
@handleEditStatus="handleEditStatus" @doNewsPublishFn="doNewsPublishFn" @doDeleteNewsFn="doDeleteNewsFn"
|
v-model="drawer"
|
||||||
@getData="getData" />
|
:data="newsData"
|
||||||
|
:readOnly="readOnly"
|
||||||
|
:type="newstype"
|
||||||
|
@handleEditStatus="handleEditStatus"
|
||||||
|
@doNewsPublishFn="doNewsPublishFn"
|
||||||
|
@doDeleteNewsFn="doDeleteNewsFn"
|
||||||
|
@getData="getData"
|
||||||
|
/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
|
||||||
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
||||||
|
|
@ -214,8 +273,9 @@
|
||||||
<el-row>[{{ scoreDetail.industryLabel.join(',') }}]</el-row>
|
<el-row>[{{ scoreDetail.industryLabel.join(',') }}]</el-row>
|
||||||
<el-row justify="space-between">
|
<el-row justify="space-between">
|
||||||
<el-col :span="12">置信度:[{{ scoreDetail.industryConfidence.join(',') }}]</el-col>
|
<el-col :span="12">置信度:[{{ scoreDetail.industryConfidence.join(',') }}]</el-col>
|
||||||
<el-col :span="12" style="text-align: right">分类评分:<span style="color: #36a4f8">[{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.industryScore.join(',') }}]</span></el-col>
|
>分类评分:<span style="color: #36a4f8">[{{ scoreDetail.industryScore.join(',') }}]</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -225,8 +285,9 @@
|
||||||
<el-row>[{{ scoreDetail.conceptLabel.join(',') }}]</el-row>
|
<el-row>[{{ scoreDetail.conceptLabel.join(',') }}]</el-row>
|
||||||
<el-row justify="space-between">
|
<el-row justify="space-between">
|
||||||
<el-col :span="12">置信度:[{{ scoreDetail.conceptConfidence.join(',') }}]</el-col>
|
<el-col :span="12">置信度:[{{ scoreDetail.conceptConfidence.join(',') }}]</el-col>
|
||||||
<el-col :span="12" style="text-align: right">概念评分:<span style="color: #36a4f8">[{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.conceptScore.join(',') }}]</span></el-col>
|
>概念评分:<span style="color: #36a4f8">[{{ scoreDetail.conceptScore.join(',') }}]</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -236,20 +297,21 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">媒体影响力</el-col>
|
<el-col :span="12">媒体影响力</el-col>
|
||||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.sourceImpact
|
>评分:<span style="color: #36a4f8">{{ scoreDetail.sourceImpact }}</span></el-col
|
||||||
}}</span></el-col>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">中国股市相关性</el-col>
|
<el-col :span="12">中国股市相关性</el-col>
|
||||||
<el-col :span="12" style="text-align: right">置信度:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.chinaFactor
|
>置信度:<span style="color: #36a4f8">{{ scoreDetail.chinaFactor }}</span></el-col
|
||||||
}}</span></el-col>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">资讯质量</el-col>
|
<el-col :span="12">资讯质量</el-col>
|
||||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.publicOpinionScore }}</span></el-col>
|
>评分:<span style="color: #36a4f8">{{ scoreDetail.publicOpinionScore }}</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row rule">
|
<el-row class="score-detail-row rule">
|
||||||
<el-col :span="24">*计算规则</el-col>
|
<el-col :span="24">*计算规则</el-col>
|
||||||
|
|
@ -257,9 +319,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row" justify="space-between">
|
<el-row class="score-detail-row" justify="space-between">
|
||||||
<el-col :span="12">资讯评分</el-col>
|
<el-col :span="12">资讯评分</el-col>
|
||||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{
|
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{ scoreDetail.newsScore }}</el-col>
|
||||||
scoreDetail.newsScore
|
|
||||||
}}</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
@ -529,7 +589,7 @@ async function copyUrl(res) {
|
||||||
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
||||||
// http://192.168.31.5:8881/#/pages/detail/index?id=0&needPay=0&type=article
|
// http://192.168.31.5:8881/#/pages/detail/index?id=0&needPay=0&type=article
|
||||||
ElMessage.success('复制成功');
|
ElMessage.success('复制成功');
|
||||||
return import.meta.env.VITE_API_URL_H5 + '/#/pages/detail/index?id=' + res.id + '&needPay=0';
|
return import.meta.env.VITE_API_URL_H5 + '/#/pages/realtimeInfo/pc/indexPC?id=' + res.id + '&type=2';
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
clipboardBean.on('success', function (e) {
|
clipboardBean.on('success', function (e) {
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,13 @@
|
||||||
|
|
||||||
<div class="colHeader-right">
|
<div class="colHeader-right">
|
||||||
<el-space :size="12" class="colHeader-right-1">
|
<el-space :size="12" class="colHeader-right-1">
|
||||||
<el-input v-model="form.keyword" placeholder="输入标题/内容关键字进行搜索(以空格隔开)" class="input-with-select"
|
<el-input
|
||||||
@keyup.enter="handleSearch" style="width: 455px">
|
v-model="form.keyword"
|
||||||
|
placeholder="输入标题/内容关键字进行搜索(以空格隔开)"
|
||||||
|
class="input-with-select"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
style="width: 455px"
|
||||||
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -18,15 +23,32 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span>行业分类:</span>
|
<span>行业分类:</span>
|
||||||
<el-tree-select v-model="form.industry" :data="industryList" multiple
|
<el-tree-select
|
||||||
:render-after-expand="false" filterable show-checkbox style="width: 240px"
|
v-model="form.industry"
|
||||||
@check="handleCheckChange" @clear="handleSearch" node-key="id" collapse-tags
|
:data="industryList"
|
||||||
collapse-tags-tooltip clearable :props="defaultProps">
|
multiple
|
||||||
|
:render-after-expand="false"
|
||||||
|
filterable
|
||||||
|
show-checkbox
|
||||||
|
style="width: 240px"
|
||||||
|
@check="handleCheckChange"
|
||||||
|
@clear="handleSearch"
|
||||||
|
node-key="id"
|
||||||
|
collapse-tags
|
||||||
|
collapse-tags-tooltip
|
||||||
|
clearable
|
||||||
|
:props="defaultProps"
|
||||||
|
>
|
||||||
</el-tree-select>
|
</el-tree-select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-input v-model="form.tag" placeholder="匹配多个概念标签(以空格隔开)" class="input-with-select"
|
<el-input
|
||||||
@keyup.enter="handleSearch" style="width: 280px">
|
v-model="form.tag"
|
||||||
|
placeholder="匹配多个概念标签(以空格隔开)"
|
||||||
|
class="input-with-select"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
style="width: 280px"
|
||||||
|
>
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -34,27 +56,54 @@
|
||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<div class="colHeader-right-2">
|
<div class="colHeader-right-2">
|
||||||
<el-date-picker v-model="daterange" type="daterange" range-separator="至"
|
<el-date-picker
|
||||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
v-model="daterange"
|
||||||
style="margin-right: 12px" @change="handleSearch" />
|
type="daterange"
|
||||||
|
range-separator="至"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
start-placeholder="选择报道时间"
|
||||||
|
end-placeholder="选择报道时间"
|
||||||
|
style="margin-right: 12px"
|
||||||
|
@change="handleSearch"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-select-v2 v-model="form.mediaId" :options="tagSourceList" clearable placeholder="媒体来源"
|
<el-select-v2
|
||||||
size="large" style="width: 240px" filterable @change="handleSearch" />
|
v-model="form.mediaId"
|
||||||
|
:options="tagSourceList"
|
||||||
|
clearable
|
||||||
|
placeholder="媒体来源"
|
||||||
|
size="large"
|
||||||
|
style="width: 240px"
|
||||||
|
filterable
|
||||||
|
@change="handleSearch"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-select clearable v-model="form.deleted" size="large" style="width: 150px; margin-left: 10px"
|
<el-select
|
||||||
v-if="Session.get('userInfoLocal').userType == '00'" placeholder="筛选删除状态"
|
clearable
|
||||||
@change="handleSearch">
|
v-model="form.deleted"
|
||||||
|
size="large"
|
||||||
|
style="width: 150px; margin-left: 10px"
|
||||||
|
v-if="Session.get('userInfoLocal').userType == '00'"
|
||||||
|
placeholder="筛选删除状态"
|
||||||
|
@change="handleSearch"
|
||||||
|
>
|
||||||
<el-option :value="1" label="已删除资讯"></el-option>
|
<el-option :value="1" label="已删除资讯"></el-option>
|
||||||
<el-option :value="0" label="未删除资讯"></el-option>
|
<el-option :value="0" label="未删除资讯"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
||||||
<span>评分范围:</span>
|
<span>评分范围:</span>
|
||||||
<el-input type="number" v-model="form.minScore" style="width: 80px" placeholder="最低"
|
<el-input
|
||||||
:min="0" :max="100" @keyup.enter="handleSearch" />
|
type="number"
|
||||||
|
v-model="form.minScore"
|
||||||
|
style="width: 80px"
|
||||||
|
placeholder="最低"
|
||||||
|
:min="0"
|
||||||
|
:max="100"
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
/>
|
||||||
<i style="color: #ccc"> - </i>
|
<i style="color: #ccc"> - </i>
|
||||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高"
|
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高" :min="0" :max="100" @keyup.enter="handleSearch">
|
||||||
:min="0" :max="100" @keyup.enter="handleSearch">
|
|
||||||
<template #append>
|
<template #append>
|
||||||
<el-button icon="Search" @click="handleSearch" />
|
<el-button icon="Search" @click="handleSearch" />
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -67,8 +116,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<tableComponents ref="tableRef" :tableData="tableData" style="margin-top: 20px" @sortChange="sortChange"
|
<tableComponents
|
||||||
:tableLoading="tableLoading" @currentChange="currentChange" @sizeChange="sizeChange">
|
ref="tableRef"
|
||||||
|
:tableData="tableData"
|
||||||
|
style="margin-top: 20px"
|
||||||
|
@sortChange="sortChange"
|
||||||
|
:tableLoading="tableLoading"
|
||||||
|
@currentChange="currentChange"
|
||||||
|
@sizeChange="sizeChange"
|
||||||
|
>
|
||||||
<el-table-column prop="title" label="标题" align="left" width="380">
|
<el-table-column prop="title" label="标题" align="left" width="380">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
||||||
|
|
@ -86,16 +142,16 @@
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
||||||
<el-dropdown-item :command="1"
|
<el-dropdown-item :command="1" v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
||||||
v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
|
||||||
|
|
||||||
<el-dropdown-item :command="3"
|
<el-dropdown-item :command="3" v-if="Session.get('userInfoLocal').userType != '01'">审核中</el-dropdown-item>
|
||||||
v-if="Session.get('userInfoLocal').userType != '01'">审核中</el-dropdown-item>
|
<el-dropdown-item :command="4" v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'"
|
||||||
<el-dropdown-item :command="4"
|
>已二审</el-dropdown-item
|
||||||
v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'">已二审</el-dropdown-item>
|
>
|
||||||
<el-dropdown-item :command="2">已发布</el-dropdown-item>
|
<el-dropdown-item :command="2">已发布</el-dropdown-item>
|
||||||
<el-dropdown-item :command="-1"
|
<el-dropdown-item :command="-1" v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'"
|
||||||
v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'">退改中</el-dropdown-item>
|
>退改中</el-dropdown-item
|
||||||
|
>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
|
|
@ -103,14 +159,15 @@
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<!-- 新闻状态 0-草稿 1-未发布 2-已发布 -->
|
<!-- 新闻状态 0-草稿 1-未发布 2-已发布 -->
|
||||||
<div class="r_point" :style="{ color: '#000' }">
|
<div class="r_point" :style="{ color: '#000' }">
|
||||||
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }">
|
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }"></div>
|
||||||
</div>
|
|
||||||
<text v-if="scope.row.status == 0" style="color: rgba(0, 0, 0, 0.65)">草稿</text>
|
<text v-if="scope.row.status == 0" style="color: rgba(0, 0, 0, 0.65)">草稿</text>
|
||||||
<text v-if="scope.row.status == 1" style="color: rgba(0, 0, 0, 0.65)">未发布</text>
|
<text v-if="scope.row.status == 1" style="color: rgba(0, 0, 0, 0.65)">未发布</text>
|
||||||
<text v-if="scope.row.status == 2" style="color: rgba(0, 0, 0, 0.65)">已发布</text>
|
<text v-if="scope.row.status == 2" style="color: rgba(0, 0, 0, 0.65)">已发布</text>
|
||||||
<text v-if="scope.row.status == 3" style="color: rgba(0, 0, 0, 0.65)">审核中</text>
|
<text v-if="scope.row.status == 3" style="color: rgba(0, 0, 0, 0.65)">审核中</text>
|
||||||
<text v-if="scope.row.status == 4" style="color: rgba(0, 0, 0, 0.65)">已二审</text>
|
<text v-if="scope.row.status == 4" style="color: rgba(0, 0, 0, 0.65)">已二审</text>
|
||||||
<text v-if="scope.row.status == -1" style="color: red">退改中</text>
|
<text v-if="scope.row.status == -1" style="color: red">
|
||||||
|
{{ scope.row.deleted ? '已删除' : '退改中' }}
|
||||||
|
</text>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -148,8 +205,7 @@
|
||||||
|
|
||||||
<el-table-column prop="score" label="资讯评分" sortable="custom" align="center" width="100">
|
<el-table-column prop="score" label="资讯评分" sortable="custom" align="center" width="100">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div @click="getScoreDetail(scope.row.id)"
|
<div @click="getScoreDetail(scope.row.id)" :class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||||
:class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
|
||||||
{{ scope.row.score }}
|
{{ scope.row.score }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -158,76 +214,73 @@
|
||||||
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div>
|
<div>
|
||||||
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ?
|
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ? scope.row.publishTime : scope.row.updateTime }}</div>
|
||||||
scope.row.publishTime : scope.row.updateTime }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="250" fixed="right">
|
<el-table-column label="操作" align="center" width="250" fixed="right">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<div class="option">
|
<div class="option">
|
||||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px"
|
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px" @click="doRecoverFn(scope.row)">
|
||||||
@click="doRecoverFn(scope.row)">
|
|
||||||
<text>恢复</text>
|
<text>恢复</text>
|
||||||
</el-button>
|
</el-button>
|
||||||
<div v-else style="display: flex; gap: 10px; align-items: center">
|
<div v-else style="display: flex; gap: 10px; align-items: center">
|
||||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn" @click="copyUrl(scope.row)">复制</el-button>
|
||||||
@click="copyUrl(scope.row)">复制</el-button>
|
|
||||||
|
|
||||||
<!-- 新闻状态 0-草稿 | 1-未发布 | 2-已发布 | 3-送审 | 4-已二审 | -1-退改中 -->
|
<!-- 新闻状态 0-草稿 | 1-未发布 | 2-已发布 | 3-送审 | 4-已二审 | -1-退改中 -->
|
||||||
<div v-if="Session.get('userInfoLocal').userType == '00'">
|
<div v-if="Session.get('userInfoLocal').userType == '00'">
|
||||||
<!-- 普通账号 -->
|
<!-- 普通账号 -->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.status == 0 || scope.row.status == 1 || scope.row.status == -1"
|
v-if="scope.row.status == 0 || scope.row.status == 1 || scope.row.status == -1"
|
||||||
type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
type="text"
|
||||||
|
@click="goDetail(1, scope.row, false)"
|
||||||
|
>编辑</el-button
|
||||||
|
>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.status == 0 || scope.row.status == 1 || scope.row.status == -1"
|
v-if="scope.row.status == 0 || scope.row.status == 1 || scope.row.status == -1"
|
||||||
type="text" @click="doApprovalFn(scope.row, scope.row.status)">送审</el-button>
|
type="text"
|
||||||
<el-button v-else-if="scope.row.status == 3" type="text"
|
@click="doApprovalFn(scope.row, scope.row.status)"
|
||||||
@click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
>送审</el-button
|
||||||
|
>
|
||||||
|
<el-button v-else-if="scope.row.status == 3" type="text" @click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.status == 0 || scope.row.status == 1 || scope.row.status == -1"
|
v-if="scope.row.status == 0 || scope.row.status == 1 || scope.row.status == -1"
|
||||||
type="text" style="color: #ff1818; "
|
type="text"
|
||||||
@click="doDeleteNewsFn(scope.row)">删除</el-button>
|
style="color: #ff1818"
|
||||||
|
@click="doDeleteNewsFn(scope.row)"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="Session.get('userInfoLocal').userType == '02'">
|
<div v-if="Session.get('userInfoLocal').userType == '02'">
|
||||||
<el-button v-if="scope.row.status == 4" type="text"
|
<el-button v-if="scope.row.status == 4" type="text" @click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||||
@click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
|
||||||
|
|
||||||
<!-- 二审账号 -->
|
<!-- 二审账号 -->
|
||||||
<el-button v-if="scope.row.status == 3" type="text" style="color: #ff1818"
|
<el-button v-if="scope.row.status == 3" type="text" style="color: #ff1818" @click="doNewReturnFn(scope.row)">退改</el-button>
|
||||||
@click="doNewReturnFn(scope.row)">退改</el-button>
|
|
||||||
|
|
||||||
<el-button v-if="scope.row.status == 3" type="text"
|
<el-button v-if="scope.row.status == 3" type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||||
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
|
||||||
|
|
||||||
<el-button v-if="scope.row.status == 3" type="text"
|
<el-button v-if="scope.row.status == 3" type="text" @click="doNewCheckFn(scope.row)">复审</el-button>
|
||||||
@click="doNewCheckFn(scope.row)">复审</el-button>
|
|
||||||
|
|
||||||
<el-button type="text" v-if="scope.row.status == 4"
|
<el-button type="text" v-if="scope.row.status == 4" @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
||||||
@click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-if="Session.get('userInfoLocal').userType == '01'">
|
<div v-if="Session.get('userInfoLocal').userType == '01'">
|
||||||
<!-- 终审账号 -->
|
<!-- 终审账号 -->
|
||||||
<el-button v-if="scope.row.status == 3 || scope.row.status == 4" type="text"
|
<el-button v-if="scope.row.status == 3 || scope.row.status == 4" type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||||
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
|
||||||
|
|
||||||
<el-button v-if="scope.row.status == 4" type="text" style="color: #ff1818"
|
<el-button v-if="scope.row.status == 4" type="text" style="color: #ff1818" @click="doNewReturnFn(scope.row)">退改</el-button>
|
||||||
@click="doNewReturnFn(scope.row)">退改</el-button>
|
|
||||||
|
|
||||||
<el-button type="text" v-if="scope.row.status == 2"
|
<el-button type="text" v-if="scope.row.status == 2" @click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
||||||
@click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
<el-button type="text" v-else-if="scope.row.status != -1 && scope.row.status == 4" @click="doNewsPublishFn(scope.row, 2)"
|
||||||
<el-button type="text" v-else-if="scope.row.status != -1 && scope.row.status == 4"
|
>发布</el-button
|
||||||
@click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
>
|
||||||
|
|
||||||
<el-button v-if="scope.row.status == 3" type="text"
|
<el-button v-if="scope.row.status == 3" type="text" style="color: #ff1818; margin-left: 5px" @click="doNewReturnFn(scope.row)"
|
||||||
style="color: #ff1818; margin-left: 5px"
|
>退改</el-button
|
||||||
@click="doNewReturnFn(scope.row)">退改</el-button>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- <el-icon size="16" @click="goRecord(scope.row)">
|
<!-- <el-icon size="16" @click="goRecord(scope.row)">
|
||||||
<Tickets />
|
<Tickets />
|
||||||
</el-icon> -->
|
</el-icon> -->
|
||||||
|
|
@ -242,9 +295,16 @@
|
||||||
</tableComponents>
|
</tableComponents>
|
||||||
|
|
||||||
<keep-alive>
|
<keep-alive>
|
||||||
<DetailDrawer v-model="drawer" :data="newsData" :readOnly="readOnly" :type="newstype"
|
<DetailDrawer
|
||||||
@handleEditStatus="handleEditStatus" @doNewsPublishFn="doNewsPublishFn" @doDeleteNewsFn="doDeleteNewsFn"
|
v-model="drawer"
|
||||||
@getData="getData" />
|
:data="newsData"
|
||||||
|
:readOnly="readOnly"
|
||||||
|
:type="newstype"
|
||||||
|
@handleEditStatus="handleEditStatus"
|
||||||
|
@doNewsPublishFn="doNewsPublishFn"
|
||||||
|
@doDeleteNewsFn="doDeleteNewsFn"
|
||||||
|
@getData="getData"
|
||||||
|
/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
|
|
||||||
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
||||||
|
|
@ -255,8 +315,9 @@
|
||||||
<el-row>[{{ scoreDetail.industryLabel.join(',') }}]</el-row>
|
<el-row>[{{ scoreDetail.industryLabel.join(',') }}]</el-row>
|
||||||
<el-row justify="space-between">
|
<el-row justify="space-between">
|
||||||
<el-col :span="12">置信度:[{{ scoreDetail.industryConfidence.join(',') }}]</el-col>
|
<el-col :span="12">置信度:[{{ scoreDetail.industryConfidence.join(',') }}]</el-col>
|
||||||
<el-col :span="12" style="text-align: right">分类评分:<span style="color: #36a4f8">[{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.industryScore.join(',') }}]</span></el-col>
|
>分类评分:<span style="color: #36a4f8">[{{ scoreDetail.industryScore.join(',') }}]</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -266,8 +327,9 @@
|
||||||
<el-row>[{{ scoreDetail.conceptLabel.join(',') }}]</el-row>
|
<el-row>[{{ scoreDetail.conceptLabel.join(',') }}]</el-row>
|
||||||
<el-row justify="space-between">
|
<el-row justify="space-between">
|
||||||
<el-col :span="12">置信度:[{{ scoreDetail.conceptConfidence.join(',') }}]</el-col>
|
<el-col :span="12">置信度:[{{ scoreDetail.conceptConfidence.join(',') }}]</el-col>
|
||||||
<el-col :span="12" style="text-align: right">概念评分:<span style="color: #36a4f8">[{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.conceptScore.join(',') }}]</span></el-col>
|
>概念评分:<span style="color: #36a4f8">[{{ scoreDetail.conceptScore.join(',') }}]</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
@ -277,20 +339,21 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">媒体影响力</el-col>
|
<el-col :span="12">媒体影响力</el-col>
|
||||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.sourceImpact
|
>评分:<span style="color: #36a4f8">{{ scoreDetail.sourceImpact }}</span></el-col
|
||||||
}}</span></el-col>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">中国股市相关性</el-col>
|
<el-col :span="12">中国股市相关性</el-col>
|
||||||
<el-col :span="12" style="text-align: right">置信度:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.chinaFactor
|
>置信度:<span style="color: #36a4f8">{{ scoreDetail.chinaFactor }}</span></el-col
|
||||||
}}</span></el-col>
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row">
|
<el-row class="score-detail-row">
|
||||||
<el-col :span="12">资讯质量</el-col>
|
<el-col :span="12">资讯质量</el-col>
|
||||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
<el-col :span="12" style="text-align: right"
|
||||||
scoreDetail.publicOpinionScore }}</span></el-col>
|
>评分:<span style="color: #36a4f8">{{ scoreDetail.publicOpinionScore }}</span></el-col
|
||||||
|
>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row rule">
|
<el-row class="score-detail-row rule">
|
||||||
<el-col :span="24">*计算规则</el-col>
|
<el-col :span="24">*计算规则</el-col>
|
||||||
|
|
@ -298,9 +361,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row class="score-detail-row" justify="space-between">
|
<el-row class="score-detail-row" justify="space-between">
|
||||||
<el-col :span="12">资讯评分</el-col>
|
<el-col :span="12">资讯评分</el-col>
|
||||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{
|
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{ scoreDetail.newsScore }}</el-col>
|
||||||
scoreDetail.newsScore
|
|
||||||
}}</el-col>
|
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
|
@ -475,7 +536,7 @@ async function doApprovalFn(item, status) {
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
let { code } =
|
let { code } =
|
||||||
(status == 3 || status == 4)
|
status == 3 || status == 4
|
||||||
? await doNewRevoke({
|
? await doNewRevoke({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
})
|
})
|
||||||
|
|
@ -573,7 +634,7 @@ async function copyUrl(res) {
|
||||||
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
//返回的就是复制的内容,可以在返回前面对数据进行增强等...
|
||||||
// http://192.168.31.5:8881/#/pages/detail/index?id=0&needPay=0&type=article
|
// http://192.168.31.5:8881/#/pages/detail/index?id=0&needPay=0&type=article
|
||||||
ElMessage.success('复制成功');
|
ElMessage.success('复制成功');
|
||||||
return import.meta.env.VITE_API_URL_H5 + '/#/pages/detail/index?id=' + res.id + '&needPay=0';
|
return import.meta.env.VITE_API_URL_H5 + '/#/pages/realtimeInfo/pc/indexPC?id=' + res.id + '&type=2';
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
clipboardBean.on('success', function (e) {
|
clipboardBean.on('success', function (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue