Commit f25141b3 by 唐玉峰

.

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