Commit d903e640 authored by miaojiale's avatar miaojiale

修改bug

parent e7cc4f5a
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;
......
...@@ -103,6 +103,7 @@ export default { ...@@ -103,6 +103,7 @@ export default {
size: this.pageSize, size: this.pageSize,
current: this.pageIndex, current: this.pageIndex,
moduleType: "5", moduleType: "5",
status: "1",
articleType: this.activeBar - 0 + 1, articleType: this.activeBar - 0 + 1,
} }
articleList(params) articleList(params)
......
...@@ -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'"
...@@ -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"
...@@ -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"
/> />
...@@ -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>
...@@ -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"
...@@ -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,7 @@ const mixin = { ...@@ -89,7 +90,7 @@ const mixin = {
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("删除成功") this.$message.success("删除成功")
this.getArticleList() 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"
...@@ -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,
......
...@@ -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