2023-10-19 03:10:39 +00:00
|
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/controller/controller"],{
|
|
|
|
|
|
|
|
|
|
/***/ 177:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!*****************************************************************************************************!*\
|
|
|
|
|
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/main.js?{"page":"pages%2Fcontroller%2Fcontroller"} ***!
|
|
|
|
|
\*****************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! 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:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!**********************************************************************************!*\
|
|
|
|
|
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue ***!
|
|
|
|
|
\**********************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! 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);
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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);
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
|
|
2023-11-23 11:02:09 +00:00
|
|
|
|
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"])(
|
2023-10-19 03:10:39 +00:00
|
|
|
|
_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:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!*****************************************************************************************************************************!*\
|
|
|
|
|
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=template&id=a456d474&scoped=true& ***!
|
|
|
|
|
\*****************************************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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"]; });
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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"]; });
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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"]; });
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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"]; });
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 180:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./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& ***!
|
|
|
|
|
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! 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 () {
|
2023-12-01 13:22:42 +00:00
|
|
|
|
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))
|
2023-10-19 03:10:39 +00:00
|
|
|
|
},
|
|
|
|
|
uCollapse: function () {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
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))
|
2023-10-19 03:10:39 +00:00
|
|
|
|
},
|
|
|
|
|
uCollapseItem: function () {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
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))
|
2023-11-22 09:28:49 +00:00
|
|
|
|
},
|
|
|
|
|
uPopup: function () {
|
2023-12-01 13:22:42 +00:00
|
|
|
|
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))
|
2023-10-19 03:10:39 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
} 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
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var g0 = _vm.purviewList.indexOf("10")
|
|
|
|
|
var l0 =
|
|
|
|
|
g0 != -1
|
|
|
|
|
? _vm.__map(_vm.itemList, function (item, index) {
|
|
|
|
|
var $orig = _vm.__get_orig(item)
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var m0 = _vm.isInclude(item)
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var m1 = _vm.getTypeRoll(item.type)
|
|
|
|
|
var m2 = _vm.getTypeRoll(item.type)
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var m3 = _vm.getTypeRoll(item.type)
|
2023-11-22 09:28:49 +00:00
|
|
|
|
return {
|
|
|
|
|
$orig: $orig,
|
|
|
|
|
m0: m0,
|
|
|
|
|
m1: m1,
|
|
|
|
|
m2: m2,
|
2023-12-07 09:32:49 +00:00
|
|
|
|
m3: m3,
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
: null
|
|
|
|
|
var g1 = _vm.purviewList.indexOf("9")
|
|
|
|
|
var l1 =
|
|
|
|
|
g1 != -1
|
|
|
|
|
? _vm.__map(_vm.statusList, function (item, index) {
|
|
|
|
|
var $orig = _vm.__get_orig(item)
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var m4 = item.open != 0 ? _vm.getNumberStatus(item.index) : null
|
2023-11-22 09:28:49 +00:00
|
|
|
|
return {
|
|
|
|
|
$orig: $orig,
|
2023-12-07 09:32:49 +00:00
|
|
|
|
m4: m4,
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
: null
|
2023-12-01 13:22:42 +00:00
|
|
|
|
var g2 = _vm.purviewList.indexOf("8")
|
|
|
|
|
var l2 =
|
|
|
|
|
g2 != -1
|
|
|
|
|
? _vm.__map(_vm.fiveControlList, function (item, index) {
|
|
|
|
|
var $orig = _vm.__get_orig(item)
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var m5 = item.controlState != 0 ? Number(item.progress) : null
|
2023-12-01 13:22:42 +00:00
|
|
|
|
return {
|
|
|
|
|
$orig: $orig,
|
2023-12-07 09:32:49 +00:00
|
|
|
|
m5: m5,
|
2023-12-01 13:22:42 +00:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
: null
|
|
|
|
|
var g3 = _vm.purviewList.length
|
2023-11-22 09:28:49 +00:00
|
|
|
|
if (!_vm._isMounted) {
|
|
|
|
|
_vm.e0 = function ($event) {
|
|
|
|
|
_vm.fanmodelShow = true
|
2023-10-19 03:10:39 +00:00
|
|
|
|
}
|
2023-11-22 09:28:49 +00:00
|
|
|
|
_vm.e1 = function ($event) {
|
2023-12-01 13:22:42 +00:00
|
|
|
|
_vm.fiveControlShow = false
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}
|
|
|
|
|
_vm.e2 = function ($event) {
|
2023-12-01 13:22:42 +00:00
|
|
|
|
_vm.modelShow = false
|
|
|
|
|
}
|
|
|
|
|
_vm.e3 = function ($event) {
|
2023-11-22 09:28:49 +00:00
|
|
|
|
_vm.fanmodelShow = false
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-10-19 03:10:39 +00:00
|
|
|
|
_vm.$mp.data = Object.assign(
|
|
|
|
|
{},
|
|
|
|
|
{
|
|
|
|
|
$root: {
|
2023-11-22 09:28:49 +00:00
|
|
|
|
g0: g0,
|
2023-10-19 03:10:39 +00:00
|
|
|
|
l0: l0,
|
2023-11-22 09:28:49 +00:00
|
|
|
|
g1: g1,
|
|
|
|
|
l1: l1,
|
|
|
|
|
g2: g2,
|
2023-12-01 13:22:42 +00:00
|
|
|
|
l2: l2,
|
|
|
|
|
g3: g3,
|
2023-10-19 03:10:39 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
var recyclableRender = false
|
|
|
|
|
var staticRenderFns = []
|
|
|
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 181:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!***********************************************************************************************************!*\
|
|
|
|
|
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
\***********************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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);
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 182:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./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& ***!
|
|
|
|
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {
|
|
|
|
|
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
|
2023-10-19 03:10:39 +00:00
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
|
|
value: true
|
|
|
|
|
});
|
|
|
|
|
exports.default = void 0;
|
2023-12-07 09:32:49 +00:00
|
|
|
|
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; }
|
2023-10-19 03:10:39 +00:00
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
2023-11-22 09:28:49 +00:00
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
2023-11-24 02:13:41 +00:00
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
2023-12-01 13:22:42 +00:00
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
2023-10-19 03:10:39 +00:00
|
|
|
|
var _default = {
|
|
|
|
|
data: function data() {
|
|
|
|
|
return {
|
|
|
|
|
// 头部导航背景
|
|
|
|
|
background: {
|
|
|
|
|
backgroundColor: '#24B383'
|
|
|
|
|
},
|
|
|
|
|
deviceId: '',
|
2023-12-07 09:32:49 +00:00
|
|
|
|
wxgetpermission: [],
|
|
|
|
|
//小程序手机控制权限数据
|
2023-10-19 03:10:39 +00:00
|
|
|
|
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
|
|
|
|
|
}],
|
|
|
|
|
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_act21680: 0,
|
|
|
|
|
txt_act21683: 0,
|
|
|
|
|
txt_act21686: 0,
|
|
|
|
|
txt_act21689: 0,
|
|
|
|
|
txt_act21692: 0,
|
|
|
|
|
inputData: [],
|
|
|
|
|
inputData1: [],
|
2023-11-22 09:28:49 +00:00
|
|
|
|
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: [],
|
2023-12-01 13:22:42 +00:00
|
|
|
|
actList1: [],
|
|
|
|
|
fiveControl: {},
|
|
|
|
|
//读取(五防项目)控制器
|
|
|
|
|
fiveControlShow: false,
|
|
|
|
|
//五防项目show
|
|
|
|
|
fiveControlIndex: 0,
|
|
|
|
|
//五防项目index
|
|
|
|
|
pop_title: '',
|
|
|
|
|
close_btn_all: false,
|
|
|
|
|
fiveControlUrl: "",
|
|
|
|
|
fiveControlList: [{
|
|
|
|
|
title: '加温水泵',
|
|
|
|
|
controlState: 0,
|
|
|
|
|
num: '1000',
|
|
|
|
|
close_btn: false
|
|
|
|
|
}, {
|
|
|
|
|
title: '地热风机',
|
|
|
|
|
controlState: 0,
|
|
|
|
|
num: '1002',
|
|
|
|
|
close_btn: false
|
|
|
|
|
}, {
|
|
|
|
|
title: '上风口',
|
|
|
|
|
controlState: 0,
|
|
|
|
|
num: '1004',
|
|
|
|
|
close_btn: true,
|
|
|
|
|
progress_num: '1006',
|
|
|
|
|
progress: ''
|
|
|
|
|
}, {
|
|
|
|
|
title: '下风口',
|
|
|
|
|
controlState: 0,
|
|
|
|
|
num: '1007',
|
|
|
|
|
close_btn: true,
|
|
|
|
|
progress_num: '1009',
|
|
|
|
|
progress: ''
|
|
|
|
|
}, {
|
|
|
|
|
title: '卷被',
|
|
|
|
|
controlState: 0,
|
|
|
|
|
num: '1010',
|
|
|
|
|
close_btn: true
|
|
|
|
|
}, {
|
|
|
|
|
title: '除雪',
|
|
|
|
|
controlState: 0,
|
|
|
|
|
num: '1013',
|
|
|
|
|
close_btn: false
|
|
|
|
|
}]
|
2023-10-19 03:10:39 +00:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onLoad: function onLoad(options) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
console.log(options);
|
2023-11-22 09:28:49 +00:00
|
|
|
|
this.typeList = this.api.typeList;
|
2023-10-19 03:10:39 +00:00
|
|
|
|
if (options.id) {
|
|
|
|
|
this.deviceId = options.id;
|
|
|
|
|
}
|
|
|
|
|
this.dataInit();
|
|
|
|
|
},
|
2023-11-22 09:28:49 +00:00
|
|
|
|
beforeDestroy: function beforeDestroy() {
|
|
|
|
|
clearInterval(this.statusInterval) && this.statusInterval;
|
|
|
|
|
},
|
2023-10-19 03:10:39 +00:00
|
|
|
|
onPullDownRefresh: function onPullDownRefresh() {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: '加载中...'
|
|
|
|
|
});
|
|
|
|
|
this.dataInit();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
// 小程序手机控制权限数据
|
|
|
|
|
getcontrol_wxgetpermission: function getcontrol_wxgetpermission() {
|
|
|
|
|
var _this = this;
|
|
|
|
|
var deviceId = this.deviceId;
|
|
|
|
|
this.$http({
|
|
|
|
|
url: this.api.getcontrol_wxgetpermission + '?deviceId=' + deviceId,
|
|
|
|
|
method: 'GET'
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
_this.wxgetpermission = res.data;
|
|
|
|
|
_this.itemList = _this.itemList.map(function (i) {
|
|
|
|
|
return _objectSpread(_objectSpread({}, i), {}, {
|
|
|
|
|
nickName: ''
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
_this.itemList.forEach(function (h) {
|
|
|
|
|
// h.nickName = (this.wxgetpermission.filter(m=>m.name == h.head))[0].nickName
|
|
|
|
|
var s = _this.wxgetpermission.filter(function (m) {
|
|
|
|
|
return m.name == h.head;
|
|
|
|
|
});
|
|
|
|
|
if (s.length > 0) {
|
|
|
|
|
h.nickName = s[0].nickName;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
console.log(_this.itemList);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 判断小程序手机控制是否有这个项,有的话返回true
|
|
|
|
|
isInclude: function isInclude(el) {
|
|
|
|
|
var result = false;
|
|
|
|
|
this.wxgetpermission.forEach(function (item) {
|
|
|
|
|
if (item.name == el.head) {
|
|
|
|
|
result = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return result;
|
|
|
|
|
},
|
2023-11-24 02:13:41 +00:00
|
|
|
|
toWebView: function toWebView(url) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: "/pages/web_view_controller/web_view_controller?deviceId=".concat(this.deviceId, "&url=").concat(url)
|
|
|
|
|
});
|
|
|
|
|
},
|
2023-11-22 09:28:49 +00:00
|
|
|
|
//开启几号风机
|
|
|
|
|
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);
|
|
|
|
|
},
|
|
|
|
|
//顶卷膜修改
|
|
|
|
|
changeOpen1: function changeOpen1(index) {
|
|
|
|
|
this.openIndex1 = index;
|
|
|
|
|
var dataNum = {
|
|
|
|
|
target: {
|
|
|
|
|
value: this.openIndex1
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
this.changeBtn(21613 + (this.indexs - 1) * 11, dataNum);
|
|
|
|
|
},
|
2023-12-01 13:22:42 +00:00
|
|
|
|
// 五防项目修改
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 09:28:49 +00:00
|
|
|
|
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) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this2 = this;
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var that = this;
|
|
|
|
|
//整体接口
|
|
|
|
|
var j = 10;
|
|
|
|
|
//避免开启多个计时器
|
|
|
|
|
this.timer && clearInterval(this.timer);
|
|
|
|
|
this.timer = setInterval(function () {
|
|
|
|
|
++i;
|
|
|
|
|
if (i == j) {
|
|
|
|
|
that.changeData(data);
|
2023-12-07 09:32:49 +00:00
|
|
|
|
clearInterval(_this2.timer);
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}
|
|
|
|
|
}, 100);
|
|
|
|
|
},
|
|
|
|
|
//打开顶卷膜的弹窗
|
|
|
|
|
openModelShow: function openModelShow(index) {
|
|
|
|
|
this.indexs = index + 1;
|
|
|
|
|
this.modelShow = true;
|
|
|
|
|
this.openIndex1 = this.inputData2[21613 + (this.indexs - 1) * 11];
|
|
|
|
|
},
|
2023-10-19 03:10:39 +00:00
|
|
|
|
// 根据type参数返回对应的txt_act21680
|
|
|
|
|
getTypeRoll: function getTypeRoll(i) {
|
|
|
|
|
if (i == 21680) {
|
|
|
|
|
return this.txt_act21680;
|
|
|
|
|
} else if (i == 21683) {
|
|
|
|
|
return this.txt_act21683;
|
|
|
|
|
} else if (i == 21686) {
|
|
|
|
|
return this.txt_act21686;
|
|
|
|
|
} else if (i == 21689) {
|
|
|
|
|
return this.txt_act21689;
|
|
|
|
|
} else if (i == 21692) {
|
|
|
|
|
return this.txt_act21692;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 读取所有寄存器的状态值
|
|
|
|
|
dataInit: function dataInit() {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this3 = this;
|
2023-10-19 03:10:39 +00:00
|
|
|
|
var deviceId = this.deviceId;
|
|
|
|
|
this.$http({
|
2023-11-22 09:28:49 +00:00
|
|
|
|
url: this.api.getcontrol_cpermission + '?deviceId=' + deviceId,
|
2023-10-19 03:10:39 +00:00
|
|
|
|
method: 'POST'
|
|
|
|
|
}).then(function (res) {
|
2023-11-22 09:28:49 +00:00
|
|
|
|
res.data.forEach(function (el, index) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this3.purviewList.push(el.id.toString());
|
2023-11-22 09:28:49 +00:00
|
|
|
|
});
|
|
|
|
|
//查看金华权限
|
2023-12-07 09:32:49 +00:00
|
|
|
|
if (_this3.purviewList.indexOf('10') != -1) {
|
|
|
|
|
// 小程序手机控制权限数据
|
|
|
|
|
_this3.getcontrol_wxgetpermission();
|
|
|
|
|
_this3.$http({
|
|
|
|
|
url: _this3.api.readJinHuaControl_reg + '?deviceId=' + deviceId,
|
2023-11-22 09:28:49 +00:00
|
|
|
|
method: 'POST'
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
// console.log(res, 'deviceId读取所有寄存器的状态值');
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
uni.stopPullDownRefresh();
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this3.inputData = res.data;
|
|
|
|
|
for (var i = 0; i < _this3.itemList.length; i++) {
|
|
|
|
|
_this3.itemList[i].open_value = _this3.inputData[Number('21681') + i * 3];
|
|
|
|
|
_this3.itemList[i].close_value = _this3.inputData[Number('21682') + i * 3];
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}
|
|
|
|
|
// console.log(this.itemList);
|
|
|
|
|
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this3.getType('21680');
|
|
|
|
|
_this3.getType('21683');
|
|
|
|
|
_this3.getType('21686');
|
|
|
|
|
_this3.getType('21689');
|
|
|
|
|
_this3.getType('21692');
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//查看丽水权限
|
2023-12-07 09:32:49 +00:00
|
|
|
|
if (_this3.purviewList.indexOf('9') != -1) {
|
|
|
|
|
_this3.getControl_getState();
|
|
|
|
|
_this3.getReadControlliShuiControl();
|
|
|
|
|
clearInterval(_this3.statusInterval) && _this3.statusInterval;
|
|
|
|
|
_this3.statusInterval = setInterval(function () {
|
|
|
|
|
_this3.getControl_getState();
|
2023-11-22 09:28:49 +00:00
|
|
|
|
}, 3000);
|
|
|
|
|
}
|
2023-12-01 13:22:42 +00:00
|
|
|
|
|
|
|
|
|
// 查看五防项目权限
|
2023-12-07 09:32:49 +00:00
|
|
|
|
if (_this3.purviewList.indexOf('8') != -1) {
|
|
|
|
|
_this3.$http({
|
|
|
|
|
url: _this3.api.readControl_fiveControl + '?deviceId=' + deviceId,
|
2023-12-01 13:22:42 +00:00
|
|
|
|
method: 'GET'
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
uni.stopPullDownRefresh();
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this3.fiveControl = res.data;
|
2023-12-01 13:22:42 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2023-11-22 09:28:49 +00:00
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getReadControlliShuiControl: function getReadControlliShuiControl() {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this4 = this;
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var data = {
|
|
|
|
|
deviceId: this.deviceId
|
|
|
|
|
};
|
|
|
|
|
this.$http({
|
|
|
|
|
url: this.api.getReadControlliShuiControl,
|
|
|
|
|
data: data,
|
|
|
|
|
method: 'GET'
|
|
|
|
|
}).then(function (res) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this4.inputData2 = res.data;
|
|
|
|
|
_this4.openIndex = _this4.inputData2[21600];
|
|
|
|
|
_this4.getAct21601();
|
2023-11-22 09:28:49 +00:00
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getAct21601: function getAct21601() {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this5 = this;
|
2023-11-22 09:28:49 +00:00
|
|
|
|
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) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this5.actList1.push(openListNew[openListNew.length - index - 1]);
|
2023-11-22 09:28:49 +00:00
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getControl_getState: function getControl_getState() {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this6 = this;
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var data = {
|
|
|
|
|
deviceId: this.deviceId
|
|
|
|
|
};
|
|
|
|
|
this.$http({
|
|
|
|
|
url: this.api.getControl_getState,
|
|
|
|
|
data: data,
|
|
|
|
|
method: 'GET'
|
|
|
|
|
}).then(function (res) {
|
2023-10-19 03:10:39 +00:00
|
|
|
|
if (res.code == 200) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this6.fanStatus.open = res.data['1023'];
|
|
|
|
|
_this6.fanStatus.status = [];
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var num = res.data['1024'];
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var num1 = _this6.padString(num.toString(2), 5);
|
2023-11-22 09:28:49 +00:00
|
|
|
|
var openListNew = [];
|
|
|
|
|
openListNew = num1.split("");
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this6.fanStatus.status = openListNew.reverse();
|
|
|
|
|
_this6.statusList = [];
|
2023-11-22 09:28:49 +00:00
|
|
|
|
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]
|
|
|
|
|
};
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this6.statusList.push(statusData);
|
2023-10-19 03:10:39 +00:00
|
|
|
|
}
|
2023-12-01 13:22:42 +00:00
|
|
|
|
|
|
|
|
|
// 五防项目状态
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this6.fiveControlList.forEach(function (el) {
|
2023-12-01 13:22:42 +00:00
|
|
|
|
el.controlState = res.data[el.num];
|
|
|
|
|
if (el.progress_num) {
|
|
|
|
|
el.progress = res.data[el.progress_num];
|
|
|
|
|
}
|
|
|
|
|
});
|
2023-10-19 03:10:39 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
2023-12-01 13:22:42 +00:00
|
|
|
|
// 东北五防弹框
|
|
|
|
|
openFiveControlShow: function openFiveControlShow(index) {
|
|
|
|
|
this.fiveControlShow = true;
|
|
|
|
|
this.pop_title = this.fiveControlList[index].title;
|
|
|
|
|
this.close_btn_all = this.fiveControlList[index].close_btn;
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
this.fiveControlIndex = this.fiveControl[21520];
|
|
|
|
|
this.fiveControlUrl = 'waterPump';
|
|
|
|
|
} else if (index == 1) {
|
|
|
|
|
this.fiveControlIndex = this.fiveControl[21526];
|
|
|
|
|
this.fiveControlUrl = 'geothermalFan';
|
|
|
|
|
} else if (index == 2) {
|
|
|
|
|
this.fiveControlIndex = this.fiveControl[21530];
|
|
|
|
|
this.fiveControlUrl = 'uptake';
|
|
|
|
|
} else if (index == 3) {
|
|
|
|
|
this.fiveControlIndex = this.fiveControl[21541];
|
|
|
|
|
this.fiveControlUrl = 'downtake';
|
|
|
|
|
} else if (index == 4) {
|
|
|
|
|
this.fiveControlIndex = this.fiveControl[21548];
|
|
|
|
|
this.fiveControlUrl = 'rollByRoll';
|
|
|
|
|
} else if (index == 5) {
|
|
|
|
|
this.fiveControlIndex = this.fiveControl[21558];
|
|
|
|
|
this.fiveControlUrl = 'snowRemoval';
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-11-22 09:28:49 +00:00
|
|
|
|
getNumberStatus: function getNumberStatus(index) {
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
return '静止状态';
|
|
|
|
|
} else if (index == 1) {
|
|
|
|
|
return '正向打开中';
|
|
|
|
|
} else if (index == 2) {
|
|
|
|
|
return '反向关闭中';
|
|
|
|
|
} else {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-10-19 03:10:39 +00:00
|
|
|
|
padString: function padString(str, length) {
|
|
|
|
|
return str.padStart(length, '0');
|
|
|
|
|
},
|
|
|
|
|
getType: function getType(type) {
|
|
|
|
|
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 打开
|
|
|
|
|
if (type == '21680') {
|
|
|
|
|
if (Number(number[0])) {
|
|
|
|
|
this.txt_act21680 = 3;
|
|
|
|
|
} else if (Number(number[1])) {
|
|
|
|
|
this.txt_act21680 = 2;
|
|
|
|
|
} else if (Number(number[2])) {
|
|
|
|
|
this.txt_act21680 = 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.txt_act21680 = 0;
|
|
|
|
|
}
|
|
|
|
|
} else if (type == '21683') {
|
|
|
|
|
if (Number(number[0])) {
|
|
|
|
|
this.txt_act21683 = 3;
|
|
|
|
|
} else if (Number(number[1])) {
|
|
|
|
|
this.txt_act21683 = 2;
|
|
|
|
|
} else if (Number(number[2])) {
|
|
|
|
|
this.txt_act21683 = 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.txt_act21683 = 0;
|
|
|
|
|
}
|
|
|
|
|
} else if (type == '21686') {
|
|
|
|
|
if (Number(number[0])) {
|
|
|
|
|
this.txt_act21686 = 3;
|
|
|
|
|
} else if (Number(number[1])) {
|
|
|
|
|
this.txt_act21686 = 2;
|
|
|
|
|
} else if (Number(number[2])) {
|
|
|
|
|
this.txt_act21686 = 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.txt_act21686 = 0;
|
|
|
|
|
}
|
|
|
|
|
} else if (type == '21689') {
|
|
|
|
|
if (Number(number[0])) {
|
|
|
|
|
this.txt_act21689 = 3;
|
|
|
|
|
} else if (Number(number[1])) {
|
|
|
|
|
this.txt_act21689 = 2;
|
|
|
|
|
} else if (Number(number[2])) {
|
|
|
|
|
this.txt_act21689 = 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.txt_act21689 = 0;
|
|
|
|
|
}
|
|
|
|
|
} else if (type == '21692') {
|
|
|
|
|
if (Number(number[0])) {
|
|
|
|
|
this.txt_act21692 = 3;
|
|
|
|
|
} else if (Number(number[1])) {
|
|
|
|
|
this.txt_act21692 = 2;
|
|
|
|
|
} else if (Number(number[2])) {
|
|
|
|
|
this.txt_act21692 = 1;
|
|
|
|
|
} else {
|
|
|
|
|
this.txt_act21692 = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
change00: function change00(type, index) {
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: '加载中...'
|
|
|
|
|
});
|
|
|
|
|
if (type == 21680) {
|
|
|
|
|
this.txt_act21680 = index;
|
|
|
|
|
} else if (type == 21683) {
|
|
|
|
|
this.txt_act21683 = index;
|
|
|
|
|
} else if (type == 21686) {
|
|
|
|
|
this.txt_act21686 = index;
|
|
|
|
|
} else if (type == 21689) {
|
|
|
|
|
this.txt_act21689 = index;
|
|
|
|
|
} else if (type == 21692) {
|
|
|
|
|
this.txt_act21692 = index;
|
|
|
|
|
}
|
|
|
|
|
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";
|
|
|
|
|
}
|
|
|
|
|
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) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this7 = this;
|
2023-10-19 03:10:39 +00:00
|
|
|
|
var that = this;
|
|
|
|
|
//整体接口
|
|
|
|
|
var j = 5;
|
|
|
|
|
//避免开启多个计时器
|
|
|
|
|
this.timer && clearInterval(this.timer);
|
|
|
|
|
this.timer = setInterval(function () {
|
|
|
|
|
++i;
|
|
|
|
|
if (i == j) {
|
|
|
|
|
that.changeData(data);
|
2023-12-07 09:32:49 +00:00
|
|
|
|
clearInterval(_this7.timer);
|
2023-10-19 03:10:39 +00:00
|
|
|
|
}
|
|
|
|
|
}, 100);
|
|
|
|
|
},
|
|
|
|
|
changeData: function changeData(data) {
|
2023-12-07 09:32:49 +00:00
|
|
|
|
var _this8 = this;
|
2023-10-19 03:10:39 +00:00
|
|
|
|
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"
|
|
|
|
|
});
|
2023-12-07 09:32:49 +00:00
|
|
|
|
_this8.dataInit();
|
2023-10-19 03:10:39 +00:00
|
|
|
|
} 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:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!********************************************************************************************************************************************!*\
|
|
|
|
|
!*** C:/Users/PC/Desktop/2023-2-13/云上温室/wszhyWx/pages/controller/controller.vue?vue&type=style&index=0&id=a456d474&lang=scss&scoped=true& ***!
|
|
|
|
|
\********************************************************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/* 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);
|
2023-10-19 03:10:39 +00:00
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 184:
|
2023-11-23 11:02:09 +00:00
|
|
|
|
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./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& ***!
|
|
|
|
|
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2023-10-19 03:10:39 +00:00
|
|
|
|
/*! 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
|