diff --git a/src/App.vue b/src/App.vue index e5c8ca0..78e814b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,10 +40,6 @@ export default { cd /usr/share/nginx/html/ggfw-dangan 移动到文件夹下 unzip ggfw-dangan.zip -d . 解压 - - - - */ }, }; diff --git a/src/api/apparatus/index.js b/src/api/apparatus/index.js index 5a4a703..a978e2b 100644 --- a/src/api/apparatus/index.js +++ b/src/api/apparatus/index.js @@ -32,6 +32,22 @@ export default { params: query, }); }, + //药品特殊药品类型统计 + tsypCount(query) { + return request({ + url: "/pharmaceuticals/vRdgYpwhGxwz/tsypCount", + method: "GET", + params: query, + }); + }, + //药品剂型统计 + jxCount(query) { + return request({ + url: "/pharmaceuticals/vRdgYpwhGxwz/jxCount", + method: "GET", + params: query, + }); + }, // 药品地图 vRdgYpwhGxwztareacount(query) { return request({ diff --git a/src/main.js b/src/main.js index 9a93cb1..9ced1fa 100644 --- a/src/main.js +++ b/src/main.js @@ -39,6 +39,7 @@ import router from "./router"; import directive from "./directive"; // directive import plugins from "./plugins"; // plugins import { download } from "@/utils/request"; +import { mygotohuaxiang } from "@/utils/request"; import "./assets/icons"; // icon import "./permission"; // permission control @@ -87,6 +88,7 @@ Vue.prototype.addDateRange = addDateRange; Vue.prototype.selectDictLabel = selectDictLabel; Vue.prototype.selectDictLabels = selectDictLabels; Vue.prototype.download = download; +Vue.prototype.mygotohuaxiang = mygotohuaxiang; Vue.prototype.handleTree = handleTree; Vue.prototype.dictList = dictList; Vue.prototype.$api = API; diff --git a/src/permission.js b/src/permission.js index 936a40b..4794a00 100644 --- a/src/permission.js +++ b/src/permission.js @@ -33,6 +33,9 @@ router.beforeEach((to, from, next) => { // }else{ // from.meta.keepAlive = true // } + if(JSON.stringify(to.query) != '{}'){ + store.commit('ADD_QUERY',to.query) + } if (to.query.token) { localStorage.setItem('MSSM-LIAONING__TOKEN', to.query.token) } diff --git a/src/store/modules/myselfPermission.js b/src/store/modules/myselfPermission.js index dbf4023..2647745 100644 --- a/src/store/modules/myselfPermission.js +++ b/src/store/modules/myselfPermission.js @@ -54,9 +54,9 @@ const selfPermission = { .then((res) => { if (res.message == '未知的token,请重新登录!' || res.status == 40002) { setTimeout(() => { - // location.href = location.origin + "/login"; + location.href = location.origin + "/login"; Message.error(res.message); - }, 2000); + }, 4000); } let infoData = res.result; // let query = { diff --git a/src/store/modules/tags.js b/src/store/modules/tags.js index da00943..313e4ba 100644 --- a/src/store/modules/tags.js +++ b/src/store/modules/tags.js @@ -9,12 +9,16 @@ const mapSate = { state: { list: [], + myquery:{} }, mutations: { ADD_ROUTER(state, view) { state.list = view; }, + ADD_QUERY(state, view) { + state.myquery = view; + }, }, actions: {}, diff --git a/src/utils/request.js b/src/utils/request.js index 2e3ead0..34014ed 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -210,5 +210,22 @@ export function download(url, params, filename, config) { downloadLoadingInstance.close(); }); } +export function mygotohuaxiang(row,type){ + console.log(row,type); + if(type==1){ + window.open(`${location.origin}/ggfw-jcphx/#/bgpage?code=${row.yppzwh}&name=${row.yptymc}&type=${type}`); + + } + if(type==2){ + window.open(`${location.origin}/ggfw-jcphx/#/bgpage?code=${row.zczh}&name=${row.cpmc}&type=${type}`); + + } + if(type=='国产' || type=='进口普通'){ + window.open(`${location.origin}/ggfw-jcphx/#/bgpage?code=${row.bah}&name=${row.cpmc}&type=${3}`); + } + if(type=='国产特殊' || type=='进口特殊'){ + window.open(`${location.origin}/ggfw-jcphx/#/bgpage?code=${row.zczh}&name=${row.cpmc}&type=${3}`); + } +} export default service; diff --git a/src/views/components/AdvancedSearch/dishi.vue b/src/views/components/AdvancedSearch/dishi.vue new file mode 100644 index 0000000..05189ab --- /dev/null +++ b/src/views/components/AdvancedSearch/dishi.vue @@ -0,0 +1,54 @@ + + + + diff --git a/src/views/components/MapCars.vue b/src/views/components/MapCars.vue index 80d00a7..8105fe8 100644 --- a/src/views/components/MapCars.vue +++ b/src/views/components/MapCars.vue @@ -94,6 +94,10 @@ export default { mystortTow: null, chartData: ["其他"], chartDatatow: [10], + chartDataYao1: ["其他"], + chartDatatowYao1: [10], + chartDataYao2: ["其他"], + chartDatatowYao2: [10], clickShow: true, }; }, @@ -138,6 +142,10 @@ export default { } } else if (this.echartstitle == "药品") { let msg1 = await this.$api.apparatus.vRdgYpwhGxwztypecount({ area: this.mystortTow }); + //药品特殊药品类型统计 + let msg2 = await this.$api.apparatus.tsypCount({ area: this.mystortTow }); + //药品剂型统计 + let msg3 = await this.$api.apparatus.jxCount({ area: this.mystortTow }); if (msg1.code == 200) { msg1.data.forEach(item => { if (item.ypfl && item.ypfl != 'null') { @@ -146,6 +154,18 @@ export default { } }) + msg2.data.forEach(item => { + if (item.ypfl && item.ypfl != 'null') { + this.chartDatatowYao1.push(item.count) + this.chartDataYao1.push(item.ypfl) + } + }) + msg3.data.forEach(item => { + if (item.ypfl && item.ypfl != 'null') { + this.chartDatatowYao2.push(item.count) + this.chartDataYao2.push(item.ypfl) + } + }) this.clickShow = true } @@ -296,10 +316,84 @@ export default { }; this.myChart.setOption(option, true); - this.myChart2.setOption(option, true); - this.myChart3.setOption(option, true); + if (this.echartstitle == '药品') { + this.Yaotongyi() + } + + }, + ops(chartData, chartDatatow,bzc) { + return { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + }, + formatter: function (params) { + if (params && params.length > 0) { + return params[0].name + ' : ' + params[0].value; + } + return ''; + } + }, + grid: { + left: '5%', + right: '8%', + bottom: '10%', + containLabel: true + }, + xAxis: [{ + type: 'category', + data: chartData, + axisTick: { + alignWithLabel: true + }, + axisLabel: { + formatter: function (value) { + return value.split('\n').join('\n'); // 使用换行符将标签内容分行 + }, + }, + }], + yAxis: [{ + type: 'value' + }], + series: [{ + name: 'Direct', + type: 'bar', + barWidth: '20%', // 调整柱子宽度为 20% + data: chartDatatow, + label: { + show: true, + position: 'top', + }, + }], + dataZoom: [ + { + "show": true, + "height": 25, + "xAxisIndex": [ + 0 + ], + bottom: 0, + "start": 0, + "end": bzc, + zoomLock: true, // 锁定 dataZoom 区域大小 + handleSize: '110%', + handleStyle: { + color: "#d3dee5", + }, + textStyle: { + color: "#fff" + }, + borderColor: "#90979c" + } + ], + }; + }, + Yaotongyi(data) { + this.myChart2.setOption(this.ops(this.chartDataYao1, this.chartDatatowYao1,15), true); + this.myChart3.setOption(this.ops(this.chartDataYao2, this.chartDatatowYao2,2), true); }, initMap() { this.globalMap = L.map("leafletMap", { @@ -363,10 +457,11 @@ export default { let that = this; erd.listenTo(document.getElementById("echarts"), function (element) { that.myChart.resize(); - that.myChart2.resize(); - that.myChart3.resize(); + if (that.echartstitle == '药品') { + that.myChart2.resize(); + that.myChart3.resize(); + } that.globalMap.fitBounds(that.mygeojson.getBounds()); - }) }, showinitCityLayer() { @@ -530,12 +625,14 @@ export default { width: 45vw; height: 60vh; } + .echarts2 { - width: 45vw; + width: 42vw; height: 60vh; } + .echarts3 { - width: 45vw; + width: 42vw; height: 60vh; } diff --git a/src/views/index.vue b/src/views/index.vue index 555f2fc..9ee02bd 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -45,7 +45,6 @@ $router.currentRoute.meta.title }} - diff --git a/src/views/productsMsg/components/healthSon/QIxiehealthOne.vue b/src/views/productsMsg/components/healthSon/QIxiehealthOne.vue index ebb9ae2..57d0dd8 100644 --- a/src/views/productsMsg/components/healthSon/QIxiehealthOne.vue +++ b/src/views/productsMsg/components/healthSon/QIxiehealthOne.vue @@ -138,6 +138,7 @@ +
@@ -150,8 +151,17 @@
+ + + + +
重置 @@ -385,11 +395,12 @@ - + @@ -415,11 +426,17 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + + export default { components: { MapCars, - AdvancedSearch + AdvancedSearch, + mydata, + dishi }, mixins: [mySortChange], data() { @@ -507,6 +524,7 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "医疗器械",//产品类型 cplb: "第一类",//产品类别 + zcrszshi: "", area: this.$store.getters.usersort }, @@ -566,12 +584,15 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -661,8 +682,9 @@ export default { }, //搜索 searchList() { + //混入的函数 + this.mydataFn(); this.form.current = 1; - for (let i in this.form1) { this.form[i] = this.form1[i]; } @@ -675,6 +697,8 @@ export default { }, //重置 reset(type) { + //混入的函数 + this.mydataFnqingkong() this.btnArrshow = '全部' this.$refs.tableRef.clearSort(); // 清除排序 @@ -708,6 +732,7 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "医疗器械",//产品类型 cplb: "第一类",//产品类别 + zcrszshi: "", area: this.$store.getters.usersort }; this.form = { diff --git a/src/views/productsMsg/components/healthSon/QIxiehealthThree.vue b/src/views/productsMsg/components/healthSon/QIxiehealthThree.vue index a7e9147..e1d142b 100644 --- a/src/views/productsMsg/components/healthSon/QIxiehealthThree.vue +++ b/src/views/productsMsg/components/healthSon/QIxiehealthThree.vue @@ -150,8 +150,17 @@
+ +
+ + +
重置 @@ -384,11 +393,13 @@ - + @@ -415,11 +426,16 @@ import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { components: { MapCars, - AdvancedSearch + AdvancedSearch, + mydata, + dishi }, mixins: [mySortChange], data() { @@ -507,6 +523,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "医疗器械",//产品类型 cplb: "第三类",//产品类别 + zcrszshi: "", + area: this.$store.getters.usersort }, @@ -566,12 +584,15 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -661,6 +682,8 @@ export default { }, //搜索 searchList() { + this.mydataFn(); + this.form.current = 1; for (let i in this.form1) { @@ -675,6 +698,8 @@ export default { }, //重置 reset(type) { + this.mydataFnqingkong() + this.$refs.tableRef.clearSort(); // 清除排序 this.btnArrshow = '全部' @@ -708,6 +733,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "医疗器械",//产品类型 cplb: "第三类",//产品类别 + zcrszshi: "", + area: this.$store.getters.usersort }; this.form = { diff --git a/src/views/productsMsg/components/healthSon/QixiehealthTow.vue b/src/views/productsMsg/components/healthSon/QixiehealthTow.vue index 2ee9b50..549c8c0 100644 --- a/src/views/productsMsg/components/healthSon/QixiehealthTow.vue +++ b/src/views/productsMsg/components/healthSon/QixiehealthTow.vue @@ -150,8 +150,18 @@
+ +
+ + + +
重置 @@ -385,11 +395,13 @@ - + @@ -415,11 +427,15 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; export default { components: { MapCars, - AdvancedSearch + AdvancedSearch, + mydata, + dishi }, mixins: [mySortChange], data() { @@ -507,6 +523,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "医疗器械",//产品类型 cplb: "第二类",//产品类别 + zcrszshi:"", + area: this.$store.getters.usersort }, @@ -566,12 +584,15 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -661,6 +682,7 @@ export default { }, //搜索 searchList() { + this.mydataFn(); this.form.current = 1; for (let i in this.form1) { @@ -675,6 +697,8 @@ export default { }, //重置 reset(type) { + this.mydataFnqingkong() + this.$refs.tableRef.clearSort(); // 清除排序 this.btnArrshow = '全部' @@ -708,6 +732,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "医疗器械",//产品类型 cplb: "第二类",//产品类别 + zcrszshi:"", + area: this.$store.getters.usersort }; this.form = { diff --git a/src/views/productsMsg/components/healthSon/TiwaihealthOne.vue b/src/views/productsMsg/components/healthSon/TiwaihealthOne.vue index da8de5b..df84edc 100644 --- a/src/views/productsMsg/components/healthSon/TiwaihealthOne.vue +++ b/src/views/productsMsg/components/healthSon/TiwaihealthOne.vue @@ -150,8 +150,17 @@
+ +
+ + +
重置 @@ -385,11 +394,13 @@ - + @@ -415,8 +426,11 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { - components: { MapCars, AdvancedSearch }, + components: { MapCars, AdvancedSearch, mydata,dishi }, mixins: [mySortChange], data() { return { @@ -503,6 +517,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "体外诊断试剂",//产品类型 cplb: "第一类",//产品类别 + zcrszshi:"", + area: this.$store.getters.usersort }, @@ -562,12 +578,15 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -657,6 +676,8 @@ export default { }, //搜索 searchList() { + this.mydataFn(); + this.form.current = 1; for (let i in this.form1) { @@ -671,6 +692,8 @@ export default { }, //重置 reset(type) { + this.mydataFnqingkong() + this.$refs.tableRef.clearSort(); // 清除排序 this.btnArrshow = '全部' @@ -704,6 +727,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "体外诊断试剂",//产品类型 cplb: "第一类",//产品类别 + zcrszshi:"", + area: this.$store.getters.usersort }; this.form = { diff --git a/src/views/productsMsg/components/healthSon/TiwaihealthThree.vue b/src/views/productsMsg/components/healthSon/TiwaihealthThree.vue index e0893b6..084353b 100644 --- a/src/views/productsMsg/components/healthSon/TiwaihealthThree.vue +++ b/src/views/productsMsg/components/healthSon/TiwaihealthThree.vue @@ -150,7 +150,16 @@
- + + + +
+ +
@@ -384,11 +393,13 @@ - + @@ -415,11 +426,16 @@ import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { components: { MapCars, - AdvancedSearch + AdvancedSearch, + mydata, + dishi }, mixins: [mySortChange], @@ -508,6 +524,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "体外诊断试剂",//产品类型 cplb: "第三类",//产品类别 + zcrszshi: "", + area: this.$store.getters.usersort }, @@ -567,12 +585,15 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -662,6 +683,8 @@ export default { }, //搜索 searchList() { + this.mydataFn(); + this.form.current = 1; for (let i in this.form1) { @@ -676,6 +699,8 @@ export default { }, //重置 reset(type) { + this.mydataFnqingkong() + this.$refs.tableRef.clearSort(); // 清除排序 this.btnArrshow = '全部' @@ -709,6 +734,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "体外诊断试剂",//产品类型 cplb: "第三类",//产品类别 + zcrszshi: "", + area: this.$store.getters.usersort /* */ diff --git a/src/views/productsMsg/components/healthSon/TiwaihealthTow.vue b/src/views/productsMsg/components/healthSon/TiwaihealthTow.vue index ea0b65f..932edc6 100644 --- a/src/views/productsMsg/components/healthSon/TiwaihealthTow.vue +++ b/src/views/productsMsg/components/healthSon/TiwaihealthTow.vue @@ -150,8 +150,17 @@
+ +
+ + +
重置 @@ -383,11 +392,13 @@ - + @@ -413,11 +424,16 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { components: { MapCars, - AdvancedSearch + AdvancedSearch, + mydata, + dishi }, mixins: [mySortChange], @@ -506,6 +522,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "体外诊断试剂",//产品类型 cplb: "第二类",//产品类别 + zcrszshi:"", + area: this.$store.getters.usersort }, @@ -565,12 +583,15 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -660,6 +681,8 @@ export default { }, //搜索 searchList() { + this.mydataFn(); + this.form.current = 1; for (let i in this.form1) { @@ -674,6 +697,7 @@ export default { }, //重置 reset(type) { + this.mydataFnqingkong() this.$refs.tableRef.clearSort(); // 清除排序 this.btnArrshow = '全部' @@ -707,6 +731,8 @@ export default { jgjzccf: "",//结构及组成或主要组成部 cplx: "体外诊断试剂",//产品类型 cplb: "第二类",//产品类别 + zcrszshi:"", + area: this.$store.getters.usersort }; this.form = { diff --git a/src/views/productsMsg/components/healthSon/components/mydata.vue b/src/views/productsMsg/components/healthSon/components/mydata.vue new file mode 100644 index 0000000..77761ed --- /dev/null +++ b/src/views/productsMsg/components/healthSon/components/mydata.vue @@ -0,0 +1,66 @@ + + + + diff --git a/src/views/productsMsg/components/healthSon/health.vue b/src/views/productsMsg/components/healthSon/health.vue index 523411f..ebb7d8c 100644 --- a/src/views/productsMsg/components/healthSon/health.vue +++ b/src/views/productsMsg/components/healthSon/health.vue @@ -152,8 +152,17 @@
+ +
+ + +
重置 @@ -387,11 +396,11 @@ - + @@ -417,11 +426,14 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCars.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; import { mySortChange } from './mySortChange.js'; +import mydata from "./components/mydata.vue" +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { - components: { MapCars, AdvancedSearch }, + components: { MapCars, AdvancedSearch, mydata,dishi }, mixins: [mySortChange], data() { return { @@ -503,6 +515,7 @@ export default { ylqxflbm: "",//输入分类编码 jgjzccf: "",//结构及组成或主要组成部 cplx: "", + zcrszshi: "",//所在地市 area: this.$store.getters.usersort }, @@ -565,17 +578,21 @@ export default { }; }, async mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { }, methods: { + // mySortChange(e) { // this.sortableshowDaty = e // this.form1.pzrqSort = "" @@ -676,8 +693,8 @@ export default { }, //搜索 searchList() { + this.mydataFn(); this.form.current = 1; - for (let i in this.form1) { this.form[i] = this.form1[i]; } @@ -690,6 +707,7 @@ export default { }, //重置 reset(type) { + this.mydataFnqingkong() this.$refs.tableRef.clearSort(); // 清除排序 this.btnArrshow = '全部' this.form1 = { @@ -722,6 +740,7 @@ export default { ylqxflbm: "",//输入分类编码 jgjzccf: "",//结构及组成或主要组成部 cplx: "", + zcrszshi: "",//所在地市 area: this.$store.getters.usersort }; this.form = { diff --git a/src/views/productsMsg/components/healthSon/mySortChange.js b/src/views/productsMsg/components/healthSon/mySortChange.js index 3fcbcfc..a051ebe 100644 --- a/src/views/productsMsg/components/healthSon/mySortChange.js +++ b/src/views/productsMsg/components/healthSon/mySortChange.js @@ -21,5 +21,26 @@ export const mySortChange = { } this.searchList() }, + mydataFn() { + if (this.$refs.mydata.pzrqStartTime) { + this.form1.pzrqStart = this.$refs.mydata.pzrqStartTime[0] + this.form1.pzrqEnd = this.$refs.mydata.pzrqStartTime[1] + } else { + this.$refs.mydata.form1.pzrqStart = "" + this.$refs.mydata.form1.pzrqEnd = "" + } + if (this.$refs.mydata.yppzwhyxqStartTime) { + this.form1.pzyxqStart = this.$refs.mydata.yppzwhyxqStartTime[0] + this.form1.pzyxqEnd = this.$refs.mydata.yppzwhyxqStartTime[1] + } else { + this.form1.pzyxqStart = "" + this.form1.pzyxqEnd = "" + } + // this.searchList() + }, + mydataFnqingkong(){ + this.$refs.mydata.pzrqStartTime = "" + this.$refs.mydata.yppzwhyxqStartTime = "" + } } }; \ No newline at end of file diff --git a/src/views/productsMsg/components/hzpSon/GchzpPt.vue b/src/views/productsMsg/components/hzpSon/GchzpPt.vue index 976894d..cb7d3c9 100644 --- a/src/views/productsMsg/components/hzpSon/GchzpPt.vue +++ b/src/views/productsMsg/components/hzpSon/GchzpPt.vue @@ -107,6 +107,10 @@ + + + +
重置 @@ -273,11 +277,13 @@ - + @@ -303,8 +309,10 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { - components: { MapCars, AdvancedSearch }, + components: { MapCars, AdvancedSearch, dishi }, data() { return { options1: [ @@ -399,12 +407,15 @@ export default { }; }, mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.changeType("1"); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { }, @@ -416,7 +427,7 @@ export default { if (e.column.label == "注册/备案日期") { this.form1.sqsjSort = indextype } - + this.searchList() }, shijianguolv(data) { @@ -443,7 +454,6 @@ export default { this.form.area = area this.form1.area = area this.getData(this.types); - }, collapsechange(e) { if (e == 0) { diff --git a/src/views/productsMsg/components/hzpSon/GchzpTs.vue b/src/views/productsMsg/components/hzpSon/GchzpTs.vue index 43929ac..3a51ad7 100644 --- a/src/views/productsMsg/components/hzpSon/GchzpTs.vue +++ b/src/views/productsMsg/components/hzpSon/GchzpTs.vue @@ -107,6 +107,9 @@ + + +
重置 @@ -213,7 +216,7 @@
+ @sort-change="mySortChange" ref="tableRef"> @@ -273,11 +276,13 @@ - + @@ -304,8 +309,10 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; + export default { - components: { MapCars, AdvancedSearch }, + components: { MapCars, AdvancedSearch,dishi }, data() { return { options1: [ @@ -401,12 +408,15 @@ export default { }, mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.changeType("2"); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { }, @@ -418,7 +428,7 @@ export default { if (e.column.label == "注册/备案日期") { this.form1.pzrqSort = indextype } - + this.searchList() }, shijianguolv(data) { diff --git a/src/views/productsMsg/components/hzpSon/JkhzpPt.vue b/src/views/productsMsg/components/hzpSon/JkhzpPt.vue index 54a167f..396ebda 100644 --- a/src/views/productsMsg/components/hzpSon/JkhzpPt.vue +++ b/src/views/productsMsg/components/hzpSon/JkhzpPt.vue @@ -107,6 +107,9 @@ + + +
重置 @@ -213,7 +216,7 @@
+ @sort-change="mySortChange" ref="tableRef"> @@ -273,11 +276,13 @@ - + @@ -303,10 +308,11 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; export default { - components: { MapCars, AdvancedSearch }, + components: { MapCars, AdvancedSearch, dishi }, data() { return { options1: [ @@ -402,12 +408,15 @@ export default { }, mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.changeType("3"); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { }, @@ -419,7 +428,7 @@ export default { if (e.column.label == "注册/备案日期") { this.form1.sjSort = indextype } - + this.searchList() }, shijianguolv(data) { diff --git a/src/views/productsMsg/components/hzpSon/JkhzpTs.vue b/src/views/productsMsg/components/hzpSon/JkhzpTs.vue index c464255..23d332b 100644 --- a/src/views/productsMsg/components/hzpSon/JkhzpTs.vue +++ b/src/views/productsMsg/components/hzpSon/JkhzpTs.vue @@ -106,6 +106,10 @@ + + + +
@@ -213,7 +217,7 @@
+ @sort-change="mySortChange" ref="tableRef"> @@ -273,11 +277,13 @@ - + @@ -304,10 +310,11 @@ import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; export default { - components: { MapCars, AdvancedSearch }, + components: { MapCars, AdvancedSearch, dishi }, data() { return { options1: [ @@ -402,13 +409,15 @@ export default { }; }, mounted() { - - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.changeType("4"); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { }, @@ -420,7 +429,7 @@ export default { if (e.column.label == "注册/备案日期") { this.form1.pzrqSort = indextype } - + this.searchList() }, shijianguolv(data) { diff --git a/src/views/productsMsg/components/productInfo.vue b/src/views/productsMsg/components/productInfo.vue index 06fa2ae..72a7540 100644 --- a/src/views/productsMsg/components/productInfo.vue +++ b/src/views/productsMsg/components/productInfo.vue @@ -49,6 +49,7 @@ export default { this.Url = `http://localhost:82?type=${this.$route.query.type }&flag=${this.$route.query.flag}&data=${this.$route.query.data }&token=${localStorage.getItem("MSSM-LIAONING__TOKEN")}&bah=${this.$route.query.bah}` + let dom = document.getElementsByClassName("ifram-view"); let height = dom[0].getBoundingClientRect(); // let windowWidth = window.innerWidth; diff --git a/src/views/productsMsg/drugArchives/yaopinbapz.vue b/src/views/productsMsg/drugArchives/yaopinbapz.vue index ae42f61..b213a0c 100644 --- a/src/views/productsMsg/drugArchives/yaopinbapz.vue +++ b/src/views/productsMsg/drugArchives/yaopinbapz.vue @@ -92,6 +92,15 @@ + + + + +
重置 查询 @@ -183,11 +192,10 @@
{{ scope.row.scdz }}
- - + @@ -212,15 +220,32 @@ import { download, dcyp } from "../../../api/archives/updata"; import { Notification, MessageBox, Message, Loading, TabPane } from "element-ui"; import MapCars from "@/views/components/MapCars.vue"; import AdvancedSearch from "@/views/components/AdvancedSearch"; +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; export default { components: { MapCars, - AdvancedSearch + AdvancedSearch, + dishi }, data() { return { sortableshow: true, + dishi: ["沈阳市", + "大连市", + "鞍山市", + "抚顺市", + "本溪市", + "丹东市", + "锦州市", + "营口市", + "阜新市", + "辽阳市", + "盘锦市", + "铁岭市", + "朝阳市", + "葫芦岛市", + "沈抚示范区",], options1: [ { value: 0, @@ -345,12 +370,15 @@ export default { }; }, mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -470,14 +498,12 @@ export default { }); }, 1000); } else { - console.log(e); - window.open(`${location.origin}/ggfw-jcphx/#/bgpage?code=${e.yppzwh}&name=${e.yptymc}&type=1`); + } }, //搜索 searchList() { - if (this.pzrqStartTime) { this.form1.pzrqStartTime = this.pzrqStartTime[0] this.form1.pzrqEndTime = this.pzrqStartTime[1] @@ -494,7 +520,6 @@ export default { } this.form.current = 1; - console.log(this.form1); for (let i in this.form1) { this.form[i] = this.form1[i]; } diff --git a/src/views/productsMsg/drugArchives/yaopinstscpz.vue b/src/views/productsMsg/drugArchives/yaopinstscpz.vue index 54a1708..bed53e6 100644 --- a/src/views/productsMsg/drugArchives/yaopinstscpz.vue +++ b/src/views/productsMsg/drugArchives/yaopinstscpz.vue @@ -176,8 +176,8 @@ @@ -284,12 +284,15 @@ export default { }; }, mounted() { - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { @@ -436,6 +439,8 @@ export default { }, //重置 reset(type) { + this.pzrqStartTime = "" + this.yppzwhyxqStartTime = "" this.$refs.tableRef.clearSort(); // 清除排序 this.form1 = { diff --git a/src/views/productsMsg/drugArchives/yaopinyuanliao.vue b/src/views/productsMsg/drugArchives/yaopinyuanliao.vue index 633d98d..b057b61 100644 --- a/src/views/productsMsg/drugArchives/yaopinyuanliao.vue +++ b/src/views/productsMsg/drugArchives/yaopinyuanliao.vue @@ -197,7 +197,7 @@ diff --git a/src/views/productsMsg/zyzj.vue b/src/views/productsMsg/zyzj.vue index 0cbaa7b..5e3b736 100644 --- a/src/views/productsMsg/zyzj.vue +++ b/src/views/productsMsg/zyzj.vue @@ -35,7 +35,7 @@ - + @@ -58,6 +58,7 @@ +
@@ -122,7 +123,7 @@ @@ -146,9 +147,10 @@ import { download, dcyp } from "../../api/archives/updata"; import { Notification, MessageBox, Message, Loading } from "element-ui"; import MapCars from "@/views/components/MapCarsLog.vue"; +import dishi from "@/views/components/AdvancedSearch/dishi.vue"; export default { - components: { MapCars }, + components: { MapCars, dishi }, data() { return { MapCarsshow: true, @@ -157,6 +159,7 @@ export default { loading: false, tableData: [], total: 0, + form1: { //通用名称 tymc: "", @@ -205,13 +208,15 @@ export default { }; }, mounted() { - - this.form1.name = this.$route.query.value || ""; - if (this.form1.name) { - this.searchList(); - } else { - this.chinaCosmetics(1); + console.log(123, this.$store.state.tags.myquery); + if (JSON.stringify(this.$store.state.tags.myquery) != '{}') { + for (let i in this.form1) { + this.form1[i] = this.$store.state.tags.myquery[i] || ""; + } + this.$store.commit('ADD_QUERY', {}) } + console.log(this.form1); + this.searchList(); }, created() { }, diff --git a/src/views/tool/build/RightPanel.vue b/src/views/tool/build/RightPanel.vue index c2760eb..d0586b3 100644 --- a/src/views/tool/build/RightPanel.vue +++ b/src/views/tool/build/RightPanel.vue @@ -5,7 +5,7 @@
- + diff --git a/vue.config.js b/vue.config.js index 4f708a4..863221b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -44,7 +44,7 @@ module.exports = { "/configApi": { // target: "https://dev-mssm-liaoning.lesdev.cn/ggfw-api", // target: "http://172.24.20.196/ggfw-api", - target: "http://192.168.0.107:9023/ggfw-api", + target: "http://192.168.0.111:9023/ggfw-api", changeOrigin: true, pathRewrite: {