瀏覽代碼

界面中设备型号新增了一个CO2传感器

like 5 月之前
父節點
當前提交
412a7118de

+ 3 - 2
snowy-admin-web/src/views/biz/monitor/devicetype/form.vue

@@ -1,6 +1,6 @@
 <template>
 	<xn-form-container
-		:title="formData.id ? '编辑设备型号' : '新增设备型号'"
+		:title="formData.id ? '编辑设备型号' : '新增设备型号11111111111111111111111'"
 		:width="'800px'"
 		:visible="visible"
 		:destroy-on-close="true"
@@ -99,7 +99,7 @@
 						</a-form-item>
 					</a-col>
 				</div>
-				<div class="form_item" v-if="formData.sensorType == 'WSC'">
+				<div class="form_item" v-if="formData.sensorType == 'WSC' || formData.sensorType == 'C'">
 					<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
 						<a-form-item label="CO2上限" name="co2Up">
 							<a-input-number
@@ -149,6 +149,7 @@
 	const formRef = ref()
 	const formData = ref({ sortCode: 99 }) // 表单数据
 	const sensorOptions = tool.dictList('SENSORTYPE') // 传感器类型
+	
 
 	// 默认要校验的
 	const formRules = {

+ 1 - 1
snowy-admin-web/src/views/biz/monitor/mem/form.vue

@@ -135,7 +135,7 @@
 						</a-form-item>
 					</a-col>
 				</div>
-				<div class="form_item" v-if="modeData.sensorType == 'WSC'">
+				<div class="form_item" v-if="modeData.sensorType == 'WSC' || modeData.sensorType == 'C'">
 					<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
 						<a-form-item label="CO2上限" name="co2Up">
 							<a-input-number

+ 12 - 6
snowy-admin-web/src/views/biz/monitor/object/index.vue

@@ -130,12 +130,18 @@
 									:span="2"
 									>{{ item.humidityDown }}</a-descriptions-item
 								>
-								<a-descriptions-item v-if="item.sensorType == 'WSC'" label="CO2上限" :span="2">{{
-									item.co2Up
-								}}</a-descriptions-item>
-								<a-descriptions-item v-if="item.sensorType == 'WSC'" label="CO2下限" :span="2">{{
-									item.co2Down
-								}}</a-descriptions-item>
+								<a-descriptions-item
+									v-if="item.sensorType == 'WSC' || item.sensorType == 'C'"
+									label="CO2上限"
+									:span="2"
+									>{{ item.co2Up }}</a-descriptions-item
+								>
+								<a-descriptions-item
+									v-if="item.sensorType == 'WSC' || item.sensorType == 'C'"
+									label="CO2下限"
+									:span="2"
+									>{{ item.co2Down }}</a-descriptions-item
+								>
 							</a-descriptions>
 						</div>
 					</a-tab-pane>

+ 1 - 1
snowy-admin-web/src/views/biz/monitor/point/form.vue

@@ -183,7 +183,7 @@
 					</a-col>
 				</div>
 
-				<div class="form_item" v-if="formData.sensorType == 'WSC'">
+				<div class="form_item" v-if="formData.sensorType == 'WSC' || formData.sensorType == 'C'">
 					<a-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
 						<a-form-item label="CO2上限" name="co2Up">
 							<a-input-number

+ 3 - 6
snowy-admin-web/src/views/biz/monitor/trendchart/index.vue

@@ -10,10 +10,7 @@
 			<div class="head_name">{{ data.regionName }}</div>
 			<div class="head_row">
 				<div class="label">
-					<img
-						src="/src/assets/images/monitor/01.png"
-						v-if="data.sensorType == 'W' || data.sensorType == 'WS' || data.sensorType == 'WSC'"
-					/>
+					<img src="/src/assets/images/monitor/01.png" v-if="data.sensorData && data.sensorData.temperature" />
 					<img src="/src/assets/images/monitor/01-1.png" v-else />
 				</div>
 				<div class="value">
@@ -23,7 +20,7 @@
 			</div>
 			<div class="head_row">
 				<div class="label">
-					<img src="/src/assets/images/monitor/02.png" v-if="data.sensorType == 'WS' || data.sensorType == 'WSC'" />
+					<img src="/src/assets/images/monitor/02.png" v-if="data.sensorData && data.sensorData.humidity" />
 					<img src="/src/assets/images/monitor/02-2.png" v-else />
 				</div>
 				<div class="value">
@@ -33,7 +30,7 @@
 			</div>
 			<div class="head_row">
 				<div class="label">
-					<img src="/src/assets/images/monitor/03.png" v-if="data.sensorType == 'WSC'" />
+					<img src="/src/assets/images/monitor/03.png" v-if="data.sensorData && data.sensorData.co2" />
 					<img src="/src/assets/images/monitor/03-3.png" v-else />
 				</div>
 				<div class="value">