This commit is contained in:
duanxiaohai 2024-10-17 16:09:02 +08:00
parent 518d105d90
commit 68dd704226
4 changed files with 52 additions and 29 deletions

View File

@ -3,7 +3,7 @@ import { ElMessage } from "element-plus";
import tools from "@/utils/tools"; import tools from "@/utils/tools";
import router from "../router"; import router from "../router";
// axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/' axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/'
axios.defaults.timeout = 120000; axios.defaults.timeout = 120000;
// HTTP request 拦截器 // HTTP request 拦截器

View File

@ -116,7 +116,9 @@
</template> </template>
</el-table> </el-table>
</div> </div>
<div class="lampMessage">工作日早上8:30自动推送浙政钉</div> <div class="lampMessage">
每周或每月第一个工作日自动推送浙政钉通知
</div>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -277,6 +279,12 @@ watch(
} }
return name; return name;
} }
function maskYwfzr(ywfzr) {
// 使
return ywfzr.replace(
/([^,]+)/g,(match, name) => `${maskName(name.trim())}`
);
}
if (props.tableData.data.wxs.length > 0) { if (props.tableData.data.wxs.length > 0) {
props.tableData.data.wxs.forEach((item, index) => { props.tableData.data.wxs.forEach((item, index) => {
let obj = { let obj = {
@ -284,7 +292,7 @@ watch(
bzlx: item.bzlx, bzlx: item.bzlx,
qtbm: item.qtbm, qtbm: item.qtbm,
zrks: item.zrks, zrks: item.zrks,
ywfzr: maskName(item.ywfzr), ywfzr: maskYwfzr(item.ywfzr),
fgldsj: item.fgldsj.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"), fgldsj: item.fgldsj.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"),
}; };
data.tableData.push(obj); data.tableData.push(obj);
@ -298,7 +306,7 @@ watch(
bzlx: item.bzlx, bzlx: item.bzlx,
qtbm: item.qtbm, qtbm: item.qtbm,
zrks: item.zrks, zrks: item.zrks,
ywfzr: maskName(item.ywfzr), ywfzr: maskYwfzr(item.ywfzr),
// fgldsj: item.fgldsj, // fgldsj: item.fgldsj,
fgldsj: item.fgldsj.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"), fgldsj: item.fgldsj.replace(/^(\d{3})\d{4}(\d{4})$/, "$1****$2"),
}; };

View File

@ -54,24 +54,27 @@
</div> </div>
<div class="item" style="margin-top: 20px"> <div class="item" style="margin-top: 20px">
<div class="item_title">详情描述</div> <div class="item_title">详情描述</div>
<div class="item_content"> <div class="item_content item_contents">
<div class="item_content_item"> <div class="item_content_item">
<div class="item_content_item_title">输入</div> <div class="item_content_item_title">输入</div>
<div class="item_content_item_content"> <div
{{ data.content.srsj }} class="item_content_item_content"
</div> v-html="formatContent(data.content.srsj)"
></div>
</div> </div>
<div class="item_content_item"> <div class="item_content_item">
<div class="item_content_item_title">对比逻辑</div> <div class="item_content_item_title">对比逻辑</div>
<div class="item_content_item_content"> <div
{{ data.content.bdlj }} class="item_content_item_content"
</div> v-html="formatContent(data.content.bdlj)"
></div>
</div> </div>
<div class="item_content_item"> <div class="item_content_item">
<div class="item_content_item_title">输出</div> <div class="item_content_item_title">输出</div>
<div class="item_content_item_content"> <div
{{ data.content.scjg }} class="item_content_item_content"
</div> v-html="formatContent(data.content.scjg)"
></div>
</div> </div>
</div> </div>
</div> </div>
@ -80,7 +83,7 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script setup> <script setup>
import { import {
onMounted, onMounted,
reactive, reactive,
@ -129,7 +132,10 @@ const data = reactive({
title: "", title: "",
content: {}, content: {},
}); });
const formatContent = (content) => {
// \n <br>
return content.replace(/\n/g, "<br>");
};
// //
watch( watch(
() => props.dialogShow, () => props.dialogShow,
@ -158,7 +164,7 @@ const handle = (current) => {
emit("handle", current); emit("handle", current);
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
:deep(.el-dialog) { :deep(.el-dialog) {
--el-dialog-bg-color: none; --el-dialog-bg-color: none;
--el-dialog-width: 50% !important; --el-dialog-width: 50% !important;
@ -251,8 +257,8 @@ const handle = (current) => {
width: 100%; width: 100%;
.item_title { .item_title {
font-family: PingFangSC, PingFang SC; font-family: PingFangSC, PingFang SC;
font-weight: 500; font-weight: 600;
font-size: 16px; font-size: 18px;
color: #ffffff; color: #ffffff;
line-height: 22px; line-height: 22px;
letter-spacing: 3px; letter-spacing: 3px;
@ -270,12 +276,16 @@ const handle = (current) => {
letter-spacing: 3px; letter-spacing: 3px;
color: #ffffff; color: #ffffff;
line-height: 22px; line-height: 22px;
height: 144px;
overflow-y: auto;
.item_content_item { .item_content_item {
width: 100%; width: 100%;
display: flex; display: flex;
margin-bottom: 20px; margin-bottom: 20px;
box-sizing: border-box; box-sizing: border-box;
.item_content_item_title { .item_content_item_title {
font-weight: 600;
font-size: 17px;
width: 100px; width: 100px;
margin-right: 10px; margin-right: 10px;
} }
@ -287,6 +297,11 @@ const handle = (current) => {
margin-bottom: 0px; margin-bottom: 0px;
} }
} }
.item_contents {
height: 360px;
}
::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
} }
</style> </style>

View File

@ -139,10 +139,10 @@ const data = reactive({
jtysqyl: "49.37", jtysqyl: "49.37",
}, // }, //
jsbgl: [], // jsbgl: [], //
fyglrs: {}, // // fyglrs: {}, //
jktj: {}, //65 // jktj: {}, //65
jkhd: [], // // jkhd: [], //
lxbx: {}, // // lxbx: {}, //
}); });
const showEchart = ref(false); const showEchart = ref(false);
@ -152,12 +152,12 @@ const getData = async () => {
data.medicalInsurance = res.data.medicalInsurance; data.medicalInsurance = res.data.medicalInsurance;
data.lmb = res.data.lmb; data.lmb = res.data.lmb;
data.mz = res.data.mz; data.mz = res.data.mz;
// data.jkda = res.data.jkda; data.jkda = res.data.jkda;
data.jsbgl = res.data.jsbgl; data.jsbgl = res.data.jsbgl;
data.fyglrs = res.data.fyglrs; // data.fyglrs = res.data.fyglrs;
data.jktj = res.data.jktj; // data.jktj = res.data.jktj;
data.jkhd = res.data.jkhd; // data.jkhd = res.data.jkhd;
data.lxbx = res.data.lxbx; // data.lxbx = res.data.lxbx;
showEchart.value = true; showEchart.value = true;
} }
}); });