Commit c3807a12 authored by Cai Wei's avatar Cai Wei

feat(*): 布袋监测连调

parent f61d456b
...@@ -132,6 +132,7 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({ ...@@ -132,6 +132,7 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({
top: "3%", top: "3%",
containLabel: true, containLabel: true,
}, },
// x轴的文字去除年月日
xAxis: { xAxis: {
type: "category", type: "category",
boundaryGap: false, boundaryGap: false,
...@@ -145,6 +146,9 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({ ...@@ -145,6 +146,9 @@ export const getBagMonitoringChartOption = (xData = [], seriesData = []) => ({
fontSize: 12, fontSize: 12,
interval: "auto", interval: "auto",
rotate: 0, rotate: 0,
formatter: function (value) {
return value.split(' ')[1];
}
}, },
axisTick: { axisTick: {
show: false, show: false,
......
This diff is collapsed.
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
class="point warn" class="point warn"
v-for="item in detailObj.compartHealthList[0]" v-for="item in detailObj.compartHealthList[0]"
:key="item" :key="item"
@click="handleStatusDotClick()"
></div> ></div>
</div> </div>
<div class="part"> <div class="part">
...@@ -117,6 +118,7 @@ ...@@ -117,6 +118,7 @@
</template> </template>
<script setup> <script setup>
import { ref, reactive, onMounted, onUnmounted, watch, computed } from "vue"; import { ref, reactive, onMounted, onUnmounted, watch, computed } from "vue";
import { useRouter } from "vue-router";
import * as echarts from "echarts"; import * as echarts from "echarts";
import { getDataFun } from "@/request/method.js"; import { getDataFun } from "@/request/method.js";
import { useUsersStore } from "@/pinia/user.js"; import { useUsersStore } from "@/pinia/user.js";
...@@ -148,6 +150,7 @@ const option = { ...@@ -148,6 +150,7 @@ const option = {
}, },
], ],
}; };
const router = useRouter();
const chartInstance = reactive({}); const chartInstance = reactive({});
const chartData = reactive([{}, {}, {}]); const chartData = reactive([{}, {}, {}]);
const initChart = (instance, option, domEl) => { const initChart = (instance, option, domEl) => {
...@@ -546,6 +549,14 @@ const dusterName = computed(() => { ...@@ -546,6 +549,14 @@ const dusterName = computed(() => {
return dusterList.value.find((item) => item.dusterNo == form.dusterNo) return dusterList.value.find((item) => item.dusterNo == form.dusterNo)
?.dusterName; ?.dusterName;
}); });
const handleStatusDotClick = () => {
router.push({
path: "/bag-monitor",
query: {
dusterNo: form.dusterNo,
}
});
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
$borderColor: #bbbdc391; $borderColor: #bbbdc391;
......
...@@ -362,7 +362,6 @@ const handleValveNumClick = (row) => { ...@@ -362,7 +362,6 @@ const handleValveNumClick = (row) => {
}; };
const handleStatusDotClick = (row, colIndex) => { const handleStatusDotClick = (row, colIndex) => {
console.log("row", row);
router.push({ router.push({
path: "/bag-monitor", path: "/bag-monitor",
query: { query: {
......
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