Commit 1fba2d10 authored by 纪泽龙's avatar 纪泽龙

优化两个页面

parent 4dcda3aa
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2025-12-20 09:20:39 * @Date: 2025-12-20 09:20:39
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-03-16 13:23:56 * @LastEditTime: 2026-03-31 17:29:45
* @FilePath: /test-ranqi/src/views/Index.vue * @FilePath: /test-ranqi/src/views/Index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
: `scale(${1.63 * scaleX},${1.63 * scaleX})`, : `scale(${1.63 * scaleX},${1.63 * scaleX})`,
}" }"
> >
<Rotate @imgClick="$emit('imgClick', $event)"/> <Rotate @centerClick="$emit('centerClick')" @imgClick="$emit('imgClick', $event)"/>
</div> </div>
</div> </div>
</div> </div>
...@@ -83,7 +83,11 @@ export default { ...@@ -83,7 +83,11 @@ export default {
// this.scaleX = window.innerWidth / 2880; // this.scaleX = window.innerWidth / 2880;
this.scaleX = window.innerWidth / 1920; this.scaleX = window.innerWidth / 1920;
}, },
methods: {}, methods: {
centerClick(){
}
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
}, },
computed: { computed: {
scrollDuration() { scrollDuration() {
const rowsCount = this.rows.length || 1; const rowsCount = this.cycleList.length || 1;
return Math.max(6, rowsCount * this.speed * 0.1); return Math.max(6, rowsCount * this.speed * 0.1);
}, },
rootStyle() { rootStyle() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2025-12-20 09:31:30 * @Date: 2025-12-20 09:31:30
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-01-15 14:51:18 * @LastEditTime: 2026-04-08 10:00:21
* @FilePath: /test-ranqi/src/views/Ind/components/Left.vue * @FilePath: /test-ranqi/src/views/Ind/components/Left.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -10,8 +10,11 @@ ...@@ -10,8 +10,11 @@
<div class="right"> <div class="right">
<img class="imgr" :src="d" alt="" /> <img class="imgr" :src="d" alt="" />
<div class="t1"> <div class="t1">
<Title text="事件定位" /> <Title text="工业用户统计" />
<div class="t1box"> <div class="chars-box">
<UserTypeBarChartGy />
</div>
<!-- <div class="t1box">
<div class="b1"> <div class="b1">
<img class="img1" src="@/assets/bigwindowImg/indImg/rimga.png" alt="" /> <img class="img1" src="@/assets/bigwindowImg/indImg/rimga.png" alt="" />
<div>事件概况</div> <div>事件概况</div>
...@@ -28,11 +31,11 @@ ...@@ -28,11 +31,11 @@
<img class="img1" src="@/assets/bigwindowImg/indImg/rimgb.png" alt="" /> <img class="img1" src="@/assets/bigwindowImg/indImg/rimgb.png" alt="" />
<div>点击定位</div> <div>点击定位</div>
</div> </div>
</div> </div> -->
</div> </div>
<div class="t2"> <div class="t2">
<Title text="用户统计" /> <Title text="居民用户统计" />
<div class="chars-box"> <div class="chars-box">
<UserTypeBarChartVue /> <UserTypeBarChartVue />
</div> </div>
...@@ -41,7 +44,7 @@ ...@@ -41,7 +44,7 @@
<div class="t3"> <div class="t3">
<Title text="设备生命周期" /> <Title text="设备生命周期" />
<div class="tab-box"> <div class="tab-box">
<Table/> <Table />
</div> </div>
</div> </div>
</div> </div>
...@@ -52,7 +55,8 @@ import Title from "@/views/bigWindow/PubCom/title.vue"; ...@@ -52,7 +55,8 @@ import Title from "@/views/bigWindow/PubCom/title.vue";
import d from "@/assets/bigwindowImg/index/rt.png"; import d from "@/assets/bigwindowImg/index/rt.png";
import UserTypeBarChartVue from "./UserTypeBarChart.vue"; import UserTypeBarChartVue from "./UserTypeBarChart.vue";
import Table from "@/views/bigWindow/Ind/components/DeviceScrollTable.vue" import UserTypeBarChartGy from "./UserTypeBarChartGy.vue";
import Table from "@/views/bigWindow/Ind/components/DeviceScrollTable.vue";
import { listResponse } from "@/api/emergency/response"; import { listResponse } from "@/api/emergency/response";
export default { export default {
...@@ -60,8 +64,8 @@ export default { ...@@ -60,8 +64,8 @@ export default {
components: { components: {
Title, Title,
UserTypeBarChartVue, UserTypeBarChartVue,
Table UserTypeBarChartGy,
Table,
}, },
data() { data() {
return { return {
...@@ -69,29 +73,29 @@ export default { ...@@ -69,29 +73,29 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 1, pageSize: 1,
responseStatus: 0 responseStatus: 0,
}, },
eventInfo: { eventInfo: {
title: "暂无事件", title: "暂无事件",
address: "无" address: "无",
} },
}; };
}, },
created(){ created() {
this.getList(); this.getList();
}, },
methods: { methods: {
getList(){ getList() {
listResponse(this.queryParams).then(res => { listResponse(this.queryParams).then((res) => {
if(res.code == 200 && res.rows){ if (res.code == 200 && res.rows) {
//this.eventList = res.rows; //this.eventList = res.rows;
this.eventInfo = res.rows[0]; this.eventInfo = res.rows[0];
} }
}); });
}, },
toEvent(){ toEvent() {
this.$router.push("/urgent/emergency") this.$router.push("/urgent/emergency");
} },
}, },
}; };
</script> </script>
...@@ -118,7 +122,7 @@ export default { ...@@ -118,7 +122,7 @@ export default {
} }
.t1box { .t1box {
width: 100%; width: 100%;
height: 120px; // height: 120px;
background: url("~@/assets/bigwindowImg/indImg/t1boxbg.png") no-repeat; background: url("~@/assets/bigwindowImg/indImg/t1boxbg.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
display: flex; display: flex;
...@@ -170,23 +174,27 @@ export default { ...@@ -170,23 +174,27 @@ export default {
cursor: pointer; cursor: pointer;
} }
} }
.t2 { .t2,
.t1 {
margin-bottom: 20px; margin-bottom: 20px;
box-sizing: border-box;
.chars-box { .chars-box {
margin-top: 20px; margin-top: 20px;
box-sizing: border-box;
} }
} }
.t3 { .t3 {
display: flex; display: flex;
flex-direction:column; flex-direction: column;
height: 210px; height: 210px;
.tab-box{
margin-top:20px; .tab-box {
flex:1; margin-top: 20px;
flex: 1;
// background: red; // background: red;
overflow: hidden; overflow: hidden;
} }
} }
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2025-12-16 11:10:26 * @Date: 2025-12-16 11:10:26
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-03-16 13:24:26 * @LastEditTime: 2026-04-07 09:38:56
* @FilePath: /test-ranqi/src/views/Rotate.vue * @FilePath: /test-ranqi/src/views/Rotate.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div <div
@mouseenter="imgScale = 1.2" @mouseenter="imgScale = 1.2"
@mouseleave="imgScale = 1" @mouseleave="imgScale = 1"
@dblclick="dbclick" @click="centerClick"
class="imgcenter-shadow" class="imgcenter-shadow"
></div> ></div>
<img <img
...@@ -23,15 +23,15 @@ ...@@ -23,15 +23,15 @@
<div class="out-box"> <div class="out-box">
<div <div
v-for="item in imgArr" v-for="item in imgArr"
:key="item.num" :key="item.src"
@mouseenter="mouseenter" @mouseenter="mouseenter"
@mouseleave="mouseleave" @mouseleave="mouseleave"
class="a" class="a"
:style="{ :style="{
background: `url(${item.src}) no-repeat`, background: `url(${item.img}) no-repeat`,
backgroundSsize: '100% 100%;', backgroundSsize: '100% 100%;',
}" }"
@click="$emit('imgClick', item.num)" @click="$emit('imgClick', item.src)"
></div> ></div>
<!-- <div class="a"></div> --> <!-- <div class="a"></div> -->
<!-- 地图 --> <!-- 地图 -->
...@@ -47,13 +47,14 @@ ...@@ -47,13 +47,14 @@
<script> <script>
// url(${item.src}) no-repeat // url(${item.src}) no-repeat
import center from "@/assets/bigwindowImg/rotate/center.png"; import center from "@/assets/bigwindowImg/rotate/center.png";
import a from "@/assets/bigwindowImg/rotate/a.png"; import ajxc from "@/assets/bigwindowImg/rotate/ajxc.png";
import b from "@/assets/bigwindowImg/rotate/b.png"; import yhgl from "@/assets/bigwindowImg/rotate/yhgl.png";
import c from "@/assets/bigwindowImg/rotate/c.png"; import kqdw from "@/assets/bigwindowImg/rotate/kqdw.png";
import d from "@/assets/bigwindowImg/rotate/d.png"; import tjfx from "@/assets/bigwindowImg/rotate/tjfx.png";
import e from "@/assets/bigwindowImg/rotate/e.png"; import aqgl from "@/assets/bigwindowImg/rotate/aqgl.png";
import f from "@/assets/bigwindowImg/rotate/f.png"; import sbsmzq from "@/assets/bigwindowImg/rotate/sbsmzq.png";
import g from "@/assets/bigwindowImg/rotate/g.png"; import yjgl from "@/assets/bigwindowImg/rotate/yjgl.png";
import yxjc from "@/assets/bigwindowImg/rotate/yxjc.png";
export default { export default {
name: "", name: "",
...@@ -65,21 +66,24 @@ export default { ...@@ -65,21 +66,24 @@ export default {
imgScale: 1, imgScale: 1,
clickTimer: null, clickTimer: null,
imgArr: [ imgArr: [
{ src: a, num: 1 }, { img: ajxc, src: "/checktask/jmchacktask" },
{ src: b, num: 2 }, { img: yhgl, src: "/danger/danger" },
{ src: c, num: 3 }, { img: kqdw, src: "/gasinfo/in" },
{ src: d, num: 4 }, { img: tjfx, src: "/inspectStatistics/residentstatistics" },
{ src: e, num: 5 }, { img: aqgl, src: "/safe/meeting" },
{ src: f, num: 6 }, { img: sbsmzq, src: "/cycle/cycle" },
{ src: g, num: 7 }, { img: yjgl, src: "/urgent/contacts" },
{ img: yxjc, src: "/reportinfo/gasdata" },
], ],
center, center,
}; };
}, },
mounted() { mounted() {
clearInterval(this.timer);
this.rotate(); this.rotate();
}, },
beforeDestroy() { beforeDestroy() {
console.log("离开")
clearInterval(this.timer); clearInterval(this.timer);
}, },
methods: { methods: {
...@@ -110,8 +114,8 @@ export default { ...@@ -110,8 +114,8 @@ export default {
}, 10); }, 10);
}, },
dbclick() { centerClick() {
console.log("双击"); this.$emit("centerClick");
}, },
mouseenter() { mouseenter() {
clearInterval(this.timer); clearInterval(this.timer);
...@@ -181,7 +185,7 @@ export default { ...@@ -181,7 +185,7 @@ export default {
height: 70px; height: 70px;
width: 50px; width: 50px;
z-index: 99900; z-index: 99900;
background: url("~@/assets/bigwindowImg/rotate/a.png") no-repeat; background: url("~@/assets/bigwindowImg/rotate/ajxc.png") no-repeat;
background-size: 100% 100% !important; background-size: 100% 100% !important;
cursor: pointer; cursor: pointer;
// transition: all 0.1s linear; // transition: all 0.1s linear;
......
...@@ -138,16 +138,16 @@ export default { ...@@ -138,16 +138,16 @@ export default {
color: "#2fd6ff", color: "#2fd6ff",
}, },
}, },
{ // {
name: "工商业用户", // name: "工商业用户",
type: "bar", // type: "bar",
data: this.commercial, // data: this.commercial,
barWidth: 10, // barWidth: 10,
itemStyle: { // itemStyle: {
borderRadius: [2, 2, 0, 0], // borderRadius: [2, 2, 0, 0],
color: "#42ff9d", // color: "#42ff9d",
}, // },
}, // },
], ],
}); });
}, },
...@@ -158,6 +158,7 @@ export default { ...@@ -158,6 +158,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.user-type-bar-chart { .user-type-bar-chart {
width: 100%; width: 100%;
height: 200px; height: 190px;
} }
</style> </style>
<template>
<div ref="chart" class="user-type-bar-chart"></div>
</template>
<script>
import { userStatistic } from "@/api/screenstatistic/statistic";
export default {
name: "UserTypeBarChart",
/*props: {
categories: {
type: Array,
default() {
return ["白芨屯", "七树庄", "王浒圳", "新罕电", "小张各庄", "欢喜庄", "李朝庄"];
},
},
residential: {
type: Array,
default() {
return [26, 34, 18, 22, 24, 28, 10];
},
},
commercial: {
type: Array,
default() {
return [18, 24, 8, 18, 20, 26, 22];
},
},
},*/
data() {
return {
chart: null,
categories: [],
residential: [],
commercial: []
};
},
mounted() {
this.initChart();
this.getUserStatistic();
window.addEventListener("resize", this.handleResize);
},
beforeDestroy() {
window.removeEventListener("resize", this.handleResize);
if (this.chart) {
this.chart.dispose();
this.chart = null;
}
},
/* watch: {
categories() {
this.updateChart();
},
residential() {
this.updateChart();
},
commercial() {
this.updateChart();
},
},*/
methods: {
getUserStatistic(){
userStatistic().then(res =>{
if(res.code == 200){
this.categories = res.data.categories || [];
this.residential = Array.isArray(res.data.residential)
? res.data.residential
: (res.data.residential || []).map(Number);
this.commercial = Array.isArray(res.data.commercial)
? res.data.commercial
: (res.data.commercial || []).map(Number);
this.updateChart();
}
})
},
initChart() {
if (!this.$refs.chart) {
return;
}
this.chart = this.$echarts.init(this.$refs.chart);
this.updateChart();
},
handleResize() {
if (this.chart) {
this.chart.resize();
}
},
updateChart() {
if (!this.chart) {
return;
}
this.chart.setOption({
grid: {
left: 8,
right: 8,
top: 30,
bottom: 0,
containLabel: true,
},
legend: {
top: 0,
right: 10,
itemWidth: 16,
itemHeight: 8,
textStyle: {
color: "#ffffff",
fontSize: 12,
},
},
xAxis: {
type: "category",
data: this.categories,
boundaryGap: true,
axisLine: { lineStyle: { color: "rgba(255,255,255,0.2)" } },
axisTick: { show: false },
axisLabel: {
interval: 0,
color: "#ffffff",
fontSize: 11,
},
},
yAxis: {
type: "value",
axisLine: { show: false },
axisTick: { show: false },
axisLabel: { show: false },
splitLine: {
lineStyle: { color: "rgba(255,255,255,0.2)" },
},
},
series: [
// {
// name: "居民用户",
// type: "bar",
// data: this.residential,
// barWidth: 10,
// itemStyle: {
// borderRadius: [2, 2, 0, 0],
// color: "#2fd6ff",
// },
// },
{
name: "工商业用户",
type: "bar",
data: this.commercial,
barWidth: 10,
itemStyle: {
borderRadius: [2, 2, 0, 0],
color: "#42ff9d",
},
},
],
});
},
},
};
</script>
<style lang="scss" scoped>
.user-type-bar-chart {
width: 100%;
height: 190px;
}
</style>
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2025-12-20 09:20:39 * @Date: 2025-12-20 09:20:39
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-03-16 13:33:21 * @LastEditTime: 2026-04-07 10:25:15
* @FilePath: /test-ranqi/src/views/Index.vue * @FilePath: /test-ranqi/src/views/Index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<template> <template>
<div class="ind3"> <div class="ind3">
<div id="gao-map-index"></div> <div id="gao-map-index"></div>
<Left /> <!-- <Left /> -->
<Right /> <!-- <Right /> -->
<div @click="$emit('imgClick', 'index')" class="backindex">返回首页概览</div> <div @click="$emit('imgClick', 'index')" class="backindex">返回首页概览</div>
<Bottom /> <Bottom @change="change"/>
</div> </div>
</template> </template>
...@@ -60,6 +60,10 @@ export default { ...@@ -60,6 +60,10 @@ export default {
this this
); );
}, },
change(arr1,arr2){
console.log(arr1,arr2)
}
}, },
}; };
</script> </script>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2026-01-12 14:23:40 * @Date: 2026-01-12 14:23:40
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-01-15 14:38:19 * @LastEditTime: 2026-04-07 10:24:39
* @FilePath: /huaxindd-web/src/views/Ind2/components/Bottom.vue * @FilePath: /huaxindd-web/src/views/Ind2/components/Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="l" v-if="left != 0" @click="left += 152"></div> <div class="l" v-if="left != 0" @click="left += 152"></div>
<div <div
class="r" class="r"
v-if="left != -(itemArr.length - 3) * 152" v-if="left != -([...itemArr1,...itemArr2].length - 3) * 152"
@click="left -= 152" @click="left -= 152"
></div> ></div>
...@@ -19,13 +19,30 @@ ...@@ -19,13 +19,30 @@
<div class="container-scroll" :style="{ left: left + 'px' }"> <div class="container-scroll" :style="{ left: left + 'px' }">
<div <div
class="item" class="item"
:class="{ active: active == item }" :class="{ active: activeArr1.indexOf(item.val) >= 0 }"
v-for="item in itemArr" v-for="item in itemArr1"
:key="item" :key="item.val"
@click="active = item" @click="activeChange1(item.val)"
> >
<div class="text">{{ item }}</div> <div class="text">{{ item.name }}</div>
<div class="ac" :class="{ active: active == item }"></div> <div
class="ac"
:class="{ active: activeArr1.indexOf(item.val) >= 0 }"
></div>
</div>
<div
class="item"
:class="{ active: activeArr2.indexOf(item.val) >= 0 }"
v-for="item in itemArr2"
:key="item.val"
@click="activeChange2(item.val)"
>
<div class="text">{{ item.name }}</div>
<div
class="ac"
:class="{ active: activeArr2.indexOf(item.val) >= 0 }"
></div>
</div> </div>
</div> </div>
</div> </div>
...@@ -39,11 +56,42 @@ export default { ...@@ -39,11 +56,42 @@ export default {
return { return {
left: 0, left: 0,
changeW: 152, changeW: 152,
itemArr: ["1", "2", "3", "4", "5", "6"], itemArr1: [
active: "", { name: "高压", val: 0 },
{ name: "次高压", val: 1 },
{ name: "中压", val: 2 },
],
itemArr2: [
{ name: "调压箱", val: 3 },
{ name: "阀门井", val: 4 },
{ name: "场站", val: 5 },
{ name: "工业户", val: 6 },
],
activeArr1: [0, 1, 2],
activeArr2: [],
}; };
}, },
methods: {}, methods: {
activeChange1(val) {
const ind = this.activeArr1.indexOf(val);
if (ind >= 0) {
this.activeArr1.splice(ind, 1);
} else {
this.activeArr1.push(val);
}
this.$emit("change", this.activeArr1, this.activeArr2);
},
activeChange2(val) {
const ind = this.activeArr2.indexOf(val);
if (ind >= 0) {
this.activeArr2.splice(ind, 1);
} else {
this.activeArr2.push(val);
}
this.$emit("change", this.activeArr1, this.activeArr2);
},
},
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -56,7 +104,8 @@ export default { ...@@ -56,7 +104,8 @@ export default {
height: 50px; height: 50px;
// display: flex; // display: flex;
// justify-content: space-between; // justify-content: space-between;
background: url("~@/assets/bigwindowImg/ind3Img/bigBg.png") no-repeat center center; background: url("~@/assets/bigwindowImg/ind3Img/bigBg.png") no-repeat center
center;
display: flex; display: flex;
align-items: center; align-items: center;
.l, .l,
...@@ -74,13 +123,15 @@ export default { ...@@ -74,13 +123,15 @@ export default {
left: 88px; left: 88px;
width: 20px; width: 20px;
height: 14px; height: 14px;
background: url("~@/assets/bigwindowImg/ind3Img/l.png") no-repeat center center; background: url("~@/assets/bigwindowImg/ind3Img/l.png") no-repeat center
center;
} }
.r { .r {
right: 88px; right: 88px;
width: 20px; width: 20px;
height: 14px; height: 14px;
background: url("~@/assets/bigwindowImg/ind3Img/r.png") no-repeat center center; background: url("~@/assets/bigwindowImg/ind3Img/r.png") no-repeat center
center;
} }
.container { .container {
width: 432px; width: 432px;
...@@ -104,7 +155,8 @@ export default { ...@@ -104,7 +155,8 @@ export default {
position: relative; position: relative;
text-align: center; text-align: center;
line-height: 28px; line-height: 28px;
background: url("~@/assets/bigwindowImg/ind3Img/boxbg.png") no-repeat center center; background: url("~@/assets/bigwindowImg/ind3Img/boxbg.png") no-repeat
center center;
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
cursor: pointer; cursor: pointer;
...@@ -124,15 +176,14 @@ export default { ...@@ -124,15 +176,14 @@ export default {
.active { .active {
width: 128px; width: 128px;
height: 28px; height: 28px;
background: url("~@/assets/bigwindowImg/ind3Img/active.png") no-repeat center background: url("~@/assets/bigwindowImg/ind3Img/active.png") no-repeat
center; center center;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
// transition: all 0.5s; // transition: all 0.5s;
opacity: .8; opacity: 0.8;
} }
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com * @Author: 纪泽龙 jizelong@qq.com
* @Date: 2026-01-05 10:39:41 * @Date: 2026-01-05 10:39:41
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2026-03-16 13:43:59 * @LastEditTime: 2026-04-08 10:01:45
* @FilePath: /huaxindd-web/src/views/Index/index.vue * @FilePath: /huaxindd-web/src/views/Index/index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
> >
<div class="back" @click="back">跳转后台</div> <div class="back" @click="back">跳转后台</div>
<Top /> <Top />
<component :is="currentTabComponent" @imgClick="imgClick"></component> <component
:is="currentTabComponent"
@centerClick="centerClick"
@imgClick="imgClick"
></component>
<!-- <Ind /> --> <!-- <Ind /> -->
</div> </div>
</template> </template>
...@@ -48,7 +52,7 @@ export default { ...@@ -48,7 +52,7 @@ export default {
4: "/urgent/emergency", 4: "/urgent/emergency",
// 周期 // 周期
5: "/cycle/cycle", 5: "/cycle/cycle",
// 运行 // 运行
7: "/reportinfo/gasdata", 7: "/reportinfo/gasdata",
}, },
}; };
...@@ -60,19 +64,12 @@ export default { ...@@ -60,19 +64,12 @@ export default {
this.scaleX = window.innerWidth / 1920; this.scaleX = window.innerWidth / 1920;
}, },
methods: { methods: {
imgClick(num) { imgClick() {
console.log(num); // this.$router.push(src);
if (num == 2) { this.currentTabComponent =Ind;
this.currentTabComponent = Ind2; },
} else if (num == 6) { centerClick() {
this.currentTabComponent = Ind3; this.currentTabComponent = Ind3;
} else if (num == "index") {
this.currentTabComponent = Ind;
} else {
if (this.goPage[num]) {
this.$router.push(this.goPage[num]);
}
}
}, },
back() { back() {
this.$router.push("/checktask/jmchacktask"); this.$router.push("/checktask/jmchacktask");
......
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