feat(richedit): 添加独家标记功能

在文章列表和详情页添加独家标记显示和编辑功能
This commit is contained in:
34701892@qq.com 2025-11-11 15:03:01 +08:00
parent e7563ae8be
commit 35ca949882
3 changed files with 23 additions and 5 deletions

View File

@ -116,6 +116,13 @@
<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">
<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">
@ -253,6 +260,7 @@ const form = ref({
},
rating: 0,
showEverything: true,
exclusive: 0,
});
/********************step1 start *************************/
//
@ -563,7 +571,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);
}

View File

@ -83,8 +83,12 @@
<el-table-column prop="title" label="标题" align="left" width="380">
<template v-slot="scope">
<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 v-for="company in scope.row.companys" :key="company" class="label_item">

View File

@ -87,8 +87,12 @@
<el-table-column prop="title" label="标题" align="left" width="380">
<template v-slot="scope">
<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 v-for="company in scope.row.companys" :key="company" class="label_item">