Commit 1035b2c8 authored by liang's avatar liang

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

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