Browse Source

枣泉:生产数据新增灾害预警

傀仙 11 tháng trước cách đây
mục cha
commit
327db60c9b

+ 2 - 2
common/vmeitime-http/api.js

@@ -189,7 +189,7 @@ export const zaoquan_dcs_getFan = (data) => {
 		data,
 	})
 }
-//  液压支架
+//  液压支架 架空乘人器 
 export const zaoquan_dcs_getSupport = (data) => {
 	return http.request({
 		baseUrl: uni.getStorageSync('unified_automation_system_url'),
@@ -197,7 +197,7 @@ export const zaoquan_dcs_getSupport = (data) => {
 		data,
 	})
 }
-// 工作面 智能综采
+// 工作面 智能综采、智能掘进
 export const zaoquan_dcs_workface = (data) => {
 	return http.request({
 		baseUrl: uni.getStorageSync('unified_automation_system_url'),

+ 340 - 0
components/t-p-zaoquan/nav.js

@@ -0,0 +1,340 @@
+{
+	title: "智能监测",
+	list: [{
+			icon: require("./icon/icon_2.png"),
+			module: "znjc",
+			name: "人员定位",
+			sys_code: "rydw"
+		},
+		{
+			icon: require("./icon/icon_3.png"),
+			module: "znjc",
+			name: "安全监测",
+			sys_code: "aqjc"
+		},
+		{
+			icon: require("./icon/icon_4.png"),
+			module: "znjc",
+			name: "视频监控",
+			sys_code: "spjk"
+		},
+
+		// {
+		// 	icon: require("./icon/icon_6.png"),
+		// 	module: "scbb",
+		// 	name: "生产报表"
+		// }, {
+		// 	icon: require("./icon/icon_7.png"),
+		// 	module: "kjscl",
+		// 	name: "矿井水处理"
+		// }
+	]
+}, {
+	title: "智能采煤",
+	list: [{
+			icon: require("./icon/sc_sj.png"),
+			module: "zncm",
+			name: "220707新智能综采",
+			sys_code: ""
+		}, {
+			icon: require("./icon/sc_sj.png"),
+			module: "zncm",
+			name: "乳化泵",
+			sys_code: "ruhuabeng"
+		}, {
+			icon: require("./icon/sc_sj.png"),
+			module: "zncm",
+			name: "采煤机",
+			sys_code: "caimeiji"
+		},
+		{
+			icon: require("./icon/sc_sj.png"),
+			module: "zncm",
+			name: "液压支架",
+			sys_code: "yeyazhijia"
+		}, {
+			icon: require("./icon/sc_sj.png"),
+			module: "zncm",
+			name: "三机",
+			sys_code: "sanji"
+		}
+	]
+}, {
+	title: "智能掘进",
+	list: [{
+		icon: require("./icon/sc_sj.png"),
+		module: "znjj",
+		name: "150201工作面胶带巷",
+		sys_code: ""
+	}]
+}, {
+	title: "供配电",
+	list: [{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "五分区1200变电所",
+			sys_code: "5fq1200"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "五分区950变电所",
+			sys_code: "5fq950"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "22采区变电所-低压",
+			sys_code: "22high"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "980变电所",
+			sys_code: "980"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "1000变电所",
+			sys_code: "1000low"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "1142变电所",
+			sys_code: "1142"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "720变电所",
+			sys_code: "720"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "880变电所",
+			sys_code: "880"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "950变电所",
+			sys_code: "950"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "929变电所",
+			sys_code: "929"
+		},
+		{
+			icon: require("./icon/chart.png"),
+			module: "zngd",
+			name: "22采区变电所-高压",
+			sys_code: "22gy"
+		},
+
+	]
+}, {
+	title: "供排水",
+	list: [{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "智能排水",
+			sys_code: ""
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "5000方水池监控",
+			sys_code: "5000"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "720水泵房",
+			sys_code: "720"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "880水泵房",
+			sys_code: "880"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "929水泵房",
+			sys_code: "929"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "950水泵房",
+			sys_code: "950"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "980水泵房",
+			sys_code: "980"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "五分区950水泵房",
+			sys_code: "5fq"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "清水泵房",
+			sys_code: "qsb"
+		},
+		{
+			icon: require("./icon/sc_paishui.png"),
+			module: "znps",
+			name: "正1000水泵房",
+			sys_code: "p1000"
+		}
+	]
+}, {
+	title: "主运输",
+	list: [{
+		icon: require("./icon/sc_yunshu.png"),
+		module: "zys",
+		name: "主运输"
+	}]
+}, {
+	title: "辅助运输",
+	list: [{
+		icon: require("./icon/sc_yeyazhijia.png"),
+		module: "jkcr",
+		name: "东井架空乘人器"
+	}]
+}, {
+	title: "压风制氮",
+	list: [{
+			icon: require("./icon/sc_zhidan.png"),
+			module: "yfzd",
+			name: "1314压风制氮",
+			sys_code: "1314"
+		},
+		{
+			icon: require("./icon/sc_zhidan.png"),
+			module: "yfzd",
+			name: "12采区压风制氮",
+			sys_code: "12"
+		}
+	]
+}, {
+	title: "智能通风",
+	list: [{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "智能通风",
+			sys_code: ""
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "东井通风",
+			sys_code: "east"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "西井通风",
+			sys_code: "west"
+		}, {
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "五分区通风机",
+			sys_code: "5fq"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "1314通风机",
+			sys_code: "1314"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "15201回风巷通风机",
+			sys_code: "1200sm"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "15201机巷通风机",
+			sys_code: "1200car"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "220708辅助巷通风机",
+			sys_code: "220708fzx"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "220708回风巷通风机",
+			sys_code: "220708hfx"
+		},
+		{
+			icon: require("./icon/sc_tongfeng.png"),
+			module: "zntf",
+			name: "13207机巷通风机",
+			sys_code: "13207jx"
+		},
+	]
+}, {
+	title: "智慧园区",
+	list: [{
+			icon: require("./icon/icon_5.png"),
+			module: "zncs",
+			name: "地面车辆监测",
+			sys_code: ""
+		},
+		{
+			icon: require("./icon/icon_5.png"),
+			module: "zncs",
+			name: "井下车辆监测",
+			sys_code: "downhole"
+		},
+		{
+			icon: require("./icon/sc_zhidan.png"),
+			module: "ycjc",
+			name: "扬尘监测"
+		},
+		{
+			icon: require("./icon/icon_6.png"),
+			module: "zncdz",
+			name: "智能充电桩"
+		}
+	]
+}, {
+	title: "灾害监测",
+	list: [{
+			icon: require("./icon/icon_5.png"),
+			module: "zhjc",
+			name: "水文监测",
+			sys_code: "shuiwen"
+		},
+		{
+			icon: require("./icon/icon_5.png"),
+			module: "zhjc",
+			name: "矿压监测",
+			sys_code: "kuangya"
+		},
+		{
+			icon: require("./icon/icon_5.png"),
+			module: "zhjc",
+			name: "应急广播",
+			sys_code: "guangbo"
+		}
+	]
+}

+ 136 - 397
components/t-p-zaoquan/t-p-zaoquan.vue

@@ -3,7 +3,7 @@
 		<view class="top">
 			<image src="./icon/top.gif" mode="widthFix"></image>
 		</view>
-		<view class="content">
+		<view class="content" v-if="nav.length > 0">
 			<view class="segmented-control-x">
 				<view class="segmented">
 					<view class="title" :class="active==index?'active':''" v-for="(item,index) in nav" :key="index"
@@ -34,336 +34,31 @@
 				mine_code: "zaoquan",
 
 				active: 0,
-				nav: [{
-						title: "智能监测",
-						list: [{
-								icon: require("./icon/icon_2.png"),
-								module: "rydw",
-								name: "人员定位"
-							},
-							{
-								icon: require("./icon/icon_3.png"),
-								module: "aqjc",
-								name: "安全监测"
-							},
-							{
-								icon: require("./icon/icon_4.png"),
-								module: "spjk",
-								name: "视频监控"
-							},
-
-							// {
-							// 	icon: require("./icon/icon_6.png"),
-							// 	module: "scbb",
-							// 	name: "生产报表"
-							// }, {
-							// 	icon: require("./icon/icon_7.png"),
-							// 	module: "kjscl",
-							// 	name: "矿井水处理"
-							// }
-						]
-					},
-					{
-						title: "智能采煤",
-						list: [{
-								icon: require("./icon/sc_sj.png"),
-								module: "zncm",
-								name: "220707新智能综采",
-								sys_code: ""
-							}, {
-								icon: require("./icon/sc_sj.png"),
-								module: "zncm",
-								name: "乳化泵",
-								sys_code: "ruhuabeng"
-							}, {
-								icon: require("./icon/sc_sj.png"),
-								module: "zncm",
-								name: "采煤机",
-								sys_code: "caimeiji"
-							},
-							{
-								icon: require("./icon/sc_sj.png"),
-								module: "zncm",
-								name: "液压支架",
-								sys_code: "yeyazhijia"
-							}, {
-								icon: require("./icon/sc_sj.png"),
-								module: "zncm",
-								name: "三机",
-								sys_code: "sanji"
-							}
-						]
-					},
-					{
-						title: "智能掘进",
-						list: [{
-							icon: require("./icon/sc_sj.png"),
-							module: "znjj",
-							name: "150201工作面胶带巷",
-							sys_code: ""
-						}]
-					},
-					{
-						title: "供配电",
-						list: [{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "五分区1200变电所",
-								sys_code: "5fq1200"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "五分区950变电所",
-								sys_code: "5fq950"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "22采区变电所-低压",
-								sys_code: "22high"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "980变电所",
-								sys_code: "980"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "1000变电所",
-								sys_code: "1000low"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "1142变电所",
-								sys_code: "1142"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "720变电所",
-								sys_code: "720"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "880变电所",
-								sys_code: "880"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "950变电所",
-								sys_code: "950"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "929变电所",
-								sys_code: "929"
-							},
-							{
-								icon: require("./icon/chart.png"),
-								module: "zngd",
-								name: "22采区变电所-高压",
-								sys_code: "22gy"
-							},
-
-						]
-					},
-					{
-						title: "供排水",
-						list: [{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "智能排水",
-								sys_code: ""
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "5000方水池监控",
-								sys_code: "5000"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "720水泵房",
-								sys_code: "720"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "880水泵房",
-								sys_code: "880"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "929水泵房",
-								sys_code: "929"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "950水泵房",
-								sys_code: "950"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "980水泵房",
-								sys_code: "980"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "五分区950水泵房",
-								sys_code: "5fq"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "清水泵房",
-								sys_code: "qsb"
-							},
-							{
-								icon: require("./icon/sc_paishui.png"),
-								module: "znps",
-								name: "正1000水泵房",
-								sys_code: "p1000"
-							}
-						]
-					},
-					{
-						title: "主运输",
-						list: [{
-							icon: require("./icon/sc_yunshu.png"),
-							module: "zys",
-							name: "主运输"
-						}]
-					},
-					{
-						title: "辅助运输",
-						list: [{
-							icon: require("./icon/sc_yeyazhijia.png"),
-							module: "jkcr",
-							name: "东井架空乘人器"
-						}]
-					},
-					{
-						title: "压风制氮",
-						list: [{
-								icon: require("./icon/sc_zhidan.png"),
-								module: "yfzd",
-								name: "1314压风制氮",
-								sys_code: "1314"
-							},
-							{
-								icon: require("./icon/sc_zhidan.png"),
-								module: "yfzd",
-								name: "12采区压风制氮",
-								sys_code: "12"
-							}
-						]
-					},
-					{
-						title: "智能通风",
-						list: [{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "智能通风",
-								sys_code: ""
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "东井通风",
-								sys_code: "east"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "西井通风",
-								sys_code: "west"
-							}, {
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "五分区通风机",
-								sys_code: "5fq"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "1314通风机",
-								sys_code: "1314"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "15201回风巷通风机",
-								sys_code: "1200sm"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "15201机巷通风机",
-								sys_code: "1200car"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "220708辅助巷通风机",
-								sys_code: "220708fzx"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "220708回风巷通风机",
-								sys_code: "220708hfx"
-							},
-							{
-								icon: require("./icon/sc_tongfeng.png"),
-								module: "zntf",
-								name: "13207机巷通风机",
-								sys_code: "13207jx"
-							},
-						]
-					},
-					{
-						title: "智慧园区",
-						list: [{
-								icon: require("./icon/icon_5.png"),
-								module: "zncs",
-								name: "地面车辆监测",
-								sys_code: ""
-							},
-							{
-								icon: require("./icon/icon_5.png"),
-								module: "zncs",
-								name: "井下车辆监测",
-								sys_code: "downhole"
-							},
-							{
-								icon: require("./icon/sc_zhidan.png"),
-								module: "ycjc",
-								name: "扬尘监测"
-							},
-							{
-								icon: require("./icon/icon_6.png"),
-								module: "zncdz",
-								name: "智能充电桩"
-							}
-						]
-					}
-				],
+				nav:[]
+				// nav: [{
+				// 	title: "",
+				// 	list: [{
+				// 		icon: '',
+				// 		module: "",
+				// 		name: "",
+				// 		sys_code: ""
+				// 	}]
+				// }],
 
 			};
 		},
+		mounted() {
+			this.get_nav()
+		},
 		methods: {
+			get_nav() {
+				uni.request({
+					url: "http://zq.oa.nxmy.com:8011/api.php?m=openDcsApi&a=dcs_door&openkey=d9302364e2a2d9fdcab2707a46fbab5a",
+					method: "POST",
+				}).then((res) => {
+					this.nav = res[1].data.nav
+				})
+			},
 			change_active(index) {
 				this.active = index
 
@@ -377,79 +72,101 @@
 					mask: true,
 					title: "载入中..."
 				})
-				this.$p_api.product_data_query_power({
-					staff_num: uni.getStorageSync('user').staff_num,
-					data_module: item.module
+				// 老后台权限
+				// this.$p_api.product_data_query_power({
+				// 	staff_num: uni.getStorageSync('user').staff_num,
+				// 	data_module: item.module
+				// }).then((res) => {
+				// 	uni.hideLoading()
+				// 	if (res.data.content.status) {
+				// 		// 具备权限进入对应系统
+				// 		this.navigator_handler(item)
+				// 	} else {
+				// 		uni.showToast({
+				// 			icon: "none",
+				// 			title: "没有查看权限!"
+				// 		})
+				// 	}
+				// })
+				// oa权限
+				uni.request({
+					url: "http://zq.oa.nxmy.com:8011/api.php?m=openDcsApi&a=dcs_auth_check&openkey=d9302364e2a2d9fdcab2707a46fbab5a",
+					method: "GET",
+					data: {
+						staff_num: uni.getStorageSync('user').staff_num,
+						sys_id: item.id
+					}
 				}).then((res) => {
 					uni.hideLoading()
-					if (res.data.content.status) {
+					if (res[1].data.code == '200') {
 						// 具备权限进入对应系统
+						console.log(item)
 						this.navigator_handler(item)
 					} else {
 						uni.showToast({
 							icon: "none",
-							title: "没有查看权限!"
+							title: res[1].data.msg
 						})
 					}
 				})
+
 			},
 			navigator_handler(item) {
-				// 人员定位
-				if (item.module == 'rydw') {
-					uni.navigateTo({
-						url: "../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
-					})
-				}
-				// 安全监测
-				if (item.module == 'aqjc') {
-					uni.navigateTo({
-						url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
-					})
-				}
-				// 视频监控
-				if (item.module == 'spjk') {
-					uni.navigateTo({
-						url: "../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
-					})
-				}
-				// 生产报表
-				if (item.module == 'scbb') {
-					uni.navigateTo({
-						url: "../../production/production_report/production_report?mine=" + this.mine +
-							"&org_num=" + this.org_num,
-					})
-				}
-				// 矿井水处理
-				if (item.module == 'kjscl') {
-					uni.navigateTo({
-						url: "../../production/zaoquan/mine_water_treatment/mine_water_treatment?mine_code=" + this
-							.mine_code
-					})
+				// 智能监测
+				if (item.module == 'znjc') {
+					if (item.sys_code == 'rydw') {
+						uni.navigateTo({
+							url: "../../production/personnel_orientation/personnel_orientation?mine=" + this.mine
+						})
+					}
+					if (item.sys_code == 'aqjc') {
+						uni.navigateTo({
+							url: "../../production/safety_monitoring/safety_monitoring?mine=" + this.mine
+						})
+					}
+					if (item.sys_code == 'spjk') {
+						uni.navigateTo({
+							url: "../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
+						})
+					}
+					if (item.sys_code == 'scbb') {
+						uni.navigateTo({
+							url: "../../production/production_report/production_report?mine=" + this.mine +
+								"&org_num=" + this.org_num,
+						})
+					}
+					if (item.sys_code == 'kjscl') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/mine_water_treatment/mine_water_treatment?mine_code=" +
+								this
+								.mine_code
+						})
+					}
 				}
 				// 智能采煤
 				if (item.module == 'zncm') {
-					if(item.sys_code == ''){
+					if (item.sys_code == '') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/control_platform/coal_mining/coal_mining"
 						})
 					}
-					if(item.sys_code == 'ruhuabeng'){
+					if (item.sys_code == 'ruhuabeng') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/control_platform/coal_mining/emulsion_pump/emulsion_pump"
 						})
 					}
-					if(item.sys_code == 'caimeiji'){
+					if (item.sys_code == 'caimeiji') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/control_platform/coal_mining/shearer/shearer"
 						})
 					}
-					if(item.sys_code == 'yeyazhijia'){
+					if (item.sys_code == 'yeyazhijia') {
 						uni.navigateTo({
 							url: "../../production/unified_automation_system/support/support?title=液压支架&sys_code=main"
 						})
-						
+
 					}
-					if(item.sys_code == 'sanji'){
+					if (item.sys_code == 'sanji') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/control_platform/coal_mining/sanji/sanji"
 						})
@@ -477,11 +194,11 @@
 				}
 				// 供排水
 				if (item.module == 'znps') {
-					if (item.sys_code == '') {
+					if (item.sys_code == 'znps') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/control_platform/drainage/drainage"
 						})
-					} else if (item.sys_code == '5000') {
+					} else if (item.sys_code == '5000f') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/control_platform/drainage/pool/pool?title=" + item
 								.name + "&sys_code=" + item.sys_code
@@ -514,41 +231,62 @@
 						}
 					}
 				}
-				// 智能测速
-				if (item.module == 'zncs') {
-					if (item.sys_code == '') {
+				// 智能园区
+				if (item.module == 'zhyq') {
+					if (item.sys_code == 'zncs_dm') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/vehicle_monitoring/speed_alarm/speed_alarm"
 						})
-					} else {
+					}
+					if (item.sys_code == 'zncs_jx') {
 						uni.navigateTo({
 							url: "../../production/zaoquan/vehicle_monitoring/vehicle_monitoring"
 						})
 					}
+					// 扬尘监测
+					if (item.sys_code == 'ycjc') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/dust_emission/dust_emission"
+						})
+					}
+					// 智能充电桩
+					if (item.sys_code == 'zncdz') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/charging_station/charging_station"
+						})
+					}
 				}
-				// 主运输
-				if (item.module == 'zys') {
-					uni.navigateTo({
-						url: "../../production/zaoquan/control_platform/transport/transport"
-					})
-				}
-				// 架空乘人器
-				if (item.module == 'jkcr') {
-					uni.navigateTo({
-						url: "../../production/zaoquan/control_platform/aerial/aerial"
-					})
-				}
-				// 扬尘监测
-				if (item.module == 'ycjc') {
-					uni.navigateTo({
-						url: "../../production/zaoquan/control_platform/dust_emission/dust_emission"
-					})
+				// 智能园区
+				if (item.module == 'ysxt') {
+					// 主运输
+					if (item.sys_code == 'zys') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/transport/transport"
+						})
+					}
+					// 动井架空乘人器
+					if (item.sys_code == 'djjk') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/aerial/aerial"
+						})
+					}
 				}
-				// 智能充电桩
-				if (item.module == 'zncdz') {
-					uni.navigateTo({
-						url: "../../production/zaoquan/control_platform/charging_station/charging_station"
-					})
+				// 灾害监测
+				if (item.module == 'zaihai') {
+					if (item.sys_code == 'sw') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/hydrology/hydrology"
+						})
+					} else if (item.sys_code == 'kyjc') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/mineral_pressure/mineral_pressure"
+						})
+					} else if (item.sys_code == 'yjgb') {
+						uni.navigateTo({
+							url: "../../production/zaoquan/control_platform/emergency_broadcasting/emergency_broadcasting"
+						})
+					}
+
 				}
 			}
 
@@ -575,6 +313,7 @@
 		.segmented-control-x {
 			display: flex;
 			justify-content: space-between;
+
 			.segmented {
 				margin-right: 20rpx;
 				flex: 1.2;

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "name" : "智慧枣泉(新)",
     "appid" : "__UNI__4B520D3",
     "description" : "",
-    "versionName" : "2.2.0",
+    "versionName" : "2.1.5",
     "versionCode" : "100",
     "transformPx" : false,
     /* 5+App特有相关 */

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 610 - 728
pages.json


+ 14 - 5
pages/production/zaoquan/control_platform/aerial/aerial.vue

@@ -58,8 +58,8 @@
 	export default {
 		data() {
 			return {
-				sys_code: "",
-				info: [{
+				info: [
+					{
 						label: "行人斜井",
 						value: "9人"
 					},
@@ -142,13 +142,22 @@
 			uni.setNavigationBarTitle({
 				title: options.title
 			})
-			this.sys_code = options.sys_code
 		},
 		mounted() {
-
+			this.get_data()
 		},
 		methods: {
-
+			get_data(){
+				this.$api.zaoquan_dcs_getSupport({
+					sys_code: "djjkcr"
+				}).then((res) => {
+					console.log(res.data)
+					
+					this.info = res.data.info
+					this.state = res.data.state
+					this.canshu = res.data.canshu
+				})
+			}
 		}
 	}
 </script>

+ 8 - 1
pages/production/zaoquan/control_platform/driving/driving.vue

@@ -173,7 +173,14 @@
 		},
 		methods: {
 			get_data() {
-				
+				this.$api.zaoquan_dcs_workface({
+					sys_code: "znzj"
+				}).then((res) => {
+					console.log(res.data)
+					this.info = res.data.info
+					this.tab_info = res.data.tab_info
+					this.juejinji = res.data.juejinji
+				})
 			}
 		}
 	}

+ 14 - 0
pages/production/zaoquan/control_platform/dust_emission/dust_emission.vue

@@ -83,6 +83,20 @@
 					}
 				]
 			};
+		},
+		mounted() {
+			this.get_data()
+		},
+		methods:{
+			get_data(){
+				this.$api.zaoquan_dcs_getSupport({
+					sys_code: "yangchen"
+				}).then((res) => {
+					console.log(res.data)
+					
+					this.list = res.data.list
+				})
+			}
 		}
 	}
 </script>

+ 166 - 0
pages/production/zaoquan/control_platform/emergency_broadcasting/emergency_broadcasting.vue

@@ -0,0 +1,166 @@
+<template>
+	<view>
+		<view class="top">
+			<image src="../img/top.jpg" mode="widthFix"></image>
+		</view>
+
+		<view class="container">
+
+			<view class="content">
+				<view class="section">
+					<view class="title">
+						<view class="left">{{table.title}}</view>
+					</view>
+					<view class="inner">
+						<view class="table">
+							<uni-table emptyText="暂无更多数据">
+								<uni-tr>
+									<uni-th width="30" align="center">序号</uni-th>
+									<uni-th width="100" align="center" v-for="(item,index) in table.thead"
+										:key="index">{{item}}</uni-th>
+								</uni-tr>
+								<uni-tr v-for="(item,index) in table.tbody" :key="index">
+									<uni-td style="text-align: center;vertical-align: middle;">{{index+1}}</uni-td>
+									<uni-td style="text-align: center;vertical-align: middle;"
+										v-for="(item_2,index_2) in item">{{item_2}}</uni-td>
+								</uni-tr>
+							</uni-table>
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				table: {
+					title: "应急广播(横向滚动查看更多标识)",
+					thead: ["序号", "所属系统", "测点名称", "实时值", "单位", "状态"],
+					tbody: [
+						[1, "应急广播系统", "970m运输石门机尾联络巷_9085", "空闲 (正常)", "", "正常"],
+						[1, "应急广播系统", "_7085$$状态", "", "", "传感器断线"],
+						[1, "应急广播系统", "970m运输石门机尾联络巷_9085", "空闲 (正常)", "", "正常"],
+						[1, "应急广播系统", "970m运输石门机尾联络巷_9085", "空闲 (正常)", "", "正常"],
+					]
+				}
+			};
+		},
+		mounted() {
+			this.getServerData()
+		},
+		methods: {
+			getServerData() {
+				this.$api.zaoquan_dcs_getSupport({
+					sys_code: "guangbo"
+				}).then((res) => {
+					console.log(res.data)
+					
+					this.table = res.data.table
+				})
+			},
+		}
+	}
+</script>
+
+<style lang="scss">
+	page {
+		background-color: #F7F7F7;
+	}
+
+	.top {
+		margin-top: -80rpx;
+
+		image {
+			width: 750rpx;
+		}
+	}
+
+	.container {
+		margin: -900rpx 0 0 0;
+		position: relative;
+
+		.content {
+			background-color: #F7F7F7;
+			border-radius: 35rpx 35rpx 0 0;
+			box-sizing: border-box;
+			padding: 35rpx;
+
+			min-height: 1200rpx;
+
+			.section {
+				margin-bottom: 40rpx;
+				border-radius: 14rpx;
+				overflow: hidden;
+
+				.title {
+					background: linear-gradient(-90deg, #FFFFFF, #E6FAFF);
+
+					display: flex;
+					align-items: flex-end;
+					justify-content: space-between;
+
+					box-sizing: border-box;
+					padding: 24rpx;
+
+					.left {
+						border-left: 6rpx solid #33C777;
+						padding-left: 10rpx;
+						font-size: 34rpx;
+						font-weight: 700;
+						color: #343434;
+					}
+
+					.right {
+						font-size: 22rpx;
+						color: #3394F9;
+					}
+				}
+
+				.inner {
+					background-color: #FFFFFF;
+					padding: 30rpx 20rpx;
+					display: grid;
+					grid-template-columns: repeat(2, 1fr);
+					gap: 0 40rpx;
+
+					.table {
+						width: 640rpx;
+						border-radius: 20rpx;
+						overflow: hidden;
+
+						/deep/.uni-table-tr {
+							// background-color: #FFFFFF;
+						}
+
+						/deep/.uni-table-th {
+							border: none;
+							background-color: #FFFFFF;
+							padding: 27rpx 20rpx;
+							color: #7A7A7A;
+							font-size: 28rpx;
+							color: #1966E2;
+							font-weight: 700;
+							border-bottom: 2rpx #EBEEF5 dashed;
+						}
+
+						/deep/.uni-table-td {
+							font-size: 28rpx;
+							color: #010101;
+							border-bottom: 2rpx #EBEEF5 dashed;
+							padding: 27rpx 20rpx;
+						}
+
+						/deep/.table--border {
+							border: none;
+						}
+					}
+
+				}
+			}
+		}
+	}
+</style>

+ 328 - 0
pages/production/zaoquan/control_platform/hydrology/hydrology.vue

@@ -0,0 +1,328 @@
+<template>
+	<view>
+		<view class="top">
+			<image src="../img/top.jpg" mode="widthFix"></image>
+		</view>
+
+		<view class="container">
+
+			<view class="info">
+				<view class="item" v-for="(item,index) in info" :key="index">
+					<view class="label">{{item.label}}</view>
+					<view class="value">{{item.value}}</view>
+				</view>
+			</view>
+
+			<view class="content">
+				<view class="section">
+					<view class="title">
+						<view class="left">分站统计</view>
+					</view>
+					<view class="inner">
+						<view class="charts-box">
+							<qiun-data-charts type="pie" :opts="opts" :chartData="chartData" />
+						</view>
+					</view>
+				</view>
+
+				<view class="section">
+					<view class="title">
+						<view class="left">近7日降雨量</view>
+					</view>
+					<view class="inner">
+						<view class="charts-box">
+							<qiun-data-charts type="column" :opts="opts_2" :chartData="chartData_2" :ontouch="true" />
+						</view>
+					</view>
+				</view>
+
+				<view class="section" v-for="(item,index) in table" :key="index">
+					<view class="title">
+						<view class="left">{{item.title}}</view>
+					</view>
+					<view class="inner">
+						<view class="table">
+							<uni-table emptyText="暂无更多数据">
+								<uni-tr>
+									<uni-th align="center" v-for="(item_2,index_2) in item.thead"
+										:key="index_2">{{item_2}}</uni-th>
+								</uni-tr>
+								<uni-tr v-for="(item_2,index_2) in item.tbody" :key="index_2">
+									<uni-td style="text-align: center;vertical-align: middle;"
+										v-for="(item_3,index_3) in item_2">{{item_3}}</uni-td>
+								</uni-tr>
+							</uni-table>
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				info: [{
+						label: "地面传感器",
+						value: "92"
+					},
+					{
+						label: "压力水位传感器",
+						value: "2"
+					},
+					{
+						label: "流量传感器",
+						value: "3"
+					},
+					{
+						label: "自动雨量站",
+						value: "1"
+					},
+					{
+						label: "地面断线传感器",
+						value: "0"
+					},
+					{
+						label: "井下断线传感器",
+						value: "0"
+					}
+				],
+
+				chartData: {
+					series: [{
+						data: []
+					}]
+				},
+				opts: {
+					legend: {
+						lineHeight: 20
+					}
+				},
+				chartData_2: {
+					categories: [],
+					series: [{
+						name: "降雨量(mm)",
+						data: []
+					}]
+				},
+				opts_2: {
+					xAxis: {
+						labelCount: 5
+					}
+				},
+
+				table: [{
+						title: "实时数据:地面水文长观孔",
+						thead: ["孔名", "含水层", "监测时间", "埋深(m)", "埋深变化量", "温度(℃)", "水位(m)"],
+						tbody: [
+							["BK2", "Ⅱ含水层(烧变岩)", "2024-07-17 00:00:00", "141.25", "0.01", "15.59", "1210.06"],
+							["BK4", "Ⅱ含水层(烧变岩)", "2024-07-17 00:00:00", "141.25", "0.01", "15.59", "1210.06"],
+							["BK5", "Ⅱ含水层(烧变岩)", "2024-07-17 00:00:00", "141.25", "0.01", "15.59", "1210.06"]
+						]
+					},
+					{
+						title: "实时数据:井下传感器",
+						thead: ["传感器编号", "测点位置", "监测时间", "监测量", "监测值", "单位", "监测状态"],
+						tbody: [
+							["64010300100009", "湿度", "2024-07-17 15:13:00", "湿度", "24.2", "%RH", "正常"],
+							["64010300100009", "湿度", "2024-07-17 15:13:00", "湿度", "24.2", "%RH", "正常"],
+							["64010300100009", "湿度", "2024-07-17 15:13:00", "湿度", "24.2", "%RH", "正常"],
+							["64010300100009", "湿度", "2024-07-17 15:13:00", "湿度", "24.2", "%RH", "正常"]
+						]
+					}
+				]
+			};
+		},
+		mounted() {
+			this.getServerData()
+		},
+		methods: {
+			getServerData() {
+				// 模拟从服务器获取数据时的延时
+				setTimeout(() => {
+					//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
+					let res = {
+						series: [{
+							data: [{
+								"name": "(2016款)KJ402-F系列",
+								"value": 9
+							}, {
+								"name": "KJ402-FB-1",
+								"value": 9
+							}, {
+								"name": "XN-流量统计分站",
+								"value": 1
+							}, {
+								"name": "XN-水质分站",
+								"value": 7
+							}, {
+								"name": "XPH气象站6要素",
+								"value": 1
+							}]
+						}]
+					};
+					this.chartData = JSON.parse(JSON.stringify(res));
+				}, 500);
+
+				setTimeout(() => {
+					//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
+					let res = {
+						categories: ["07-13", "07-14", "07-15", "07-16", "07-17", "07-18", "07-19"],
+						series: [{
+							name: "降雨量(mm)",
+							data: [3.2, 3.6, 0, 0, 0, 0, 0]
+						}]
+					};
+					this.chartData_2 = JSON.parse(JSON.stringify(res));
+				}, 500);
+
+				this.$api.zaoquan_dcs_getSupport({
+					sys_code: "shuiwen"
+				}).then((res) => {
+					console.log(res.data)
+
+					this.info = res.data.info
+					this.table = res.data.table
+					this.chartData.series = res.data.series
+					this.chartData_2.categories = res.data['7day'][0].categories
+					this.chartData_2.series = res.data['7day'][0].series
+				})
+			},
+		}
+	}
+</script>
+
+<style lang="scss">
+	page {
+		background-color: #F7F7F7;
+	}
+
+	.top {
+		margin-top: -80rpx;
+
+		image {
+			width: 750rpx;
+		}
+	}
+
+	.container {
+		margin: -900rpx 0 0 0;
+		position: relative;
+
+		.info {
+			margin: 40rpx 0;
+			box-sizing: border-box;
+			padding: 20rpx;
+			display: grid;
+			grid-template-columns: repeat(3, 1fr);
+			gap: 40rpx 10rpx;
+
+			.item {
+				text-align: center;
+				border-right: 1rpx solid #FFFFFF80;
+
+				.label {
+					font-size: 22rpx;
+					color: #FFF;
+					margin-bottom: 10rpx;
+				}
+
+				.value {
+					flex-wrap: wrap;
+					color: #FFF600;
+					font-weight: 700;
+				}
+			}
+
+			.item:nth-child(3n) {
+				border: none;
+			}
+		}
+
+
+		.content {
+			background-color: #F7F7F7;
+			border-radius: 35rpx 35rpx 0 0;
+			box-sizing: border-box;
+			padding: 35rpx;
+
+			.section {
+				margin-bottom: 40rpx;
+				border-radius: 14rpx;
+				overflow: hidden;
+
+				.title {
+					background: linear-gradient(-90deg, #FFFFFF, #E6FAFF);
+
+					display: flex;
+					align-items: flex-end;
+					justify-content: space-between;
+
+					box-sizing: border-box;
+					padding: 24rpx;
+
+					.left {
+						border-left: 6rpx solid #33C777;
+						padding-left: 10rpx;
+						font-size: 34rpx;
+						font-weight: 700;
+						color: #343434;
+					}
+
+					.right {
+						font-size: 22rpx;
+						color: #3394F9;
+					}
+				}
+
+				.inner {
+					background-color: #FFFFFF;
+					padding: 30rpx 20rpx;
+					display: grid;
+					grid-template-columns: repeat(2, 1fr);
+					gap: 0 40rpx;
+
+					.charts-box {
+						width: 640rpx;
+						height: 550rpx;
+					}
+
+					.table {
+						width: 640rpx;
+						border-radius: 20rpx;
+						overflow: hidden;
+
+						/deep/.uni-table-tr {
+							// background-color: #FFFFFF;
+						}
+
+						/deep/.uni-table-th {
+							border: none;
+							background-color: #FFFFFF;
+							padding: 27rpx 20rpx;
+							color: #7A7A7A;
+							font-size: 28rpx;
+							color: #1966E2;
+							font-weight: 700;
+							border-bottom: 2rpx #EBEEF5 dashed;
+						}
+
+						/deep/.uni-table-td {
+							font-size: 28rpx;
+							color: #010101;
+							border-bottom: 2rpx #EBEEF5 dashed;
+							padding: 27rpx 20rpx;
+						}
+
+						/deep/.table--border {
+							border: none;
+						}
+					}
+
+				}
+			}
+		}
+	}
+</style>

+ 167 - 0
pages/production/zaoquan/control_platform/mineral_pressure/mineral_pressure.vue

@@ -0,0 +1,167 @@
+<template>
+	<view>
+		<view class="top">
+			<image src="../img/top.jpg" mode="widthFix"></image>
+		</view>
+
+		<view class="container">
+
+			<view class="content">
+				<view class="section" v-for="(item,index) in table" :key="index">
+					<view class="title">
+						<view class="left">{{item.title}}</view>
+					</view>
+					<view class="inner">
+						<view class="table">
+							<uni-table emptyText="暂无更多数据">
+								<uni-tr>
+									<uni-th width="100" align="center" v-for="(item_2,index_2) in item.thead"
+										:key="index_2">{{item_2}}</uni-th>
+								</uni-tr>
+								<uni-tr v-for="(item_2,index_2) in item.tbody" :key="index_2">
+									<uni-td style="text-align: center;vertical-align: middle;"
+										v-for="(item_3,index_3) in item_2" :key="index_3">{{item_3}}</uni-td>
+								</uni-tr>
+							</uni-table>
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				table: [
+				// 	{
+				// 	title: "矿压监测(横向滚动查看更多标识)",
+				// 	thead: ["序号", "所属系统", "测点名称", "实时值", "单位", "状态"],
+				// 	tbody: [
+				// 		[1, "山东诚德矿压监测系统", "400m_浅基点监测值", "0", "", "正常"],
+				// 		[1, "山东诚德矿压监测系统", "400m_浅基点监测值", "0", "", "正常"],
+				// 		[1, "山东诚德矿压监测系统", "400m_浅基点监测值", "0", "", "正常"],
+				// 		[1, "山东诚德矿压监测系统", "400m_浅基点监测值", "0", "", "正常"]
+				// 	]
+				// },
+				]
+			};
+		},
+		mounted() {
+			this.getServerData()
+		},
+		methods: {
+			getServerData() {
+				this.$api.zaoquan_dcs_getSupport({
+					sys_code: "kuangya"
+				}).then((res) => {
+					console.log(res.data.table)
+
+					this.table = res.data.table
+
+				})
+			},
+		}
+	}
+</script>
+
+<style lang="scss">
+	page {
+		background-color: #F7F7F7;
+	}
+
+	.top {
+		margin-top: -80rpx;
+
+		image {
+			width: 750rpx;
+		}
+	}
+
+	.container {
+		margin: -900rpx 0 0 0;
+		position: relative;
+
+		.content {
+			background-color: #F7F7F7;
+			border-radius: 35rpx 35rpx 0 0;
+			box-sizing: border-box;
+			padding: 35rpx;
+
+			min-height: 1200rpx;
+
+			.section {
+				margin-bottom: 40rpx;
+				border-radius: 14rpx;
+				overflow: hidden;
+
+				.title {
+					background: linear-gradient(-90deg, #FFFFFF, #E6FAFF);
+
+					display: flex;
+					align-items: flex-end;
+					justify-content: space-between;
+
+					box-sizing: border-box;
+					padding: 24rpx;
+
+					.left {
+						border-left: 6rpx solid #33C777;
+						padding-left: 10rpx;
+						font-size: 34rpx;
+						font-weight: 700;
+						color: #343434;
+					}
+
+					.right {
+						font-size: 22rpx;
+						color: #3394F9;
+					}
+				}
+
+				.inner {
+					background-color: #FFFFFF;
+					padding: 30rpx 20rpx;
+					display: grid;
+					grid-template-columns: repeat(2, 1fr);
+					gap: 0 40rpx;
+
+					.table {
+						width: 640rpx;
+						border-radius: 20rpx;
+						overflow: hidden;
+
+						/deep/.uni-table-tr {
+							// background-color: #FFFFFF;
+						}
+
+						/deep/.uni-table-th {
+							border: none;
+							background-color: #FFFFFF;
+							padding: 27rpx 20rpx;
+							color: #7A7A7A;
+							font-size: 28rpx;
+							color: #1966E2;
+							font-weight: 700;
+							border-bottom: 2rpx #EBEEF5 dashed;
+						}
+
+						/deep/.uni-table-td {
+							font-size: 28rpx;
+							color: #010101;
+							border-bottom: 2rpx #EBEEF5 dashed;
+							padding: 27rpx 20rpx;
+						}
+
+						/deep/.table--border {
+							border: none;
+						}
+					}
+
+				}
+			}
+		}
+	}
+</style>

+ 3 - 3
pages/production/zaoquan/control_platform/substation/detail/detail.vue

@@ -92,7 +92,7 @@
 					</view>
 				</scroll-view>
 			</view>
-			<view class="img_box img_box_1000" v-else-if="type == '1000low'">
+			<view class="img_box img_box_1000" v-else-if="type == '1000high'">
 				<scroll-view class="main" scroll-x="true">
 					<view class="img">
 						<image src="../img/1000.png" mode="widthFix"></image>
@@ -140,7 +140,7 @@
 					</view>
 				</scroll-view>
 			</view>
-			<view class="img_box img_box_950" v-else-if="type == '950'">
+			<view class="img_box img_box_950" v-else-if="type == 'd950'">
 				<scroll-view class="main" scroll-x="true">
 					<view class="img">
 						<image src="../img/950.png" mode="widthFix"></image>
@@ -156,7 +156,7 @@
 					</view>
 				</scroll-view>
 			</view>
-			<view class="img_box img_box_929" v-else-if="type == '929'">
+			<view class="img_box img_box_929" v-else-if="type == 'd929'">
 				<scroll-view class="main" scroll-x="true">
 					<view class="img">
 						<image src="../img/929.jpg" mode="widthFix"></image>