feat(资讯审核): 新增二审功能及相关接口
- 添加二审状态和退改状态显示 - 实现复审和退改接口调用 - 调整路由权限和用户角色配置 - 优化资讯列表操作按钮权限控制 - 更新环境配置中的API地址
This commit is contained in:
parent
dd41df8890
commit
3b07df53c8
|
|
@ -3,9 +3,9 @@ ENV = development
|
|||
|
||||
# 本地环境接口地址
|
||||
# VITE_API_URL = https://4155gf93ll13.vicp.fun/admin
|
||||
# VITE_API_URL = http://localhost:13579/admin
|
||||
VITE_API_URL = http://localhost:13579/admin
|
||||
# VITE_API_URL = https://cankao.cs.com.cn/admin
|
||||
VITE_API_URL = http://123.60.153.169:8040/admin
|
||||
# VITE_API_URL = http://123.60.153.169:8040/admin
|
||||
|
||||
# VITE_API_URL = /api
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
ENV = production
|
||||
|
||||
# 线上环境接口地址
|
||||
VITE_API_URL = https://cankao.cs.com.cn/admin
|
||||
# VITE_API_URL = http://123.60.153.169:8040/admin
|
||||
# VITE_API_URL = https://cankao.cs.com.cn/admin
|
||||
VITE_API_URL = http://123.60.153.169:8040/admin
|
||||
|
||||
#H5的域名,目前是给列表里的复制用
|
||||
VITE_API_URL_H5 = https://cankao.cs.com.cn
|
||||
# VITE_API_URL_H5 = http://123.60.153.169:8040
|
||||
# VITE_API_URL_H5 = https://cankao.cs.com.cn
|
||||
VITE_API_URL_H5 = http://123.60.153.169:8040
|
||||
|
|
|
|||
|
|
@ -333,3 +333,20 @@ export const doNewLog = (params?: any) => {
|
|||
});
|
||||
};
|
||||
|
||||
// 复审
|
||||
export const doNewCheck = (params?: any) => {
|
||||
return request({
|
||||
url: '/news/check',
|
||||
method: 'post',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
// 退改
|
||||
export const doNewReturn = (params?: any) => {
|
||||
return request({
|
||||
url: '/news/return',
|
||||
method: 'post',
|
||||
params
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { Session } from '/@/utils/storage';
|
||||
/**
|
||||
* 建议:路由 path 路径与文件夹名称相同,找文件可浏览器地址找,方便定位文件位置
|
||||
*
|
||||
|
|
@ -58,7 +58,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
icon: 'iconfont ele-Edit',
|
||||
},
|
||||
},
|
||||
|
|
@ -73,7 +73,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
icon: 'iconfont ele-Edit',
|
||||
},
|
||||
},
|
||||
|
|
@ -88,7 +88,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
// icon: 'iconfont icon-diannao1',
|
||||
icon: 'ele-Edit',
|
||||
},
|
||||
|
|
@ -112,7 +112,22 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
name: 'richedit',
|
||||
component: () => import('/@/views/pages/richedit/index.vue'),
|
||||
meta: {
|
||||
title: '资讯审核',
|
||||
title: '资讯二审',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['secondCommon'],
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
path: '/richedit',
|
||||
name: 'richedit',
|
||||
component: () => import('/@/views/pages/richedit/index.vue'),
|
||||
meta: {
|
||||
title: Session.get('userInfoLocal')?.userType == '02' ? '资讯二审' : '资讯审核',
|
||||
isLink: '',
|
||||
isHide: false,
|
||||
isKeepAlive: true,
|
||||
|
|
@ -132,7 +147,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin'],
|
||||
roles: ['admin', 'secondCommon'],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -174,7 +189,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
},
|
||||
},
|
||||
// {
|
||||
|
|
@ -263,7 +278,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['common'],
|
||||
roles: ['common', 'secondCommon'],
|
||||
icon: 'ele-Document',
|
||||
},
|
||||
children: [
|
||||
|
|
@ -278,7 +293,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -292,7 +307,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -306,7 +321,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
|||
isKeepAlive: true,
|
||||
isAffix: true,
|
||||
isIframe: false,
|
||||
roles: ['admin', 'common'],
|
||||
roles: ['admin', 'common', 'secondCommon'],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -32,10 +32,16 @@ export const useUserInfo = defineStore('userInfo', {
|
|||
async getApiUserInfo() {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
let rolesLocal = ''
|
||||
if (Local.get('userInfoLocal').userType == '00') {
|
||||
Cookies.set('userName', 'common')
|
||||
rolesLocal = 'common'
|
||||
} else if (Local.get('userInfoLocal').userType == '02') {
|
||||
Cookies.set('userName', 'secondCommon')
|
||||
rolesLocal = 'secondCommon'
|
||||
} else {
|
||||
Cookies.set('userName', 'admin')
|
||||
rolesLocal = 'admin'
|
||||
}
|
||||
|
||||
// 模拟数据,请求接口时,记得删除多余代码及对应依赖的引入
|
||||
|
|
@ -49,16 +55,21 @@ export const useUserInfo = defineStore('userInfo', {
|
|||
let adminAuthBtnList: Array<string> = ['btn.add', 'btn.del', 'btn.edit', 'btn.link'];
|
||||
// test 页面权限标识,对应路由 meta.roles,用于控制路由的显示/隐藏
|
||||
let testRoles: Array<string> = ['common'];
|
||||
let secondCommonRoles: Array<string> = ['secondCommon'];
|
||||
// test 按钮权限标识
|
||||
let testAuthBtnList: Array<string> = ['btn.add', 'btn.link'];
|
||||
// 不同用户模拟不同的用户权限
|
||||
if (userName === 'admin') {
|
||||
defaultRoles = adminRoles;
|
||||
defaultAuthBtnList = adminAuthBtnList;
|
||||
} else if (rolesLocal == 'secondCommon') {
|
||||
defaultRoles = secondCommonRoles;
|
||||
defaultAuthBtnList = testAuthBtnList;
|
||||
} else {
|
||||
defaultRoles = testRoles;
|
||||
defaultAuthBtnList = testAuthBtnList;
|
||||
}
|
||||
console.log("🚀 ~ getApiUserInfo ~ rolesLocal:", rolesLocal)
|
||||
|
||||
|
||||
// 用户信息模拟数据
|
||||
|
|
@ -70,6 +81,7 @@ export const useUserInfo = defineStore('userInfo', {
|
|||
: 'https://img2.baidu.com/it/u=2370931438,70387529&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
|
||||
time: new Date().getTime(),
|
||||
roles: defaultRoles,
|
||||
// roles: [rolesLocal],
|
||||
authBtnList: defaultAuthBtnList,
|
||||
};
|
||||
Session.set('userInfo', userInfos);
|
||||
|
|
|
|||
|
|
@ -8,8 +8,13 @@
|
|||
|
||||
<div class="colHeader-right">
|
||||
<el-space :size="12" class="colHeader-right-1">
|
||||
<el-input v-model="form.keyword" placeholder="输入标题/内容关键字进行搜索(以空格隔开)" class="input-with-select"
|
||||
@keyup.enter="handleSearch" style="width: 455px">
|
||||
<el-input
|
||||
v-model="form.keyword"
|
||||
placeholder="输入标题/内容关键字进行搜索(以空格隔开)"
|
||||
class="input-with-select"
|
||||
@keyup.enter="handleSearch"
|
||||
style="width: 455px"
|
||||
>
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -17,15 +22,32 @@
|
|||
|
||||
<div>
|
||||
<span>行业分类:</span>
|
||||
<el-tree-select v-model="form.industry" :data="industryList" 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
|
||||
v-model="form.industry"
|
||||
:data="industryList"
|
||||
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>
|
||||
</div>
|
||||
|
||||
<el-input v-model="form.tag" placeholder="匹配多个概念标签(以空格隔开)" class="input-with-select"
|
||||
@keyup.enter="handleSearch" style="width: 280px">
|
||||
<el-input
|
||||
v-model="form.tag"
|
||||
placeholder="匹配多个概念标签(以空格隔开)"
|
||||
class="input-with-select"
|
||||
@keyup.enter="handleSearch"
|
||||
style="width: 280px"
|
||||
>
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -33,26 +55,53 @@
|
|||
</el-space>
|
||||
|
||||
<div class="colHeader-right-2">
|
||||
<el-date-picker v-model="daterange" type="daterange" range-separator="至"
|
||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
||||
style="margin-right: 12px" @change="handleSearch" />
|
||||
<el-date-picker
|
||||
v-model="daterange"
|
||||
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="媒体来源"
|
||||
size="large" style="width: 240px" filterable @change="handleSearch" />
|
||||
<el-select-v2
|
||||
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"
|
||||
placeholder="筛选删除状态" @change="handleSearch">
|
||||
<el-select
|
||||
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="0" label="未删除资讯"></el-option>
|
||||
</el-select>
|
||||
|
||||
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
||||
<span>评分范围:</span>
|
||||
<el-input type="number" v-model="form.minScore" style="width: 80px" placeholder="最低"
|
||||
:min="0" :max="100" @keyup.enter="handleSearch" />
|
||||
<el-input
|
||||
type="number"
|
||||
v-model="form.minScore"
|
||||
style="width: 80px"
|
||||
placeholder="最低"
|
||||
:min="0"
|
||||
:max="100"
|
||||
@keyup.enter="handleSearch"
|
||||
/>
|
||||
<i style="color: #ccc"> - </i>
|
||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高"
|
||||
:min="0" :max="100" @keyup.enter="handleSearch">
|
||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高" :min="0" :max="100" @keyup.enter="handleSearch">
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -65,8 +114,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<tableComponents ref="tableRef" :tableData="tableData" style="margin-top: 20px" @sortChange="sortChange"
|
||||
:tableLoading="tableLoading" @currentChange="currentChange" @sizeChange="sizeChange">
|
||||
<tableComponents
|
||||
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">
|
||||
<template v-slot="scope">
|
||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
||||
|
|
@ -84,9 +140,16 @@
|
|||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
||||
<el-dropdown-item :command="1">未发布</el-dropdown-item>
|
||||
<el-dropdown-item :command="1" v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item :command="3" 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
|
||||
>
|
||||
<el-dropdown-item :command="2">已发布</el-dropdown-item>
|
||||
<el-dropdown-item :command="3">审核中</el-dropdown-item>
|
||||
<el-dropdown-item :command="-1" v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'"
|
||||
>退改中</el-dropdown-item
|
||||
>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
|
|
@ -94,21 +157,22 @@
|
|||
<template v-slot="scope">
|
||||
<!-- 新闻状态 0-草稿 1-未发布 2-已发布 -->
|
||||
<div class="r_point" :style="{ color: '#000' }">
|
||||
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }">
|
||||
</div>
|
||||
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }"></div>
|
||||
<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 == 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 == 4" style="color: rgba(0, 0, 0, 0.65)">已二审</text>
|
||||
<text v-if="scope.row.status == -1" style="color: red">退改中</text>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- <el-table-column align="center" width="120" prop="submitter" label="编辑人">
|
||||
<el-table-column align="center" width="120" prop="submitter" label="编辑人">
|
||||
<template v-slot="scope">
|
||||
{{ scope.row.submitter ? scope.row.submitter : '-' }}
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column align="center" width="120">
|
||||
<template #header>
|
||||
<el-dropdown trigger="click" @command="handleCommandRating">
|
||||
|
|
@ -137,8 +201,7 @@
|
|||
|
||||
<el-table-column prop="score" label="资讯评分" sortable="custom" align="center" width="100">
|
||||
<template v-slot="scope">
|
||||
<div @click="getScoreDetail(scope.row.id)"
|
||||
:class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||
<div @click="getScoreDetail(scope.row.id)" :class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||
{{ scope.row.score }}
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -147,40 +210,44 @@
|
|||
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
||||
<template v-slot="scope">
|
||||
<div>
|
||||
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ?
|
||||
scope.row.publishTime : scope.row.updateTime }}</div>
|
||||
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ? scope.row.publishTime : scope.row.updateTime }}</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="250" fixed="right">
|
||||
<template v-slot="scope">
|
||||
<div class="option">
|
||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px"
|
||||
@click="doRecoverFn(scope.row)">
|
||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px" @click="doRecoverFn(scope.row)">
|
||||
<text>恢复</text>
|
||||
</el-button>
|
||||
<div v-else style="display: flex; gap: 10px; align-items: center">
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||
|
||||
<el-button v-if="scope.row.status == 3 && Session.get('userInfoLocal').userType == '01'"
|
||||
type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.status == 3 && Session.get('userInfoLocal').userType == '01'"
|
||||
type="text"
|
||||
@click="goDetail(1, scope.row, false)"
|
||||
>编辑</el-button
|
||||
>
|
||||
<!-- <div v-if="Session.get('userInfoLocal').userType == '01'">
|
||||
<el-button type="text" v-if="scope.row.status == 2"
|
||||
@click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
||||
<el-button type="text" v-else @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
||||
</div> -->
|
||||
<div style="display: flex">
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||
@click="doApprovalFn(scope.row, scope.row.status)">送审</el-button>
|
||||
<el-button v-else-if="scope.row.status == 3" type="text"
|
||||
@click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text" @click="doApprovalFn(scope.row, scope.row.status)"
|
||||
>送审</el-button
|
||||
>
|
||||
<el-button v-else-if="scope.row.status == 3" type="text" @click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||
</div>
|
||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
||||
@click="copyUrl(scope.row)">复制</el-button>
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn" @click="copyUrl(scope.row)">复制</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.status == 0 || scope.row.status == 1"
|
||||
type="text"
|
||||
style="color: #ff1818; margin-left: 3px"
|
||||
@click="doDeleteNewsFn(scope.row)">删除</el-button>
|
||||
@click="doDeleteNewsFn(scope.row)"
|
||||
>删除</el-button
|
||||
>
|
||||
|
||||
<!-- <el-icon size="16" @click="goRecord(scope.row)">
|
||||
<Tickets />
|
||||
|
|
@ -196,9 +263,16 @@
|
|||
</tableComponents>
|
||||
|
||||
<keep-alive>
|
||||
<DetailDrawer v-model="drawer" :data="newsData" :readOnly="readOnly" :type="newstype"
|
||||
@handleEditStatus="handleEditStatus" @doNewsPublishFn="doNewsPublishFn" @doDeleteNewsFn="doDeleteNewsFn"
|
||||
@getData="getData" />
|
||||
<DetailDrawer
|
||||
v-model="drawer"
|
||||
:data="newsData"
|
||||
:readOnly="readOnly"
|
||||
:type="newstype"
|
||||
@handleEditStatus="handleEditStatus"
|
||||
@doNewsPublishFn="doNewsPublishFn"
|
||||
@doDeleteNewsFn="doDeleteNewsFn"
|
||||
@getData="getData"
|
||||
/>
|
||||
</keep-alive>
|
||||
|
||||
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
||||
|
|
@ -209,8 +283,9 @@
|
|||
<el-row>[{{ scoreDetail.industryLabel.join(',') }}]</el-row>
|
||||
<el-row justify="space-between">
|
||||
<el-col :span="12">置信度:[{{ scoreDetail.industryConfidence.join(',') }}]</el-col>
|
||||
<el-col :span="12" style="text-align: right">分类评分:<span style="color: #36a4f8">[{{
|
||||
scoreDetail.industryScore.join(',') }}]</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>分类评分:<span style="color: #36a4f8">[{{ scoreDetail.industryScore.join(',') }}]</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -220,8 +295,9 @@
|
|||
<el-row>[{{ scoreDetail.conceptLabel.join(',') }}]</el-row>
|
||||
<el-row justify="space-between">
|
||||
<el-col :span="12">置信度:[{{ scoreDetail.conceptConfidence.join(',') }}]</el-col>
|
||||
<el-col :span="12" style="text-align: right">概念评分:<span style="color: #36a4f8">[{{
|
||||
scoreDetail.conceptScore.join(',') }}]</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>概念评分:<span style="color: #36a4f8">[{{ scoreDetail.conceptScore.join(',') }}]</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -231,20 +307,21 @@
|
|||
</el-row>
|
||||
<el-row class="score-detail-row">
|
||||
<el-col :span="12">媒体影响力</el-col>
|
||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
||||
scoreDetail.sourceImpact
|
||||
}}</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>评分:<span style="color: #36a4f8">{{ scoreDetail.sourceImpact }}</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
<el-row class="score-detail-row">
|
||||
<el-col :span="12">中国股市相关性</el-col>
|
||||
<el-col :span="12" style="text-align: right">置信度:<span style="color: #36a4f8">{{
|
||||
scoreDetail.chinaFactor
|
||||
}}</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>置信度:<span style="color: #36a4f8">{{ scoreDetail.chinaFactor }}</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
<el-row class="score-detail-row">
|
||||
<el-col :span="12">资讯质量</el-col>
|
||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
||||
scoreDetail.publicOpinionScore }}</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>评分:<span style="color: #36a4f8">{{ scoreDetail.publicOpinionScore }}</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
<el-row class="score-detail-row rule">
|
||||
<el-col :span="24">*计算规则</el-col>
|
||||
|
|
@ -252,9 +329,7 @@
|
|||
</el-row>
|
||||
<el-row class="score-detail-row" justify="space-between">
|
||||
<el-col :span="12">资讯评分</el-col>
|
||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{
|
||||
scoreDetail.newsScore
|
||||
}}</el-col>
|
||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{ scoreDetail.newsScore }}</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<template #footer>
|
||||
|
|
@ -292,7 +367,7 @@ import { highlightTitle } from '/@/utils/highlight';
|
|||
import clipboard from 'clipboard';
|
||||
import { Session } from '/@/utils/storage';
|
||||
import recordDialog from './dialog/recordDialog.vue';
|
||||
import { isMobileByWidth } from '/@/utils/Utils'
|
||||
import { isMobileByWidth } from '/@/utils/Utils';
|
||||
|
||||
const recordDialogRef = ref();
|
||||
/** 管理后台需求文件0519(V1.1) start */
|
||||
|
|
@ -389,7 +464,6 @@ async function getData() {
|
|||
size: tableData.size,
|
||||
dateline_from: _sdate || undefined,
|
||||
dateline_to: _edate || undefined,
|
||||
|
||||
});
|
||||
tableLoading.value = false;
|
||||
if (code == 200) {
|
||||
|
|
@ -504,8 +578,7 @@ function sortChange({ prop, order }) {
|
|||
}
|
||||
|
||||
sortRules[prop] = order == 'ascending' ? '$asc' : order == 'descending' ? '$desc' : null;
|
||||
console.log("🚀 ~ sortChange ~ sortRules[prop]:", sortRules[prop])
|
||||
|
||||
console.log('🚀 ~ sortChange ~ sortRules[prop]:', sortRules[prop]);
|
||||
|
||||
let sortVal = [];
|
||||
for (let key in sortRules) {
|
||||
|
|
|
|||
|
|
@ -9,8 +9,13 @@
|
|||
|
||||
<div class="colHeader-right">
|
||||
<el-space :size="12" class="colHeader-right-1">
|
||||
<el-input v-model="form.keyword" placeholder="输入标题/内容关键字进行搜索(以空格隔开)" class="input-with-select"
|
||||
@keyup.enter="handleSearch" style="width: 455px">
|
||||
<el-input
|
||||
v-model="form.keyword"
|
||||
placeholder="输入标题/内容关键字进行搜索(以空格隔开)"
|
||||
class="input-with-select"
|
||||
@keyup.enter="handleSearch"
|
||||
style="width: 455px"
|
||||
>
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -18,15 +23,32 @@
|
|||
|
||||
<div>
|
||||
<span>行业分类:</span>
|
||||
<el-tree-select v-model="form.industry" :data="industryList" 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
|
||||
v-model="form.industry"
|
||||
:data="industryList"
|
||||
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>
|
||||
</div>
|
||||
|
||||
<el-input v-model="form.tag" placeholder="匹配多个概念标签(以空格隔开)" class="input-with-select"
|
||||
@keyup.enter="handleSearch" style="width: 280px">
|
||||
<el-input
|
||||
v-model="form.tag"
|
||||
placeholder="匹配多个概念标签(以空格隔开)"
|
||||
class="input-with-select"
|
||||
@keyup.enter="handleSearch"
|
||||
style="width: 280px"
|
||||
>
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -34,27 +56,54 @@
|
|||
</el-space>
|
||||
|
||||
<div class="colHeader-right-2">
|
||||
<el-date-picker v-model="daterange" type="daterange" range-separator="至"
|
||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
||||
style="margin-right: 12px" @change="handleSearch" />
|
||||
<el-date-picker
|
||||
v-model="daterange"
|
||||
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="媒体来源"
|
||||
size="large" style="width: 240px" filterable @change="handleSearch" />
|
||||
<el-select-v2
|
||||
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"
|
||||
v-if="Session.get('userInfoLocal').userType == '00'" placeholder="筛选删除状态"
|
||||
@change="handleSearch">
|
||||
<el-select
|
||||
clearable
|
||||
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="0" label="未删除资讯"></el-option>
|
||||
</el-select>
|
||||
|
||||
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
||||
<span>评分范围:</span>
|
||||
<el-input type="number" v-model="form.minScore" style="width: 80px" placeholder="最低"
|
||||
:min="0" :max="100" @keyup.enter="handleSearch" />
|
||||
<el-input
|
||||
type="number"
|
||||
v-model="form.minScore"
|
||||
style="width: 80px"
|
||||
placeholder="最低"
|
||||
:min="0"
|
||||
:max="100"
|
||||
@keyup.enter="handleSearch"
|
||||
/>
|
||||
<i style="color: #ccc"> - </i>
|
||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高"
|
||||
:min="0" :max="100" @keyup.enter="handleSearch">
|
||||
<el-input type="number" v-model="form.maxScore" style="width: 140px" placeholder="最高" :min="0" :max="100" @keyup.enter="handleSearch">
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -67,8 +116,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<tableComponents ref="tableRef" :tableData="tableData" style="margin-top: 20px" @sortChange="sortChange"
|
||||
:tableLoading="tableLoading" @currentChange="currentChange" @sizeChange="sizeChange">
|
||||
<tableComponents
|
||||
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">
|
||||
<template v-slot="scope">
|
||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)" v-html="scope.row.title"></span>
|
||||
|
|
@ -86,10 +142,16 @@
|
|||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :command="null">全部</el-dropdown-item>
|
||||
<el-dropdown-item :command="1"
|
||||
v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
||||
<el-dropdown-item :command="1" v-if="Session.get('userInfoLocal').userType == '00'">未发布</el-dropdown-item>
|
||||
|
||||
<el-dropdown-item :command="3" 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
|
||||
>
|
||||
<el-dropdown-item :command="2">已发布</el-dropdown-item>
|
||||
<el-dropdown-item :command="3">审核中</el-dropdown-item>
|
||||
<el-dropdown-item :command="-1" v-if="Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'"
|
||||
>退改中</el-dropdown-item
|
||||
>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
|
|
@ -97,21 +159,22 @@
|
|||
<template v-slot="scope">
|
||||
<!-- 新闻状态 0-草稿 1-未发布 2-已发布 -->
|
||||
<div class="r_point" :style="{ color: '#000' }">
|
||||
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }">
|
||||
</div>
|
||||
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }"></div>
|
||||
<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 == 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 == 4" style="color: rgba(0, 0, 0, 0.65)">已二审</text>
|
||||
<text v-if="scope.row.status == -1" style="color: red">退改中</text>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- <el-table-column align="center" width="120" prop="submitter" label="编辑人">
|
||||
<el-table-column align="center" width="120" prop="submitter" label="编辑人">
|
||||
<template v-slot="scope">
|
||||
{{ scope.row.submitter ? scope.row.submitter : '-' }}
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column align="center" width="120">
|
||||
<template #header>
|
||||
<el-dropdown trigger="click" @command="handleCommandRating">
|
||||
|
|
@ -140,8 +203,7 @@
|
|||
|
||||
<el-table-column prop="score" label="资讯评分" sortable="custom" align="center" width="100">
|
||||
<template v-slot="scope">
|
||||
<div @click="getScoreDetail(scope.row.id)"
|
||||
:class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||
<div @click="getScoreDetail(scope.row.id)" :class="[{ 'score-active': isAdmin && curScore === scope.row.id }, { 'score-hover': isAdmin }]">
|
||||
{{ scope.row.score }}
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -150,41 +212,53 @@
|
|||
<el-table-column prop="updateTime" label="状态变动时间" sortable="custom" align="center">
|
||||
<template v-slot="scope">
|
||||
<div>
|
||||
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ?
|
||||
scope.row.publishTime : scope.row.updateTime }}</div>
|
||||
<div>{{ formatTime(scope.row.updateTime) == formatTime(scope.row.createTime) ? scope.row.publishTime : scope.row.updateTime }}</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="250" fixed="right">
|
||||
<template v-slot="scope">
|
||||
<div class="option">
|
||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px"
|
||||
@click="doRecoverFn(scope.row)">
|
||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px" @click="doRecoverFn(scope.row)">
|
||||
<text>恢复</text>
|
||||
</el-button>
|
||||
<div v-else style="display: flex; gap: 10px; align-items: center">
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||
|
||||
<el-button v-if="scope.row.status == 3 && Session.get('userInfoLocal').userType == '01'"
|
||||
type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.status == 3 && Session.get('userInfoLocal').userType == '01'"
|
||||
type="text"
|
||||
@click="goDetail(1, scope.row, false)"
|
||||
>编辑</el-button
|
||||
>
|
||||
<div v-if="Session.get('userInfoLocal').userType == '01'">
|
||||
<!-- 审核人员才有发布和撤稿 -->
|
||||
<el-button type="text" v-if="scope.row.status == 2"
|
||||
@click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
||||
<el-button type="text" v-if="scope.row.status == 2" @click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
||||
<el-button type="text" v-else @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
||||
</div>
|
||||
<div v-else-if="Session.get('userInfoLocal').userType == '00'" style="display: flex">
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||
@click="doApprovalFn(scope.row, scope.row.status)">送审</el-button>
|
||||
<el-button v-else-if="scope.row.status == 3" type="text"
|
||||
@click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text" @click="doApprovalFn(scope.row, scope.row.status)"
|
||||
>送审</el-button
|
||||
>
|
||||
<el-button v-else-if="scope.row.status == 3" type="text" @click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||
</div>
|
||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
||||
@click="copyUrl(scope.row)">复制</el-button>
|
||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||
|
||||
<!-- 二审相关 -->
|
||||
<div v-if="Session.get('userInfoLocal').userType == '02'">
|
||||
<el-button v-if="scope.row.status == 3" type="text" style="margin-left: 3px" @click="doNewCheckFn(scope.row)">复审</el-button>
|
||||
<el-button v-if="scope.row.status == 3" type="text" style="color: #ff1818; margin-left: 5px" @click="doNewReturnFn(scope.row)"
|
||||
>退改</el-button
|
||||
>
|
||||
</div>
|
||||
|
||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn" @click="copyUrl(scope.row)">复制</el-button>
|
||||
<el-button
|
||||
v-if="scope.row.status == 0 || scope.row.status == 1"
|
||||
type="text"
|
||||
style="color: #ff1818; margin-left: 3px"
|
||||
@click="doDeleteNewsFn(scope.row)">删除</el-button>
|
||||
@click="doDeleteNewsFn(scope.row)"
|
||||
>删除</el-button
|
||||
>
|
||||
|
||||
<!-- <el-icon size="16" @click="goRecord(scope.row)">
|
||||
<Tickets />
|
||||
|
|
@ -200,9 +274,16 @@
|
|||
</tableComponents>
|
||||
|
||||
<keep-alive>
|
||||
<DetailDrawer v-model="drawer" :data="newsData" :readOnly="readOnly" :type="newstype"
|
||||
@handleEditStatus="handleEditStatus" @doNewsPublishFn="doNewsPublishFn" @doDeleteNewsFn="doDeleteNewsFn"
|
||||
@getData="getData" />
|
||||
<DetailDrawer
|
||||
v-model="drawer"
|
||||
:data="newsData"
|
||||
:readOnly="readOnly"
|
||||
:type="newstype"
|
||||
@handleEditStatus="handleEditStatus"
|
||||
@doNewsPublishFn="doNewsPublishFn"
|
||||
@doDeleteNewsFn="doDeleteNewsFn"
|
||||
@getData="getData"
|
||||
/>
|
||||
</keep-alive>
|
||||
|
||||
<el-dialog v-model="isScoreShow" title="资讯评分详情" width="680" center>
|
||||
|
|
@ -213,8 +294,9 @@
|
|||
<el-row>[{{ scoreDetail.industryLabel.join(',') }}]</el-row>
|
||||
<el-row justify="space-between">
|
||||
<el-col :span="12">置信度:[{{ scoreDetail.industryConfidence.join(',') }}]</el-col>
|
||||
<el-col :span="12" style="text-align: right">分类评分:<span style="color: #36a4f8">[{{
|
||||
scoreDetail.industryScore.join(',') }}]</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>分类评分:<span style="color: #36a4f8">[{{ scoreDetail.industryScore.join(',') }}]</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -224,8 +306,9 @@
|
|||
<el-row>[{{ scoreDetail.conceptLabel.join(',') }}]</el-row>
|
||||
<el-row justify="space-between">
|
||||
<el-col :span="12">置信度:[{{ scoreDetail.conceptConfidence.join(',') }}]</el-col>
|
||||
<el-col :span="12" style="text-align: right">概念评分:<span style="color: #36a4f8">[{{
|
||||
scoreDetail.conceptScore.join(',') }}]</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>概念评分:<span style="color: #36a4f8">[{{ scoreDetail.conceptScore.join(',') }}]</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -235,20 +318,21 @@
|
|||
</el-row>
|
||||
<el-row class="score-detail-row">
|
||||
<el-col :span="12">媒体影响力</el-col>
|
||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
||||
scoreDetail.sourceImpact
|
||||
}}</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>评分:<span style="color: #36a4f8">{{ scoreDetail.sourceImpact }}</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
<el-row class="score-detail-row">
|
||||
<el-col :span="12">中国股市相关性</el-col>
|
||||
<el-col :span="12" style="text-align: right">置信度:<span style="color: #36a4f8">{{
|
||||
scoreDetail.chinaFactor
|
||||
}}</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>置信度:<span style="color: #36a4f8">{{ scoreDetail.chinaFactor }}</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
<el-row class="score-detail-row">
|
||||
<el-col :span="12">资讯质量</el-col>
|
||||
<el-col :span="12" style="text-align: right">评分:<span style="color: #36a4f8">{{
|
||||
scoreDetail.publicOpinionScore }}</span></el-col>
|
||||
<el-col :span="12" style="text-align: right"
|
||||
>评分:<span style="color: #36a4f8">{{ scoreDetail.publicOpinionScore }}</span></el-col
|
||||
>
|
||||
</el-row>
|
||||
<el-row class="score-detail-row rule">
|
||||
<el-col :span="24">*计算规则</el-col>
|
||||
|
|
@ -256,9 +340,7 @@
|
|||
</el-row>
|
||||
<el-row class="score-detail-row" justify="space-between">
|
||||
<el-col :span="12">资讯评分</el-col>
|
||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{
|
||||
scoreDetail.newsScore
|
||||
}}</el-col>
|
||||
<el-col :span="12" style="color: #36a4f8; text-align: right; font-weight: 700">{{ scoreDetail.newsScore }}</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<template #footer>
|
||||
|
|
@ -291,12 +373,14 @@ import {
|
|||
getIndustryHierarchy,
|
||||
getTagSource,
|
||||
doRecover,
|
||||
doNewCheck,
|
||||
doNewReturn,
|
||||
} from '/@/api/api';
|
||||
import { highlightTitle } from '/@/utils/highlight';
|
||||
import clipboard from 'clipboard';
|
||||
import { Session } from '/@/utils/storage';
|
||||
import recordDialog from './dialog/recordDialog.vue';
|
||||
import { isMobileByWidth } from '/@/utils/Utils'
|
||||
import { isMobileByWidth } from '/@/utils/Utils';
|
||||
|
||||
const recordDialogRef = ref();
|
||||
/** 管理后台需求文件0519(V1.1) start */
|
||||
|
|
@ -393,7 +477,7 @@ async function getData() {
|
|||
size: tableData.size,
|
||||
dateline_from: _sdate || undefined,
|
||||
dateline_to: _edate || undefined,
|
||||
range: Session.get('userInfoLocal').userType == '01' ? 'review' : 'all',
|
||||
range: Session.get('userInfoLocal').userType == '01' ? 'review' : Session.get('userInfoLocal').userType == '02' ? 'secondReview' : 'all',
|
||||
});
|
||||
tableLoading.value = false;
|
||||
if (code == 200) {
|
||||
|
|
@ -508,8 +592,7 @@ function sortChange({ prop, order }) {
|
|||
}
|
||||
|
||||
sortRules[prop] = order == 'ascending' ? '$asc' : order == 'descending' ? '$desc' : null;
|
||||
console.log("🚀 ~ sortChange ~ sortRules[prop]:", sortRules[prop])
|
||||
|
||||
console.log('🚀 ~ sortChange ~ sortRules[prop]:', sortRules[prop]);
|
||||
|
||||
let sortVal = [];
|
||||
for (let key in sortRules) {
|
||||
|
|
@ -705,7 +788,26 @@ async function doRecoverFn(item) {
|
|||
.catch(() => {});
|
||||
}
|
||||
|
||||
function recordDialogClose() { }
|
||||
// 复审
|
||||
async function doNewCheckFn(item) {
|
||||
let { code, data } = await doNewCheck({
|
||||
id: item.id,
|
||||
});
|
||||
if (code == 200) {
|
||||
ElMessage.success('操作成功');
|
||||
getData();
|
||||
}
|
||||
}
|
||||
// 退改
|
||||
async function doNewReturnFn(item) {
|
||||
let { code, data } = await doNewReturn({
|
||||
id: item.id,
|
||||
});
|
||||
if (code == 200) {
|
||||
ElMessage.success('操作成功');
|
||||
getData();
|
||||
}
|
||||
}
|
||||
|
||||
// 页面加载时
|
||||
onMounted(async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue