Commit 89030c5d by Licx

开始数据分析按钮

parent c9b161d7
...@@ -6,12 +6,17 @@ ...@@ -6,12 +6,17 @@
<div :class="type == 1 ? 'act' : ''" @click="getid(1)">当前医生数据</div> <div :class="type == 1 ? 'act' : ''" @click="getid(1)">当前医生数据</div>
<div :class="type == 2 ? 'act' : ''" @click="getid(2)">所属病区数据</div> <div :class="type == 2 ? 'act' : ''" @click="getid(2)">所属病区数据</div>
<div :class="type == 3 ? 'act' : ''" @click="getid(3)">病种用药目录</div> <div :class="type == 3 ? 'act' : ''" @click="getid(3)">病种用药目录</div>
<!-- <div @click="toData">数据分析</div> --> <div @click="toData">数据分析</div>
</div> </div>
<div class="main"> <div class="main">
<template v-if="type != 3"> <template v-if="type != 3">
<div class="l"> <div class="l">
<div v-for="item in list" :key="item.value" :class="activeName == item.value ? 'act' : ''" @click="getdata(item.value)"> <div
v-for="item in list"
:key="item.value"
:class="activeName == item.value ? 'act' : ''"
@click="getdata(item.value)"
>
<i class="el-icon-caret-right"></i> <i class="el-icon-caret-right"></i>
{{ item.name }} {{ item.name }}
</div> </div>
...@@ -66,7 +71,8 @@ ...@@ -66,7 +71,8 @@
<div class="r" v-else> <div class="r" v-else>
<div> <div>
<template v-if="show"> <template v-if="show">
<iframe :src="url" width="100%" height="100%" frameborder="0"> </iframe> <iframe :src="url" width="100%" height="100%" frameborder="0">
</iframe>
</template> </template>
</div> </div>
</div> </div>
...@@ -74,98 +80,107 @@ ...@@ -74,98 +80,107 @@
</div> </div>
</template> </template>
<script> <script>
import http from "../utils/http"; import http from '../utils/http'
export default { export default {
name: "medicalRecordImport", name: 'medicalRecordImport',
components: {}, components: {},
data() { data() {
return { return {
activeName: "2", activeName: '2',
info: {}, info: {},
doctorCode: "", doctorCode: '',
deptCode: "", deptCode: '',
show: true, show: true,
type: 1, type: 1,
list: [ list: [
// { name: "月度初步分组", value: "1" }, // { name: "月度初步分组", value: "1" },
{ name: "月度拨付分组", value: "2" }, { name: '月度拨付分组', value: '2' },
{ name: "年度清算数据", value: "3" }, { name: '年度清算数据', value: '3' },
{ name: "院内编目分组", value: "4" }, { name: '院内编目分组', value: '4' }
], ],
url: "", url: ''
}; }
}, },
created() { created() {
// :src="`http://172.16.1.244:8050/#/report/view?workbookId=269&info=${JSON.stringify(info)}`" // :src="`http://172.16.1.244:8050/#/report/view?workbookId=269&info=${JSON.stringify(info)}`"
this.GetDeptAndDoctorByPid(); this.GetDeptAndDoctorByPid()
}, },
mounted() {}, mounted() {},
methods: { methods: {
getid(type) { getid(type) {
this.type = type; this.type = type
this.show = false; this.show = false
if (type == 1) { if (type == 1) {
this.doctorCode = this.info.doctorCode; this.doctorCode = this.info.doctorCode
this.deptCode = ""; this.deptCode = ''
setTimeout(() => { setTimeout(() => {
this.show = true; this.show = true
}, 300); }, 300)
} else if (type == 2) { } else if (type == 2) {
{ {
this.deptCode = this.info.deptCode; this.deptCode = this.info.deptCode
this.doctorCode = ""; this.doctorCode = ''
setTimeout(() => { setTimeout(() => {
this.show = true; this.show = true
}, 300); }, 300)
} }
} else { } else {
http.get(`/account/drug/drugview?menuname=用药目录`) http
.get(`/account/drug/drugview?menuname=用药目录`)
.then((data) => { .then((data) => {
this.url = data; this.url = data
setTimeout(() => { setTimeout(() => {
this.show = true; this.show = true
}, 300); }, 300)
}) })
.catch((error) => {}); .catch((error) => {})
} }
}, },
getdata(type) { getdata(type) {
this.activeName = type; this.activeName = type
this.show = false; this.show = false
setTimeout(() => { setTimeout(() => {
this.show = true; this.show = true
}, 300); }, 300)
}, },
GetDeptAndDoctorByPid(id) { GetDeptAndDoctorByPid(id) {
http.get(`/medical/Get/GetDeptAndDoctorByPid?id=${this.$route.query.id}`) http
.get(`/medical/Get/GetDeptAndDoctorByPid?id=${this.$route.query.id}`)
.then((data) => { .then((data) => {
this.info = data; this.info = data
this.doctorCode = data.doctorCode; this.doctorCode = data.doctorCode
}) })
.catch((error) => {}); .catch((error) => {})
}, },
toData() { toData() {
http.get(`/medical/Get/GetViews?name=医保结算数据分析`) http
.get(`/medical/Get/GetViews?name=医保结算数据分析`)
.then((data) => { .then((data) => {
if (data && data.length) { if (data && data.length) {
if (data[0].children && data[0].children.length) { if (data[0].children && data[0].children.length) {
const { href } = this.$router.resolve({ const { href } = this.$router.resolve({
path: data[0].children[0].menuUrl, path: data[0].children[0].menuUrl
}); })
window.open(`${window.location.origin}/#${data[0].children[0].menuUrl}`, "_blank"); window.open(
`${window.location.origin}/#${data[0].children[0].menuUrl}`,
'_blank'
)
} else { } else {
const { href } = this.$router.resolve({ const { href } = this.$router.resolve({
path: data[0].menuUrl, path: data[0].menuUrl
}); })
window.open(`${window.location.origin}/#${data[0].menuUrl}`, "_blank"); window.open(
`${window.location.origin}/#${data[0].menuUrl}`,
'_blank'
)
} }
} }
}) })
.catch((error) => {}); .catch((error) => {})
}, }
}, }
}; }
</script> </script>
<style lang="scss"> <style lang="scss">
.medicalRecordImport { .medicalRecordImport {
......
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