|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
<view style="height: 20px" />
|
|
|
+ <Identity ref="Identity" />
|
|
|
<basics ref="basics" />
|
|
|
<pilotLamp ref="pilotLamp" itemW="21%" />
|
|
|
<view class="control-title">设备参数</view>
|
|
@@ -14,14 +15,21 @@ import controlPanel from "../prodnum-YK01/modules/controlPanel.vue";
|
|
|
import preview from "../prodnum-YK01/modules/preview.vue";
|
|
|
import pilotLamp from "../prodnum-MT03/modules/pilotLamp.vue";
|
|
|
import basics from "./modules/basics.vue";
|
|
|
+import Identity from "./modules/Identity.vue";
|
|
|
+
|
|
|
export default {
|
|
|
name: "prodnum-FW01",
|
|
|
- components: { controlPanel, pilotLamp, preview, basics },
|
|
|
+ components: { controlPanel, pilotLamp, preview, Identity, basics },
|
|
|
props: {
|
|
|
control: Object,
|
|
|
},
|
|
|
watch: {
|
|
|
control: function (newVal) {
|
|
|
+ this.$refs.Identity.ctrlModel = this.__proto__.getControlItem(
|
|
|
+ ["身份验证"],
|
|
|
+ newVal
|
|
|
+ )[0];
|
|
|
+ this.$refs.Identity.bluetoothcode = newVal.bluetoothcode;
|
|
|
if (newVal) {
|
|
|
try {
|
|
|
this.$refs.preview.list = [
|
|
@@ -34,7 +42,7 @@ export default {
|
|
|
|
|
|
try {
|
|
|
this.$refs.mpattern.itemList = this.__proto__.getControlItem(
|
|
|
- ["上传时间间隔", "开度变更提醒值"],
|
|
|
+ ["上传时间间隔", "开度变更提醒值", "阀门圈数", "当前阀门开度"],
|
|
|
newVal
|
|
|
);
|
|
|
} catch (error) {
|
|
@@ -57,7 +65,7 @@ export default {
|
|
|
["开度提醒复位"],
|
|
|
newVal
|
|
|
)[0];
|
|
|
- console.log("ctrlModel",this.$refs.basics.ctrlModel);
|
|
|
+ console.log("ctrlModel", this.$refs.basics.ctrlModel);
|
|
|
}
|
|
|
function getBoole(name, expect = 1) {
|
|
|
try {
|