Commit f25141b3 by 唐玉峰

.

parent d336b7cc
......@@ -5,9 +5,11 @@
<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">
<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>
......@@ -60,6 +62,14 @@
</template>
</div>
</div>
</template>
<div class="r" v-else>
<div>
<template v-if="show">
<iframe :src="url" width="100%" height="100%" frameborder="0"> </iframe>
</template>
</div>
</div>
</div>
</div>
</template>
......@@ -82,6 +92,7 @@ export default {
{ name: "年度清算数据", value: "3" },
{ name: "院内编目分组", value: "4" },
],
url: "",
};
},
created() {
......@@ -99,13 +110,24 @@ export default {
setTimeout(() => {
this.show = true;
}, 300);
} else {
} else if (type == 2) {
{
this.deptCode = this.info.deptCode;
this.doctorCode = "";
setTimeout(() => {
this.show = true;
}, 300);
}
} else {
http.get(`/account/drug/drugview?menuname=用药目录`)
.then((data) => {
this.url = data;
setTimeout(() => {
this.show = true;
}, 300);
})
.catch((error) => {});
}
},
getdata(type) {
this.activeName = 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