Commit 1035b2c8 authored by liang's avatar liang

首页通告修改 随访质控bug修复

parent e7cc4f5a
......@@ -24,9 +24,10 @@
>
<div class="left">
<div class="circle"></div>
<span class="isTop" v-if="item.isTop">置顶</span>
{{ item.articleTitle }}
</div>
<div class="right">{{ item.createTime }}11</div>
<div class="right">{{ item.createTime }}</div>
</li>
</ul>
</el-tab-pane>
......@@ -249,6 +250,20 @@ export default {
title: "学术动态",
},
],
noticeTopList: [
{
articleTitle: "申请加入国家消化道早癌防治中心联盟",
createTime: "2022-09-20",
isTop: 1,
moduleType: 99,
},
{
articleTitle: "GECA联盟理事及医院名单",
createTime: "2022-11-20",
isTop: 1,
moduleType: 99,
},
],
noticeList: [],
curTab: "1",
listLoading: false,
......@@ -321,7 +336,7 @@ export default {
},
methods: {
setPdf(item) {
if (item.moduleType === 2) {
if (item.moduleType === 99) {
this.isNotice = true
return
}
......@@ -349,7 +364,12 @@ export default {
.then((res) => {
if (res.code == 1) {
if (["1", "2", "3"].includes(moduleType)) {
this.noticeList = [...res.data.records]
const d = res.data.records
if (moduleType === "2") {
this.noticeList = [...this.noticeTopList, ...d]
} else {
this.noticeList = [...d]
}
}
if (["6"].includes(moduleType)) {
this.exampleList = [...res.data.records]
......@@ -424,6 +444,14 @@ export default {
.left {
display: flex;
align-items: center;
.isTop {
width: 40px;
height: 20px;
padding: 2px 5px;
color: #7085fe;
background: rgba(112, 133, 254, 0.1);
border-radius: 1px;
}
.circle {
width: 4px;
height: 4px;
......
......@@ -51,29 +51,25 @@ export default {
list: [
{
id: 1,
url:
"http://www.ncrcgastro.org/d/file/coordination/apply/2020-05-27/67235e21623910e9e0c04f23fa3314d6.docx",
url: "/geca-api/disease-data/file/info/geca2/notice-00000001.docx",
label: "国家消化道早癌防治中心”(早期胃癌筛查项目)申请表.docx",
size: "35.7 KB",
},
{
id: 2,
url:
"http://www.ncrcgastro.org/d/file/coordination/apply/2019-06-05/3ecfa10aa09afdf73526d41cda151d0f.pdf",
url: "/geca-api/disease-data/file/info/geca2/notice-00000002.pdf",
label: "早期胃癌筛查项目 申请表填写标准(1).pdf",
size: "351 KB",
},
{
id: 3,
url:
"http://www.ncrcgastro.org/d/file/coordination/apply/2019-06-05/a18cf8ea29d870da693ea8bd79d2ce33.docx",
url: "/geca-api/disease-data/file/info/geca2/notice-00000003.docx",
label: "信息系统账号申请表(2).docx",
size: "22 KB",
},
{
id: 4,
url:
"http://www.ncrcgastro.org/d/file/coordination/apply/2019-06-12/206be4b4d462aa5812dbba723e69f518.docx",
url: "/geca-api/disease-data/file/info/geca2/notice-00000004.docx",
label: "GECA联盟申请Q&A问答汇总.docx",
size: "216 KB",
},
......@@ -82,11 +78,15 @@ export default {
},
methods: {
download({ url, label }) {
const prefix =
process.env.NODE_ENV === "development"
? "https://ds.cixincloud.com/"
: ""
const el = document.createElement("a")
el.download = label
el.target = "_blank"
el.style.display = "none"
el.href = url
el.href = prefix + url
document.body.appendChild(el)
el.click()
URL.revokeObjectURL(el.href)
......
......@@ -348,6 +348,7 @@ export default {
.then((res) => {
if (res.code == 1 && res.data) {
func()
this.$refs.publicDialog.dialogVisible = true
} else {
this.loading = false
}
......@@ -394,6 +395,7 @@ export default {
//! 合格提交 checkStatus 合格-3 不合格-4 驳回修改-2 待审核-1
showDialog(val) {
this.curBtn = val
console.log(val)
if (this.editStatus) {
//! 精准编辑
this.$refs.editDialog.dialogVisible = true
......
<template>
<div>
<FollowReview :currentRow="currentRow" titlePosition="top">
<FollowReview :currentRow="currentRow" titlePosition="top" @update="update">
<template #button>
<el-button
style="padding: 8px 20px"
......@@ -29,7 +29,9 @@ export default {
FollowReview,
},
data() {
return {}
return {
isLast: false,
}
},
methods: {
handleEdit() {
......@@ -45,11 +47,16 @@ export default {
},
})
},
update(val) {
this.isLast = val
},
},
computed: {
isShowEdit() {
const { checkStatus, followBatch } = this.currentRow
return followBatch > 0 && checkStatus !== 3 && checkStatus !== 4
return (
this.isLast && followBatch > 0 && checkStatus !== 3 && checkStatus !== 4
)
},
},
}
......
......@@ -147,6 +147,9 @@ export default {
},
immediate: true,
},
activeTab(val) {
this.$emit("update", val == this.followList.length)
},
},
methods: {
getLogList() {
......@@ -195,9 +198,9 @@ export default {
const len = this.followList.length
this.activeTab = String(len)
const el = this.$refs["follow-tab"]
if (el && len > 10) {
if (el && len > 11) {
setTimeout(() => {
el.scrollTop = (len - 10) * 60
el.scrollTop = (len - 11) * 52
}, 0)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment