Commit 730d022e authored by liang's avatar liang

Merge branch 'dev' of https://inno.sh-sict.com/gitlab/qq5616657/agcs2.0-web into dev

# Conflicts:
#	src/views/Home/index.vue
parents 1035b2c8 fc8b1546
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
> >
<el-row> <el-row>
<template v-for="(item, index) in formDataSet"> <template v-for="(item, index) in formDataSet">
<el-col <!-- <el-col
v-if="!item.hidden" v-if="!item.hidden"
:span="item.spanCount ? item.spanCount : countLine" :span="item.spanCount ? item.spanCount : countLine"
:key="item.prop" :key="item.prop"
:class="item.class" :class="item.class"
> > -->
<el-form-item <el-form-item
:key="index" :key="index"
:label="item.label ? `${item.label}:` : ''" :label="item.label ? `${item.label}:` : ''"
...@@ -82,10 +82,7 @@ ...@@ -82,10 +82,7 @@
</el-input> </el-input>
<!-- 数字输入框 --> <!-- 数字输入框 -->
<div <div v-if="item.type === 'number'" style="display: inline-table">
v-if="item.type === 'number'"
style="display: inline-table"
>
<el-input-number <el-input-number
:min="item.min" :min="item.min"
:max="item.max" :max="item.max"
...@@ -146,10 +143,9 @@ ...@@ -146,10 +143,9 @@
:disabled="opt.disabled" :disabled="opt.disabled"
> >
<span style="float: left">{{ opt.label }}</span> <span style="float: left">{{ opt.label }}</span>
<span <span style="float: right; color: #8492a6; font-size: 10px">{{
style="float: right; color: #8492a6; font-size: 10px" opt.description
>{{ opt.description }}</span }}</span>
>
</el-option> </el-option>
</el-select> </el-select>
...@@ -267,7 +263,7 @@ ...@@ -267,7 +263,7 @@
form[item.prop] form[item.prop]
}}</span> }}</span>
</el-form-item> </el-form-item>
</el-col> <!-- </el-col> -->
</template> </template>
</el-row> </el-row>
</el-form> </el-form>
...@@ -571,4 +567,8 @@ export default { ...@@ -571,4 +567,8 @@ export default {
.el-autocomplete { .el-autocomplete {
width: 100%; width: 100%;
} }
.el-row {
display: flex;
flex-wrap: wrap;
}
</style> </style>
...@@ -10,16 +10,8 @@ ...@@ -10,16 +10,8 @@
:style="formStyle" :style="formStyle"
@submit.native.prevent="handleSearch()" @submit.native.prevent="handleSearch()"
> >
<el-col <div v-for="(item, index) in forms" :key="index">
v-for="(item, index) in forms" <template v-if="!item.hidden">
v-if="!item.hidden"
:key="index"
:xs="item.xs ? item.xs : 24"
:sm="item.sm ? item.sm : 12"
:md="item.md ? item.md : 8"
:lg="item.lg ? item.lg : 8"
:xl="item.xl ? item.xl : 6"
>
<el-form-item <el-form-item
v-if="item.type != 'btn'" v-if="item.type != 'btn'"
:label="item.label ? item.label + (item.hiddenColon ? '' : ':') : ''" :label="item.label ? item.label + (item.hiddenColon ? '' : ':') : ''"
...@@ -105,6 +97,7 @@ ...@@ -105,6 +97,7 @@
:picker-options="item.options" :picker-options="item.options"
:format="item.format" :format="item.format"
:value-format="item.valueFormat" :value-format="item.valueFormat"
@change="handleSearch"
></el-date-picker> ></el-date-picker>
<!-- 日期 --> <!-- 日期 -->
...@@ -116,6 +109,7 @@ ...@@ -116,6 +109,7 @@
:picker-options="item.options" :picker-options="item.options"
:format="item.format" :format="item.format"
:value-format="item.valueFormat" :value-format="item.valueFormat"
@change="handleSearch"
></el-date-picker> ></el-date-picker>
<!-- 下拉框 --> <!-- 下拉框 -->
...@@ -126,7 +120,7 @@ ...@@ -126,7 +120,7 @@
filterable filterable
:disabled="item.disabled" :disabled="item.disabled"
:placeholder="item.placeholder ? item.placeholder : '请选择'" :placeholder="item.placeholder ? item.placeholder : '请选择'"
@change="item.func ? item.func($event) : {}" @change="item.func ? item.func($event) : handleSearch()"
> >
<el-option <el-option
v-for="(opt, optIndex) in item.opts" v-for="(opt, optIndex) in item.opts"
...@@ -211,8 +205,9 @@ ...@@ -211,8 +205,9 @@
> >
</div> </div>
</template> </template>
</div></template
>
</div> </div>
</el-col>
<el-col v-if="lists" :xs="24" :sm="24" :lg="24" style="padding-left: 120px"> <el-col v-if="lists" :xs="24" :sm="24" :lg="24" style="padding-left: 120px">
<el-button <el-button
...@@ -342,6 +337,8 @@ export default { ...@@ -342,6 +337,8 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.el-form-self { .el-form-self {
display: flex;
flex-wrap: wrap;
width: 100%; width: 100%;
margin: 20px 0; margin: 20px 0;
overflow: hidden; overflow: hidden;
......
...@@ -685,8 +685,8 @@ ...@@ -685,8 +685,8 @@
<template v-if="column.type === 'switch'"> <template v-if="column.type === 'switch'">
<el-switch <el-switch
v-model="scope.row[column.value]" v-model="scope.row[column.value]"
:active-value="1" :active-value="0"
:inactive-value="0" :inactive-value="1"
@change="column.func(scope.row, scope.$index)" @change="column.func(scope.row, scope.$index)"
></el-switch> ></el-switch>
</template> </template>
......
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
type: Number, type: Number,
default: 9, default: 9,
}, },
fileSize: Number, fileSize: { type: Number, default: 10 * 1024 * 1024 },
loadText: String, loadText: String,
showFileList: { showFileList: {
type: Boolean, type: Boolean,
...@@ -186,8 +186,9 @@ export default { ...@@ -186,8 +186,9 @@ export default {
beforeUpload(file) { beforeUpload(file) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const size = this.fileSize const size = this.fileSize
console.log(file.size)
if (size && file.size > size) { if (size && file.size > size) {
this.$message.error("大小超出限制" + this.tip) this.$message.error("文件大小超出限制,请上传10M以下的文件")
reject() reject()
} }
resolve() resolve()
...@@ -213,7 +214,7 @@ export default { ...@@ -213,7 +214,7 @@ export default {
// 移除提醒 // 移除提醒
beforeRemove(file, fileList) { beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.file_name || file.name}?`) // return this.$confirm(`确定移除 ${file.file_name || file.name}?`)
}, },
// 移除 // 移除
......
...@@ -104,10 +104,10 @@ export default { ...@@ -104,10 +104,10 @@ export default {
route: "/allianceintroduction", route: "/allianceintroduction",
name: "联盟介绍", name: "联盟介绍",
}, },
{ // {
route: "/healthpopularization", // route: "/healthpopularization",
name: "健康科普", // name: "健康科普",
}, // },
{ {
route: "/scientificresearch", route: "/scientificresearch",
name: "科学研究", name: "科学研究",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="userInfo"> <div class="userInfo">
<error-log></error-log> <error-log></error-log>
<!-- <avatar></avatar> --> <!-- <avatar></avatar> -->
<div v-if="$route.path != '/auditqualitycontrol'" class="fontSelect"> <div v-if="showFontList.includes($route.path)" class="fontSelect">
<div <div
v-for="(item, index) in fontList" v-for="(item, index) in fontList"
:key="index" :key="index"
...@@ -122,6 +122,25 @@ export default { ...@@ -122,6 +122,25 @@ export default {
return { return {
pulse: false, pulse: false,
isDot: true, isDot: true,
showFontList: [
"/dataoverview",
"/screening/index",
"/screening/draft",
"/followupquery",
"/followupresearch",
"/auditqualitycontrol",
"/field-mapping",
"/systems/form-config",
"/database",
"/systems/colla-group",
"/systems/org",
"/systems/dict",
"/systems/user",
"/systems/role",
"/systems/menu",
"/systems/medicalunion",
"/operation",
],
screeningList: [ screeningList: [
{ {
title: "社区筛查", title: "社区筛查",
......
const state = { const state = {
fontSize: localStorage.getItem("fontSize") || 1, fontSize: localStorage.getItem("fontSize") || 14,
selectedIndex: sessionStorage.getItem("selectedIndex") || "", selectedIndex: sessionStorage.getItem("selectedIndex") || "",
refreshFlag: 0, refreshFlag: 0,
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="list_title"> <div class="list_title">
{{ leftBar[activeBar].name }} {{ leftBar[activeBar].name }}
</div> </div>
<ul class="list" v-if="tableData.length > 0"> <ul v-if="tableData.length > 0" class="list">
<li v-for="(item, index) in tableData" :key="index"> <li v-for="(item, index) in tableData" :key="index">
<div class="leftImg"> <div class="leftImg">
<img <img
...@@ -62,14 +62,19 @@ ...@@ -62,14 +62,19 @@
{{ item }}<span v-if="index != showTitle.length - 1"> / </span> {{ item }}<span v-if="index != showTitle.length - 1"> / </span>
</div> </div>
</div> </div>
{{ showText }} <div class="refuteList">
<!-- <pdf :src="pdfSrc"></pdf> -->
<pdf-view ref="pdfView" :pdf-url="pdfSrc"></pdf-view>
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { articleList } from "@/api/operation-management" import { articleList } from "@/api/operation-management"
import PdfView from "../PdfView/index"
import paginationMixin from "@/components/TabComponents/mixin" import paginationMixin from "@/components/TabComponents/mixin"
export default { export default {
components: { PdfView },
mixins: [paginationMixin], mixins: [paginationMixin],
data() { data() {
return { return {
...@@ -89,7 +94,7 @@ export default { ...@@ -89,7 +94,7 @@ export default {
name: "其他", name: "其他",
}, },
], ],
showText: "", pdfSrc: "",
showTitle: [], showTitle: [],
showDetail: false, showDetail: false,
// 分页数据 // 分页数据
...@@ -97,6 +102,15 @@ export default { ...@@ -97,6 +102,15 @@ export default {
tableData: [], tableData: [],
} }
}, },
watch: {
showDetail(v) {
if (v) {
setTimeout(() => {
this.$refs.pdfView.loadPDF()
}, 250)
}
},
},
mounted() { mounted() {
console.log(this.$route) console.log(this.$route)
if (this.$route.query.tabIndex) { if (this.$route.query.tabIndex) {
...@@ -112,6 +126,7 @@ export default { ...@@ -112,6 +126,7 @@ export default {
size: this.pageSize, size: this.pageSize,
current: this.pageIndex, current: this.pageIndex,
moduleType: "4", moduleType: "4",
status: "1",
articleType: this.activeBar - 0 + 1, articleType: this.activeBar - 0 + 1,
} }
articleList(params) articleList(params)
...@@ -129,19 +144,23 @@ export default { ...@@ -129,19 +144,23 @@ export default {
changeActive(i) { changeActive(i) {
this.activeBar = i this.activeBar = i
this.showDetail = false this.showDetail = false
this.showText = "" this.pdfSrc = ""
this.getArticleList() this.getArticleList()
}, },
viewDetail(i) { viewDetail(i) {
this.showDetail = true this.showDetail = true
this.showText = this.tableData[i].articleContent this.pdfSrc =
"https://ds.cixincloud.com/geca-api/disease-data/file/info/" +
this.tableData[i].filePath[0].bucketName +
"/" +
this.tableData[i].filePath[0].uuidName
this.showTitle[0] = this.leftBar[this.activeBar].name this.showTitle[0] = this.leftBar[this.activeBar].name
this.showTitle[1] = this.tableData[i].articleTitle this.showTitle[1] = this.tableData[i].articleTitle
console.log(this.showText) console.log(this.pdfSrc)
}, },
back(index) { back(index) {
if (index == 0) { if (index == 0) {
this.showText = "" this.pdfSrc = ""
this.showDetail = false this.showDetail = false
} }
}, },
...@@ -268,4 +287,8 @@ export default { ...@@ -268,4 +287,8 @@ export default {
font-family: AlibabaPuHuiTiR; font-family: AlibabaPuHuiTiR;
} }
} }
.refuteList {
height: 100%;
// overflow: auto;
}
</style> </style>
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
left: 0; left: 0;
right: 0; right: 0;
padding: 10px 0; padding: 10px 0;
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 1);
.info { .info {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
......
<template> <template>
<div class="commonList"> <div class="commonList">
<ul class="left_bar"> <!-- <ul class="left_bar">
<li <li
v-for="(item, index) in leftBar" v-for="(item, index) in leftBar"
:key="index" :key="index"
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
> >
{{ item.name }} {{ item.name }}
</li> </li>
</ul> </ul> -->
<div v-loading="listLoading" class="right_list"> <div v-loading="listLoading" class="right_list">
<div class="list_title"> <!-- <div class="list_title">
{{ leftBar[activeBar].name }} {{ leftBar[activeBar].name }}
</div> </div> -->
<ul v-if="tableData.length > 0" class="list"> <ul v-if="tableData.length > 0" class="list">
<li <li
v-for="(item, index) in tableData" v-for="(item, index) in tableData"
...@@ -103,7 +103,8 @@ export default { ...@@ -103,7 +103,8 @@ export default {
size: this.pageSize, size: this.pageSize,
current: this.pageIndex, current: this.pageIndex,
moduleType: "5", moduleType: "5",
articleType: this.activeBar - 0 + 1, status: "1",
// articleType: this.activeBar - 0 + 1,
} }
articleList(params) articleList(params)
.then((res) => { .then((res) => {
...@@ -159,7 +160,8 @@ export default { ...@@ -159,7 +160,8 @@ export default {
} }
} }
.right_list { .right_list {
width: calc(100% - 208px); width: 100%;
// width: calc(100% - 208px);
height: 760px; height: 760px;
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div id="con"> <div id="con">
<Notice v-show="isNotice"></Notice> <Notice v-show="isNotice"></Notice>
<div v-show="!isNotice"> <div v-show="!isNotice">
<div class="top flex"> <div class="flex">
<div class="left box"> <div class="left box">
<video :src="videoSrc" controls class="video" /> <video :src="videoSrc" controls class="video" />
</div> </div>
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
:label="e.title" :label="e.title"
:name="index + 1 + ''" :name="index + 1 + ''"
> >
<ul class="tabslist"> <ul
class="tabslist videoTabList"
:style="{ height: videoHeight }"
>
<li <li
v-for="(item, index) in noticeList" v-for="(item, index) in noticeList"
:key="index" :key="index"
...@@ -132,7 +135,7 @@ ...@@ -132,7 +135,7 @@
</div> </div>
<!-- 健康科普 --> <!-- 健康科普 -->
<div class="healthPopularization"> <!-- <div class="healthPopularization">
<div class="title_box"> <div class="title_box">
<div class="title">健康科普</div> <div class="title">健康科普</div>
<div class="empty"></div> <div class="empty"></div>
...@@ -152,7 +155,7 @@ ...@@ -152,7 +155,7 @@
{{ item.name }} {{ item.name }}
</li> </li>
</ul> </ul>
</div> </div> -->
<!-- 科学研究 --> <!-- 科学研究 -->
<div class="scientificresearch"> <div class="scientificresearch">
...@@ -179,9 +182,9 @@ ...@@ -179,9 +182,9 @@
<div v-show="showFixed" class="fixed_box"> <div v-show="showFixed" class="fixed_box">
<ul class="f_list"> <ul class="f_list">
<el-popover <el-popover
popper-class="poperbackground"
v-for="(item, index) in rigBarList" v-for="(item, index) in rigBarList"
:key="index" :key="index"
popper-class="poperbackground"
placement="left-start" placement="left-start"
title="" title=""
width="200" width="200"
...@@ -229,9 +232,10 @@ export default { ...@@ -229,9 +232,10 @@ export default {
isNotice: false, isNotice: false,
curPdf: {}, curPdf: {},
pdfSrc: "", pdfSrc: "",
videoHeight: "0px",
fixIndex: -1, fixIndex: -1,
// videoSrc: require("../../../public/aaa.mp4"), videoSrc: require("../../../public/video.mp4"),
videoSrc: "", // videoSrc: "",
exTab: "浙江省典型案例", exTab: "浙江省典型案例",
example: [ example: [
{ {
...@@ -249,6 +253,9 @@ export default { ...@@ -249,6 +253,9 @@ export default {
{ {
title: "学术动态", title: "学术动态",
}, },
{
title: "健康知识",
},
], ],
noticeTopList: [ noticeTopList: [
{ {
...@@ -332,7 +339,24 @@ export default { ...@@ -332,7 +339,24 @@ export default {
this.showFixed = false this.showFixed = false
} }
}) })
var video = document.querySelector("video")
video.addEventListener("canplay", (e) => {
console.log(e.target.clientHeight)
this.videoHeight = e.target.clientHeight - 66 + "px"
})
})
window.onresize = () =>
(() => {
this.$nextTick(() => {
this.videoHeight =
document.querySelector("video").clientHeight - 66 + "px"
}) })
})()
},
beforeDestroy() {
window.onresize = () => {}
}, },
methods: { methods: {
setPdf(item) { setPdf(item) {
...@@ -349,7 +373,10 @@ export default { ...@@ -349,7 +373,10 @@ export default {
item.filePath[0].uuidName item.filePath[0].uuidName
}, },
handleClick() { handleClick() {
// if (this.curTab == "4") {
// } else {
this.getArticleList(this.curTab) this.getArticleList(this.curTab)
// }
}, },
// 获取新闻会议tab的数据 // 获取新闻会议tab的数据
getArticleList(moduleType) { getArticleList(moduleType) {
...@@ -363,7 +390,7 @@ export default { ...@@ -363,7 +390,7 @@ export default {
articleList(params) articleList(params)
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
if (["1", "2", "3"].includes(moduleType)) { if (["1", "2", "3", "4"].includes(moduleType)) {
const d = res.data.records const d = res.data.records
if (moduleType === "2") { if (moduleType === "2") {
this.noticeList = [...this.noticeTopList, ...d] this.noticeList = [...this.noticeTopList, ...d]
...@@ -413,7 +440,7 @@ export default { ...@@ -413,7 +440,7 @@ export default {
.video { .video {
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
height: 420px; // height: 420px;
object-fit: fill; object-fit: fill;
} }
} }
...@@ -422,7 +449,6 @@ export default { ...@@ -422,7 +449,6 @@ export default {
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
.tabslist { .tabslist {
height: 352px;
padding-right: 8px; padding-right: 8px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
...@@ -464,7 +490,7 @@ export default { ...@@ -464,7 +490,7 @@ export default {
} }
} }
.videoboxs { .videoboxs {
height: 100%; // height: 100%;
} }
} }
.dataAnalysis { .dataAnalysis {
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
:patient-id="patientId" :patient-id="patientId"
:screenList="screenList" :screenList="screenList"
@refreshData="refreshData" @refreshData="refreshData"
@changeShow="changeShow"
></ConfigForms> ></ConfigForms>
</div> </div>
</template> </template>
...@@ -78,6 +79,9 @@ export default { ...@@ -78,6 +79,9 @@ export default {
}) })
}, },
methods: { methods: {
changeShow() {
this.$emit("changeShow")
},
refreshData(data) { refreshData(data) {
// this.refreshFlag = false // this.refreshFlag = false
// this.$nextTick(() => { // this.$nextTick(() => {
......
<template> <template>
<!-- 随访查询 --> <!-- 随访查询 -->
<div class="screeningSearch"> <div class="screeningSearch">
<div v-show="!isDetail"> <div v-show="!isDetail && !show">
<div class="top"> <div class="top">
<form-components <form-components
ref="form" ref="form"
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
v-if="isDetail" v-if="isDetail"
@back="back" @back="back"
></FollowUpDetail> ></FollowUpDetail>
<followupentry v-if="show" @changeShow="changeShow"></followupentry>
</div> </div>
</template> </template>
<script> <script>
...@@ -40,15 +41,18 @@ import searchMixin from "../searchMixin" ...@@ -40,15 +41,18 @@ import searchMixin from "../searchMixin"
import { getCurrentFormByType } from "@/api/coop-group.js" import { getCurrentFormByType } from "@/api/coop-group.js"
import { getFollowSearch } from "@/api/followup" import { getFollowSearch } from "@/api/followup"
import FollowUpDetail from "./FollowUpDetail.vue" import FollowUpDetail from "./FollowUpDetail.vue"
import followupentry from "../followupentry"
export default { export default {
components: { components: {
FormComponents, FormComponents,
FollowUpDetail, FollowUpDetail,
followupentry,
}, },
mixins: [paginationMixin, searchMixin], mixins: [paginationMixin, searchMixin],
data() { data() {
return { return {
isDetail: false, isDetail: false,
show: false,
followId: "", followId: "",
listLoading: false, listLoading: false,
keyword: "", keyword: "",
...@@ -292,6 +296,10 @@ export default { ...@@ -292,6 +296,10 @@ export default {
this.getCurrentFormByType(2) this.getCurrentFormByType(2)
}, },
methods: { methods: {
changeShow() {
this.$router.push({ query: {} })
this.show = false
},
back() { back() {
this.isDetail = false this.isDetail = false
const followId = this.$route.query.followId const followId = this.$route.query.followId
...@@ -311,8 +319,9 @@ export default { ...@@ -311,8 +319,9 @@ export default {
console.log(v) console.log(v)
}, },
handleEdit(data, i, index) { handleEdit(data, i, index) {
this.show = true
this.$router.push({ this.$router.push({
path: "/followupentry", // path: "/followupentry",
query: { query: {
patientId: data.patientId, patientId: data.patientId,
followId: data.id, followId: data.id,
...@@ -328,9 +337,10 @@ export default { ...@@ -328,9 +337,10 @@ export default {
}, },
onSearch(form) { onSearch(form) {
console.log(form) console.log(form)
this.pageIndex = 1
sessionStorage.setItem("followQuery-form", JSON.stringify(form)) sessionStorage.setItem("followQuery-form", JSON.stringify(form))
this.formEdit = form this.formEdit = form
// this.handleSearch() this.handleSearch()
}, },
onClickSearch() { onClickSearch() {
this.pageIndex = 1 this.pageIndex = 1
......
<template> <template>
<!-- 随访调查 --> <!-- 随访调查 -->
<div class="screeningSearch"> <div class="screeningSearch">
<template v-if="!show">
<div class="top"> <div class="top">
<form-components <form-components
:forms="formList" :forms="formList"
...@@ -23,10 +24,13 @@ ...@@ -23,10 +24,13 @@
@currentPageChange="handleCurrentChange" @currentPageChange="handleCurrentChange"
/> />
</div> </div>
</template>
<followupentry v-if="show" @changeShow="changeShow"></followupentry>
</div> </div>
</template> </template>
<script> <script>
import FormComponents from "@/components/FormComponents" import FormComponents from "@/components/FormComponents"
import followupentry from "../followupentry"
import paginationMixin from "@/components/TabComponents/mixin" import paginationMixin from "@/components/TabComponents/mixin"
import searchMixin from "../searchMixin" import searchMixin from "../searchMixin"
import { getCurrentFormByType } from "@/api/coop-group.js" import { getCurrentFormByType } from "@/api/coop-group.js"
...@@ -35,12 +39,14 @@ import { mapGetters } from "vuex" ...@@ -35,12 +39,14 @@ import { mapGetters } from "vuex"
export default { export default {
components: { components: {
FormComponents, FormComponents,
followupentry,
}, },
mixins: [paginationMixin, searchMixin], mixins: [paginationMixin, searchMixin],
data() { data() {
return { return {
formId: "", //随访表单类型 formId: "", //随访表单类型
listLoading: false, listLoading: false,
show: false,
keyword: "", keyword: "",
modifiedFlag: false, modifiedFlag: false,
columns: [ columns: [
...@@ -271,6 +277,10 @@ export default { ...@@ -271,6 +277,10 @@ export default {
this.handleSearch() //调试注释 this.handleSearch() //调试注释
}, },
methods: { methods: {
changeShow() {
this.$router.push({ query: {} })
this.show = false
},
changeModified() { changeModified() {
this.modifiedFlag = !this.modifiedFlag this.modifiedFlag = !this.modifiedFlag
}, },
...@@ -287,7 +297,7 @@ export default { ...@@ -287,7 +297,7 @@ export default {
rowOpration(data, i) { rowOpration(data, i) {
sessionStorage.setItem("formEdit", JSON.stringify(data)) sessionStorage.setItem("formEdit", JSON.stringify(data))
this.$router.push({ this.$router.push({
path: `/followupentry`, // path: `/followupentry`,
query: { query: {
patientId: data.patientId, patientId: data.patientId,
getData: 0, getData: 0,
...@@ -295,6 +305,7 @@ export default { ...@@ -295,6 +305,7 @@ export default {
model: "add", model: "add",
}, },
}) })
this.show = true
}, },
async handleSearch() { async handleSearch() {
this.listLoading = true this.listLoading = true
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
v-if="formType == 1 ? (!disabled ? true : false) : true" v-if="formType == 1 ? (!disabled ? true : false) : true"
class="draftButton" class="draftButton"
:loading="loading" :loading="loading"
:disabled="!infoCompelete" :disabled="formType == 1 ? !infoCompelete : false"
@click="onSubmit(formType)" @click="onSubmit(formType)"
>{{ formType == 1 ? "临时保存" : "返回" }}</el-button >{{ formType == 1 ? "临时保存" : "返回" }}</el-button
> >
...@@ -353,17 +353,21 @@ export default { ...@@ -353,17 +353,21 @@ export default {
this.loading = false this.loading = false
} else { } else {
// 返回 // 返回
this.$router.back() // this.$router.back()
this.$emit("changeShow")
} }
}, },
continueSubmit() { continueSubmit() {
sessionStorage.removeItem("index1Data") sessionStorage.removeItem("index1Data")
this.activeName = "index0" this.activeName = "index0"
// 清空表单 // 清空表单
for (let i = 0; i < this.$refs.formTabs.length; i++) { // for (let i = 0; i < this.$refs.formTabs.length; i++) {
this.$refs.formTabs[i].resetForm() // this.$refs.formTabs[i].resetForm()
this.$refs.formTabs[i].initForm() // this.$refs.formTabs[i].initForm()
} // }
this.formTabsList = []
this.formTabs = []
this.getCurrentFormByType(this.formType)
// 清空红字:不符合筛查条件 // 清空红字:不符合筛查条件
this.$refs.showDialog.dialogVisible = false this.$refs.showDialog.dialogVisible = false
if (this.$route.path != "/screening/add") { if (this.$route.path != "/screening/add") {
......
...@@ -259,6 +259,9 @@ export default { ...@@ -259,6 +259,9 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("删除成功") this.$message.success("删除成功")
if (this.tableData.length == 1 && this.pageIndex != 1) {
this.pageIndex--
}
this.handleSearch() this.handleSearch()
} }
}) })
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<div class="bot-table"> <div class="bot-table">
<customs-table <customs-table
ref="table" ref="table"
:max-height="780"
:table-data="tableData" :table-data="tableData"
:columns="columns" :columns="columns"
:header-class="'newHeader'" :header-class="'newHeader'"
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
...@@ -223,11 +224,11 @@ export default { ...@@ -223,11 +224,11 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.getArticleList() this.handleSearch()
}, },
methods: { methods: {
// 获取新闻会议 // 获取新闻会议
getArticleList() { handleSearch() {
this.listLoading = true this.listLoading = true
let params = { let params = {
size: this.pageSize, size: this.pageSize,
......
<template> <template>
<div id="medicalunion-management"> <div id="medicalunion-management">
<div class="top-btn"> <div class="top-btn">
<el-select v-model="selectType" @change="getArticleList"> <el-select v-model="selectType" @change="beforeSearch">
<el-option <el-option
v-for="item in selectList" v-for="item in selectList"
:key="item.value" :key="item.value"
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
ref="table" ref="table"
:table-data="tableData" :table-data="tableData"
:columns="columns" :columns="columns"
:max-height="780"
:header-class="'newHeader'" :header-class="'newHeader'"
:list-loading="listLoading" :list-loading="listLoading"
:current-page="pageIndex" :current-page="pageIndex"
...@@ -170,7 +171,7 @@ export default { ...@@ -170,7 +171,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
...@@ -291,11 +292,15 @@ export default { ...@@ -291,11 +292,15 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.getArticleList() this.handleSearch()
}, },
methods: { methods: {
// 获取健康科普 // 获取健康科普
getArticleList() { beforeSearch() {
this.pageIndex = 1
this.handleSearch()
},
handleSearch() {
this.listLoading = true this.listLoading = true
let params = { let params = {
size: this.pageSize, size: this.pageSize,
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
:total-count="total" :total-count="total"
:page-sizes="pageSizes" :page-sizes="pageSizes"
:page-size="pageSize" :page-size="pageSize"
:max-height="780"
@pageSizeChange="handleSizeChange" @pageSizeChange="handleSizeChange"
@currentPageChange="handleCurrentChange" @currentPageChange="handleCurrentChange"
/> />
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
...@@ -223,11 +224,11 @@ export default { ...@@ -223,11 +224,11 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.getArticleList() this.handleSearch()
}, },
methods: { methods: {
// 获取新闻会议 // 获取新闻会议
getArticleList() { handleSearch() {
this.listLoading = true this.listLoading = true
let params = { let params = {
size: this.pageSize, size: this.pageSize,
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
:page-sizes="pageSizes" :page-sizes="pageSizes"
:page-size="pageSize" :page-size="pageSize"
@pageSizeChange="handleSizeChange" @pageSizeChange="handleSizeChange"
:max-height="780"
@currentPageChange="handleCurrentChange" @currentPageChange="handleCurrentChange"
/> />
</div> </div>
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
...@@ -223,11 +224,11 @@ export default { ...@@ -223,11 +224,11 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.getArticleList() this.handleSearch()
}, },
methods: { methods: {
// 获取新闻会议 // 获取新闻会议
getArticleList() { handleSearch() {
this.listLoading = true this.listLoading = true
let params = { let params = {
size: this.pageSize, size: this.pageSize,
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
:list-loading="listLoading" :list-loading="listLoading"
:current-page="pageIndex" :current-page="pageIndex"
:total-count="total" :total-count="total"
:max-height="780"
:page-sizes="pageSizes" :page-sizes="pageSizes"
:page-size="pageSize" :page-size="pageSize"
@pageSizeChange="handleSizeChange" @pageSizeChange="handleSizeChange"
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
...@@ -223,11 +224,11 @@ export default { ...@@ -223,11 +224,11 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.getArticleList() this.handleSearch()
}, },
methods: { methods: {
// 获取新闻会议 // 获取新闻会议
getArticleList() { handleSearch() {
this.listLoading = true this.listLoading = true
let params = { let params = {
size: this.pageSize, size: this.pageSize,
......
...@@ -44,7 +44,7 @@ const mixin = { ...@@ -44,7 +44,7 @@ const mixin = {
articleEnable(params).then((res) => { articleEnable(params).then((res) => {
if (res.code == 1) { if (res.code == 1) {
// this.$message.success("保存成功") // this.$message.success("保存成功")
this.getArticleList() this.handleSearch()
} }
}) })
}, },
...@@ -67,7 +67,8 @@ const mixin = { ...@@ -67,7 +67,8 @@ const mixin = {
this.form = { this.form = {
status: 1, status: 1,
} }
this.getArticleList() // this.pageIndex = 1
this.handleSearch()
} }
}) })
} else { } else {
...@@ -89,7 +90,10 @@ const mixin = { ...@@ -89,7 +90,10 @@ const mixin = {
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("删除成功") this.$message.success("删除成功")
this.getArticleList() if (this.tableData.length == 1 && this.pageIndex != 1) {
this.pageIndex--
}
this.handleSearch()
} }
}) })
.catch(() => {}) .catch(() => {})
......
<template> <template>
<div id="medicalunion-management"> <div id="medicalunion-management">
<div class="top-btn"> <div class="top-btn">
<el-select v-model="selectType" @change="getArticleList"> <el-select v-model="selectType" @change="beforeSearch">
<el-option <el-option
v-for="item in selectList" v-for="item in selectList"
:key="item.value" :key="item.value"
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
ref="table" ref="table"
:table-data="tableData" :table-data="tableData"
:columns="columns" :columns="columns"
:max-height="780"
:header-class="'newHeader'" :header-class="'newHeader'"
:list-loading="listLoading" :list-loading="listLoading"
:current-page="pageIndex" :current-page="pageIndex"
...@@ -161,7 +162,7 @@ export default { ...@@ -161,7 +162,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
...@@ -277,11 +278,15 @@ export default { ...@@ -277,11 +278,15 @@ export default {
}, },
watch: {}, watch: {},
mounted() { mounted() {
this.getArticleList() this.handleSearch()
}, },
methods: { methods: {
beforeSearch() {
this.pageIndex = 1
this.handleSearch()
},
// 获取健康科普 // 获取健康科普
getArticleList() { handleSearch() {
this.listLoading = true this.listLoading = true
let params = { let params = {
size: this.pageSize, size: this.pageSize,
......
...@@ -187,6 +187,9 @@ export default { ...@@ -187,6 +187,9 @@ export default {
type: "success", type: "success",
message: "删除成功!", message: "删除成功!",
}) })
if (this.tableData.length == 1 && this.pageIndex != 1) {
this.pageIndex--
}
this.handleSearch() this.handleSearch()
} }
}) })
......
...@@ -345,12 +345,14 @@ export default { ...@@ -345,12 +345,14 @@ export default {
spanCount: 12, spanCount: 12,
prop: "orgId", prop: "orgId",
opts: orgList, opts: orgList,
rules: [{ required: true, message: "请选择机构" }],
func: this.orgChange, func: this.orgChange,
}, },
{ {
type: "select", type: "select",
label: "科室", label: "科室",
spanCount: 12, spanCount: 12,
rules: [{ required: true, message: "请选择科室" }],
prop: "deptId", prop: "deptId",
opts: [], opts: [],
}, },
......
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