Compare commits

..

No commits in common. 'main' and 'duhanyu' have entirely different histories.

@ -5,7 +5,6 @@ VUE_APP_TITLE = 产品画像
ENV = 'development' ENV = 'development'
# 若依管理系统/开发环境 # 若依管理系统/开发环境
VUE_APP_BASE_API = 'https://dev-mssm-liaoning.lesdev.cn' VUE_APP_BASE_API = 'https://dev-mssm-liaoning.imian.org.cn'
# VUE_APP_BASE_API = 'http://192.168.0.109:9023'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -4,7 +4,7 @@ VUE_APP_TITLE = 产品画像
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
# 若依管理系统/生产环境 /api/ggfw/ # 若依管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
VUE_APP_HOUTAI = /ggfw-jcphx VUE_APP_HOUTAI = /ggfw-jcphx

@ -20,10 +20,7 @@ export default {
} }
} }
}; };
/* request 线线 /*
myAPI 注意线上与线下环境
npm run build:prod npm run build:prod
/usr/share/nginx/html/ggfw-jcphx /usr/share/nginx/html/ggfw-jcphx

@ -56,11 +56,3 @@ export function getXXMSG(query) {
params: query params: query
}) })
} }
//根据产品画像类型查询产品
export function findByType(query) {
return request({
url: '/ggfw-api/pharmaceuticals/largeScreen/findByType',
method: 'get',
params: query
})
}

@ -1,9 +1,12 @@
import request from "@/utils/request"; import request from "@/utils/request";
// 本地 // 本地
let api = process.env.NODE_ENV === "production" ?location.origin: "API" let api = "API"
// 线上 // 线上
// let api = location.origin // let api = location.origin
export default { export default {
frimLogin() { frimLogin() {
return request({ return request({
baseURL: process.env.VUE_APP_USER_LOGIN, baseURL: process.env.VUE_APP_USER_LOGIN,
@ -16,8 +19,6 @@ export default {
method: "POST", method: "POST",
timeout: 60000, timeout: 60000,
data: { data: {
// pdma: "Q2V0YzI4QGNvbQ==",
// urne: "2112042170015",
pdma: "MTExMTEx", pdma: "MTExMTEx",
urne: "2112042170015", urne: "2112042170015",
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

@ -78,7 +78,6 @@ import { setToken } from '@/utils/auth'
// Authentication.data.result.userToken // Authentication.data.result.userToken
// ); // );
// } // }
// token() // token()
// let infor = async () => { // let infor = async () => {
// let response = await API.login.getuserinfo(); // let response = await API.login.getuserinfo();
@ -95,10 +94,7 @@ import { setToken } from '@/utils/auth'
* Currently MockJs will be used in the production environment, * Currently MockJs will be used in the production environment,
* please remove it before going online! ! ! * please remove it before going online! ! !
*/ */
/*
*/
Vue.use(Element, { Vue.use(Element, {
size: Cookies.get('size') || 'medium' // set element-ui default size size: Cookies.get('size') || 'medium' // set element-ui default size
}) })

@ -11,7 +11,9 @@ NProgress.configure({ showSpinner: false })
const whiteList = ['/login', '/register'] const whiteList = ['/login', '/register']
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
setToken() setToken()
NProgress.start() NProgress.start()
next() next()
}) })

@ -15,11 +15,8 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分 // axios中请求配置有baseURL选项表示请求URL公共部分
//本地调试 baseURL: process.env.VUE_APP_BASE_API,
baseURL: process.env.NODE_ENV === "production" ? location.origin +"/api/ggfw" : process.env.VUE_APP_BASE_API, //!线上
//!线上--2.17-198
// baseURL:location.origin +"/api/ggfw",
//!其他
// baseURL:location.origin, // baseURL:location.origin,
// 超时 // 超时
timeout: 10000 timeout: 10000
@ -116,9 +113,6 @@ service.interceptors.response.use(res => {
message = "系统接口请求超时"; message = "系统接口请求超时";
} else if (message.includes("Request failed with status code")) { } else if (message.includes("Request failed with status code")) {
message = "系统接口" + message.substr(message.length - 3) + "异常"; message = "系统接口" + message.substr(message.length - 3) + "异常";
setTimeout(() => {
location.href = `${location.origin}/login`;
}, 2000);
} }
Message({ message: message, type: 'error', duration: 5 * 1000 }) Message({ message: message, type: 'error', duration: 5 * 1000 })
return Promise.reject(error) return Promise.reject(error)

@ -27,10 +27,9 @@
<span></span> <span></span>
</div> </div>
<div class="topbox-item-right"> <div class="topbox-item-right">
<!-- <div class="redStyle">较去年</div> --> <div class="redStyle">较去年</div>
<div>较去年</div> <span class="spanxia"></span>
<!-- <span class="spanxia"></span> --> <!-- <span class="spanshang"></span> -->
<span class="spanshang"></span>
</div> </div>
</div> </div>
<div class="topbox-item"> <div class="topbox-item">
@ -43,10 +42,9 @@
<span></span> <span></span>
</div> </div>
<div class="topbox-item-right"> <div class="topbox-item-right">
<!-- <div class="redStyle">较去年</div> --> <div class="redStyle">较去年</div>
<div>较去年</div> <span class="spanxia"></span>
<!-- <span class="spanxia"></span> --> <!-- <span class="spanshang"></span> -->
<span class="spanshang"></span>
</div> </div>
</div> </div>
</div> </div>
@ -55,20 +53,20 @@
<div class="bottom-box" ref="bottom-box"></div> <div class="bottom-box" ref="bottom-box"></div>
</div> </div>
<div class="rights"> <div class="rights">
<div v-for="(item, index) in pieDatalist"> <div>
<div class="pt-top"> <div class="pt-top">
<div class="ptleftbox"> <div class="ptleftbox">
<div :class="'rectangular' + (index + 1)"></div> <div class="rectangular1"></div>
</div> </div>
<div class="texts">{{ item.name }}</div> <div class="texts">一般不良反应</div>
</div> </div>
<div class="pt-top"> <div class="pt-top">
<div class="ptleftbox"></div> <div class="ptleftbox"></div>
<div class="boxLine"></div> <div class="boxLine"></div>
<div :class="('react' + (index + 1))" class="ptStyle">{{item.percent}}%</div> <div class="ptStyle react1">0%</div>
</div> </div>
</div> </div>
<!-- <div> <div>
<div class="pt-top"> <div class="pt-top">
<div class="ptleftbox"> <div class="ptleftbox">
<div class="rectangular2"></div> <div class="rectangular2"></div>
@ -80,8 +78,8 @@
<div class="boxLine"></div> <div class="boxLine"></div>
<div class="ptStyle react2">0%</div> <div class="ptStyle react2">0%</div>
</div> </div>
</div> --> </div>
<!-- <div> <div>
<div class="pt-top"> <div class="pt-top">
<div class="ptleftbox"> <div class="ptleftbox">
<div class="rectangular3"></div> <div class="rectangular3"></div>
@ -93,7 +91,7 @@
<div class="boxLine"></div> <div class="boxLine"></div>
<div class="ptStyle react3">0%</div> <div class="ptStyle react3">0%</div>
</div> </div>
</div> --> </div>
</div> </div>
</div> </div>
</div> </div>
@ -115,7 +113,6 @@ export default {
option1: {}, option1: {},
// echarts // echarts
myChart1: {}, myChart1: {},
a1: 0, a1: 0,
a2: 0, a2: 0,
a3: 0, a3: 0,
@ -134,24 +131,10 @@ export default {
name: "发生死亡不良反应", name: "发生死亡不良反应",
}, },
], ],
pieDatalist: [
{
percent: 0,
name: "一般不良反应",
},
{
percent: 0,
name: "严重不良反应",
},
{
percent: 0,
name: "发生死亡不良反应",
},
],
total: 0, total: 0,
}; };
}, },
created() { }, created() {},
mounted() { mounted() {
this.getData(); this.getData();
}, },
@ -160,20 +143,13 @@ export default {
let newRouter = this.$route.query; let newRouter = this.$route.query;
if (newRouter.type == 1) { if (newRouter.type == 1) {
// //
getDrugBL({ name: newRouter.code }) getDrugBL({ name: newRouter.code }).then((res) => {
.then((res) => {
res.data.result.forEach((value, index) => { res.data.result.forEach((value, index) => {
this.pieData.forEach((value1, index1) => { this.pieData.forEach((value1, index1) => {
if ( if (value.reportType == "一般" && value1.name == "一般不良反应") {
value.reportType == "一般" &&
value1.name == "一般不良反应"
) {
this.pieData[index1].value = value.reportCount; this.pieData[index1].value = value.reportCount;
} }
if ( if (value.reportType == "严重" && value1.name == "严重不良反应") {
value.reportType == "严重" &&
value1.name == "严重不良反应"
) {
this.pieData[index1].value = value.reportCount; this.pieData[index1].value = value.reportCount;
} }
if ( if (
@ -190,31 +166,17 @@ export default {
this.myChart1 = echarts.init(chartDom); this.myChart1 = echarts.init(chartDom);
this.initEcharts(); this.initEcharts();
}); });
})
.catch(() => {
this.$nextTick(() => {
let chartDom = this.$refs["bottom-box"];
this.myChart1 = echarts.init(chartDom);
this.initEcharts();
});
}); });
} }
if (newRouter.type != 1 && newRouter.type != 2) { if (newRouter.type != 1 && newRouter.type != 2) {
// //
getCosmeticsBL({ name: newRouter.code }) getCosmeticsBL({ name: newRouter.code }).then((res) => {
.then((res) => {
res.data.result.forEach((value, index) => { res.data.result.forEach((value, index) => {
this.pieData.forEach((value1, index1) => { this.pieData.forEach((value1, index1) => {
if ( if (value.reportType == "一般" && value1.name == "一般不良反应") {
value.reportType == "一般" &&
value1.name == "一般不良反应"
) {
this.pieData[index1].value = value.reportCount; this.pieData[index1].value = value.reportCount;
} }
if ( if (value.reportType == "严重" && value1.name == "严重不良反应") {
value.reportType == "严重" &&
value1.name == "严重不良反应"
) {
this.pieData[index1].value = value.reportCount; this.pieData[index1].value = value.reportCount;
} }
if ( if (
@ -231,19 +193,11 @@ export default {
this.myChart1 = echarts.init(chartDom); this.myChart1 = echarts.init(chartDom);
this.initEcharts(); this.initEcharts();
}); });
})
.catch(() => {
this.$nextTick(() => {
let chartDom = this.$refs["bottom-box"];
this.myChart1 = echarts.init(chartDom);
this.initEcharts();
});
}); });
} }
if (newRouter.type == 2) { if (newRouter.type == 2) {
// //
getMedicalDevicesBL({ name: newRouter.code }) getMedicalDevicesBL({ name: newRouter.code }).then((res) => {
.then((res) => {
res.data.result.forEach((value, index) => { res.data.result.forEach((value, index) => {
this.pieData.forEach((value1, index1) => { this.pieData.forEach((value1, index1) => {
if ( if (
@ -252,10 +206,7 @@ export default {
) { ) {
this.pieData[index1].value = value.reportCount; this.pieData[index1].value = value.reportCount;
} }
if ( if (value.reportType == "其他" && value1.name == "一般不良反应") {
value.reportType == "其他" &&
value1.name == "一般不良反应"
) {
this.pieData[index1].value = value.reportCount; this.pieData[index1].value = value.reportCount;
} }
if ( if (
@ -272,13 +223,6 @@ export default {
this.myChart1 = echarts.init(chartDom); this.myChart1 = echarts.init(chartDom);
this.initEcharts(); this.initEcharts();
}); });
})
.catch(() => {
this.$nextTick(() => {
let chartDom = this.$refs["bottom-box"];
this.myChart1 = echarts.init(chartDom);
this.initEcharts();
});
}); });
} }
}, },
@ -391,13 +335,6 @@ export default {
normal: { normal: {
show: false, show: false,
formatter: "", formatter: "",
formatter: (params)=> {
if (params.name == "一般不良反应") this.pieDatalist[0].percent = params.percent || 0;
if (params.name == "严重不良反应") this.pieDatalist[1].percent = params.percent || 0;
if (params.name == "发生死亡不良反应") this.pieDatalist[2].percent = params.percent || 0;
return (params.percent || 0) + "%";
},
textStyle: { textStyle: {
fontSize: 12, fontSize: 12,
}, },
@ -469,7 +406,7 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom; background-position: bottom;
>div { > div {
display: flex; display: flex;
align-items: center; align-items: center;
} }
@ -527,7 +464,6 @@ export default {
.topbox-item-right { .topbox-item-right {
flex: 1; flex: 1;
.redStyle { .redStyle {
font-size: 16px; font-size: 16px;
font-family: Alibaba PuHuiTi; font-family: Alibaba PuHuiTi;
@ -538,7 +474,6 @@ export default {
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
margin-right: 5px; margin-right: 5px;
} }
div { div {
font-size: 16px; font-size: 16px;
font-family: Alibaba PuHuiTi; font-family: Alibaba PuHuiTi;
@ -566,7 +501,6 @@ export default {
} }
} }
} }
.footers { .footers {
height: calc(100% - 120px); height: calc(100% - 120px);
display: flex; display: flex;
@ -575,13 +509,11 @@ export default {
height: 100%; height: 100%;
width: 50%; width: 50%;
padding: 10px; padding: 10px;
.bottom-box { .bottom-box {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
} }
.rights { .rights {
height: 100%; height: 100%;
padding-left: 15px; padding-left: 15px;
@ -596,30 +528,25 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
.ptleftbox { .ptleftbox {
width: 12%; width: 12%;
height: 100%; height: 100%;
.rectangular1 { .rectangular1 {
height: 8px; height: 8px;
width: 8px; width: 8px;
background: #2e87e8; background: #2e87e8;
} }
.rectangular2 { .rectangular2 {
height: 8px; height: 8px;
width: 8px; width: 8px;
background: #f0a436; background: #f0a436;
} }
.rectangular3 { .rectangular3 {
height: 8px; height: 8px;
width: 8px; width: 8px;
background: #f35656; background: #f35656;
} }
} }
.texts { .texts {
width: 60%; width: 60%;
font-size: 16px; font-size: 16px;
@ -627,7 +554,6 @@ export default {
font-weight: 400; font-weight: 400;
color: #b7d4f5; color: #b7d4f5;
} }
.react1 { .react1 {
// font-size: 20px; // font-size: 20px;
font-family: Alibaba PuHuiTi; font-family: Alibaba PuHuiTi;
@ -635,7 +561,6 @@ export default {
color: #2e87e8; color: #2e87e8;
padding-left: 10px; padding-left: 10px;
} }
.react2 { .react2 {
// font-size: 20px; // font-size: 20px;
font-family: Alibaba PuHuiTi; font-family: Alibaba PuHuiTi;
@ -643,7 +568,6 @@ export default {
color: #f0a436; color: #f0a436;
padding-left: 10px; padding-left: 10px;
} }
.react3 { .react3 {
// font-size: 20px; // font-size: 20px;
font-family: Alibaba PuHuiTi; font-family: Alibaba PuHuiTi;
@ -652,15 +576,15 @@ export default {
color: #f35656; color: #f35656;
} }
.ptStyle { .ptStyle {
width: 60%; width: 60%;
margin-top: 5px; margin-top: 5px;
background: linear-gradient(to right, background: linear-gradient(
to right,
rgba(36, 64, 97, 1), rgba(36, 64, 97, 1),
rgba(36, 64, 97, 0)); rgba(36, 64, 97, 0)
);
} }
.boxLine { .boxLine {
position: absolute; position: absolute;
width: 18px; width: 18px;

@ -78,8 +78,8 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.Basic-box { .Basic-box {
width: 100%; width: 100%;
height: 320px; height: 300px;
padding: 0 11px 0px 11px; padding: 0 11px 11px 11px;
overflow-y: auto; overflow-y: auto;
.Basic-box-item { .Basic-box-item {

@ -1,14 +1,34 @@
<template> <template>
<div class="Basic-box" ref="basic"> <div class="Basic-box" ref="basic">
<el-table :data="tableData" v-loading="load1" element-loading-text="..." <el-table
element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)" :height="height" stripe :data="tableData"
style="width: 100%; background-color: transparent"> v-loading="load1"
<el-table-column v-for="(item, index) in tableHeader1" :key="index" :prop="item.prop" :label="item.label" element-loading-text="加载中..."
:width="item.width || ''" show-overflow-tooltip align="center"> element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.8)"
:height="height"
stripe
style="width: 100%; background-color: transparent"
>
<el-table-column
v-for="(item, index) in tableHeader1"
:key="index"
:prop="item.prop"
:label="item.label"
:width="item.width || ''"
show-overflow-tooltip
align="center"
>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div ref="pagination"> <div ref="pagination">
<Pagination :total="total" :page="query.current" :limit="query.size" @pagination="changeList"></Pagination> <Pagination
:total="total"
:page="query.current"
:limit="query.size"
@pagination="changeList"
></Pagination>
</div> </div>
</div> </div>
</template> </template>
@ -58,7 +78,7 @@ export default {
height: 0, height: 0,
}; };
}, },
created() { }, created() {},
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.height = this.height =
@ -69,41 +89,8 @@ export default {
methods: { methods: {
getList() { getList() {
let newRouter = this.$route.query; let newRouter = this.$route.query;
this.query.name = newRouter.code; this.query.name = newRouter.code;
this.load1 = true; this.load1 = true;
if (this.query.name == "国药准字H21020985") {
this.tableData = [{
bgsj: "2020/6/15",
bgsx: "再注册",
bgxm: "符合《药品注册管理办法》的有关规定,进行再注册"
},{
bgsj: "2020/10/25",
bgsx: "企业更名",
bgxm: "生产企业名称由沈阳志鹰药业有限公司变更为辽宁亿帆药业有限公司"
},{
bgsj: "2020/12/30",
bgsx: "生产地址变更",
bgxm: "生产地址由沈阳市沈河区万柳塘路51号变更为本溪经济技术开发区香槐路67号"
},{
bgsj: "2022/4/20",
bgsx: "合并审批结论",
bgxm: "辽备2022008948予以备案申请人对申报资料的真实性、准确性、完整性负责"
},]
this.total = 4;
this.load1 = false;
return
}
if (this.query.name == "国药准字H19990372") {
this.tableData = [{
bgsj: "2020/7/13",
bgsx: "再注册",
bgxm: "符合《药品注册管理办法》的有关规定,进行再注册"
}]
this.total = 1;
this.load1 = false;
return
}
getDrugChange(this.query).then((res) => { getDrugChange(this.query).then((res) => {
this.tableData = res.data.records; this.tableData = res.data.records;
this.total = res.data.total; this.total = res.data.total;
@ -122,46 +109,38 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.Basic-box { .Basic-box {
margin-top: 10px; margin-top: 10px;
max-width: 100%; width: 100%;
height: calc(100% - 41px - 10px); height: calc(100% - 41px - 10px);
// padding: 0 11px 11px 11px; // padding: 0 11px 11px 11px;
overflow-y: auto; overflow-y: auto;
background-color: transparent; background-color: transparent;
} }
::v-deep .el-table, ::v-deep .el-table,
.el-table__expanded-cell { .el-table__expanded-cell {
background-color: transparent; background-color: transparent;
} }
::v-deep .el-table th { ::v-deep .el-table th {
background-color: rgba(0, 100, 255, 0.2) !important; background-color: rgba(0, 100, 255, 0.2) !important;
color: #2492ff; color: #2492ff;
border: none; border: none;
} }
::v-deep .el-table td { ::v-deep .el-table td {
border: none; border: none;
} }
::v-deep .el-table::before { ::v-deep .el-table::before {
height: 0px; height: 0px;
} }
::v-deep .el-table tr { ::v-deep .el-table tr {
background-color: transparent !important; background-color: transparent !important;
color: #b7d4f5; color: #b7d4f5;
} }
::v-deep .el-table tbody tr:hover td { ::v-deep .el-table tbody tr:hover td {
background-color: transparent !important; background-color: transparent !important;
} }
::v-deep .el-table th.el-table__cell.is-leaf, ::v-deep .el-table th.el-table__cell.is-leaf,
.el-table td.el-table__cell { .el-table td.el-table__cell {
border: none; border: none;
} }
// //
::v-deep .el-table .el-table__body tr.el-table__row--striped td { ::v-deep .el-table .el-table__body tr.el-table__row--striped td {
background-color: rgba(0, 50, 150, 0.1) !important; background-color: rgba(0, 50, 150, 0.1) !important;

@ -4,32 +4,32 @@
<div class="top-box"> <div class="top-box">
<div class="topbox-item"> <div class="topbox-item">
<div class="topBOxitem"> <div class="topBOxitem">
<!-- <el-tooltip <el-tooltip
class="item" class="item"
effect="dark" effect="dark"
:content="Number(countryC) || 0" :content="countryC"
placement="top-start" placement="top-start"
> --> >
<div class="topBOxitem-top"> <div class="topBOxitem-top">
<span>{{ countryC || 0 }}</span> <span></span> <span>{{ countryC || 0 }}</span> <span></span>
</div> </div>
<!-- </el-tooltip> --> </el-tooltip>
<div class="topBOxitem-bottom">国家检测次数</div> <div class="topBOxitem-bottom">国家检测次数</div>
</div> </div>
</div> </div>
<div class="topbox-item"> <div class="topbox-item">
<div class="topBOxitem"> <div class="topBOxitem">
<!-- <el-tooltip <el-tooltip
class="item" class="item"
effect="dark" effect="dark"
:content="Number(provinceC) || 0" :content="provinceC"
placement="top-start" placement="top-start"
> --> >
<div class="topBOxitem-top"> <div class="topBOxitem-top">
<span>{{ provinceC || 0 }}</span> <span></span> <span>{{ provinceC || 0 }}</span> <span></span>
</div> </div>
<!-- </el-tooltip> --> </el-tooltip>
<div class="topBOxitem-bottom">省级抽检次数</div> <div class="topBOxitem-bottom">省级抽检次数</div>
</div> </div>
@ -76,25 +76,7 @@ export default {
option1: {}, option1: {},
// echarts // echarts
myChart1: {}, myChart1: {},
myChart1data: [
// : valuenameitemStyle
// : namelegend-data
{
value: "0",
name: "生产抽样环节",
percent: "0",
// itemStyle: { color: "#007EFF" },
},
{
value: "0",
name: "流通环节抽样",
percent: "0",
// itemStyle: { color: "#2CD8EC" },
},
],
option2: {}, option2: {},
myChart2data: [],
myChart2data2: [],
// echarts // echarts
myChart2: {}, myChart2: {},
//============== //==============
@ -107,57 +89,26 @@ export default {
ltcy: 0, ltcy: 0,
}; };
}, },
created() { }, created() {},
mounted() { mounted() {
this.getData(); this.getData();
}, },
methods: { methods: {
reducefn(data = []) {
return data.length
},
getData() { getData() {
let newRouter = this.$route.query; let newRouter = this.$route.query;
getCPCJ({ pageNum: 1,pageSize:10000,approvalNumber: newRouter.code }).then((res) => { getCPCJ({ name: newRouter.code }).then((res) => {
if (res.code == 200) { // res.data.result.forEach((value, index) => {
if (res.data.result.list.length != 0) { // if (value.sampleType == 1) {
// // this.provinceC += 1;
this.myChart1data[0].value = res.data.result.list.filter(item => item.inspectType === "生产环节").length // } else if (value.sampleType == 2) {
this.myChart1data[0].percent = ((res.data.result.list.filter(item => item.inspectType === "生产环节").length / res.data.result.list.length) * 100).toFixed(1) // this.countryC += 1;
this.myChart1data[1].value = res.data.result.list.filter(item => item.inspectType === "流通环节").length // }
this.myChart1data[1].percent = ((res.data.result.list.filter(item => item.inspectType === "流通环节").length / res.data.result.list.length) * 100).toFixed(1) // });
// this.countryC = 12;
let mergedData = {}; this.provinceC = 12;
res.data.result.list.forEach((item) => { this.pt = 67;
if (item.qualified === "合格") { this.sccy = 60;
if (mergedData[item.province]) { this.ltcy = 40;
mergedData[item.province].sampleType += 1;
} else {
mergedData[item.province] = {
province: item.province,
sampleType: 1
};
}
}
});
const result = Object.values(mergedData);
result.forEach(item=>{
this.myChart2data.push(item.province)
this.myChart2data2.push(item.sampleType)
})
//
this.countryC = res.data.result.list.filter(item => item.sampleType == "2").length
//
this.provinceC = res.data.result.list.filter(item => item.sampleType == "1").length
//
const filteredData = res.data.result.list.filter(item => item.qualified === "不合格");
this.pt = Math.floor(((this.reducefn(res.data.result.list) - this.reducefn(filteredData)) / this.reducefn(res.data.result.list)) * 100)
}else{
this.myChart2data = ["暂无"]
this.myChart2data2 = ['0']
}
}
this.$nextTick(() => { this.$nextTick(() => {
let chartDom = this.$refs["left-echart"]; let chartDom = this.$refs["left-echart"];
this.myChart1 = echarts.init(chartDom); this.myChart1 = echarts.init(chartDom);
@ -180,9 +131,9 @@ export default {
params.marker + params.marker +
params.name + params.name +
": " + ": " +
( params.value||0) + params.value +
" (" + " (" +
( params.percent || 0) + params.percent +
"%)</div>" "%)</div>"
); );
}, },
@ -205,15 +156,15 @@ export default {
{ {
name: "", name: "",
type: "pie", type: "pie",
radius: ["45%", "66%"], radius: ["45%", "70%"],
center: ["50%", "44%"], // y '40%'使 center: ["50%", "40%"], // y '40%'使
// itemStyle:{ // itemStyle:{
// borderWidth:1, //border // borderWidth:1, //border
// borderColor:'#fff', // borderColor:'#fff',
// }, // },
labelLine: { labelLine: {
normal: { normal: {
length: 10, // 线 length: 15, // 线
position: "outer", // 线 position: "outer", // 线
lineStyle: function (params) { lineStyle: function (params) {
// //
@ -229,7 +180,7 @@ export default {
// //
// params: data, // params: data,
formatter: function (params) { formatter: function (params) {
return (params.data.percent || 0) + "%"; return params.percent + "%";
}, },
textStyle: { textStyle: {
color: "auto", color: "auto",
@ -237,7 +188,22 @@ export default {
}, },
}, },
}, },
data: this.myChart1data data: [
// : valuenameitemStyle
// : namelegend-data
{
value: 39,
name: "生产抽样环节",
// percent: "39",
// itemStyle: { color: "#007EFF" },
},
{
value: 21,
name: "流通环节抽样",
// percent: "21",
// itemStyle: { color: "#2CD8EC" },
},
],
}, },
], ],
}; };
@ -249,10 +215,10 @@ export default {
backgroundColor: "rgba(0,0,0,0)", // backgroundColor: "rgba(0,0,0,0)", //
tooltip: {}, tooltip: {},
grid: { grid: {
top: "7%", top: "8%",
left: "10%", left: "10%",
right: "10%", right: "10%",
bottom: "-5%", bottom: "8%",
containLabel: true, containLabel: true,
}, },
xAxis: [ xAxis: [
@ -272,12 +238,11 @@ export default {
fontSize: 12, fontSize: 12,
margin: 0, margin: 0,
}, },
rotate: -30, //
}, },
axisTick: { axisTick: {
show: false, show: false,
}, },
data: this.myChart2data data: ["辽宁", "江苏", "湖南", "山西", "湖北", "山东"],
}, },
], ],
yAxis: [ yAxis: [
@ -337,7 +302,7 @@ export default {
}, },
}, },
data: this.myChart2data2 data: [12, 15, 17, 20, 25, 26],
}, },
], ],
}; };
@ -348,6 +313,8 @@ export default {
}; };
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.box {
}
.top-box { .top-box {
margin: 10px 0; margin: 10px 0;

@ -21,11 +21,11 @@
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column prop="fbcs" label="分办处室" show-overflow-tooltip> <el-table-column prop="address" label="分办处室" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="czzt" label="处置状态" show-overflow-tooltip> <el-table-column prop="address" label="处置状态" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="wcrq" label="完成日期" show-overflow-tooltip> <el-table-column prop="address" label="完成日期" show-overflow-tooltip>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div ref="pagination"> <div ref="pagination">
@ -51,33 +51,8 @@ export default {
this.height = this.height =
this.$refs.basic.offsetHeight - this.$refs.pagination.offsetHeight; this.$refs.basic.offsetHeight - this.$refs.pagination.offsetHeight;
}); });
this.getList()
},
methods: {
getList() {
let newRouter = this.$route.query;
if (newRouter.code == "国药准字H21020985") {
this.tableData = [{
data: "2024/3/19",
name: "1年内累计发生严重不良反应2起",
fbcs: "药品生产监管处、稽查五处",
czzt: "查阅",
wcrq: "2024/3/20",
}]
return
}
if (newRouter.code == "国药准字H19990372") {
this.tableData = [{
data: "2024/3/21",
name: "1年内累计发生严重不良反应1起",
fbcs: "药品生产监管处、稽查一处",
czzt: "查阅",
wcrq: "2024/3/22",
}]
return
}
},
}, },
methods: {},
computed: {}, computed: {},
}; };
</script> </script>

@ -1,15 +1,15 @@
<template> <template>
<div class="pc-container"> <div class="pc-container">
<div class="system-header"> <div class="system-header">
<div class="left-tags">{{dataNow(2)+ dataNow(3) + date}}</div> <div class="left-tags">2023年8月11日 星期五 16:23:34</div>
<div class="system-title" text="产品画像">产品画像</div> <div class="system-title" text="产品画像">产品画像</div>
<div class="rigth-tags"> <div class="rigth-tags">
<!-- <div class="rigth-tags-diva"> <!-- <div class="rigth-tags-diva">
<span class="rigth-tags-spana"><i class="el-icon-sunny"></i></span <span class="rigth-tags-spana"><i class="el-icon-sunny"></i></span
>晴天 17~28°C <span class="rigth-tags-spanb"> | </span>东南风3级 >晴天 17~28°C <span class="rigth-tags-spanb"> | </span>东南风3级
</div> --> </div> -->
<div class="content-top-fanhui" @click="toBack" v-if="newRouter.cpda != 1"> <div class="content-top-fanhui" @click="toBack">
<div class="content-top-fanhui-main"> <div class="content-top-fanhui-main">
<div class="black-bg"></div> <div class="black-bg"></div>
<span>返回</span> <span>返回</span>
@ -27,6 +27,7 @@
<div class="system-box-left"> <div class="system-box-left">
<div class="system-boxleft-top top"> <div class="system-boxleft-top top">
<headtitle mytitle="基本信息"></headtitle> <headtitle mytitle="基本信息"></headtitle>
<!-- 组件 -->
<Basicbox></Basicbox> <Basicbox></Basicbox>
</div> </div>
<div class="system-boxleft-bottom bottom"> <div class="system-boxleft-bottom bottom">
@ -39,20 +40,10 @@
<div class="top"> <div class="top">
<!-- 头部 --> <!-- 头部 -->
<div class="fengxian-top"> <div class="fengxian-top">
<div class="fengxian-top-left">{{ query.name }}</div> <div class="fengxian-top-left">复方枸杞子胶囊</div>
<div class="fengxian-top-right"> <div class="fengxian-top-right">
<div class="right-text-bog" v-if="newRouter.type == 1"> <span>保健药</span>
<span v-if="query.type">{{ query.type }}</span> <span>OTC</span>
<span v-if="query.jx">{{ query.jx }}</span>
</div>
<div class="right-text-bog" v-if="newRouter.type == 2">
<span v-if="query.type">{{ query.type }}</span>
<span v-if="query.gllb">{{ query.gllb }}</span>
<span v-if="query.jgtz">{{ query.jgtz }}</span>
</div>
<div class="right-text-bog" v-if="newRouter.type != 1 && newRouter.type != 2">
<span v-if="query.type">{{ query.type }}</span>
</div>
</div> </div>
</div> </div>
<headtitle mytitle="风险提示信息"></headtitle> <headtitle mytitle="风险提示信息"></headtitle>
@ -65,7 +56,10 @@
</div> </div>
<!-- 右边 --> <!-- 右边 -->
<div class="system-box-right"> <div class="system-box-right">
<div class="top" v-if="this.$route.query.type == 1 || this.$route.query.type == 2"> <div
class="top"
v-if="this.$route.query.type == 1 || this.$route.query.type == 2"
>
<headtitle mytitle="召回信息"></headtitle> <headtitle mytitle="召回信息"></headtitle>
<recallbox></recallbox> <recallbox></recallbox>
</div> </div>
@ -80,7 +74,7 @@
</template> </template>
<script> <script>
import { getXXMSG } from "@/api/largeScreen"; import {getXXMSG} from '@/api/largeScreen'
// //
import headtitle from "./bigcomponents/headtitle"; import headtitle from "./bigcomponents/headtitle";
// //
@ -107,83 +101,30 @@ export default {
AdverseBox, AdverseBox,
}, },
data() { data() {
return { return {};
query: {},
newRouter: {},
date: '',
};
},
created() { this.dataNow(1) },
mounted() {
this.getData();
setInterval(() => {
this.dataNow(1)
}, 1000);
}, },
created() {},
mounted() {},
methods: { methods: {
toBack() { toBack() {
this.$router.go(-1); this.$router.go(-1);
}, },
dataNow(index) { getData(){
let now = new Date();
if (index == 1) {
let hour = now.getHours();
if (hour < 10) hour = "0" + hour
let minute = now.getMinutes();
if (minute < 10) minute = "0" + minute
let second = now.getSeconds();
if (second < 10) second = "0" + second
this.date = `${hour}:${minute}:${second}`
} else if (index == 2) {
let year = now.getFullYear();
if (year < 10) year = "0" + year
let month = now.getMonth() + 1;
if (month < 10) month = "0" + month
let day = now.getDate();
if (day < 10) day = "0" + day
return `${year}/${month}/${day}`
} else if (index == 3) {
let dayOfWeek = now.getDay();
//
let weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
let chineseDayOfWeek = weekDays[dayOfWeek];
return chineseDayOfWeek
}
},
getData() {
// debugger
this.newRouter = this.$route.query;
console.log(798, this.newRouter);
getXXMSG({ code: this.newRouter.code, type: this.newRouter.type }).then(
(res) => {
this.query = res.data;
} }
);
},
}, },
computed: {}, computed: {},
}; };
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
@import "@/assets/styles/theme.scss"; @import "@/assets/styles/theme.scss";
.content-top-fanhui { .content-top-fanhui {
margin-right: 10px; margin-right: 10px;
background: linear-gradient(0deg, background: linear-gradient(
0deg,
rgba(103, 200, 255, 0.2) 0%, rgba(103, 200, 255, 0.2) 0%,
rgba(111, 176, 231, 0.1) 100%); rgba(111, 176, 231, 0.1) 100%
);
cursor: pointer; cursor: pointer;
.content-top-fanhui-main { .content-top-fanhui-main {
padding: 2px 12px; padding: 2px 12px;
border: 1px solid; border: 1px solid;
@ -191,7 +132,6 @@ export default {
border-radius: 4px; border-radius: 4px;
display: flex; display: flex;
align-items: center; align-items: center;
.black-bg { .black-bg {
width: 26px; width: 26px;
height: 24px; height: 24px;
@ -199,19 +139,20 @@ export default {
background-size: cover; background-size: cover;
margin-top: 3px; margin-top: 3px;
} }
span { span {
font-size: 16px; font-size: 16px;
font-family: SourceHanSansSC; font-family: SourceHanSansSC;
font-weight: bold; font-weight: bold;
color: #feffff; color: #feffff;
text-shadow: 0px 4px 9px rgba(0, 0, 0, 0.29); text-shadow: 0px 4px 9px rgba(0, 0, 0, 0.29);
background: linear-gradient(0deg, background: linear-gradient(
0deg,
#caffff 0%, #caffff 0%,
#caffff 0%, #caffff 0%,
#ffffff 0%, #ffffff 0%,
#74b4f4 38.96484375%, #74b4f4 38.96484375%,
#3883ff 100%); #3883ff 100%
);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
@ -225,7 +166,8 @@ div {
.pc-container { .pc-container {
overflow: hidden; overflow: hidden;
height: 100%; height: 100%;
background: url("../../assets/images/daping/main-background.png") no-repeat center; background: url("../../assets/images/daping/main-background.png") no-repeat
center;
background-size: cover; background-size: cover;
position: relative; position: relative;
@ -241,7 +183,7 @@ div {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
&>div { & > div {
flex: 1; flex: 1;
height: 100%; height: 100%;
} }
@ -365,7 +307,7 @@ div {
height: 100%; height: 100%;
display: flex; display: flex;
&>div { & > div {
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -383,8 +325,7 @@ div {
} }
.system-box-left { .system-box-left {
// flex: 1; flex: 1;
width: 25vw;
.system-boxleft-top, .system-boxleft-top,
.system-boxleft-bottom { .system-boxleft-bottom {
@ -401,8 +342,6 @@ div {
.system-box-right { .system-box-right {
flex: 1; flex: 1;
width: 25vw;
} }
} }
@ -428,24 +367,21 @@ div {
.fengxian-top-right { .fengxian-top-right {
display: flex; display: flex;
height: 100%;
.right-text-bog {
display: flex;
align-items: center;
span { span {
margin: 0 3px; margin: 0 3px;
padding: 5px 14px; width: 93px;
background: url("../../assets/images/daping/fengxianbgc.png") no-repeat; height: 49px;
background-size: 100% 100%; background: url("../../assets/images/daping/fengxianbgc.png")
no-repeat center;
background-size: contain;
text-align: center; text-align: center;
line-height: 49px;
color: #4da5ff; color: #4da5ff;
font-weight: 400; font-weight: 400;
} }
} }
} }
} }
}
} }
</style> </style>

@ -1,8 +1,18 @@
<template> <template>
<div class="box"> <div class="box">
<el-pagination background :current-page.sync="currentPage" :page-size.sync="pageSize" <el-pagination
layout="prev, pager, next,jumper" :page-sizes="pageSizes" :pager-count="pagerCount" :total="total" background
@size-change="handleSizeChange" @current-change="handleCurrentChange" :small="smallShow"> :current-page.sync="currentPage"
:page-size.sync="pageSize"
layout="prev, pager, next,jumper"
:page-sizes="pageSizes"
:pager-count="pagerCount"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
small
>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
@ -31,10 +41,6 @@ export default {
return [10, 20, 30, 50]; return [10, 20, 30, 50];
}, },
}, },
smallShow: {
type: Boolean,
default: true
},
// 5 // 5
pagerCount: { pagerCount: {
type: Number, type: Number,
@ -66,7 +72,7 @@ export default {
return this.page; return this.page;
}, },
set(val) { set(val) {
// this.$emit("update:page", val); this.$emit("update:page", val);
}, },
}, },
pageSize: { pageSize: {
@ -74,7 +80,7 @@ export default {
return this.limit; return this.limit;
}, },
set(val) { set(val) {
// this.$emit("update:limit", val); this.$emit("update:limit", val);
}, },
}, },
}, },
@ -84,51 +90,46 @@ export default {
this.currentPage = 1; this.currentPage = 1;
} }
this.$emit("pagination", { page: this.currentPage, limit: val }); this.$emit("pagination", { page: this.currentPage, limit: val });
// if (this.autoScroll) { if (this.autoScroll) {
// scrollTo(0, 800); scrollTo(0, 800);
// } }
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.$emit("pagination", { page: val, limit: this.pageSize }); this.$emit("pagination", { page: val, limit: this.pageSize });
// if (this.autoScroll) { if (this.autoScroll) {
// scrollTo(0, 800); scrollTo(0, 800);
// } }
}, },
}, },
}; };
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
::v-deep .el-pagination { ::v-deep .el-pagination {
max-width: 100%; width: 100%;
display: flex; display: flex;
justify-content: end; justify-content: end;
padding: 8px 5px; padding: 8px 5px;
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
} }
.box { .box {
background-color: transparent !important; background-color: transparent !important;
} }
::v-deep .el-pagination.is-background .btn-prev { ::v-deep .el-pagination.is-background .btn-prev {
background-color: transparent !important; background-color: transparent !important;
border: 1px solid #123864; border: 1px solid #123864;
color: #579acf; color: #579acf;
} }
::v-deep .el-pagination.is-background .btn-next { ::v-deep .el-pagination.is-background .btn-next {
background-color: transparent !important; background-color: transparent !important;
border: 1px solid #123864; border: 1px solid #123864;
color: #579acf; color: #579acf;
} }
::v-deep .el-pagination .el-pager li { ::v-deep .el-pagination .el-pager li {
background-color: transparent !important; background-color: transparent !important;
border: 1px solid #123864; border: 1px solid #123864;
color: #579acf; color: #579acf;
} }
// ::v-deep .el-pagination.is-background.el-pager li:not(.disabled).active { // ::v-deep .el-pagination.is-background.el-pager li:not(.disabled).active {
// background: rgba(20, 131, 242, 0.2) !important; // background: rgba(20, 131, 242, 0.2) !important;
// border: 1px solid #1483f2; // border: 1px solid #1483f2;
@ -138,14 +139,12 @@ export default {
::v-deep .el-pagination__jump { ::v-deep .el-pagination__jump {
margin: 0; margin: 0;
color: #2668d6; color: #2668d6;
.el-input__inner { .el-input__inner {
background-color: transparent !important; background-color: transparent !important;
border: 1px solid #123864; border: 1px solid #123864;
color: #2668d6; color: #2668d6;
} }
} }
::v-deep .el-pager li.active { ::v-deep .el-pager li.active {
background: rgba(20, 131, 242, 0.52) !important; background: rgba(20, 131, 242, 0.52) !important;
border: 1px solid #1483f2; border: 1px solid #1483f2;
@ -154,4 +153,5 @@ export default {
// ::v-deep .el-pagination__total { // ::v-deep .el-pagination__total {
// color: #2668d6; // color: #2668d6;
// }</style> // }
</style>

@ -1,3 +1,4 @@
<template> <template>
<div class="container"> <div class="container">
<div class="content"> <div class="content">
@ -25,7 +26,7 @@
<!-- <img src="@/assets/images/profile.jpg" alt="" /> --> <!-- <img src="@/assets/images/profile.jpg" alt="" /> -->
<el-dropdown trigger="click" @command="tuichudengl"> <el-dropdown trigger="click" @command="tuichudengl">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
您好,{{ userName }}<i class="el-icon-arrow-down"></i> 您好,{{ userName }}<i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="0">退出登录</el-dropdown-item> <el-dropdown-item command="0">退出登录</el-dropdown-item>
@ -34,7 +35,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="content-content">
<div class="title"> <div class="title">
<img src="@/assets/images/daping/guangxian.png" alt="" /> <img src="@/assets/images/daping/guangxian.png" alt="" />
<div>产品画像搜索</div> <div>产品画像搜索</div>
@ -42,14 +43,13 @@
<div class="content-bottom-box"> <div class="content-bottom-box">
<div class="content-bottom"> <div class="content-bottom">
<div class="input"> <div class="input">
<el-input v-model="input" placeholder="请输入产品名称、批准文号/备案编号"></el-input> <el-input v-model="input" placeholder="请输入内容"></el-input>
</div> </div>
<!-- @click="gotoBgpage" --> <div class="sousuo" @click="gotoBgpage">
<div class="sousuo" @click="getsearchList()" >
<img src="@/assets/images/daping/searchicon.png" alt="" /> <img src="@/assets/images/daping/searchicon.png" alt="" />
搜索 搜索
</div> </div>
<div class="box-dialog" v-loading="loading" v-show="!loading"> <div class="box-dialog" v-loading="loading" v-if="dialog">
<div class="dialog-item" v-for='(item, index) in searchList' :key="index" @click="getValue(item)"> <div class="dialog-item" v-for='(item, index) in searchList' :key="index" @click="getValue(item)">
{{ item.name }} {{ item.name }}
</div> </div>
@ -57,85 +57,13 @@
</div> </div>
</div> </div>
</div> </div>
<div class="bottomList">
<div class="conbtm-item" v-for="(item, index) in btmLitstTitle" v-show="btmLitstTitleShow">
<span class="conitem-bgimg">{{ index + 1 }}</span>
<div class="conitme-title"><span class="spantext">{{ item.name }}</span></div>
<div class="conitme-right-item" v-for="(item, index) in item.childarray" @click="onActivebtm(item)"
:class="activebtm == item.value ? 'conitme-right-item-active' : ''">
{{ item.lable }}
</div>
</div>
<div class="bottomListShow">
<el-button type="success" @click="btmLitstTitleShow = !btmLitstTitleShow">{{ btmLitstTitleShow ? "收起" : "展开"
}}<i class="el-icon-d-arrow-left"></i></el-button>
</div>
<div class="listBottom" v-loading="loadingTow">
<div class="listBottom-title">
<div class="span1"></div>
<div class="div1">为您查询到
<span class="span2">{{ total }}</span>
条数据
</div>
</div>
<div class="listBottom-item" v-for="(item, index) in btmLise">
<div class="listBottom-item-left">
<div class="listitem-title">
{{ item.name || "" }}
</div>
<div class="listitemleft-bottom">
<span class="span1">
<span>药品批准文号</span>
<el-tooltip class="item" effect="dark" :content="item.code || ''" placement="top-start">
<span class="span2">{{ item.code || "" }}</span>
</el-tooltip>
</span>
<span class="span1">
<span>持有/注册/备案人:</span>
<el-tooltip class="item" effect="dark" :content="item.scqy || ''" placement="top-start">
<span class="span2">{{ item.scqy || "" }}</span>
</el-tooltip>
</span>
</div>
</div>
<!-- <div class="listBottom-item-right">
<div class="listitem-title">近3年统计</div>
<div class="listitemright-bottom">
<div class="listitemright-bottom-item">
<img src='../assets/images/icon-xxx1.png' alt="">抽检不合格:<span>{{ item.cjbhg || "0" }}</span>
</div>
<div class="listitemright-bottom-item">
<img src='../assets/images/icon-xxx2.png' alt="">不良反应:<span>{{ item.blfy || "0" }}</span>
</div>
<div class="listitemright-bottom-item">
<img src='../assets/images/icon-xxx3.png' alt="">产品召回:<span>{{ item.cpzh || "0" }}</span>
</div>
</div>
</div> -->
<div class="listBottom-item-xiangqing">
<el-button type="primary" @click="ListGO(item)"></el-button>
</div>
</div>
</div>
<div ref="pagination">
<Pagination :total="total" :page="query.current" :limit="query.size" @pagination="changeList"
:smallShow="false"></Pagination>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import Pagination from "@/views/components/Pagination";
import { findByType } from "@/api/largeScreen/index";
export default { export default {
name: '', name: '',
components: { Pagination }, components: {},
data() { data() {
return { return {
input: "", input: "",
@ -145,124 +73,36 @@ export default {
searchList: [], searchList: [],
getData: {}, getData: {},
userName: '', userName: '',
btmLitstTitleShow: true,
btmLitstTitle: [{
name: "药品",
childarray: [{
lable: "本省注册药品",
value: 1,
}, {
lable: "本省持受托生产药品",
value: 2,
},]
}, {
name: "医疗器械",
childarray: [{
lable: "三类医疗器械",
value: 3,
}, {
lable: "三类体外诊断试剂",
value: 4,
}, {
lable: "二类医疗器械",
value: 5,
}, {
lable: "二类体外诊断试剂",
value: 6,
}, {
lable: "一类医疗器械",
value: 7,
}, {
lable: "一类体外诊断试剂",
value: 8,
},]
}, {
name: "化妆品",
childarray: [{
lable: "国产普通化妆品",
value: 9,
}, {
lable: "国产特殊化妆品",
value: 10,
}, {
lable: "进口普通化妆品",
value: 11,
}, {
lable: "进口特殊化妆品",
value: 12,
}]
},],
activebtm: 1,
query: {
current: 1,
size: 10,
type: 1,
},
total: 0,
btmLise: [],
loadingTow: true
} }
}, },
watch: { watch: {
// async input(newValue, oldValue) { async input(newValue, oldValue) {
// // let data = await this.$api.productPortrayal.findByName({current:1,size:10}); // let data = await this.$api.productPortrayal.findByName({current:1,size:10});
// if (newValue) { if (newValue) {
// this.loading = true; this.loading = true;
// this.dialog = true; this.dialog = true;
// // let a = this.throttle(this.getsearchList,500) // let a = this.throttle(this.getsearchList,500)
// this.getsearchList(newValue); this.getsearchList(newValue);
// } else { } else {
// this.dialog = false; this.dialog = false;
// this.searchList = []; this.searchList = [];
// this.loading = false; this.loading = false;
// } }
// } }
}, },
created() { this.dataNow(1) }, created() { this.dataNow(1) },
mounted() { mounted() {
this.getDataInterval(1) this.getDataInterval(1)
this.getLiset() console.log(localStorage.getItem('userDto'))
let user = JSON.parse(localStorage.getItem('userDto')) let user = JSON.parse(localStorage.getItem('userDto'))
console.log(user)
this.userName = user.realName this.userName = user.realName
}, },
methods: { methods: {
ListGO(item) {
this.$router.push({ path: "/bgpage", query: { code: item.code, name: item.name, type: item.type } })
},
changeList(e) {
this.loadingTow = true
this.query.current = e.page;
this.query.size = e.limit;
this.getLiset()
},
onActivebtm(item) {
this.loadingTow = true
this.activebtm = item.value;
this.query.current = 1;
this.query.size = 10;
this.query.type = item.value
this.getLiset()
},
//
getLiset() {
findByType(this.query).then((res) => {
console.log(res);
if (res.code == 200) {
this.total = res.data.total
this.btmLise = res.data.records
this.loadingTow = false
}
})
},
gotoBgpage() { gotoBgpage() {
if (this.input) { if (this.input) {
console.log(this.searchList, 'this.searchList') console.log(this.searchList, 'this.searchList')
console.log(this.getData.code, " this.getData"); if (this.searchList.length == 1) {
if (this.searchList.length == 1 || this.getData.code) {
this.$router.push({ path: "/bgpage", query: { code: this.getData.code, name: this.getData.name, type: this.getData.type } }) this.$router.push({ path: "/bgpage", query: { code: this.getData.code, name: this.getData.name, type: this.getData.type } })
this.searchList = []; this.searchList = [];
} else if (this.searchList.length > 1) { } else if (this.searchList.length > 1) {
@ -313,20 +153,18 @@ export default {
getValue(item) { getValue(item) {
this.input = item.name; this.input = item.name;
this.getData = item; this.getData = item;
this.loading = true; setTimeout(() => {
this.gotoBgpage() this.dialog = false;
}, 200);
}, },
async getsearchList() { async getsearchList(newValue) {
let res = await this.$api.productPortrayal.findByName({ name: this.input }); let data = await this.$api.productPortrayal.findByName({ name: newValue });
if (data.code == 200) {
this.loading = false; this.loading = false;
this.searchList = res.data; this.searchList = data.data;
if (this.searchList.length < 1) {
if(this.searchList.length>0){ this.dialog = false;
this.loading = false }
}else{
this.$modal.msgWarning("未搜索到结果!")
this.loading = true
} }
}, },
tuichudengl() { tuichudengl() {
@ -346,7 +184,7 @@ export default {
.container { .container {
width: 100vw; width: 100vw;
min-height: 100vh; height: 100vh;
padding: 10px 40px 0; padding: 10px 40px 0;
background-color: #000000; background-color: #000000;
position: relative; position: relative;
@ -411,7 +249,7 @@ export default {
} }
span { span {
font-size: 18px; font-size: 16px;
font-family: SourceHanSansSC; font-family: SourceHanSansSC;
font-weight: bold; font-weight: bold;
color: #FEFFFF; color: #FEFFFF;
@ -447,25 +285,18 @@ export default {
} }
.content-content {
height: 23vh;
position: relative;
}
.title { .title {
margin-top: 60px; margin-top: 250px;
color: #fff; color: #fff;
// display: flex; // display: flex;
// justify-content: center; // justify-content: center;
div { div {
position: relative;
z-index: 2;
padding-left: 50px; padding-left: 50px;
text-align: center; text-align: center;
font-size: 48px; font-size: 48px;
font-family: Tensentype; font-family: Tensentype;
font-weight: 700; font-weight: normal;
color: #FFFFFF; color: #FFFFFF;
line-height: 18px; line-height: 18px;
text-shadow: 0px 8px 16px rgba(24, 118, 172, 0.6); text-shadow: 0px 8px 16px rgba(24, 118, 172, 0.6);
@ -473,25 +304,22 @@ export default {
// -webkit-background-clip: text; // -webkit-background-clip: text;
// -webkit-text-fill-color: transparent; // -webkit-text-fill-color: transparent;
z-index: 20; z-index: 20;
} }
img { img {
width: 316px; width: 316px;
height: 316px; height: 316px;
position: absolute; position: absolute;
z-index: 1; top: 220px;
left: 50%; left: 830px;
transform: translate(-40%, -30%);
} }
} }
.content-bottom-box { .content-bottom-box {
position: absolute; position: absolute;
top: 60%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
z-index: 999;
.content-bottom { .content-bottom {
position: relative; position: relative;
@ -518,8 +346,6 @@ export default {
font-weight: 400; font-weight: 400;
color: #9CB4E2; color: #9CB4E2;
line-height: 18px; line-height: 18px;
overflow: hidden;
padding-right: 30px;
} }
} }
} }
@ -557,8 +383,7 @@ export default {
top: 120px; top: 120px;
left: 10px; left: 10px;
padding: 2px; padding: 2px;
// background: linear-gradient(to right, rgba(24, 101, 242, 0.1), rgba(24, 101, 242, 0.1)); background: linear-gradient(to right, rgba(24, 101, 242, 0.1), rgba(24, 101, 242, 0.1));
background: linear-gradient(to right, rgb(1, 2, 62), rgb(25, 31, 84));
overflow: scroll; overflow: scroll;
.dialog-item { .dialog-item {
@ -581,218 +406,17 @@ export default {
} }
} }
.bottomList {
padding-left: 50px;
color: #fff;
.conbtm-item {
display: flex;
align-items: center;
margin: 20px 0;
color: #fff;
.conitem-bgimg {
width: 45px;
height: 45px;
font-size: 16px;
background-image: url("../assets/images/icon-type.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}
.conitme-title {
color: #f28221;
padding: 0 15px;
font-size: 17px;
text-align: justify;
/* 将文字两端对齐 */
.spantext {
display: inline-block;
width: 70px;
text-align: justify;
text-align-last: justify;
}
}
.conitme-right-item {
padding: 10px 20px;
background-color: #314b70;
margin-right: 1rem;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
&:hover {
background: #1d82dc;
}
}
.conitme-right-item-active {
background: #1d82dc;
}
}
.bottomListShow {
position: relative;
z-index: 200;
text-align: center;
margin-left: -60px;
.el-icon-d-arrow-left {
transform: rotate(90deg);
font-size: 16px;
margin-left: 5px;
}
::v-deep .el-button {
font-size: 16px;
background: #4ed4a4;
}
}
.listBottom {
.listBottom-title {
display: flex;
align-items: center;
.span1 {
width: 25px;
height: 20px;
background-image: url("../assets/images/icon-search.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
margin-right: 10px;
}
.div1 {
color: #accbee;
font-size: 16px;
.span2 {
color: #0cc16e;
margin: 0 8px;
}
}
}
.listBottom-item {
width: 100%;
display: flex;
justify-content: space-between;
padding: 15px 20px;
color: #fff;
background: #1f3552;
border-radius: 10px;
margin: 15px 0;
.listitem-title {
width: 100%;
white-space: nowrap;
/* 禁止文本换行 */
overflow: hidden;
/* 溢出部分隐藏 */
text-overflow: ellipsis;
font-weight: 700;
font-size: 18px;
}
.listBottom-item-left {
width: 40%;
.listitemleft-bottom {
margin-top: 20px;
color: #accbee;
font-size: 18px;
display: flex;
align-items: center;
.span1 {
margin-right: 10px;
display: flex;
align-items: center;
.span2 {
display: inline-block;
width: 200px;
white-space: nowrap;
/* 禁止文本换行 */
overflow: hidden;
/* 溢出部分隐藏 */
text-overflow: ellipsis;
/* 显示省略号 */
}
}
}
}
.listBottom-item-right {
width: 50%;
.listitemright-bottom {
display: flex;
align-items: center;
.listitemright-bottom-item {
margin-top: 10px;
display: flex;
align-items: center;
font-size: 18px;
margin-right: 10px;
img {
width: 45px;
height: 45px;
margin-right: 10px;
}
span {
margin-left: 10px;
color: #35c4ff;
font-size: 28px;
font-weight: 700;
}
}
}
}
.listBottom-item-xiangqing {
display: flex;
align-items: center;
::v-deep .el-button {
font-size: 16px;
}
}
}
}
}
// //
::v-deep .el-loading-mask { ::v-deep .el-loading-mask {
background-color: rgba(205, 235, 243, 0.1); background-color: rgba(205, 235, 243, 0.1);
} }
// // //
// ::v-deep .el-loading-spinner .path{ // ::v-deep .el-loading-spinner .path{
// stroke: #005432; // stroke: #005432;
// } // }
// //
// ::v-deep .el-loading-spinner .el-loading-text{ // ::v-deep .el-loading-spinner .el-loading-text{
// color: #005432; // color: #005432;
// }</style> // }</style>

@ -49,7 +49,7 @@ module.exports = {
} }
}, },
"API": { "API": {
target: "https://dev-mssm-liaoning.lesdev.cn", target: "https://dev-mssm-liaoning.imian.org.cn",
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
["API"]: "", ["API"]: "",

Loading…
Cancel
Save