Merge branch 'dev'
This commit is contained in:
commit
9e740a4780
|
|
@ -2,7 +2,7 @@
|
|||
ENV = development
|
||||
|
||||
# 本地环境接口地址
|
||||
# VITE_API_URL = https://4155gf93ll13.vicp.fun/admin
|
||||
# VITE_API_URL = http://4155gf93ll13.vicp.fun/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
|
||||
|
|
|
|||
|
|
@ -214,7 +214,6 @@ export const getNewsInfo = (params: any, headers?: any) => {
|
|||
method: 'get',
|
||||
params,
|
||||
headers,
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -283,7 +282,6 @@ export const getIndustryHierarchy = (params?: any) => {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
export const getTagConcept = (params?: any) => {
|
||||
return request({
|
||||
url: '/tag/concept',
|
||||
|
|
@ -312,7 +310,8 @@ export const doRecover = (data?: any) => {
|
|||
export const doNewSubmit = (data?: any) => {
|
||||
return request({
|
||||
url: '/news/submit',
|
||||
method: 'post', data
|
||||
method: 'post',
|
||||
data,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -329,7 +328,7 @@ export const doNewLog = (params?: any) => {
|
|||
return request({
|
||||
url: '/news/log',
|
||||
method: 'get',
|
||||
params
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -338,7 +337,7 @@ export const doNewCheck = (params?: any) => {
|
|||
return request({
|
||||
url: '/news/check',
|
||||
method: 'post',
|
||||
params
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -347,6 +346,23 @@ export const doNewReturn = (params?: any) => {
|
|||
return request({
|
||||
url: '/news/return',
|
||||
method: 'post',
|
||||
params
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
// 筛选项-获取信号规则级联列表
|
||||
export const getSignalRules = (params?: any) => {
|
||||
return request({
|
||||
url: '/news/getSignalRulesList',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
||||
export const searchCompany = (params?: any) => {
|
||||
return request({
|
||||
url: '/news/getCompanyNames',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export const useThemeConfig = defineStore('themeConfig', {
|
|||
* 界面设置
|
||||
*/
|
||||
// 是否开启菜单水平折叠效果
|
||||
isCollapse: false,
|
||||
isCollapse: true,
|
||||
// 是否开启菜单手风琴效果
|
||||
isUniqueOpened: true,
|
||||
// 是否开启固定 Header
|
||||
|
|
|
|||
|
|
@ -6,3 +6,13 @@ export const isMobileByWidth = (): boolean => {
|
|||
// 通常以 768px 作为移动设备的宽度阈值
|
||||
return window.innerWidth < 768;
|
||||
};
|
||||
/* 防抖 */
|
||||
export function debounce(fn, delay) {
|
||||
let timer = null;
|
||||
return function () {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(() => {
|
||||
fn.apply(this, arguments);
|
||||
}, delay);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@
|
|||
v-if="!form.deleted && (data.status == 0 || data.status == 1 || data.status == -1)"
|
||||
@click="doDeleteNewsFn(data)">删除</el-button> -->
|
||||
<div v-if="Session.get('userInfoLocal').userType == '00'">
|
||||
|
||||
<el-button type="text" v-if="!form.deleted && (data.status == 1 || data.status == -1)"
|
||||
@click="handleEditStatus(!readOnly)">{{ readOnly ?
|
||||
'编辑' : '浏览' }}</el-button>
|
||||
@click="handleEditStatus(!readOnly)">{{
|
||||
readOnly ? '编辑' : '浏览'
|
||||
}}</el-button>
|
||||
|
||||
<el-button type="text" style="color: #ff1818"
|
||||
v-if="!form.deleted && (data.status == 0 || data.status == 1 || data.status == -1)"
|
||||
|
|
@ -34,8 +34,7 @@
|
|||
<div v-if="Session.get('userInfoLocal').userType == '02'">
|
||||
<el-button type="text"
|
||||
v-if="!form.deleted && (data.status == 0 || data.status == 1 || data.status == 3)"
|
||||
@click="handleEditStatus(!readOnly)">{{ readOnly ?
|
||||
'编辑' : '浏览' }}</el-button>
|
||||
@click="handleEditStatus(!readOnly)">{{ readOnly ? '编辑' : '浏览' }}</el-button>
|
||||
|
||||
<el-button type="text" style="color: #ff1818"
|
||||
v-if="!form.deleted && (data.status == 0 || data.status == 1)"
|
||||
|
|
@ -43,10 +42,10 @@
|
|||
</div>
|
||||
|
||||
<div v-if="Session.get('userInfoLocal').userType == '01'">
|
||||
<el-button type="text" v-if="!form.deleted && (data.status == 4)"
|
||||
@click="handleEditStatus(!readOnly)">{{ readOnly ?
|
||||
'编辑' : '浏览' }}</el-button>
|
||||
|
||||
<el-button type="text" v-if="!form.deleted && data.status == 4"
|
||||
@click="handleEditStatus(!readOnly)">{{
|
||||
readOnly ? '编辑' : '浏览'
|
||||
}}</el-button>
|
||||
|
||||
<el-button type="text" style="color: #ff1818"
|
||||
v-if="!form.deleted && (data.status == 0 || data.status == 1)"
|
||||
|
|
@ -73,6 +72,7 @@
|
|||
'YYYY年mm月dd日 HH:MM') }}</span>
|
||||
</div>
|
||||
<el-form-item label="标题" style="margin-top: 20px" prop="title" label-width="52">
|
||||
<!-- v-if="!readOnly" -->
|
||||
<div style="display: flex; width: 800px; align-items: center">
|
||||
<el-input placeholder="输入文章标题" v-model="form.title" :max="titleTextMax"
|
||||
:maxlength="titleTextMax" @input="inputChange" :disabled="readOnly"></el-input>
|
||||
|
|
@ -80,11 +80,16 @@
|
|||
}}</text>
|
||||
<icon_ai v-if="form.titleTranslated"></icon_ai>
|
||||
</div>
|
||||
<!-- <div v-else>
|
||||
{{ form.title }}
|
||||
</div> -->
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="summary" label="摘要" label-width="52">
|
||||
<!-- v-if="!readOnly" -->
|
||||
<el-input v-model="form.summary" show-word-limit maxlength="300" style="margin-top: 10px"
|
||||
:rows="5" type="textarea" placeholder="请输入摘要内容" max="300" :disabled="readOnly" />
|
||||
<!-- <text v-else style="line-height: 20px;"> {{ form.summary }}</text> -->
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
|
|
@ -116,6 +121,14 @@
|
|||
<el-form-item label="编辑评分:" prop="industrySelect">
|
||||
<el-rate v-model="form.rating" clearable :disabled="readOnly" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="潜在独家:" prop="industrySelect">
|
||||
<el-radio-group v-model="form.exclusive" size="large" style="width: 240px"
|
||||
:disabled="readOnly">
|
||||
<el-radio :label="1">是</el-radio>
|
||||
<el-radio :label="0">否</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<div class="step_bk" style="position: relative">
|
||||
|
|
@ -128,11 +141,10 @@
|
|||
<translateMobile v-else-if="form.newsInfoId && isMobileByWidth()" :infoData="form"
|
||||
:key="form.id">
|
||||
</translateMobile>
|
||||
|
||||
</div>
|
||||
|
||||
<el-collapse accordion expand-icon-position="left"
|
||||
style="margin-top:10px;padding: 0 30px;border-top: 0;">
|
||||
style="margin-top: 10px; padding: 0 30px; border-top: 0">
|
||||
<el-collapse-item name="1">
|
||||
<template #title="{ isActive }">
|
||||
<div :class="['title-wrapper', { 'is-active': isActive }]">
|
||||
|
|
@ -143,12 +155,12 @@
|
|||
:rows="5" type="textarea" placeholder="请输入编辑审核备注" max="300" :disabled="readOnly" />
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
|
||||
</div>
|
||||
</el-form>
|
||||
|
||||
<template #footer>
|
||||
<div v-if="!readOnly" style="padding: 10px;display: flex;float: right;gap:10px;padding-right: 40px;">
|
||||
<div v-if="!readOnly"
|
||||
style="padding: 10px; display: flex; float: right; gap: 10px; padding-right: 40px">
|
||||
<el-button @click="submit(1, false)">{{ isMobileByWidth() ? '保存并反馈' : '保存' }}</el-button>
|
||||
|
||||
<!-- <div v-if="Session.get('userInfoLocal').userType == '00'">
|
||||
|
|
@ -158,14 +170,19 @@
|
|||
|
||||
<el-button
|
||||
v-if="data?.status == 2 && !form.deleted && Session.get('userInfoLocal').userType == '01'"
|
||||
type="primary" style="margin-right: 30px;margin-bottom: 20px;"
|
||||
type="primary" style="margin-right: 30px; margin-bottom: 20px"
|
||||
@click="doNewsPublishFn(data, 1)">撤稿</el-button>
|
||||
|
||||
<el-button type="primary" @click="doNewCheckFn(data)"
|
||||
v-if="data?.status != 2 && !form.deleted && Session.get('userInfoLocal').userType == '02'">复审</el-button>
|
||||
|
||||
<el-button type="primary" @click="submit(0, false)"
|
||||
v-if="data?.status != 2 && data?.status != -1 && !form.deleted && Session.get('userInfoLocal').userType != '02' && Session.get('userInfoLocal').userType == '01'">
|
||||
<el-button type="primary" @click="submit(0, false)" v-if="
|
||||
data?.status != 2 &&
|
||||
data?.status != -1 &&
|
||||
!form.deleted &&
|
||||
Session.get('userInfoLocal').userType != '02' &&
|
||||
Session.get('userInfoLocal').userType == '01'
|
||||
">
|
||||
<text>发布</text>
|
||||
</el-button>
|
||||
|
||||
|
|
@ -178,16 +195,15 @@
|
|||
v-if="Session.get('userInfoLocal').userType == '02' && (data?.status == 3 || data?.status == 4)"
|
||||
@click="doNewReturnFn(data)">退改</el-button>
|
||||
|
||||
<el-button type="danger" v-if="Session.get('userInfoLocal').userType == '01' && (data?.status == 4)"
|
||||
<el-button type="danger" v-if="Session.get('userInfoLocal').userType == '01' && data?.status == 4"
|
||||
@click="doNewReturnFn(data)">退改</el-button>
|
||||
</div>
|
||||
<div v-else>
|
||||
<el-button
|
||||
v-if="data?.status == 2 && !form.deleted && Session.get('userInfoLocal').userType == '01'"
|
||||
type="primary" style="margin-right: 30px;margin-bottom: 20px;"
|
||||
type="primary" style="margin-right: 30px; margin-bottom: 20px"
|
||||
@click="doNewsPublishFn(data, 1)">撤稿</el-button>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
</el-drawer>
|
||||
</div>
|
||||
|
|
@ -200,18 +216,27 @@ import { ElMessage, ElStep, ElMessageBox } from 'element-plus';
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
import editorBox from '/@/components/editorBox.vue';
|
||||
import uploadImage from '/@/components/upload/image.vue';
|
||||
import { doNewRevoke, doNewSubmit, getTagSource, getTagConcept, getColumn, doNewsSave, doNewsCreatePublish, getNewsDetail, getColumnVIP, getIndustrySearch } from '/@/api/api';
|
||||
import {
|
||||
doNewRevoke,
|
||||
doNewSubmit,
|
||||
getTagSource,
|
||||
getTagConcept,
|
||||
getColumn,
|
||||
doNewsSave,
|
||||
doNewsCreatePublish,
|
||||
getNewsDetail,
|
||||
getColumnVIP,
|
||||
getIndustrySearch,
|
||||
} from '/@/api/api';
|
||||
import { FullScreen, Switch } from '@element-plus/icons-vue';
|
||||
import { formatDate } from '/@/utils/formatTime';
|
||||
import icon_ai from '/@/components/icon_ai.vue';
|
||||
import translate from '/@/components/translate/translate.vue';
|
||||
import { Session } from '/@/utils/storage';
|
||||
import { isMobileByWidth } from '/@/utils/Utils'
|
||||
import { isMobileByWidth } from '/@/utils/Utils';
|
||||
import { doNewReturn, doNewCheck } from '/@/api/api';
|
||||
import translateMobile from '/@/components/translate/translateMobile.vue';
|
||||
|
||||
|
||||
|
||||
const emit = defineEmits(['doNewsPublishFn', 'handleEditStatus', 'doDeleteNewsFn', 'getData']);
|
||||
const props = defineProps({
|
||||
data: {
|
||||
|
|
@ -253,6 +278,7 @@ const form = ref({
|
|||
},
|
||||
rating: 0,
|
||||
showEverything: true,
|
||||
exclusive: 0,
|
||||
});
|
||||
/********************step1 start *************************/
|
||||
// 文章标题已经输入的字数
|
||||
|
|
@ -397,29 +423,27 @@ watch(
|
|||
// 退改
|
||||
async function doNewReturnFn(item) {
|
||||
// 先保存
|
||||
await submit(1, false, false)
|
||||
|
||||
await submit(1, false, false);
|
||||
|
||||
let { code, data } = await doNewReturn({
|
||||
id: item.id,
|
||||
});
|
||||
if (code == 200) {
|
||||
ElMessage.success('操作成功');
|
||||
goBack()
|
||||
goBack();
|
||||
}
|
||||
}
|
||||
// 复审
|
||||
async function doNewCheckFn(item) {
|
||||
// 先保存
|
||||
await submit(1, false, false)
|
||||
|
||||
await submit(1, false, false);
|
||||
|
||||
let { code, data } = await doNewCheck({
|
||||
id: item.id,
|
||||
});
|
||||
if (code == 200) {
|
||||
ElMessage.success('操作成功');
|
||||
goBack()
|
||||
goBack();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -498,7 +522,7 @@ async function submit(type, doNotBack, isShowTips = true) {
|
|||
};
|
||||
|
||||
if (type == 0) {
|
||||
let str = "请确认已审核该篇资讯,发布后前台将展示本资讯"
|
||||
let str = '请确认已审核该篇资讯,发布后前台将展示本资讯';
|
||||
if (Session.get('userInfoLocal').userType == '00') {
|
||||
str = '确认初审完成并提交复核?送审后不支持再次编辑';
|
||||
if (props.data.status == 3) {
|
||||
|
|
@ -510,7 +534,6 @@ async function submit(type, doNotBack, isShowTips = true) {
|
|||
str = '请确认已审核该篇资讯,发布后前台将展示本资讯';
|
||||
}
|
||||
|
||||
|
||||
ElMessageBox.confirm(str, '提示', {
|
||||
confirmButtonText: '确认',
|
||||
cancelButtonText: '取消',
|
||||
|
|
@ -526,7 +549,7 @@ async function submit(type, doNotBack, isShowTips = true) {
|
|||
})
|
||||
.catch(() => { });
|
||||
} else if (type == 1) {
|
||||
console.log("🚀 ~ submit ~ isShowTips:", isShowTips)
|
||||
console.log('🚀 ~ submit ~ isShowTips:', isShowTips);
|
||||
|
||||
// 保存
|
||||
let { code, data } = await doNewsSave(par);
|
||||
|
|
@ -535,7 +558,6 @@ async function submit(type, doNotBack, isShowTips = true) {
|
|||
ElMessage.success('操作成功');
|
||||
}
|
||||
if (doNotBack) {
|
||||
|
||||
} else {
|
||||
goBack();
|
||||
}
|
||||
|
|
@ -563,7 +585,9 @@ async function getInfo() {
|
|||
if (code == 200) {
|
||||
infoData.value = data;
|
||||
form.value = data;
|
||||
|
||||
if (!form.value.exclusive) {
|
||||
form.value.exclusive = 0;
|
||||
}
|
||||
if (form.value.deleted) {
|
||||
emit('handleEditStatus', true);
|
||||
}
|
||||
|
|
@ -712,11 +736,14 @@ async function doApprovalFn() {
|
|||
})
|
||||
.then(async () => {
|
||||
// 先保存
|
||||
await submit(1, false, false)
|
||||
await submit(1, false, false);
|
||||
|
||||
let { code } = props.data.status == 3 || props.data.status == 4 ? await doNewRevoke({
|
||||
let { code } =
|
||||
props.data.status == 3 || props.data.status == 4
|
||||
? await doNewRevoke({
|
||||
id: props.data.id,
|
||||
}) : await doNewSubmit({
|
||||
})
|
||||
: await doNewSubmit({
|
||||
id: props.data.id,
|
||||
});
|
||||
if (code == 200) {
|
||||
|
|
@ -726,8 +753,6 @@ async function doApprovalFn() {
|
|||
})
|
||||
.catch(() => { });
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
|
@ -770,4 +795,24 @@ async function doApprovalFn() {
|
|||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.el-input.is-disabled .el-input__inner) {
|
||||
-webkit-text-fill-color: rgb(76, 76, 76);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
:deep(.el-textarea.is-disabled .el-textarea__inner) {
|
||||
-webkit-text-fill-color: rgb(76, 76, 76);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
:deep(.el-select__wrapper.is-disabled) {
|
||||
-webkit-text-fill-color: rgb(76, 76, 76);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
:deep(.editor-disable .w-e-text-container) {
|
||||
-webkit-text-fill-color: rgb(76, 76, 76);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -3,18 +3,12 @@
|
|||
<div class="colHeader">
|
||||
<div class="page_title">资讯精选</div>
|
||||
|
||||
<div style="width: 100%; display: flex; align-items: flex-end">
|
||||
<el-button type="primary" style="margin-bottom: 10px" @click="restData">清空条件</el-button>
|
||||
|
||||
<div style="width: 100%; display: flex; margin-top: 20px">
|
||||
<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"
|
||||
>
|
||||
<span>标题检索:</span>
|
||||
<el-input v-model="form.keyword" placeholder="输入标题/内容关键字进行搜索(以空格隔开)" class="input-with-select"
|
||||
@keyup.enter="handleSearch" style="width: 500px">
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
|
|
@ -22,86 +16,48 @@
|
|||
|
||||
<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>
|
||||
</el-input>
|
||||
</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-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-option :value="1" label="已删除资讯"></el-option>
|
||||
<el-option :value="0" label="未删除资讯"></el-option>
|
||||
<div class="colHeader-right-2" style="gap: 10px">
|
||||
<span>信号规则:</span>
|
||||
<el-select v-model="form.includeRuleIds" clearable placeholder="含任一信号规则" multiple size="large"
|
||||
style="width: 180px" filterable @change="signalChange($event, 1)">
|
||||
<el-option v-for="item in signalRulesList" :key="item.id" :value="item.id"
|
||||
:disabled="form.excludeRuleIds?.includes(item.id)" :label="item.ruleName"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="form.excludeRuleIds" clearable placeholder="不含任一信号规则" multiple size="large"
|
||||
style="width: 180px" filterable @change="signalChange($event, 2)">
|
||||
<el-option v-for="item in signalRulesList" :key="item.id" :value="item.id"
|
||||
:disabled="form.includeRuleIds?.includes(item.id)" :label="item.ruleName"></el-option>
|
||||
</el-select>
|
||||
|
||||
<div style="margin-left: 12px; display: flex; flex-wrap: nowrap; align-items: center">
|
||||
<span>报道时间:</span>
|
||||
<div>
|
||||
<el-date-picker v-model="daterange" type="daterange" range-separator="-"
|
||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
||||
@change="handleSearch" />
|
||||
</div>
|
||||
|
||||
<div style="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>
|
||||
|
|
@ -109,27 +65,102 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <el-button type="primary" icon="Plus" @click="toDetail({}, false)">创建新资讯</el-button> -->
|
||||
<div class="colHeader-right-2" style="gap: 10px">
|
||||
<span>媒体来源:</span>
|
||||
<el-select-v2 v-model="form.mediaId" :options="tagSourceList" clearable placeholder="媒体来源"
|
||||
size="large" style="width: 180px" filterable @change="handleSearch" />
|
||||
<span>企业检索:</span>
|
||||
<el-select class="search-input" popper-class="option-box" v-model="form.companyName" clearable
|
||||
filterable remote reserve-keyword remote-show-suffix default-first-option
|
||||
:suffix-icon="Search" placeholder="输入企业名称/企业简称/证券编码进行搜索" :loading="loading"
|
||||
:remote-method="getCompany" @change="getData" style="width: 180px">
|
||||
<el-option v-for="item in companyList" :key="item.companyName" :label="item.companyName"
|
||||
:value="item.companyName"> </el-option>
|
||||
</el-select>
|
||||
|
||||
<span>独家资讯:</span>
|
||||
<el-select v-model="form.exclusive" clearable placeholder="是否独家搜索" size="large"
|
||||
style="width: 180px" filterable @change="handleSearch">
|
||||
<el-option :value="1" label="是"></el-option>
|
||||
<el-option :value="0" label="否"></el-option>
|
||||
</el-select>
|
||||
|
||||
<span>删除状态:</span>
|
||||
<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>
|
||||
|
||||
<el-button type="primary" @click="restData">清空条件</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
||||
<div style="display: flex; flex-direction: column; gap: 5px; padding: 10px 0">
|
||||
<div>
|
||||
<span style="color: red; font-weight: bold; margin-right: 3px"
|
||||
v-if="scope.row.exclusive == 1">[独家]</span>
|
||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)"
|
||||
v-html="scope.row.title"></span>
|
||||
</div>
|
||||
|
||||
<div class="labels">
|
||||
<div class="label_item" v-if="scope.row.companyName && scope.row.companyName.length > 0">
|
||||
{{ scope.row.companyName }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="labels">
|
||||
<!-- <div v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0" class="label_item_box">
|
||||
<div v-for="item in scope.row.conceptLabels" :key="item" class="label_item" style="background-color: #eee6cd">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0" class="label_item_box">
|
||||
<div v-for="item in scope.row.industryLabels" :key="item" class="label_item" style="background-color: #cfdcf3">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div style="background-color: #eee6cd" class="label_item"
|
||||
v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0">
|
||||
{{ scope.row.conceptLabels[0] }}
|
||||
</div>
|
||||
<div style="background-color: #cfdcf3" class="label_item"
|
||||
v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0">
|
||||
{{ scope.row.industryLabels[0] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- :show-overflow-tooltip="true" -->
|
||||
<el-table-column label="信号规则" align="center" width="120">
|
||||
<template v-slot="scope">
|
||||
<div v-if="scope.row.ruleName && scope.row.ruleName.length > 0">
|
||||
<div v-for="item in scope.row.ruleName" :key="item" class="label_item">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="媒体来源" align="center" width="120">
|
||||
<template v-slot="scope">
|
||||
<div v-if="scope.row.sourceName">
|
||||
{{ scope.row.sourceName }}
|
||||
</div>
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" align="center" width="120">
|
||||
<template #header>
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
|
|
@ -152,7 +183,8 @@
|
|||
<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>
|
||||
|
|
@ -196,7 +228,8 @@
|
|||
|
||||
<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>
|
||||
|
|
@ -205,14 +238,16 @@
|
|||
<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 type="text" :disabled="scope.row.status != 2" class="copyBtn" @click="copyUrl(scope.row)">复制</el-button>
|
||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
||||
@click="copyUrl(scope.row)">复制</el-button>
|
||||
<!--
|
||||
<el-button v-if="scope.row.deleted" type="text" style="margin-left: 10px"
|
||||
@click="doRecoverFn(scope.row)">
|
||||
|
|
@ -248,16 +283,9 @@
|
|||
</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>
|
||||
|
|
@ -268,9 +296,8 @@
|
|||
<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>
|
||||
|
|
@ -280,9 +307,8 @@
|
|||
<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>
|
||||
|
|
@ -292,21 +318,20 @@
|
|||
</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>
|
||||
|
|
@ -314,7 +339,9 @@
|
|||
</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>
|
||||
|
|
@ -346,7 +373,9 @@ import {
|
|||
getNewsScore,
|
||||
getIndustryHierarchy,
|
||||
getTagSource,
|
||||
getSignalRules,
|
||||
doRecover,
|
||||
searchCompany,
|
||||
} from '/@/api/api';
|
||||
import { highlightTitle } from '/@/utils/highlight';
|
||||
import clipboard from 'clipboard';
|
||||
|
|
@ -413,7 +442,7 @@ async function doDeleteNewsFn(item) {
|
|||
getData();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
}
|
||||
|
||||
function handleSearch() {
|
||||
|
|
@ -449,6 +478,8 @@ async function getData() {
|
|||
size: tableData.size,
|
||||
dateline_from: _sdate || undefined,
|
||||
dateline_to: _edate || undefined,
|
||||
includeRuleIds: includeRuleIds.value,
|
||||
excludeRuleIds: excludeRuleIds.value,
|
||||
});
|
||||
tableLoading.value = false;
|
||||
if (code == 200) {
|
||||
|
|
@ -465,6 +496,21 @@ async function getData() {
|
|||
}
|
||||
});
|
||||
item.title = highlightTitle(item.title, form.value.keyword);
|
||||
|
||||
// item.companys = [
|
||||
// "英伟达",
|
||||
// "微软",
|
||||
// ]
|
||||
|
||||
// item.labels = [
|
||||
// "新科技-人工智能",
|
||||
// "新科技-人工智能",
|
||||
// ]
|
||||
|
||||
// item.signalNames = [
|
||||
// "信号规则1",
|
||||
// "信号规则2",
|
||||
// ]
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
@ -499,7 +545,7 @@ async function doApprovalFn(item, status) {
|
|||
getData();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -536,7 +582,7 @@ async function doNewsPublishFn(item, status) {
|
|||
getData();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -738,6 +784,15 @@ function restData() {
|
|||
tableRef.value.clearSort();
|
||||
|
||||
tableData.page = 1;
|
||||
|
||||
form.value.includeRuleIds = null;
|
||||
form.value.excludeRuleIds = null;
|
||||
|
||||
includeRuleIds.value = null;
|
||||
excludeRuleIds.value = null;
|
||||
form.value.companyName = null;
|
||||
form.value.exclusive = null;
|
||||
|
||||
getData();
|
||||
}
|
||||
|
||||
|
|
@ -756,10 +811,55 @@ async function doRecoverFn(item) {
|
|||
getData();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
}
|
||||
|
||||
function recordDialogClose() {}
|
||||
function recordDialogClose() { }
|
||||
|
||||
// 含任一信号规则
|
||||
const signalRulesList = ref();
|
||||
|
||||
async function getSignalRulesFn() {
|
||||
let { code, data } = await getSignalRules({});
|
||||
if (code == 200) {
|
||||
signalRulesList.value = data;
|
||||
}
|
||||
}
|
||||
const includeRuleIds = ref('');
|
||||
const excludeRuleIds = ref('');
|
||||
|
||||
function signalChange(event, type) {
|
||||
console.log('🚀 ~ signalChange ~ event:', event);
|
||||
if (type == 1) {
|
||||
includeRuleIds.value = event.join(',');
|
||||
} else {
|
||||
excludeRuleIds.value = event.join(',');
|
||||
}
|
||||
|
||||
getData();
|
||||
}
|
||||
|
||||
import { debounce } from '/@/utils/utils';
|
||||
|
||||
const companyList = ref([]);
|
||||
const getCompany = debounce(async (val: string) => {
|
||||
// if (!val) {
|
||||
// return;
|
||||
// }
|
||||
let { code, data } = await searchCompany({
|
||||
companyName: val,
|
||||
});
|
||||
|
||||
if (code == 200) {
|
||||
companyList.value = data;
|
||||
// data.forEach((item) => {
|
||||
// companyList.value.push({
|
||||
// label: item.companyName,
|
||||
// value: item.companyName,
|
||||
// });
|
||||
// });
|
||||
}
|
||||
}, 500);
|
||||
|
||||
// 页面加载时
|
||||
onMounted(async () => {
|
||||
|
|
@ -787,6 +887,9 @@ onMounted(async () => {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
getSignalRulesFn();
|
||||
getCompany();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -881,15 +984,51 @@ onMounted(async () => {
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
min-width: 700px;
|
||||
// align-items: flex-end;
|
||||
// min-width: 700px;
|
||||
|
||||
.colHeader-right-1,
|
||||
.colHeader-right-2 {
|
||||
display: flex;
|
||||
justify-self: flex-end;
|
||||
// justify-self: flex-end;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.labels {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.label_item {
|
||||
height: 24px;
|
||||
background: #f6f6f6;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #e2e2e2;
|
||||
padding: 0 5px;
|
||||
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: #656363;
|
||||
line-height: 16px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
|
||||
display: flex;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.label_item_box {
|
||||
// width: 100%;
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -4,10 +4,13 @@
|
|||
<div class="page_title" v-if="Session.get('userInfoLocal').userType == '00'">资讯精选</div>
|
||||
<div class="page_title" v-if="Session.get('userInfoLocal').userType == '01'">资讯审核</div>
|
||||
|
||||
<div style="width: 100%; display: flex; align-items: flex-end">
|
||||
<!-- 普通管理员和审核人员的筛选条件不一样,普通管理员是资讯精选、其他是资讯审核 -->
|
||||
<!-- 普通管理员的筛选 start -->
|
||||
<div style="width: 100%; display: flex; align-items: flex-end"
|
||||
v-if="Session.get('userInfoLocal').userType != '00'">
|
||||
<el-button type="primary" style="margin-bottom: 10px" @click="restData">清空条件</el-button>
|
||||
|
||||
<div class="colHeader-right">
|
||||
<div class="colHeader-right" :style="{ alignItems: 'flex-end', minWidth: '700px' }">
|
||||
<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">
|
||||
|
|
@ -61,8 +64,113 @@
|
|||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 普通管理员的筛选 end -->
|
||||
<div style="width: 100%; display: flex; margin-top: 20px" v-else>
|
||||
<div class="colHeader-right">
|
||||
<el-space :size="12" class="colHeader-right-1">
|
||||
<span>标题检索:</span>
|
||||
<el-input v-model="form.keyword" placeholder="输入标题/内容关键字进行搜索(以空格隔开)" class="input-with-select"
|
||||
@keyup.enter="handleSearch" style="width: 500px">
|
||||
<template #append>
|
||||
<el-button icon="Search" @click="handleSearch" />
|
||||
</template>
|
||||
</el-input>
|
||||
|
||||
<!-- <el-button type="primary" icon="Plus" @click="toDetail({}, false)">创建新资讯</el-button> -->
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</el-input>
|
||||
</el-space>
|
||||
|
||||
<div class="colHeader-right-2" style="gap: 10px">
|
||||
<span>信号规则:</span>
|
||||
<el-select v-model="form.includeRuleIds" clearable placeholder="含任一信号规则" multiple size="large"
|
||||
style="width: 180px" filterable @change="signalChange($event, 1)">
|
||||
<el-option v-for="item in signalRulesList" :key="item.id" :value="item.id"
|
||||
:disabled="form.excludeRuleIds?.includes(item.id)" :label="item.ruleName"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="form.excludeRuleIds" clearable placeholder="不含任一信号规则" multiple size="large"
|
||||
style="width: 180px" filterable @change="signalChange($event, 2)">
|
||||
<el-option v-for="item in signalRulesList" :key="item.id" :value="item.id"
|
||||
:disabled="form.includeRuleIds?.includes(item.id)" :label="item.ruleName"></el-option>
|
||||
</el-select>
|
||||
<span>报道时间:</span>
|
||||
<div>
|
||||
<el-date-picker v-model="daterange" type="daterange" range-separator="-"
|
||||
value-format="YYYY-MM-DD" start-placeholder="选择报道时间" end-placeholder="选择报道时间"
|
||||
@change="handleSearch" />
|
||||
</div>
|
||||
|
||||
<div style="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" />
|
||||
<i style="color: #ccc"> - </i>
|
||||
<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>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="colHeader-right-2" style="gap: 10px">
|
||||
<span>媒体来源:</span>
|
||||
<el-select-v2 v-model="form.mediaId" :options="tagSourceList" clearable placeholder="媒体来源"
|
||||
size="large" style="width: 180px" filterable @change="handleSearch" />
|
||||
<span>企业检索:</span>
|
||||
<!-- <el-select
|
||||
v-model="form.companyName"
|
||||
clearable
|
||||
placeholder="请选择"
|
||||
multiple
|
||||
size="large"
|
||||
style="width: 180px"
|
||||
filterable
|
||||
@change="handleSearch"
|
||||
>
|
||||
<el-option>是</el-option>
|
||||
<el-option>否</el-option>
|
||||
</el-select> -->
|
||||
|
||||
<el-select class="search-input" popper-class="option-box" v-model="form.companyName" clearable
|
||||
filterable remote reserve-keyword remote-show-suffix default-first-option
|
||||
:suffix-icon="Search" placeholder="输入企业名称/企业简称/证券编码进行搜索" :loading="loading"
|
||||
:remote-method="getCompany" @change="getData" style="width: 180px">
|
||||
<el-option v-for="item in companyList" :key="item.companyName" :label="item.companyName"
|
||||
:value="item.companyName"> </el-option>
|
||||
</el-select>
|
||||
|
||||
<span>独家资讯:</span>
|
||||
<el-select v-model="form.exclusive" clearable placeholder="是否独家搜索" size="large"
|
||||
style="width: 180px" filterable @change="handleSearch">
|
||||
<el-option :value="1" label="是"></el-option>
|
||||
<el-option :value="0" label="否"></el-option>
|
||||
</el-select>
|
||||
|
||||
<span>删除状态:</span>
|
||||
<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>
|
||||
|
||||
<el-button type="primary" @click="restData">清空条件</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -71,11 +179,71 @@
|
|||
: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>
|
||||
<div style="display: flex; flex-direction: column; gap: 5px; padding: 10px 0">
|
||||
<div>
|
||||
<span style="color: red; font-weight: bold; margin-right: 3px"
|
||||
v-if="scope.row.exclusive == 1">[独家]</span>
|
||||
<span class="cursor-pointer" @click="goDetail(1, scope.row, true)"
|
||||
v-html="scope.row.title"></span>
|
||||
</div>
|
||||
|
||||
<div class="labels" v-if="Session.get('userInfoLocal').userType == '00'">
|
||||
<div class="label_item" v-if="scope.row.companyName && scope.row.companyName.length > 0">
|
||||
{{ scope.row.companyName }}
|
||||
</div>
|
||||
<!-- <div v-for="company in scope.row.companys" :key="company" class="label_item">
|
||||
{{ company }}
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="labels" v-if="Session.get('userInfoLocal').userType == '00'">
|
||||
<!-- <div v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0" class="label_item_box">
|
||||
<div v-for="item in scope.row.conceptLabels" :key="item" class="label_item" style="background-color: #eee6cd">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0" class="label_item_box">
|
||||
<div v-for="item in scope.row.industryLabels" :key="item" class="label_item" style="background-color: #cfdcf3">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div style="background-color: #eee6cd" class="label_item"
|
||||
v-if="scope.row.conceptLabels && scope.row.conceptLabels.length > 0">
|
||||
{{ scope.row.conceptLabels[0] }}
|
||||
</div>
|
||||
<div style="background-color: #cfdcf3" class="label_item"
|
||||
v-if="scope.row.industryLabels && scope.row.industryLabels.length > 0">
|
||||
{{ scope.row.industryLabels[0] }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="信号规则" align="center" width="120"
|
||||
v-if="Session.get('userInfoLocal').userType == '00'">
|
||||
<template v-slot="scope">
|
||||
<div v-if="scope.row.ruleName && scope.row.ruleName.length > 0">
|
||||
<div v-for="item in scope.row.ruleName" :key="item" class="label_item">
|
||||
{{ item }}
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="媒体来源" align="center" width="120"
|
||||
v-if="Session.get('userInfoLocal').userType == '00'">
|
||||
<template v-slot="scope">
|
||||
<div v-if="scope.row.sourceName">
|
||||
{{ scope.row.sourceName }}
|
||||
</div>
|
||||
<div v-else>-</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- :show-overflow-tooltip="true" -->
|
||||
<el-table-column prop="status" align="center" width="120">
|
||||
<template #header>
|
||||
<el-dropdown trigger="click" @command="handleCommand">
|
||||
|
|
@ -348,6 +516,7 @@ import DetailDrawer from './DetailDrawer/index.vue';
|
|||
import {
|
||||
doNewRevoke,
|
||||
doNewSubmit,
|
||||
searchCompany,
|
||||
getNews,
|
||||
doNewsPublish,
|
||||
doDeleteNews,
|
||||
|
|
@ -358,6 +527,7 @@ import {
|
|||
doRecover,
|
||||
doNewCheck,
|
||||
doNewReturn,
|
||||
getSignalRules,
|
||||
} from '/@/api/api';
|
||||
import { highlightTitle } from '/@/utils/highlight';
|
||||
import clipboard from 'clipboard';
|
||||
|
|
@ -461,6 +631,8 @@ async function getData() {
|
|||
dateline_from: _sdate || undefined,
|
||||
dateline_to: _edate || undefined,
|
||||
range: Session.get('userInfoLocal').userType == '01' ? 'review' : Session.get('userInfoLocal').userType == '02' ? 'secondReview' : 'all',
|
||||
includeRuleIds: includeRuleIds.value,
|
||||
excludeRuleIds: excludeRuleIds.value,
|
||||
});
|
||||
tableLoading.value = false;
|
||||
if (code == 200) {
|
||||
|
|
@ -477,6 +649,21 @@ async function getData() {
|
|||
}
|
||||
});
|
||||
item.title = highlightTitle(item.title, form.value.keyword);
|
||||
|
||||
// item.companys = [
|
||||
// "英伟达",
|
||||
// "微软",
|
||||
// ]
|
||||
|
||||
// item.labels = [
|
||||
// "新科技-人工智能",
|
||||
// "新科技-人工智能",
|
||||
// ]
|
||||
|
||||
// item.signalNames = [
|
||||
// "信号规则1",
|
||||
// "信号规则2",
|
||||
// ]
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
@ -683,7 +870,9 @@ const isScoreShow = ref(false);
|
|||
const curScore = ref(0);
|
||||
const scoreDetail = ref<any>({});
|
||||
const isAdmin = computed(() => {
|
||||
return route.query.admin == 'superman' || Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01' ? true : false;
|
||||
return route.query.admin == 'superman' || Session.get('userInfoLocal').userType == '02' || Session.get('userInfoLocal').userType == '01'
|
||||
? true
|
||||
: false;
|
||||
});
|
||||
async function getScoreDetail(id: any) {
|
||||
if (!isAdmin.value) return;
|
||||
|
|
@ -750,6 +939,15 @@ function restData() {
|
|||
tableRef.value.clearSort();
|
||||
|
||||
tableData.page = 1;
|
||||
|
||||
form.value.includeRuleIds = null;
|
||||
form.value.excludeRuleIds = null;
|
||||
|
||||
includeRuleIds.value = null;
|
||||
excludeRuleIds.value = null;
|
||||
form.value.companyName = null;
|
||||
form.value.exclusive = null;
|
||||
|
||||
getData();
|
||||
}
|
||||
|
||||
|
|
@ -792,6 +990,63 @@ async function doNewReturnFn(item) {
|
|||
}
|
||||
}
|
||||
|
||||
const signalRulesList = ref([
|
||||
{
|
||||
label: '全部',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
label: '全部1',
|
||||
value: 2,
|
||||
},
|
||||
]);
|
||||
|
||||
async function getSignalRulesFn() {
|
||||
let { code, data } = await getSignalRules({});
|
||||
if (code == 200) {
|
||||
signalRulesList.value = data;
|
||||
}
|
||||
}
|
||||
const includeRuleIds = ref('');
|
||||
const excludeRuleIds = ref('');
|
||||
|
||||
function signalChange(event, type) {
|
||||
console.log('🚀 ~ signalChange ~ event:', event);
|
||||
if (type == 1) {
|
||||
// form.value.signalId1 = signalId1.value;
|
||||
includeRuleIds.value = event.join(',');
|
||||
// excludeRuleIds.value = null;
|
||||
} else {
|
||||
// form.value.signalId2 = signalId2.value;
|
||||
excludeRuleIds.value = event.join(',');
|
||||
// includeRuleIds.value = null;
|
||||
}
|
||||
|
||||
getData();
|
||||
}
|
||||
|
||||
import { debounce } from '/@/utils/utils';
|
||||
|
||||
const companyList = ref([]);
|
||||
const getCompany = debounce(async (val: string) => {
|
||||
// if (!val) {
|
||||
// return;
|
||||
// }
|
||||
let { code, data } = await searchCompany({
|
||||
companyName: val,
|
||||
});
|
||||
|
||||
if (code == 200) {
|
||||
companyList.value = data;
|
||||
// data.forEach((item) => {
|
||||
// companyList.value.push({
|
||||
// label: item.companyName,
|
||||
// value: item.companyName,
|
||||
// });
|
||||
// });
|
||||
}
|
||||
}, 500);
|
||||
|
||||
// 页面加载时
|
||||
onMounted(async () => {
|
||||
if (isMobileByWidth() && (Session.get('userInfoLocal').userType == '01' || Session.get('userInfoLocal').userType == '02')) {
|
||||
|
|
@ -818,6 +1073,11 @@ onMounted(async () => {
|
|||
}
|
||||
});
|
||||
}
|
||||
if (Session.get('userInfoLocal').userType == '00') {
|
||||
getSignalRulesFn();
|
||||
}
|
||||
|
||||
getCompany();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -912,15 +1172,51 @@ onMounted(async () => {
|
|||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
min-width: 700px;
|
||||
// align-items: flex-end;
|
||||
// min-width: 700px;
|
||||
|
||||
.colHeader-right-1,
|
||||
.colHeader-right-2 {
|
||||
display: flex;
|
||||
justify-self: flex-end;
|
||||
// justify-self: flex-end;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.labels {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.label_item {
|
||||
height: 24px;
|
||||
background: #f6f6f6;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #e2e2e2;
|
||||
padding: 0 5px;
|
||||
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
color: #656363;
|
||||
line-height: 16px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
|
||||
display: flex;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.label_item_box {
|
||||
// width: 100%;
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue