wszhyWx/unpackage/dist/dev/mp-weixin/pages/controller/controller.js

3280 lines
87 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/controller/controller"],{
/***/ 177:
/*!*****************************************************************************************************!*\
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/main.js?{"page":"pages%2Fcontroller%2Fcontroller"} ***!
\*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
__webpack_require__(/*! uni-pages */ 26);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _controller = _interopRequireDefault(__webpack_require__(/*! ./pages/controller/controller.vue */ 178));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_controller.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))
/***/ }),
/***/ 178:
/*!**********************************************************************************!*\
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue ***!
\**********************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./controller.vue?vue&type=template&id=a456d474&scoped=true& */ 179);
/* harmony import */ var _controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./controller.vue?vue&type=script&lang=js& */ 181);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./controller.vue?vue&type=style&index=0&id=a456d474&lang=scss&scoped=true& */ 183);
/* harmony import */ var _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
var renderjs
/* normalize component */
var component = Object(_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"a456d474",
null,
false,
_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pages/controller/controller.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 179:
/*!*****************************************************************************************************************************!*\
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=template&id=a456d474&scoped=true& ***!
\*****************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./controller.vue?vue&type=template&id=a456d474&scoped=true& */ 180);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_template_id_a456d474_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
/***/ }),
/***/ 180:
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=template&id=a456d474&scoped=true& ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
var components
try {
components = {
uNavbar: function () {
return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-navbar/u-navbar */ "node-modules/uview-ui/components/u-navbar/u-navbar").then(__webpack_require__.bind(null, /*! uview-ui/components/u-navbar/u-navbar.vue */ 191))
},
uCollapse: function () {
return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-collapse/u-collapse */ "node-modules/uview-ui/components/u-collapse/u-collapse").then(__webpack_require__.bind(null, /*! uview-ui/components/u-collapse/u-collapse.vue */ 283))
},
uCollapseItem: function () {
return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-collapse-item/u-collapse-item */ "node-modules/uview-ui/components/u-collapse-item/u-collapse-item").then(__webpack_require__.bind(null, /*! uview-ui/components/u-collapse-item/u-collapse-item.vue */ 290))
},
uPopup: function () {
return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */ "node-modules/uview-ui/components/u-popup/u-popup").then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 251))
},
}
} catch (e) {
if (
e.message.indexOf("Cannot find module") !== -1 &&
e.message.indexOf(".vue") !== -1
) {
console.error(e.message)
console.error("1. 排查组件名称拼写是否正确")
console.error(
"2. 排查组件是否符合 easycom 规范文档https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
)
console.error(
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
)
} else {
throw e
}
}
var render = function () {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
var g0 = _vm.purviewList.indexOf("10")
var l0 =
g0 != -1
? _vm.__map(_vm.itemList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m0 = _vm.isInclude(item)
var m1 = _vm.getTypeRoll(item.type)
var m2 = _vm.getTypeRoll(item.type)
var m3 = !item.type_2 ? _vm.getTypeRoll(item.type) : null
return {
$orig: $orig,
m0: m0,
m1: m1,
m2: m2,
m3: m3,
}
})
: null
var g1 = _vm.purviewList.indexOf("9")
var l1 =
g1 != -1
? _vm.__map(_vm.statusList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m4 = item.open != 0 ? _vm.getNumberStatus(item.index) : null
return {
$orig: $orig,
m4: m4,
}
})
: null
var g2 = _vm.purviewList.indexOf("8")
var l2 =
g2 != -1
? _vm.__map(_vm.fiveControlList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m5 =
item.controlState != 0 && item.progress_num
? _vm.getNumberStatus(item.progress_state)
: null
return {
$orig: $orig,
m5: m5,
}
})
: null
var g3 = _vm.purviewList.indexOf("20")
var g4 = _vm.purviewList.indexOf("21")
var g5 = _vm.purviewList.indexOf("26")
var g6 = _vm.purviewList.indexOf("26")
var g7 = _vm.purviewList.indexOf("23")
var g8 = _vm.purviewList.indexOf("26")
var l3 =
g8 != -1
? _vm.__map(_vm.outFlipWindowList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m6 =
item.outFlipWindowState != 0
? _vm.getNumberStatus(item.statusProgress)
: null
return {
$orig: $orig,
m6: m6,
}
})
: null
var g9 = _vm.purviewList.indexOf("24")
var l4 =
g9 != -1
? _vm.__map(_vm.innercurtainList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m7 =
item.innercurtainState != 0
? _vm.getNumberStatus(item.statusProgress)
: null
return {
$orig: $orig,
m7: m7,
}
})
: null
var g10 = _vm.purviewList.indexOf("25")
var l5 =
g10 != -1
? _vm.__map(_vm.externalsunshadeList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m8 =
item.externalsunshadeState != 0
? _vm.getNumberStatus(item.statusProgress)
: null
return {
$orig: $orig,
m8: m8,
}
})
: null
var g11 = _vm.purviewList.indexOf("19")
var l6 =
g11 != -1
? _vm.__map(_vm.airWindowList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m9 =
item.airWindowState != 0
? _vm.getNumberStatus(item.statusProgress)
: null
return {
$orig: $orig,
m9: m9,
}
})
: null
var g12 = _vm.purviewList.indexOf("27")
var l7 =
g12 != -1
? _vm.__map(_vm.interiorthermalinsulationList, function (item, index) {
var $orig = _vm.__get_orig(item)
var m10 =
item.interiorthermalinsulationState != 0
? _vm.getNumberStatus(item.statusProgress)
: null
return {
$orig: $orig,
m10: m10,
}
})
: null
var l8 = _vm.__map(_vm.electronMagneticStatus, function (item, index) {
var $orig = _vm.__get_orig(item)
var g13 = _vm.purviewList.indexOf((index + 11).toString())
return {
$orig: $orig,
g13: g13,
}
})
var g14 = _vm.purviewList.length
if (!_vm._isMounted) {
_vm.e0 = function ($event) {
_vm.fiveControlShow = false
}
_vm.e1 = function ($event) {
_vm.modelShow = false
}
_vm.e2 = function ($event) {
_vm.fanmodelShow = false
}
_vm.e3 = function ($event) {
_vm.standardFanmodelShow = false
}
_vm.e4 = function ($event) {
_vm.valveControlShow = false
}
_vm.e5 = function ($event) {
_vm.supplementLightShow = false
}
_vm.e6 = function ($event) {
_vm.circulationFengshanShow = false
}
_vm.e7 = function ($event) {
_vm.fanwetcurtainShow = false
}
_vm.e8 = function ($event) {
_vm.highpressuremistShow = false
}
_vm.e9 = function ($event) {
_vm.outFlipWindowShow = false
}
_vm.e10 = function ($event) {
_vm.innercurtainShow = false
}
_vm.e11 = function ($event) {
_vm.externalsunshadeShow = false
}
_vm.e12 = function ($event) {
_vm.airWindowShow = false
}
_vm.e13 = function ($event) {
_vm.interiorthermalinsulationShow = false
}
}
_vm.$mp.data = Object.assign(
{},
{
$root: {
g0: g0,
l0: l0,
g1: g1,
l1: l1,
g2: g2,
l2: l2,
g3: g3,
g4: g4,
g5: g5,
g6: g6,
g7: g7,
g8: g8,
l3: l3,
g9: g9,
l4: l4,
g10: g10,
l5: l5,
g11: g11,
l6: l6,
g12: g12,
l7: l7,
l8: l8,
g14: g14,
},
}
)
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ 181:
/*!***********************************************************************************************************!*\
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=script&lang=js& ***!
\***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./controller.vue?vue&type=script&lang=js& */ 182);
/* harmony import */ var _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 182:
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=script&lang=js& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = {
data: function data() {
return {
// 头部导航背景
background: {
backgroundColor: '#24B383'
},
deviceId: '',
wxgetpermission: [],
//小程序手机控制权限数据
itemList: [{
head: "1#顶卷膜",
type: 21680,
open_value: 0,
close_value: 0
}, {
head: "2#顶卷膜",
type: 21683,
open_value: 0,
close_value: 0
}, {
head: "3#顶卷膜",
type: 21686,
open_value: 0,
close_value: 0
}, {
head: "1#侧卷膜",
type: 21689,
open_value: 0,
close_value: 0
}, {
head: "2#侧卷膜",
type: 21692,
open_value: 0,
close_value: 0
}, {
head: "外遮阳1",
type: 21695,
open_value: 0,
close_value: 0
}, {
head: "外遮阳2",
type: 21698,
open_value: 0,
close_value: 0
}, {
head: "外遮阳3",
type: 21701,
open_value: 0,
close_value: 0
}, {
head: "外遮阳4",
type: 21704,
open_value: 0,
close_value: 0
}, {
head: "外遮阳5",
type: 21707,
open_value: 0,
close_value: 0
}, {
head: "风机1",
type: 21710,
value: 0,
type_2: 2
}, {
head: "风机2",
type: 21712,
value: 0,
type_2: 2
}, {
head: "风机3",
type: 21714,
value: 0,
type_2: 2
}, {
head: "风机4",
type: 21716,
value: 0,
type_2: 2
}, {
head: "风机5",
type: 21718,
value: 0,
type_2: 2
}, {
head: "风机6",
type: 21720,
value: 0,
type_2: 2
}, {
head: "风机7",
type: 21722,
value: 0,
type_2: 2
}, {
head: "风机8",
type: 21724,
value: 0,
type_2: 2
}, {
head: "风机9",
type: 21726,
value: 0,
type_2: 2
}, {
head: "风机10",
type: 21728,
value: 0,
type_2: 2
}],
itemStyle: {
width: "690rpx",
background: " #FFFFFF",
boxShadow: "0rpx 4rpx 20rpx 0rpx rgba(153,153,153,0.1)",
borderRadius: "20rpx",
marginBottom: '30rpx'
},
headStyle: {
fontSize: "30rpx",
fontFamily: "PingFang-SC-Bold",
fontWeight: "bold",
color: "#333333",
height: '91rpx'
},
txt_act_list: [{
txt_act21680: 0,
key: 21680
}, {
txt_act21683: 0,
key: 21683
}, {
txt_act21686: 0,
key: 21686
}, {
txt_act21689: 0,
key: 21689
}, {
txt_act21692: 0,
key: 21692
}, {
txt_act21695: 0,
key: 21695
}, {
txt_act21698: 0,
key: 21698
}, {
txt_act21701: 0,
key: 21701
}, {
txt_act21704: 0,
key: 21704
}, {
txt_act21707: 0,
key: 21707
}, {
txt_act21710: 0,
key: 21710
}, {
txt_act21712: 0,
key: 21712
}, {
txt_act21714: 0,
key: 21714
}, {
txt_act21716: 0,
key: 21716
}, {
txt_act21718: 0,
key: 21718
}, {
txt_act21720: 0,
key: 21720
}, {
txt_act21722: 0,
key: 21722
}, {
txt_act21724: 0,
key: 21724
}, {
txt_act21726: 0,
key: 21726
}, {
txt_act21728: 0,
key: 21728
}],
inputData: [],
inputData1: [],
timer: '',
purviewList: [],
//权限的list
typeList: [],
statusList: [],
statusInterval: null,
//状态接口调取
fanStatus: {
name: '风机',
open: 0,
status: []
},
indexs: 1,
//弹窗打开的顶卷膜index
openIndex1: 0,
//顶卷膜的index
modelShow: false,
//顶卷膜show
fanmodelShow: false,
//风机show
openIndex: 0,
//风机有效性
inputData2: [],
actList1: [],
//标准风机
standardFanmodelShow: false,
standardFanStatus: {
name: '标准风机',
open: 0,
status: []
},
standardFanOpenIndex: 0,
standardFanInputData2: [],
standardFanActList1: [],
fiveControl: {},
//读取(五防项目)控制器
fiveControlShow: false,
//五防项目show
fiveControlIndex: 0,
//五防项目index
pop_title: '',
close_btn_all: false,
fiveControlUrl: "",
fiveControlList: [{
title: '加温水泵',
controlState: 0,
num: '1000',
close_btn: false,
open_num: 1001,
open: 0
}, {
title: '地热风机',
controlState: 0,
num: '1002',
close_btn: false,
open_num: 1003,
open: 0
}, {
title: '上风口',
controlState: 0,
num: '1004',
close_btn: true,
progress_state_num: 1005,
//状态
progress_state: 0,
//状态值
progress_num: '1006',
//开度值
progress: ''
}, {
title: '下风口',
controlState: 0,
num: '1007',
close_btn: true,
progress_state_num: 1008,
//状态
progress_state: 0,
//状态值
progress_num: '1009',
progress: ''
}, {
title: '卷被',
controlState: 0,
num: '1010',
close_btn: true,
progress_state_num: 1011,
//状态
progress_state: 0,
//状态值
progress_num: '1012',
progress: ''
}, {
title: '除雪',
controlState: 0,
num: '1013',
close_btn: false,
open_num: 1014,
open: 0
}],
valveControlShow: false,
//电磁阀
valvePopTitle: '',
valve_input_value: '',
valveControlIndex: 0,
electronMagneticStatus: [{
name: '1#电磁阀',
code: 1166,
status: 0
}, {
name: '2#电磁阀',
code: 1167,
status: 0
}, {
name: '3#电磁阀',
code: 1168,
status: 0
}, {
name: '4#电磁阀',
code: 1169,
status: 0
}, {
name: '5#电磁阀',
code: 1170,
status: 0
}, {
name: '6#电磁阀',
code: 1171,
status: 0
}, {
name: '7#电磁阀',
code: 1172,
status: 0
}, {
name: '8#电磁阀',
code: 1173,
status: 0
}],
supplementLightShow: false,
//补光灯
lightControlIndex: 0,
supplementLightStatus: {
name: '补光灯',
open: 0,
status: []
},
actListLight: [],
circulationFengshanShow: false,
//环流风扇
circulationControlIndex: 0,
circulationFengshanList: [{
name: '1#环流风扇',
circulationFengshanState: 0,
open: 0
}, {
name: '2#环流风扇',
circulationFengshanState: 0,
open: 0
}],
popCirculationFengshanName: '',
fanwetcurtainShow: false,
//湿帘泵
fanwetcurtainControlIndex: 0,
fanwetcurtainList: [{
name: '1#湿帘泵',
fanwetcurtainState: 0,
open: 0
}, {
name: '2#湿帘泵',
fanwetcurtainState: 0,
open: 0
}],
popfanwetcurtainName: '',
highpressuremistShow: false,
//高压微雾
highpressuremistControlIndex: 0,
highpressuremistList: [{
name: '1#高压微雾',
highpressuremistState: 0,
open: 0
}, {
name: '2#高压微雾',
highpressuremistState: 0,
open: 0
}],
pophighpressuremistName: '',
outFlipWindowShow: false,
//湿帘外翻窗
outFlipWindowControlIndex: 0,
outFlipWindowList: [{
name: '1#湿帘外翻窗',
outFlipWindowState: 0,
progress: 0,
statusProgress: 0
}, {
name: '2#湿帘外翻窗',
outFlipWindowState: 0,
progress: 0,
statusProgress: 0
}],
popoutFlipWindowName: '',
innercurtainShow: false,
//内遮阳
innercurtainControlIndex: 0,
innercurtainList: [{
name: '1#内遮阳',
innercurtainState: 0,
progress: 0,
statusProgress: 0
}, {
name: '2#内遮阳',
innercurtainState: 0,
progress: 0,
statusProgress: 0
}],
popinnercurtainName: '',
externalsunshadeShow: false,
//外遮阳
externalsunshadeControlIndex: 0,
externalsunshadeList: [{
name: '1#外遮阳',
externalsunshadeState: 0,
progress: 0,
statusProgress: 0
}, {
name: '2#外遮阳',
externalsunshadeState: 0,
progress: 0,
statusProgress: 0
}],
popexternalsunshadeName: '',
airWindowShow: false,
//通风窗
airWindowControlIndex: 0,
airWindowList: [{
name: '1#通风窗',
airWindowState: 0,
progress: 0,
statusProgress: 0
}, {
name: '2#通风窗',
airWindowState: 0,
progress: 0,
statusProgress: 0
}, {
name: '3#通风窗',
airWindowState: 0,
progress: 0,
statusProgress: 0
}, {
name: '4#通风窗',
airWindowState: 0,
progress: 0,
statusProgress: 0
}],
popairWindowName: '',
interiorthermalinsulationShow: false,
//内保温
interiorthermalinsulationIndex: 0,
interiorthermalinsulationList: [{
name: '1#内保温',
interiorthermalinsulationState: 0,
progress: 0,
statusProgress: 0
}, {
name: '2#内保温',
interiorthermalinsulationState: 0,
progress: 0,
statusProgress: 0
}],
interiorthermalinsulationName: ''
};
},
onReady: function onReady() {
var _this = this;
if (this.purviewList.indexOf('10') != -1) {
setTimeout(function () {
_this.$refs.collapseView.init();
}, 1000);
}
},
onLoad: function onLoad(options) {
console.log(options);
this.typeList = this.api.typeList;
if (options.id) {
this.deviceId = options.id;
}
this.dataInit();
},
beforeDestroy: function beforeDestroy() {
clearInterval(this.statusInterval) && this.statusInterval;
},
onPullDownRefresh: function onPullDownRefresh() {
uni.showLoading({
title: '加载中...'
});
this.dataInit();
},
methods: {
// 小程序手机控制权限数据
getcontrol_wxgetpermission: function getcontrol_wxgetpermission() {
var _this2 = this;
var deviceId = this.deviceId;
this.$http({
url: this.api.getcontrol_wxgetpermission + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
_this2.wxgetpermission = res.data;
_this2.itemList = _this2.itemList.map(function (i) {
return _objectSpread(_objectSpread({}, i), {}, {
nickName: ''
});
});
_this2.itemList.forEach(function (h) {
var s = _this2.wxgetpermission.filter(function (m) {
return m.name == h.head;
});
if (s.length > 0) {
h.nickName = s[0].nickName;
}
});
}
});
},
// 判断小程序手机控制是否有这个项,有的话返回true
isInclude: function isInclude(el) {
var result = false;
this.wxgetpermission.forEach(function (item) {
if (item.name == el.head) {
result = true;
}
});
return result;
},
toWebView1: function toWebView1(url) {
var num = this.valvePopTitle.substring(0, 1);
uni.navigateTo({
url: "/pages/web_view_controller/web_view_controller?deviceId=".concat(this.deviceId, "&url=").concat(url, "&num=").concat(num)
});
},
toWebView: function toWebView(url) {
uni.navigateTo({
url: "/pages/web_view_controller/web_view_controller?deviceId=".concat(this.deviceId, "&url=").concat(url)
});
},
//开启几号风机
changeIndexOpen: function changeIndexOpen(active) {
if (this.actList1[active] == '1') {
this.actList1[active] = '0';
} else {
this.actList1[active] = '1';
}
var revList = this.actList1.slice().reverse();
var num = revList.join("");
var dataNum = {
target: {
value: parseInt(num, 2)
}
};
this.changeBtn('21601', dataNum);
},
//风机有效性修改
changeOpen: function changeOpen(index) {
this.openIndex = index;
var dataNum = {
target: {
value: this.openIndex
}
};
this.changeBtn('21600', dataNum);
},
// 标准风机
changeStandardFanOpen: function changeStandardFanOpen(index) {
this.standardFanOpenIndex = index;
var dataNum = {
target: {
value: this.standardFanOpenIndex
}
};
this.changeBtn('21950', dataNum);
},
//标准风机 开启几号风机
changeStandardFanIndexOpen: function changeStandardFanIndexOpen(active) {
if (this.standardFanActList1[active] == '1') {
this.standardFanActList1[active] = '0';
} else {
this.standardFanActList1[active] = '1';
}
var revList = this.standardFanActList1.slice().reverse();
var num = revList.join("");
var dataNum = {
target: {
value: parseInt(num, 2)
}
};
this.changeBtn('21951', dataNum);
},
//顶卷膜修改
changeOpen1: function changeOpen1(index) {
this.openIndex1 = index;
var dataNum = {
target: {
value: this.openIndex1
}
};
this.changeBtn(21613 + (this.indexs - 1) * 11, dataNum);
},
// 五防项目修改
changefiveControl: function changefiveControl(index) {
this.fiveControlIndex = index;
var dataNum = {
target: {
value: this.fiveControlIndex
}
};
if (this.pop_title == '加温水泵') {
this.changeBtn(21520, dataNum);
} else if (this.pop_title == '地热风机') {
this.changeBtn(21526, dataNum);
} else if (this.pop_title == '上风口') {
this.changeBtn(21530, dataNum);
} else if (this.pop_title == '下风口') {
this.changeBtn(21541, dataNum);
} else if (this.pop_title == '卷被') {
this.changeBtn(21548, dataNum);
} else if (this.pop_title == '除雪') {
this.changeBtn(21558, dataNum);
}
},
// *#电磁阀
changeValveControl: function changeValveControl(index) {
this.valveControlIndex = index;
var dataNum = {
target: {
value: this.valveControlIndex
}
};
var num = (this.valvePopTitle.substring(0, 1) - 1) * 50 + 20201;
this.changeBtn(num, dataNum);
},
// *#电磁阀输入框
changeValveInput: function changeValveInput() {
// console.log(this.valve_input_value);
if (this.valve_input_value < 1) {
uni.showToast({
title: '数字不能小于1',
icon: 'error',
duration: 2000
});
}
var dataNum = {
target: {
value: this.valve_input_value
}
};
var num = (this.valvePopTitle.substring(0, 1) - 1) * 50 + 20202;
this.changeBtn(num, dataNum);
},
// 补光灯
changeLightControl: function changeLightControl(index) {
this.lightControlIndex = index;
var dataNum = {
target: {
value: this.lightControlIndex
}
};
this.changeBtn(21400, dataNum);
},
// 开启几号补光灯
changeLightOpen: function changeLightOpen(index) {
if (this.actListLight[index] == '1') {
this.actListLight[index] = '0';
} else {
this.actListLight[index] = '1';
}
var revList = this.actListLight.slice().reverse();
var num = revList.join("");
var dataNum = {
target: {
value: parseInt(num, 2)
}
};
this.changeBtn('21401', dataNum);
},
// 环流风扇
changeCirculationControl: function changeCirculationControl(index) {
this.circulationControlIndex = index;
var dataNum = {
target: {
value: this.circulationControlIndex
}
};
if (this.popCirculationFengshanName == 0) {
this.changeBtn(21450, dataNum);
} else if (this.popCirculationFengshanName == 1) {
this.changeBtn(21470, dataNum);
}
},
// 湿帘泵
changefanwetcurtainControl: function changefanwetcurtainControl(index) {
this.fanwetcurtainControlIndex = index;
var dataNum = {
target: {
value: this.fanwetcurtainControlIndex
}
};
if (this.popfanwetcurtainName == 0) {
this.changeBtn(21970, dataNum);
} else if (this.popfanwetcurtainName == 1) {
this.changeBtn(21972, dataNum);
}
},
// 高压微雾
changehighpressuremistControl: function changehighpressuremistControl(index) {
this.highpressuremistControlIndex = index;
var dataNum = {
target: {
value: this.highpressuremistControlIndex
}
};
if (this.pophighpressuremistName == 0) {
this.changeBtn(21800, dataNum);
} else if (this.pophighpressuremistName == 1) {
this.changeBtn(21808, dataNum);
}
},
// 湿帘外翻窗弹框
changeoutFlipWindowControl: function changeoutFlipWindowControl(index) {
this.outFlipWindowControlIndex = index;
var dataNum = {
target: {
value: this.outFlipWindowControlIndex
}
};
if (this.popoutFlipWindowName == 0) {
this.changeBtn(21974, dataNum);
} else if (this.popoutFlipWindowName == 1) {
this.changeBtn(21979, dataNum);
}
},
// 内遮阳
changeinnercurtainControl: function changeinnercurtainControl(index) {
this.innercurtainControlIndex = index;
var dataNum = {
target: {
value: this.innercurtainControlIndex
}
};
if (this.popinnercurtainName == 0) {
this.changeBtn(21840, dataNum);
} else if (this.popinnercurtainName == 1) {
this.changeBtn(21858, dataNum);
}
},
// 外遮阳
changeexternalsunshadeControl: function changeexternalsunshadeControl(index) {
this.externalsunshadeControlIndex = index;
var dataNum = {
target: {
value: this.externalsunshadeControlIndex
}
};
if (this.popexternalsunshadeName == 0) {
this.changeBtn(21900, dataNum);
} else if (this.popexternalsunshadeName == 1) {
this.changeBtn(21915, dataNum);
}
},
// 通风窗
changeairWindowControl: function changeairWindowControl(index) {
this.airWindowControlIndex = index;
var dataNum = {
target: {
value: this.airWindowControlIndex
}
};
if (this.popairWindowName == 0) {
this.changeBtn(21250, dataNum);
} else if (this.popairWindowName == 1) {
this.changeBtn(21273, dataNum);
} else if (this.popairWindowName == 2) {
this.changeBtn(21296, dataNum);
} else if (this.popairWindowName == 3) {
this.changeBtn(21319, dataNum);
}
},
// 内保温
changeInnerInsulationControl: function changeInnerInsulationControl(index) {
this.interiorthermalinsulationIndex = index;
var dataNum = {
target: {
value: this.interiorthermalinsulationIndex
}
};
if (this.interiorthermalinsulationName == 0) {
this.changeBtn(22000, dataNum);
} else if (this.interiorthermalinsulationName == 1) {
this.changeBtn(21915, dataNum);
}
},
changeBtn: function changeBtn(code, el) {
var data = {
equipmentId: this.deviceId,
regAddress: code,
num: el.target.value
};
this.delayTimerBtn(0, data);
},
//切换btn的限制 写入停止后j*100毫秒调取函数
delayTimerBtn: function delayTimerBtn(i, data) {
var _this3 = this;
var that = this;
//整体接口
var j = 10;
//避免开启多个计时器
this.timer && clearInterval(this.timer);
this.timer = setInterval(function () {
++i;
if (i == j) {
that.changeData(data);
clearInterval(_this3.timer);
}
}, 100);
},
// 丽水 打开顶卷膜的弹窗
openModelShow: function openModelShow(index) {
var _this4 = this;
this.indexs = index + 1;
this.modelShow = true;
var data = {
deviceId: this.deviceId
};
this.$http({
url: this.api.getReadControlliShuiControl,
data: data,
method: 'GET'
}).then(function (res) {
_this4.inputData2 = res.data;
_this4.openIndex1 = _this4.inputData2[21613 + (_this4.indexs - 1) * 11];
// this.openIndex = this.inputData2[21600]
// this.getAct21601()
});
},
// 根据type参数返回对应的txt_act21680
getTypeRoll: function getTypeRoll(i) {
var arr = this.txt_act_list.filter(function (el) {
return el.key == i;
});
return arr[0][Object.keys(arr[0])[0]];
},
// 读取所有寄存器的状态值
dataInit: function dataInit() {
var _this5 = this;
var deviceId = this.deviceId;
this.$http({
url: this.api.getcontrol_cpermission + '?deviceId=' + deviceId,
method: 'POST'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
res.data.forEach(function (el, index) {
_this5.purviewList.push(el.id.toString());
});
// 控制器状态获取
_this5.getControl_getState();
clearInterval(_this5.statusInterval) && _this5.statusInterval;
_this5.statusInterval = setInterval(function () {
_this5.getControl_getState();
}, 3000);
//查看金华权限
if (_this5.purviewList.indexOf('10') != -1) {
// 小程序手机控制权限数据
_this5.getcontrol_wxgetpermission();
_this5.$http({
url: _this5.api.readJinHuaControl_reg + '?deviceId=' + deviceId,
method: 'POST'
}).then(function (res) {
// console.log(res, 'deviceId读取所有寄存器的状态值');
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this5.inputData = res.data;
for (var i = 0; i < _this5.itemList.length; i++) {
if (!_this5.itemList[i].type_2) {
_this5.itemList[i].open_value = _this5.inputData[Number('21681') + i * 3];
_this5.itemList[i].close_value = _this5.inputData[Number('21682') + i * 3];
_this5.getType(21680 + i * 3, 1);
} else {
_this5.itemList[i].value = _this5.inputData[21711 + (i - 10) * 2];
_this5.getType(21710 + (i - 10) * 2, 2);
}
}
// this.getType('21680')
// this.getType('21683')
// this.getType('21686')
// this.getType('21689')
// this.getType('21692')
}
});
}
//查看丽水权限
// if (this.purviewList.indexOf('9') != -1) {
// // this.getControl_getState()
// // this.getReadControlliShuiControl()
// // clearInterval(this.statusInterval) && this.statusInterval
// // this.statusInterval = setInterval(() => {
// // this.getControl_getState()
// // }, 3000);
// }
// 查看五防项目权限
// if (this.purviewList.indexOf('8') != -1) {
// }
// 读取(补光灯)控制器
// if(this.purviewList.indexOf('20') != -1){
// };
// 环流风扇
// if(this.purviewList.indexOf('21') != -1){};
}
});
},
// getReadControlliShuiControl() {
// var data = {
// deviceId: this.deviceId
// };
// this.$http({
// url: this.api.getReadControlliShuiControl,
// data: data,
// method: 'GET',
// }).then((res => {
// this.inputData2 = res.data;
// this.openIndex = this.inputData2[21600]
// this.getAct21601()
// }))
// },
getAct21601: function getAct21601() {
var _this6 = this;
this.actList1 = [];
var num = this.inputData2['21601'];
var num1 = this.padString(num.toString(2), 5);
var openListNew = [];
openListNew = num1.split("");
openListNew.forEach(function (el, index) {
_this6.actList1.push(openListNew[openListNew.length - index - 1]);
});
},
getControl_getState: function getControl_getState() {
var _this7 = this;
var data = {
deviceId: this.deviceId
};
this.$http({
url: this.api.getControl_getState,
data: data,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
// 丽水
if (_this7.purviewList.indexOf('9') != -1) {
_this7.fanStatus.open = res.data['1023'];
_this7.fanStatus.status = [];
var num = res.data['1024'];
var num1 = _this7.padString(num.toString(2), 5);
var openListNew = [];
openListNew = num1.split("");
_this7.fanStatus.status = openListNew.reverse();
_this7.statusList = [];
for (var i = 0; i < 4; i++) {
var statusData = {
name: "\u9876\u5377\u819C".concat(i + 1),
open: res.data[1025 + i * 3],
progress: res.data[1027 + i * 3],
index: res.data[1026 + i * 3]
};
_this7.statusList.push(statusData);
}
}
// 五防项目状态
if (_this7.purviewList.indexOf('8') != -1) {
_this7.fiveControlList.forEach(function (el) {
el.controlState = res.data[el.num];
if (el.progress_num) {
el.progress = res.data[el.progress_num];
el.progress_state = res.data[el.progress_state_num];
}
if (el.open_num) {
el.open = res.data[el.open_num];
}
});
console.log(_this7.fiveControlList, 'this.fiveControlList');
}
// 补光灯状态值获取
if (_this7.purviewList.indexOf('20') != -1) {
_this7.supplementLightStatus.open = res.data[1068];
_this7.supplementLightStatus.status = [];
var numLight = res.data[1069];
var numLight1 = _this7.padString(numLight.toString(2), 8);
var _openListNew = [];
_openListNew = numLight1.split('');
_this7.supplementLightStatus.status = _openListNew.reverse();
}
;
// 环流风扇状态值获取
if (_this7.purviewList.indexOf('21') != -1) {
_this7.circulationFengshanList.forEach(function (el, index) {
el.circulationFengshanState = res.data[1074 + index * 2];
el.open = res.data[1075 + index * 2];
});
}
;
// 标准风机
if (_this7.purviewList.indexOf('26') != -1) {
_this7.standardFanStatus.open = res.data['1078'];
_this7.standardFanStatus.status = [];
var standardnum = res.data['1079'];
var standardnum1 = _this7.padString(standardnum.toString(2), 5);
var openListNew = [];
openListNew = standardnum1.split("");
_this7.standardFanStatus.status = openListNew.reverse();
}
;
// 湿帘泵
if (_this7.purviewList.indexOf('26') != -1) {
_this7.fanwetcurtainList.forEach(function (el, index) {
el.fanwetcurtainState = res.data[1080 + index * 2];
el.open = res.data[1081 + index * 2];
});
}
;
// 高压微雾
if (_this7.purviewList.indexOf('23') != -1) {
_this7.highpressuremistList.forEach(function (el, index) {
el.highpressuremistState = res.data[1070 + index * 2];
el.open = res.data[1071 + index * 2];
});
}
;
// 湿窗外翻窗
if (_this7.purviewList.indexOf('26') != -1) {
_this7.outFlipWindowList.forEach(function (el, index) {
el.outFlipWindowState = res.data[1084 + index * 3];
el.progress = res.data[1086 + index * 3];
el.statusProgress = res.data[1085 + index * 3];
});
}
;
//内遮阳
if (_this7.purviewList.indexOf('24') != -1) {
_this7.innercurtainList.forEach(function (el, index) {
el.innercurtainState = res.data[1090 + index * 3];
el.progress = res.data[1092 + index * 3];
el.statusProgress = res.data[1091 + index * 3];
});
}
;
//外遮阳
if (_this7.purviewList.indexOf('25') != -1) {
_this7.externalsunshadeList.forEach(function (el, index) {
el.externalsunshadeState = res.data[1096 + index * 3];
el.progress = res.data[1098 + index * 3];
el.statusProgress = res.data[1097 + index * 3];
});
}
;
//通风窗
if (_this7.purviewList.indexOf('19') != -1) {
_this7.airWindowList.forEach(function (el, index) {
el.airWindowState = res.data[1102 + index * 3];
el.progress = res.data[1104 + index * 3];
el.statusProgress = res.data[1103 + index * 3];
});
}
;
// 内保温
if (_this7.purviewList.indexOf('27') != -1) {
_this7.interiorthermalinsulationList.forEach(function (el, index) {
el.interiorthermalinsulationState = res.data[1182 + index * 3];
el.progress = res.data[1184 + index * 3];
el.statusProgress = res.data[1183 + index * 3];
});
}
;
// 电磁阀
for (var t = 0; t < _this7.electronMagneticStatus.length; t++) {
_this7.electronMagneticStatus[t].status = res.data[1166 + t];
}
// console.log(this.electronMagneticStatus,'this.electronMagneticStatus');
}
});
},
// 丽水 风机
fanmodelHander: function fanmodelHander() {
var _this8 = this;
this.fanmodelShow = true;
var data = {
deviceId: this.deviceId
};
this.$http({
url: this.api.getReadControlliShuiControl,
data: data,
method: 'GET'
}).then(function (res) {
_this8.inputData2 = res.data;
// this.openIndex1 = this.inputData2[21613 + ((this.indexs - 1) * 11)]
_this8.openIndex = _this8.inputData2[21600];
_this8.getAct21601();
});
},
// 标准风机
standardFanmodelHander: function standardFanmodelHander() {
var _this9 = this;
this.standardFanmodelShow = true;
var deviceId = this.deviceId;
this.$http({
url: this.api.readControl_fanwetcurtain + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
_this9.standardFanInputData2 = res.data;
_this9.standardFanOpenIndex = _this9.standardFanInputData2[21950];
_this9.standardFanActList1 = [];
var num = _this9.standardFanInputData2['21951'];
var num1 = _this9.padString(num.toString(2), 5);
var openListNew = [];
openListNew = num1.split("");
openListNew.forEach(function (el, index) {
_this9.standardFanActList1.push(openListNew[openListNew.length - index - 1]);
});
}
});
},
// 东北五防弹框
openFiveControlShow: function openFiveControlShow(index) {
var _this10 = this;
this.fiveControlShow = true;
this.pop_title = this.fiveControlList[index].title;
this.close_btn_all = this.fiveControlList[index].close_btn;
var deviceId = this.deviceId;
this.$http({
url: this.api.readControl_fiveControl + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this10.fiveControl = res.data;
if (index == 0) {
_this10.fiveControlIndex = _this10.fiveControl[21520];
_this10.fiveControlUrl = 'waterPump';
} else if (index == 1) {
_this10.fiveControlIndex = _this10.fiveControl[21526];
_this10.fiveControlUrl = 'geothermalFan';
} else if (index == 2) {
_this10.fiveControlIndex = _this10.fiveControl[21530];
_this10.fiveControlUrl = 'uptake';
} else if (index == 3) {
_this10.fiveControlIndex = _this10.fiveControl[21541];
_this10.fiveControlUrl = 'downtake';
} else if (index == 4) {
_this10.fiveControlIndex = _this10.fiveControl[21548];
_this10.fiveControlUrl = 'rollByRoll';
} else if (index == 5) {
_this10.fiveControlIndex = _this10.fiveControl[21558];
_this10.fiveControlUrl = 'snowRemoval';
}
}
});
},
// 电磁阀
openValveControlShow: function openValveControlShow(index) {
var _this11 = this;
this.valveControlShow = true;
this.valvePopTitle = index + 1 + '#电磁阀';
var data = {
deviceId: this.deviceId
};
this.$http({
url: this.api['readControl_solenoidValve' + "".concat(index + 1)],
data: data,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
_this11.valveControlIndex = res.data[20201 + index * 50];
_this11.valve_input_value = res.data[20202 + index * 50];
}
});
},
// 补光灯
supplementLightHander: function supplementLightHander() {
var _this12 = this;
var deviceId = this.deviceId;
this.supplementLightShow = true;
this.$http({
url: this.api.readControl_readfilllight + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
// console.log(res,'补光灯');
uni.hideLoading();
uni.stopPullDownRefresh();
_this12.lightControlIndex = res.data[21400];
_this12.actListLight = [];
var numLight = res.data[21401];
var numLight1 = _this12.padString(numLight.toString(2), 8);
var openListNew = [];
openListNew = numLight1.split('');
_this12.actListLight = openListNew.reverse();
}
});
},
// 环流风扇弹框
circulationFengshanHander: function circulationFengshanHander(index) {
var _this13 = this;
this.circulationControlIndex = 0;
this.popCirculationFengshanName = index;
var deviceId = this.deviceId;
this.circulationFengshanShow = true;
this.$http({
url: this.api.readControl_readcirculationfan + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this13.circulationControlIndex = res.data[21450 + index * 20];
}
});
},
// 湿帘泵弹框
fanwetcurtainHander: function fanwetcurtainHander(index) {
var _this14 = this;
this.fanwetcurtainControlIndex = 0;
this.popfanwetcurtainName = index;
var deviceId = this.deviceId;
this.fanwetcurtainShow = true;
this.$http({
url: this.api.readControl_fanwetcurtain + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this14.fanwetcurtainControlIndex = res.data[21970 + index * 2];
}
});
},
// 高压微雾
highpressuremistHander: function highpressuremistHander(index) {
var _this15 = this;
this.highpressuremistControlIndex = 0;
this.pophighpressuremistName = index;
var deviceId = this.deviceId;
this.highpressuremistShow = true;
this.$http({
url: this.api.readControl_fanwetcurtain + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this15.highpressuremistControlIndex = res.data[21800 + index * 8];
}
});
},
// 湿帘外翻窗
outFlipWindowHander: function outFlipWindowHander(index) {
var _this16 = this;
this.outFlipWindowControlIndex = 0;
this.popoutFlipWindowName = index;
var deviceId = this.deviceId;
this.outFlipWindowShow = true;
this.$http({
url: this.api.readControl_fanwetcurtain + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this16.outFlipWindowControlIndex = res.data[21974 + index * 5];
}
});
},
// 内遮阳
innercurtainHander: function innercurtainHander(index) {
var _this17 = this;
this.innercurtainControlIndex = 0;
this.popinnercurtainName = index;
var deviceId = this.deviceId;
this.innercurtainShow = true;
this.$http({
url: this.api.readControl_innercurtain + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this17.innercurtainControlIndex = res.data[21840 + index * 18];
}
});
},
// 外遮阳
externalsunshadeHander: function externalsunshadeHander(index) {
var _this18 = this;
this.externalsunshadeControlIndex = 0;
this.popexternalsunshadeName = index;
var deviceId = this.deviceId;
this.externalsunshadeShow = true;
this.$http({
url: this.api.readControl_externalsunshade + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this18.externalsunshadeControlIndex = res.data[21900 + index * 15];
}
});
},
// 通风窗
airWindowHander: function airWindowHander(index) {
var _this19 = this;
this.airWindowControlIndex = 0;
this.popairWindowName = index;
var deviceId = this.deviceId;
this.airWindowShow = true;
this.$http({
url: this.api.readControl_readskylight + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this19.airWindowControlIndex = res.data[21250 + index * 23];
}
});
},
// 内保温
interiorthermalinsulationHander: function interiorthermalinsulationHander(index) {
var _this20 = this;
this.interiorthermalinsulationIndex = 0;
this.interiorthermalinsulationName = index;
var deviceId = this.deviceId;
this.interiorthermalinsulationShow = true;
this.$http({
url: this.api.readControl_interiorthermalinsulation + '?deviceId=' + deviceId,
method: 'GET'
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.stopPullDownRefresh();
_this20.interiorthermalinsulationIndex = res.data[22000 + index * 12];
}
});
},
getNumberStatus: function getNumberStatus(index) {
if (index == 0) {
return '静止状态';
} else if (index == 1) {
return '正向打开中';
} else if (index == 2) {
return '反向关闭中';
} else {
return '';
}
},
padString: function padString(str, length) {
return str.padStart(length, '0');
},
getType: function getType(type, flag) {
if (flag == 1) {
var number = this.padString(Number(this.inputData[type]).toString(2), 3);
// console.log(number); //001
// console.log(number[0]); //0 bit2 关闭
// console.log(number[1]); //0 bit1 停止
// console.log(number[2]); //1 bit0 打开
var arr = this.txt_act_list.filter(function (el) {
return el.key == type;
});
var key1 = Object.keys(arr[0])[0];
this.txt_act_list.forEach(function (el) {
if (el.key == type) {
if (Number(number[0])) {
el[key1] = 3;
} else if (Number(number[1])) {
el[key1] = 2;
} else if (Number(number[2])) {
el[key1] = 1;
} else {
el[key1] = 0;
}
}
});
} else if (flag == 2) {
var number = this.padString(Number(this.inputData[type]).toString(2), 2);
// console.log(number); //01
// console.log(number[0]); //1 bit1 关闭
// console.log(number[1]); //1 bit0 打开
var _arr = this.txt_act_list.filter(function (el) {
return el.key == type;
});
var _key = Object.keys(_arr[0])[0];
this.txt_act_list.forEach(function (el) {
if (el.key == type) {
if (Number(number[0])) {
el[_key] = 2;
} else if (Number(number[1])) {
el[_key] = 1;
} else {
el[_key] = 0;
}
}
});
}
},
change00: function change00(type, index) {
uni.showLoading({
title: '加载中...'
});
var arr = this.txt_act_list.filter(function (el) {
return el.key == type;
});
var key1 = Object.keys(arr[0])[0];
this.txt_act_list.forEach(function (el) {
if (el.key == type) {
el[key1] = index;
}
});
if (type > 21679 && type < 21708) {
var list = ["0", "0", "0"];
if (index == 1) {
list[2] = "1";
} else {
list[2] = "0";
}
if (index == 2) {
list[1] = "1";
} else {
list[1] = "0";
}
if (index == 3) {
list[0] = "1";
} else {
list[0] = "0";
}
} else if (type > 21709 && type < 21729) {
var list = ["0", "0"];
if (index == 1) {
list[1] = "1";
} else {
list[1] = "0";
}
;
if (index == 2) {
list[0] = "1";
} else {
list[0] = "0";
}
;
}
var num = list.join("");
var dataNum = {
target: {
value: parseInt(num, 2)
}
};
this.change(type, dataNum);
},
change: function change(code, el) {
var data = {
equipmentId: this.deviceId,
regAddress: code,
num: el.target.value
};
this.delayTimer(0, data);
},
delayTimer: function delayTimer(i, data) {
var _this21 = this;
var that = this;
//整体接口
var j = 5;
//避免开启多个计时器
this.timer && clearInterval(this.timer);
this.timer = setInterval(function () {
++i;
if (i == j) {
that.changeData(data);
clearInterval(_this21.timer);
}
}, 100);
},
changeData: function changeData(data) {
var _this22 = this;
var that = this;
this.$http({
url: this.api.writeJinHuaControl_write,
data: data
}).then(function (res) {
if (res.code == 200) {
uni.hideLoading();
uni.showToast({
title: res.msg,
icon: "success"
});
_this22.dataInit();
} else {
uni.showToast({
title: "失败!",
icon: "error"
});
}
});
},
// x#顶卷膜输入框
blurChangeData00_1: function blurChangeData00_1(code, el) {
uni.showLoading({
title: '加载中...'
});
var data = el.target.value;
// console.log(data);
var sendData = {
target: {
value: data
}
};
this.change(code, sendData);
},
blurChangeData00_2: function blurChangeData00_2(code, el) {
uni.showLoading({
title: '加载中...'
});
var data = el.target.value;
var sendData = {
target: {
value: data
}
};
this.change(code, sendData);
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/***/ 183:
/*!********************************************************************************************************************************************!*\
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=style&index=0&id=a456d474&lang=scss&scoped=true& ***!
\********************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./controller.vue?vue&type=style&index=0&id=a456d474&lang=scss&scoped=true& */ 184);
/* harmony import */ var _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_controller_vue_vue_type_style_index_0_id_a456d474_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 184:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=style&index=0&id=a456d474&lang=scss&scoped=true& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
/***/ })
},[[177,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/controller/controller.js.map