|
@@ -3,7 +3,11 @@
|
|
|
<div class="chart-item weather-item">
|
|
<div class="chart-item weather-item">
|
|
|
<chart-box name="气象预警">
|
|
<chart-box name="气象预警">
|
|
|
<template #title-right>
|
|
<template #title-right>
|
|
|
- <div class="button" @click="gybg">溯源报告</div>
|
|
|
|
|
|
|
+ <div class="button-group">
|
|
|
|
|
+ <div class="button" style="width: auto;" @click="syxcx">溯源小程序</div>
|
|
|
|
|
+ <div class="button" style="width: auto;" @click="sypt">溯源平台</div>
|
|
|
|
|
+ <div class="button" style="width: auto;" @click="gybg">溯源报告</div>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
<div class="base-wrap">
|
|
<div class="base-wrap">
|
|
|
<div class="base-item" v-for="(item, index) in baseData.labels" :key="index">
|
|
<div class="base-item" v-for="(item, index) in baseData.labels" :key="index">
|
|
@@ -117,6 +121,7 @@
|
|
|
</chart-box>
|
|
</chart-box>
|
|
|
</div>
|
|
</div>
|
|
|
<ImageDialog></ImageDialog>
|
|
<ImageDialog></ImageDialog>
|
|
|
|
|
+ <PhoneIframe @close="phoneIframeShow=false" :h5PageUrl="'https://feiniao-mini-h5-dev.sysuimars.cn/youwei-mini/#/ecology_report?token=69bc8bc3-bf34-46ab-b2c4-420c65265895&farmId=80865&isNyt=1&&point=113.11703233506944%2C31.0088427734375'" v-if="phoneIframeShow"></PhoneIframe>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -131,12 +136,14 @@ import eventBus from "@/api/eventBus";
|
|
|
import { useStore } from "vuex";
|
|
import { useStore } from "vuex";
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
import ImageDialog from "../../../components/ImageDialog";
|
|
import ImageDialog from "../../../components/ImageDialog";
|
|
|
|
|
+import PhoneIframe from "./phone_iframe/PhoneIframe.vue";
|
|
|
const store = useStore();
|
|
const store = useStore();
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
const baseData = ref({});
|
|
const baseData = ref({});
|
|
|
const minData = ref([]);
|
|
const minData = ref([]);
|
|
|
const lineYdata = ref([]);
|
|
const lineYdata = ref([]);
|
|
|
|
|
+const phoneIframeShow = ref(false);
|
|
|
|
|
|
|
|
const getBaseData = () => {
|
|
const getBaseData = () => {
|
|
|
const point = sessionStorage.getItem("point");
|
|
const point = sessionStorage.getItem("point");
|
|
@@ -276,6 +283,12 @@ const gybg = () => {
|
|
|
eventBus.emit("homePage:image", { filename: data.path, title: "溯源报告" });
|
|
eventBus.emit("homePage:image", { filename: data.path, title: "溯源报告" });
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
+const sypt = () => {
|
|
|
|
|
+ window.open("https://foster-pc-vue.sysuimars.cn/#/auto_login");
|
|
|
|
|
+}
|
|
|
|
|
+const syxcx = () => {
|
|
|
|
|
+ phoneIframeShow.value = true;
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -326,10 +339,16 @@ const gybg = () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ .button-group{
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ }
|
|
|
.button {
|
|
.button {
|
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
- padding: 2px 10px;
|
|
|
|
|
|
|
+ padding: 2px 2px;
|
|
|
|
|
+ margin-left: 2px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
}
|
|
}
|
|
|
&.chart-item:last-child {
|
|
&.chart-item:last-child {
|