{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileTroubleshooting\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileTroubleshooting\\index.vue","mtime":1690541169611},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\nimport \"core-js/modules/es6.array.find\";\nimport _defineProperty from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _toConsumableArray from \"D:/jenkins/workspace/bzzgj-fvue/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport nineLittlePlaceApi from '@/views/Manage/saftyDanger/api/nineLittlePlaceApi';\nimport QuerySearchPopup from \"./components/QuerySearchPopup/index.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils';\nvar loadCmgtSaftyDangerUnit = nineLittlePlaceApi.loadCmgtSaftyDangerUnit;\nexport default {\n name: 'MobileDevice',\n // 排查单位查询\n components: {\n QuerySearchPopup: QuerySearchPopup\n },\n data: function data() {\n return {\n listData: [],\n //产品列表\n loading: false,\n // 列表加载loading状态\n finished: false,\n // 是否数据加载完毕\n refreshing: false,\n // 下拉刷新\n querySearchPopup: false,\n // 搜索弹层\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'unit_name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'type_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'small_place_area_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'emphasis_level_',\n relation: 'AND',\n value: ''\n }],\n // 自定义请求参数配置对象\n customQueryPrams: {\n pageSize: 10,\n page: 1,\n unit_name_: '',\n type_: '',\n small_place_area_: '',\n emphasis_level_: ''\n },\n // 类型\n typeOptions: [{\n name: '全部',\n value: ''\n }, {\n name: '九小场所',\n value: '1'\n }, {\n name: '重点单位',\n value: '2'\n }],\n //九小场所片区\n nineSmallPlacesOptions: [{\n name: '全部片区',\n value: ''\n }].concat(_toConsumableArray(dictUtils.getDictItemsFromCache('jxcspq'))),\n //重点单位级别\n keyUnitLevelOptions: [{\n name: '全部',\n value: ''\n }].concat(_toConsumableArray(dictUtils.getDictItemsFromCache('zddwjb')))\n };\n },\n computed: {\n // 加工为后端需要的请求格式\n queryParams: function queryParams() {\n var _this$customQueryPram = this.customQueryPrams,\n pageSize = _this$customQueryPram.pageSize,\n page = _this$customQueryPram.page,\n item = _objectWithoutProperties(_this$customQueryPram, [\"pageSize\", \"page\"]);\n\n return {\n pageBean: {\n pageSize: pageSize,\n page: page\n },\n querys: this.querys.map(function (i) {\n return _objectSpread(_objectSpread({}, i), {}, {\n value: item[i.property]\n });\n }),\n sorter: [{\n direction: 'DESC',\n property: 'createTime'\n }]\n };\n }\n },\n created: function created() {\n this.getListData(); // 获取列表数据\n },\n methods: {\n // 字典转义(转义、翻译)\n dictionaryEscape: function dictionaryEscape(dictionary, val) {\n var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n if (!(Array.isArray(dictionary) && dictionary.length)) return '';\n option = _objectSpread({\n valueKey: 'value',\n labelKey: 'name',\n dictionaryType: true\n }, option);\n var _option = option,\n valueKey = _option.valueKey,\n labelKey = _option.labelKey,\n dictionaryType = _option.dictionaryType;\n var item = dictionary.find(function (i) {\n return i[dictionaryType ? valueKey : labelKey] === val;\n }) || {};\n return item[dictionaryType ? labelKey : valueKey] || '';\n },\n // 跳转设备详情\n handleDetail: function handleDetail(query) {\n /*\r\n * 翻译字段并携带参数跳转\r\n * */\n var typeOptions = this.typeOptions,\n nineSmallPlacesOptions = this.nineSmallPlacesOptions,\n keyUnitLevelOptions = this.keyUnitLevelOptions,\n dictionaryEscape = this.dictionaryEscape;\n var type = query.type,\n smallPlaceArea = query.smallPlaceArea,\n emphasisLevel = query.emphasisLevel;\n this.$router.push({\n name: 'MobileTroubleshootingDetail',\n query: _objectSpread(_objectSpread({}, query), {}, {\n type: dictionaryEscape(typeOptions, type),\n smallPlaceArea: dictionaryEscape(nineSmallPlacesOptions, smallPlaceArea),\n emphasisLevel: dictionaryEscape(keyUnitLevelOptions, emphasisLevel)\n })\n });\n },\n // 列表触底时触发\n onLoad: function onLoad() {\n var _this = this;\n\n this.customQueryPrams.page++;\n this.getListData(function (_) {\n return _this.loading = false;\n });\n },\n // 列表下拉刷新时触发\n onRefresh: function onRefresh() {\n var _this2 = this;\n\n this.customQueryPrams.page = 1;\n this.listData = [];\n this.getListData(function (_) {\n return _this2.refreshing = false;\n });\n },\n // 获取列表数据\n getListData: function () {\n var _getListData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(callback) {\n var _this3 = this;\n\n var escapeOpt, queryParams, _yield$loadCmgtSaftyD, _yield$loadCmgtSaftyD2, rows, total, _this$customQueryPram2, pageSize, page;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n /*\r\n * 定义 escapeOpt 字段对应字典名 对象,后续进行字段的翻译逻辑\r\n * queryParams 为重新加工结构赋值的新请求配置参数\r\n * */\n escapeOpt = {\n type_: 'typeOptions',\n small_place_area_: 'nineSmallPlacesOptions',\n emphasis_level_: 'keyUnitLevelOptions'\n };\n queryParams = _objectSpread(_objectSpread({}, this.queryParams), {}, {\n querys: this.queryParams.querys.map(function (i) {\n var escape = _this3[escapeOpt[i.property]];\n if (!escape) return i;\n return _objectSpread(_objectSpread({}, i), {}, {\n value: _this3.dictionaryEscape(escape, i.value, {\n dictionaryType: false\n })\n });\n })\n });\n /*\r\n * 进行数据合并,并判断是否数据加载完成\r\n * */\n\n _context.next = 4;\n return loadCmgtSaftyDangerUnit(queryParams);\n\n case 4:\n _yield$loadCmgtSaftyD = _context.sent;\n _yield$loadCmgtSaftyD2 = _yield$loadCmgtSaftyD.data;\n rows = _yield$loadCmgtSaftyD2.rows;\n total = _yield$loadCmgtSaftyD2.total;\n _this$customQueryPram2 = this.customQueryPrams, pageSize = _this$customQueryPram2.pageSize, page = _this$customQueryPram2.page;\n this.listData = this.listData.concat(rows);\n if (pageSize * page >= total) this.finished = true;\n callback && callback(); // 回调函数,方便调用后个性化逻辑书写\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getListData(_x) {\n return _getListData.apply(this, arguments);\n }\n\n return getListData;\n }(),\n // 打开弹层\n showPopup: function showPopup(popupName) {\n this[popupName] = true;\n },\n // 查询/重置按钮点击\n searchData: function searchData() {\n this.finished = false;\n this.customQueryPrams.page = 1;\n this.listData = [];\n this.getListData();\n }\n }\n};",null]}