Commit f25141b3 by 唐玉峰

.

parent d336b7cc
...@@ -5,58 +5,68 @@ ...@@ -5,58 +5,68 @@
<div class="btn"> <div class="btn">
<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 @click="toData">数据分析</div> --> <!-- <div @click="toData">数据分析</div> -->
</div> </div>
<div class="main"> <div class="main">
<div class="l"> <template v-if="type != 3">
<div v-for="item in list" :key="item.value" :class="activeName == item.value ? 'act' : ''" @click="getdata(item.value)"> <div class="l">
<i class="el-icon-caret-right"></i> <div v-for="item in list" :key="item.value" :class="activeName == item.value ? 'act' : ''" @click="getdata(item.value)">
{{ item.name }} <i class="el-icon-caret-right"></i>
{{ item.name }}
</div>
</div> </div>
</div> <div class="r">
<div class="r"> <div v-if="activeName == 1">
<div v-if="activeName == 1"> <template v-if="show">
<template v-if="show"> <iframe
<iframe :src="`http://172.16.1.244:8050/#/report/view?workbookId=276&doctorcode=${doctorCode}&deptcode=${deptCode}`"
:src="`http://172.16.1.244:8050/#/report/view?workbookId=276&doctorcode=${doctorCode}&deptcode=${deptCode}`" width="100%"
width="100%" height="100%"
height="100%" frameborder="0"
frameborder="0" >
> </iframe>
</iframe> </template>
</template> </div>
<div v-if="activeName == 2">
<template v-if="show">
<iframe
:src="`http://172.16.1.244:8050/#/report/view?workbookId=275&doctorcode=${doctorCode}&deptcode=${deptCode}`"
width="100%"
height="100%"
frameborder="0"
>
</iframe>
</template>
</div>
<div v-if="activeName == 3">
<template v-if="show">
<iframe
:src="`http://172.16.1.244:8050/#/report/view?workbookId=267&doctorcode=${doctorCode}&deptcode=${deptCode}`"
width="100%"
height="100%"
frameborder="0"
>
</iframe>
</template>
</div>
<div v-if="activeName == 4">
<template v-if="show">
<iframe
:src="`http://172.16.1.244:8050/#/report/view?workbookId=277&doctorcode=${doctorCode}&deptcode=${deptCode}`"
width="100%"
height="100%"
frameborder="0"
>
</iframe>
</template>
</div>
</div> </div>
<div v-if="activeName == 2"> </template>
<div class="r" v-else>
<div>
<template v-if="show"> <template v-if="show">
<iframe <iframe :src="url" width="100%" height="100%" frameborder="0"> </iframe>
:src="`http://172.16.1.244:8050/#/report/view?workbookId=275&doctorcode=${doctorCode}&deptcode=${deptCode}`"
width="100%"
height="100%"
frameborder="0"
>
</iframe>
</template>
</div>
<div v-if="activeName == 3">
<template v-if="show">
<iframe
:src="`http://172.16.1.244:8050/#/report/view?workbookId=267&doctorcode=${doctorCode}&deptcode=${deptCode}`"
width="100%"
height="100%"
frameborder="0"
>
</iframe>
</template>
</div>
<div v-if="activeName == 4">
<template v-if="show">
<iframe
:src="`http://172.16.1.244:8050/#/report/view?workbookId=277&doctorcode=${doctorCode}&deptcode=${deptCode}`"
width="100%"
height="100%"
frameborder="0"
>
</iframe>
</template> </template>
</div> </div>
</div> </div>
...@@ -82,6 +92,7 @@ export default { ...@@ -82,6 +92,7 @@ export default {
{ name: "年度清算数据", value: "3" }, { name: "年度清算数据", value: "3" },
{ name: "院内编目分组", value: "4" }, { name: "院内编目分组", value: "4" },
], ],
url: "",
}; };
}, },
created() { created() {
...@@ -99,12 +110,23 @@ export default { ...@@ -99,12 +110,23 @@ export default {
setTimeout(() => { setTimeout(() => {
this.show = true; this.show = true;
}, 300); }, 300);
} else if (type == 2) {
{
this.deptCode = this.info.deptCode;
this.doctorCode = "";
setTimeout(() => {
this.show = true;
}, 300);
}
} else { } else {
this.deptCode = this.info.deptCode; http.get(`/account/drug/drugview?menuname=用药目录`)
this.doctorCode = ""; .then((data) => {
setTimeout(() => { this.url = data;
this.show = true; setTimeout(() => {
}, 300); this.show = true;
}, 300);
})
.catch((error) => {});
} }
}, },
getdata(type) { getdata(type) {
......
...@@ -20,7 +20,7 @@ module.exports = { ...@@ -20,7 +20,7 @@ module.exports = {
port: 8066, //测试端口 port: 8066, //测试端口
proxy: { proxy: {
"/api": { "/api": {
target: "http://192.168.18.166:8100/", //drg测试站点 target: "http://192.168.18.166:8174/", //drg测试站点
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/": "/", "^/": "/",
......
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