提交 30acf543 authored 作者: 张伊明's avatar 张伊明

法案、政令、清单、智库新增写报跳转,写报修改样式

上级 463ca4d8
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<!-- 导航菜单 --> <!-- 导航菜单 -->
<div class="layout-main"> <div class="layout-main">
<div class="header-main"> <div class="header-main">
<div class="layout-main-header"> <div class="layout-main-header">
<div class="layout-main-header-left-box"> <div class="layout-main-header-left-box">
<div class="left-box-top"> <div class="left-box-top">
...@@ -12,9 +11,7 @@ ...@@ -12,9 +11,7 @@
</div> </div>
<div class="info"> <div class="info">
<div class="info-box1">{{ billInfoGlobal.billName }}</div> <div class="info-box1">{{ billInfoGlobal.billName }}</div>
<div class="info-box2"> <div class="info-box2">{{ billInfoGlobal.description }} {{ billInfoGlobal.billNameEn }}</div>
{{ billInfoGlobal.description }} {{ billInfoGlobal.billNameEn }}
</div>
</div> </div>
</div> </div>
<div class="left-box-bottom"> <div class="left-box-bottom">
...@@ -53,7 +50,7 @@ ...@@ -53,7 +50,7 @@
</div> </div>
<div class="text">{{ "查看官网" }}</div> <div class="text">{{ "查看官网" }}</div>
</div> --> </div> -->
<div class="btn3"> <div class="btn3" @click="handleAnalysisClick">
<div class="icon"> <div class="icon">
<img src="./assets/icons/btn-icon3.png" alt="" /> <img src="./assets/icons/btn-icon3.png" alt="" />
</div> </div>
...@@ -150,7 +147,6 @@ import icon4 from "./assets/icons/icon4.svg"; ...@@ -150,7 +147,6 @@ import icon4 from "./assets/icons/icon4.svg";
import icon4Active from "./assets/icons/icon4_active.svg"; import icon4Active from "./assets/icons/icon4_active.svg";
import USALogo from "./assets/images/USA-logo.png"; import USALogo from "./assets/images/USA-logo.png";
// 法案原文 // 法案原文
const billFullText = ref(""); const billFullText = ref("");
const getBillFullTextFn = async () => { const getBillFullTextFn = async () => {
...@@ -213,7 +209,7 @@ const mainHeaderBtnList = ref([ ...@@ -213,7 +209,7 @@ const mainHeaderBtnList = ref([
activeIcon: icon2Active, activeIcon: icon2Active,
name: "深度挖掘", name: "深度挖掘",
path: "/billLayout/deepDig" path: "/billLayout/deepDig"
}, }
// { // {
// icon: icon3, // icon: icon3,
// activeIcon: icon3Active, // activeIcon: icon3Active,
...@@ -241,6 +237,16 @@ const handleClickMainHeaderBtn = item => { ...@@ -241,6 +237,16 @@ const handleClickMainHeaderBtn = item => {
}); });
}; };
const handleAnalysisClick = () => {
router.push({
path: "/writtingAsstaint",
query: {
topic: "法案",
fileId: route.query.billId
}
});
};
onMounted(() => { onMounted(() => {
getBillInfoGlobalFn(); getBillInfoGlobalFn();
if (window.sessionStorage.getItem("activeTitle")) { if (window.sessionStorage.getItem("activeTitle")) {
...@@ -375,7 +381,6 @@ onMounted(() => { ...@@ -375,7 +381,6 @@ onMounted(() => {
// margin-right: 150px; // margin-right: 150px;
// margin-top: 19px; // margin-top: 19px;
.right-box-top { .right-box-top {
height: 64px; height: 64px;
display: flex; display: flex;
align-items: right; align-items: right;
......
...@@ -3,23 +3,29 @@ ...@@ -3,23 +3,29 @@
<!-- 导航菜单 --> <!-- 导航菜单 -->
<div class="layout-main"> <div class="layout-main">
<div class="header-main"> <div class="header-main">
<div class="layout-main-header"> <div class="layout-main-header">
<div class="layout-main-header-container"> <div class="layout-main-header-container">
<div class="layout-main-header-left-box"> <div class="layout-main-header-left-box">
<div class="left-box-top"> <div class="left-box-top">
<div class="icon"> <div class="icon">
<img
<img v-if="summaryInfo.imageUrl" :src="summaryInfo.imageUrl" alt="" style="height: 40px;margin-top: 12px;"/> v-if="summaryInfo.imageUrl"
:src="summaryInfo.imageUrl"
alt=""
style="height: 40px; margin-top: 12px"
/>
<img v-else :src="USALogo" alt="" /> <img v-else :src="USALogo" alt="" />
</div> </div>
<div class="info"> <div class="info">
<div class="info-box1">{{ summaryInfo.name }}</div> <div class="info-box1">{{ summaryInfo.name }}</div>
<div class="info-box2"> <div class="info-box2">
<div class="info-box2-item item1" v-if="summaryInfo.order">{{ summaryInfo.order +" | "}}</div> <div class="info-box2-item item1" v-if="summaryInfo.order">
{{ summaryInfo.order + " | " }}
</div>
<div class="info-box2-item item2" v-if="summaryInfo.type">{{ summaryInfo.type + " | " }}</div> <div class="info-box2-item item2" v-if="summaryInfo.type">
{{ summaryInfo.type + " | " }}
</div>
<div class="info-box2-item item3" v-if="summaryInfo.ename">{{ summaryInfo.ename }}</div> <div class="info-box2-item item3" v-if="summaryInfo.ename">{{ summaryInfo.ename }}</div>
</div> </div>
</div> </div>
...@@ -54,7 +60,7 @@ ...@@ -54,7 +60,7 @@
</div> </div>
<div class="text">{{ "政令原文" }}</div> <div class="text">{{ "政令原文" }}</div>
</div> </div>
<div class="btn-active"> <div class="btn-active" @click="handleAnalysisClick">
<div class="icon-active"> <div class="icon-active">
<img src="./assets/icons/edit-icon.png" alt="" /> <img src="./assets/icons/edit-icon.png" alt="" />
</div> </div>
...@@ -265,6 +271,16 @@ const handleShowReport = () => { ...@@ -265,6 +271,16 @@ const handleShowReport = () => {
window.open(curRoute.href, "_blank"); window.open(curRoute.href, "_blank");
}; };
const handleAnalysisClick = () => {
router.push({
path: "/writtingAsstaint",
query: {
topic: "政令",
fileId: route.query.id
}
});
};
onMounted(() => { onMounted(() => {
handleGetSummary(); handleGetSummary();
console.log(route.path); console.log(route.path);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="entity-list"> <div class="entity-list">
<div class="header"> <div class="header">
<div class="header-title"> <div class="header-title">
<img :src="headerTitle.img" alt=""> <img :src="headerTitle.img" alt="" />
<div> <div>
<div class="title"> <div class="title">
{{ headerTitle.title }} {{ headerTitle.title }}
...@@ -12,9 +12,7 @@ ...@@ -12,9 +12,7 @@
{{ headerTitle.department }} {{ headerTitle.department }}
</div> </div>
</div> </div>
<div class="btn"> <div class="btn"><img :src="icon01" alt="" />切换</div>
<img :src="icon01" alt="">切换
</div>
</div> </div>
<div class="header-nav"> <div class="header-nav">
<div <div
...@@ -24,21 +22,24 @@ ...@@ -24,21 +22,24 @@
:class="{ active: activeIndex === index }" :class="{ active: activeIndex === index }"
@click="activeIndex = index" @click="activeIndex = index"
> >
<img :src="activeIndex === index ? item.imgActive : item.img" alt=""> <img :src="activeIndex === index ? item.imgActive : item.img" alt="" />
<span>{{ item.title }}</span> <span>{{ item.title }}</span>
<div class="active-line" v-if="activeIndex === index"></div> <div class="active-line" v-if="activeIndex === index"></div>
</div> </div>
<div class="original-text-btn" @click="handleClickOriginalText"> <div class="original-text-btn" @click="handleClickOriginalText">
<img :src="icon1" alt=""> <img :src="icon1" alt="" />
<span>实体清单原文</span> <span>实体清单原文</span>
</div> </div>
<div class="btn3" @click="handleAnalysisClick">
<div class="icon">
<img src="./assets/btn-icon3.png" alt="" />
</div>
<div class="text">{{ "分析报告" }}</div>
</div>
</div> </div>
</div> </div>
<div class="main"> <div class="main">
<sanctions-overview <sanctions-overview v-if="activeIndex === 0" :data="singleSanctionOverview"></sanctions-overview>
v-if="activeIndex === 0"
:data="singleSanctionOverview"
></sanctions-overview>
<data-statistics v-if="activeIndex === 1"></data-statistics> <data-statistics v-if="activeIndex === 1"></data-statistics>
<deep-mining v-if="activeIndex === 2"></deep-mining> <deep-mining v-if="activeIndex === 2"></deep-mining>
<impact-analysis v-if="activeIndex === 3"></impact-analysis> <impact-analysis v-if="activeIndex === 3"></impact-analysis>
...@@ -47,15 +48,15 @@ ...@@ -47,15 +48,15 @@
</template> </template>
<script setup> <script setup>
import { ref, onMounted } from 'vue' import { ref, onMounted } from "vue";
import sanctionsOverview from "./components/sanctionsOverview/index.vue" import sanctionsOverview from "./components/sanctionsOverview/index.vue";
import dataStatistics from "./components/dataStatistics/index.vue" import dataStatistics from "./components/dataStatistics/index.vue";
import deepMining from "./components/deepMining/index.vue" import deepMining from "./components/deepMining/index.vue";
import impactAnalysis from "./components/impactAnalysis/index.vue" import impactAnalysis from "./components/impactAnalysis/index.vue";
import title from "./assets/title.png" import title from "./assets/title.png";
import icon01 from "./assets/icon01.png" import icon01 from "./assets/icon01.png";
import icon1 from "../assets/icons/icon1.png"; import icon1 from "../assets/icons/icon1.png";
import icon1Active from "../assets/icons/icon1_active.png"; import icon1Active from "../assets/icons/icon1_active.png";
import icon5 from "../assets/icons/icon5.png"; import icon5 from "../assets/icons/icon5.png";
...@@ -65,32 +66,33 @@ import icon2Active from "../assets/icons/icon2_active.png"; ...@@ -65,32 +66,33 @@ import icon2Active from "../assets/icons/icon2_active.png";
import icon3 from "../assets/icons/icon3.png"; import icon3 from "../assets/icons/icon3.png";
import icon3Active from "../assets/icons/icon3_active.png"; import icon3Active from "../assets/icons/icon3_active.png";
import { getSingleSanctionOverview } from "@/api/exportControlV2.0.js" import { getSingleSanctionOverview } from "@/api/exportControlV2.0.js";
import router from "@/router";
// 处理点击实体清单原文按钮 // 处理点击实体清单原文按钮
const handleClickOriginalText = () => { const handleClickOriginalText = () => {
// 打开新标签页 // 打开新标签页
window.open(`/exportControl/origin?id=${sanRecordId.value}`, "_blank") window.open(`/exportControl/origin?id=${sanRecordId.value}`, "_blank");
} };
// 获取URL参数 // 获取URL参数
const sanRecordId = ref("") const sanRecordId = ref("");
const getUrlParams = () => { const getUrlParams = () => {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
sanRecordId.value = urlParams.get("id") || "" sanRecordId.value = urlParams.get("id") || "";
} };
// console.log(sanRecordId.value) // console.log(sanRecordId.value)
// 单次制裁-制裁概况-基本信息 // 单次制裁-制裁概况-基本信息
const singleSanctionOverview = ref({}) const singleSanctionOverview = ref({});
const getSingleSanctionOverviewData = async () => { const getSingleSanctionOverviewData = async () => {
if (!sanRecordId.value) return if (!sanRecordId.value) return;
try { try {
const res = await getSingleSanctionOverview({ const res = await getSingleSanctionOverview({
sanRecordId: sanRecordId.value sanRecordId: sanRecordId.value
}) });
if (res.code === 200) { if (res.code === 200) {
singleSanctionOverview.value = res.data || {} singleSanctionOverview.value = res.data || {};
// 格式化日期 // 格式化日期
let dateStr = ""; let dateStr = "";
...@@ -109,20 +111,18 @@ const getSingleSanctionOverviewData = async () => { ...@@ -109,20 +111,18 @@ const getSingleSanctionOverviewData = async () => {
title: `${dateStr}${singleSanctionOverview.value.sanTitleZh || singleSanctionOverview.value.sanTitle}》`, title: `${dateStr}${singleSanctionOverview.value.sanTitleZh || singleSanctionOverview.value.sanTitle}》`,
titleEn: singleSanctionOverview.value.sanTitle || "", titleEn: singleSanctionOverview.value.sanTitle || "",
department: singleSanctionOverview.value.fileCode || "" department: singleSanctionOverview.value.fileCode || ""
} };
} }
} catch (error) { } catch (error) {
console.error("获取制裁概况失败:", error) console.error("获取制裁概况失败:", error);
} }
} };
const headerTitle = ref({ const headerTitle = ref({
img: title, img: title
}) });
const activeIndex = ref(0) const activeIndex = ref(0);
const headerNavList = ref([ const headerNavList = ref([
{ {
...@@ -145,25 +145,34 @@ const headerNavList = ref([ ...@@ -145,25 +145,34 @@ const headerNavList = ref([
imgActive: icon3Active, imgActive: icon3Active,
title: "影响分析" title: "影响分析"
} }
]) ]);
const handleAnalysisClick = () => {
router.push({
path: "/writtingAsstaint",
query: {
topic: "清单",
fileId: singleSanctionOverview.value.postDate
}
});
};
onMounted(() => { onMounted(() => {
getUrlParams() getUrlParams();
getSingleSanctionOverviewData() getSingleSanctionOverviewData();
}) });
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
*{ * {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.entity-list{ .entity-list {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
.header{ .header {
width: 100%; width: 100%;
height: 148px; height: 148px;
background-color: #fff; background-color: #fff;
...@@ -172,7 +181,7 @@ onMounted(() => { ...@@ -172,7 +181,7 @@ onMounted(() => {
top: 0; top: 0;
z-index: 1000; z-index: 1000;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
.header-title{ .header-title {
width: 1601px; width: 1601px;
height: 72px; height: 72px;
background-color: rgba(246, 250, 255, 1); background-color: rgba(246, 250, 255, 1);
...@@ -279,7 +288,7 @@ onMounted(() => { ...@@ -279,7 +288,7 @@ onMounted(() => {
margin-left: auto; margin-left: auto;
width: 152px; width: 152px;
height: 36px; height: 36px;
background: #FFFFFF; background: #ffffff;
border-radius: 4px; border-radius: 4px;
border: 1px solid rgba(230, 231, 232, 1); border: 1px solid rgba(230, 231, 232, 1);
display: flex; display: flex;
...@@ -301,13 +310,44 @@ onMounted(() => { ...@@ -301,13 +310,44 @@ onMounted(() => {
line-height: 24px; line-height: 24px;
} }
} }
.btn3 {
cursor: pointer;
width: 120px;
height: 36px;
border-radius: 6px;
background: rgba(5, 95, 194, 1);
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin-left: 8px;
.icon {
width: 16px;
height: 16px;
img {
width: 100%;
height: 100%;
}
}
.text {
height: 24px;
color: rgba(255, 255, 255, 1);
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 400;
line-height: 24px;
letter-spacing: 0px;
text-align: left;
}
}
} }
} }
.main{ .main {
width: 100%; width: 100%;
height: auto; height: auto;
min-height: calc(100% - 148px); min-height: calc(100% - 148px);
background-color: #F7F8F9; background-color: #f7f8f9;
} }
} }
</style> </style>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</div> </div>
<div class="text">{{ "文档下载" }}</div> <div class="text">{{ "文档下载" }}</div>
</div> </div>
<div class="btn btn1"> <div class="btn btn1" @click="handleAnalysisClick">
<div class="icon"> <div class="icon">
<img src="./images/btn-icon4.png" alt="" /> <img src="./images/btn-icon4.png" alt="" />
</div> </div>
...@@ -79,8 +79,9 @@ import { ref, onMounted } from "vue"; ...@@ -79,8 +79,9 @@ import { ref, onMounted } from "vue";
import ReportAnalysis from "./reportAnalysis/index.vue"; import ReportAnalysis from "./reportAnalysis/index.vue";
import PolicyTracking from "./policyTracking/index.vue"; import PolicyTracking from "./policyTracking/index.vue";
import { getThinkTankReportSummary } from "@/api/thinkTank/overview"; import { getThinkTankReportSummary } from "@/api/thinkTank/overview";
import { useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
const router = useRouter(); const router = useRouter();
const route = useRoute();
const reportUrl = ref(""); const reportUrl = ref("");
const thinkInfo = ref({}); const thinkInfo = ref({});
...@@ -113,6 +114,16 @@ const tabActiveName = ref("报告分析"); ...@@ -113,6 +114,16 @@ const tabActiveName = ref("报告分析");
const switchTab = name => { const switchTab = name => {
tabActiveName.value = name; tabActiveName.value = name;
}; };
const handleAnalysisClick = () => {
router.push({
path: "/writtingAsstaint",
query: {
topic: "智库",
fileId: router.currentRoute._value.params.id
}
});
};
onMounted(async () => { onMounted(async () => {
handleGetThinkTankReportSummary(); handleGetThinkTankReportSummary();
}); });
......
...@@ -81,7 +81,10 @@ ...@@ -81,7 +81,10 @@
<div class="template-box"> <div class="template-box">
<div <div
class="template" class="template"
:class="{ tempActive: tempActiveIndex === index }" :class="{
tempActive: tempActiveIndex === index,
disableTemplate: tempActiveIndex !== index && Object.keys(route.query).length > 0
}"
v-for="(temp, index) in tempList" v-for="(temp, index) in tempList"
:key="index" :key="index"
@click="handleClickTemp(temp, index)" @click="handleClickTemp(temp, index)"
...@@ -113,8 +116,13 @@ ...@@ -113,8 +116,13 @@
ref="upload" ref="upload"
:on-change="handleFileChange" :on-change="handleFileChange"
:file-list="uploadFileList" :file-list="uploadFileList"
:disabled="Object.keys(route.query).length !== 0"
>
<el-button
class="sider-upload-btn"
type="primary"
:disabled="Object.keys(route.query).length !== 0"
> >
<el-button class="sider-upload-btn" type="primary">
<el-icon class="sider-upload-btn-text"> <el-icon class="sider-upload-btn-text">
<Upload /> <Upload />
</el-icon> </el-icon>
...@@ -184,14 +192,61 @@ import "@kangc/v-md-editor/lib/theme/style/vuepress.css"; ...@@ -184,14 +192,61 @@ import "@kangc/v-md-editor/lib/theme/style/vuepress.css";
import Prism from "prismjs"; import Prism from "prismjs";
import { ElButton, ElIcon, ElInput, ElMessage, ElUpload, genFileId } from "element-plus"; import { ElButton, ElIcon, ElInput, ElMessage, ElUpload, genFileId } from "element-plus";
VMdEditor.use(vuepressTheme, { import { useRoute } from "vue-router";
Prism const route = useRoute();
});
const isGenerating = ref(false); const isGenerating = ref(false);
const isShowProcess = ref(false); const isShowProcess = ref(false);
const uploadFileList = ref([]); const uploadFileList = ref([]);
const upload = ref(); const upload = ref();
// 流程
const scrollProcessContainer = ref(null);
const processContent = ref("");
// 报文
const scrollContainer = ref(null);
const reportContent = ref("");
const curTempTitle = ref("政令");
const abortController = ref(null);
// 当前调用工具
const curAgentTool = ref("");
const writtingTitle = ref("");
const descText = ref("");
const tabList = ref([
{
name: "写报",
active: true
},
{
name: "收藏",
active: false
},
{
name: "问答",
active: false
}
]);
const tempList = ref([
{
title: "政令",
desc: "基于政令内容生成各维度的综合分析报告"
},
{
title: "法案",
desc: "基于政令内容生成各维度的综合分析报告"
},
{
title: "智库",
desc: "基于智库内容生成各维度的综合分析报告"
},
{
title: "清单",
desc: "基于清单内容生成各维度的综合分析报告"
}
]);
const tempActiveIndex = ref(0);
VMdEditor.use(vuepressTheme, {
Prism
});
//新上传文件替换 //新上传文件替换
const handleExceed = files => { const handleExceed = files => {
...@@ -243,20 +298,9 @@ const saveToLocalStorage = text => { ...@@ -243,20 +298,9 @@ const saveToLocalStorage = text => {
localStorage.setItem("markdown-content", text); localStorage.setItem("markdown-content", text);
}; };
const abortController = ref(null);
const { renderedContent, updateContent } = useMarkdownStream(); const { renderedContent, updateContent } = useMarkdownStream();
const { renderedProcess, updateProcess } = useStream(); const { renderedProcess, updateProcess } = useStream();
// 流程
const scrollProcessContainer = ref(null);
const processContent = ref("");
// 报文
const scrollContainer = ref(null);
const reportContent = ref("");
const curTempTitle = ref("政令");
// 停止生成 // 停止生成
const handleGenerate = () => { const handleGenerate = () => {
isShowProcess.value = false; isShowProcess.value = false;
...@@ -264,10 +308,16 @@ const handleGenerate = () => { ...@@ -264,10 +308,16 @@ const handleGenerate = () => {
abortController.value.abort(); abortController.value.abort();
}; };
// 当前调用工具
const curAgentTool = ref("");
const getStreamChat = async (search, inputValue) => { const getStreamChat = async (search, inputValue) => {
if (Object.keys(route.query).length !== 0) {
const params = {
query: writtingTitle.value, // "输出一篇报文"
desc: descText.value,
topic: curTempTitle.value,
fileId: route.query.fileId // 政令、智库、法案、清单
};
callSseWithAi(params);
} else {
if (curTempTitle.value === "政令") { if (curTempTitle.value === "政令") {
if (uploadFileList.value.length === 0) { if (uploadFileList.value.length === 0) {
ElMessage.error("请上传政令文件"); ElMessage.error("请上传政令文件");
...@@ -287,6 +337,7 @@ const getStreamChat = async (search, inputValue) => { ...@@ -287,6 +337,7 @@ const getStreamChat = async (search, inputValue) => {
}; };
callSseWithAi(params); callSseWithAi(params);
} }
}
}; };
const getFormattedTime = () => { const getFormattedTime = () => {
...@@ -480,44 +531,8 @@ const callSseWithAi = async params => { ...@@ -480,44 +531,8 @@ const callSseWithAi = async params => {
}); });
}; };
const writtingTitle = ref("");
const descText = ref("");
const tabList = ref([
{
name: "写报",
active: true
},
{
name: "收藏",
active: false
},
{
name: "问答",
active: false
}
]);
const tempList = ref([
{
title: "政令",
desc: "基于政令内容生成各维度的综合分析报告"
},
{
title: "法案",
desc: "基于政令内容生成各维度的综合分析报告"
},
{
title: "智库",
desc: "基于智库内容生成各维度的综合分析报告"
},
{
title: "清单",
desc: "基于清单内容生成各维度的综合分析报告"
}
]);
const tempActiveIndex = ref(0);
const handleClickTemp = (item, index) => { const handleClickTemp = (item, index) => {
if (Object.keys(route.query).length !== 0) return;
tempActiveIndex.value = index; tempActiveIndex.value = index;
curTempTitle.value = item.title; curTempTitle.value = item.title;
}; };
...@@ -533,7 +548,16 @@ const exportContent = () => { ...@@ -533,7 +548,16 @@ const exportContent = () => {
URL.revokeObjectURL(url); URL.revokeObjectURL(url);
}; };
onMounted(() => {}); onMounted(() => {
if (route && Object.keys(route.query).length !== 0) {
const { topic, fileId } = route.query;
if (!topic || !fileId) return;
curTempTitle.value = topic;
tempActiveIndex.value = tempList.value.findIndex((item, index) => {
return item.title === topic;
});
}
});
onUnmounted(() => { onUnmounted(() => {
if (abortController.value) { if (abortController.value) {
...@@ -892,6 +916,90 @@ onUnmounted(() => { ...@@ -892,6 +916,90 @@ onUnmounted(() => {
} }
} }
.disableTemplate {
width: 230px;
height: 120px;
box-sizing: border-box;
border: 1px solid #e4e7ed;
border-radius: 4px;
position: relative;
cursor: not-allowed;
background-color: #f5f7fa;
.active-icon {
width: 24px;
height: 24px;
position: absolute;
top: 0;
right: 0;
z-index: 99;
img {
width: 100%;
height: 100%;
}
}
.selected-icon {
width: 8px;
height: 6px;
position: absolute;
top: -4px;
right: 3px;
z-index: 100;
img {
width: 8px;
height: 6px;
}
}
.header {
display: flex;
justify-content: space-between;
height: 50px;
.title {
height: 24px;
color: #c0c4cc;
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 700;
line-height: 24px;
margin-left: 15px;
margin-top: 16px;
}
.icon {
margin-top: 15px;
margin-right: 16px;
width: 30px;
height: 30px;
border-radius: 15px;
background: #f0f2f5;
img {
width: 17px;
height: 14px;
margin-top: 8px;
margin-left: 7px;
opacity: 0.5;
}
}
}
.content {
margin: 0 auto;
width: 200px;
height: 48px;
margin-top: 10px;
color: #dcdfe6;
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
}
.tempActive { .tempActive {
border: 1px solid rgba(5, 95, 194, 1); border: 1px solid rgba(5, 95, 194, 1);
background: rgba(246, 250, 255, 1); background: rgba(246, 250, 255, 1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论