{"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\\MobileSaftyDangerCheckPlan\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileSaftyDangerCheckPlan\\index.vue","mtime":1691463999696},{"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 \"core-js/modules/es6.regexp.split\";\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 \"core-js/modules/es6.function.name\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport programApi from '@/views/Manage/saftyDanger/api/programApi';\nimport DingMaterialApi from \"../api/DingMaterialApi\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport QuerySearchPopup from \"./components/QuerySearchPopup/index.vue\";\nvar loadCmgtSaftyDangerUnit = programApi.loadCmgtSaftyDangerUnit;\nvar loadCmgtSaftyDangerCheckrecord = DingMaterialApi.loadCmgtSaftyDangerCheckrecord;\nexport default {\n name: 'MobileSaftyDangerCheckPlan',\n components: {\n QuerySearchPopup: QuerySearchPopup\n },\n // 安全排查\n data: function data() {\n return {\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'checkschemeId',\n // 排查方案\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'status',\n // 整改状态\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'unit_type_',\n // 受检单位类型\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'unit_name_',\n // 受检单位\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'checkDate',\n // 最后复查时间\n relation: 'AND',\n value: ''\n }],\n // 自定义请求参数配置对象\n customQueryPrams: {\n pageSize: 10,\n page: 1,\n checkschemeId: '',\n status: '',\n unit_type_: '',\n unit_name_: '',\n checkDate: ''\n },\n listData: [],\n // 列表数据\n troubleshootingPlanOpt: [],\n // 排查方案配置数组对象\n // 受检单位配置数组对象\n unitsTypeOpt: [{\n text: '所有受检单位',\n value: ''\n }].concat(_toConsumableArray(dictUtils.getDictItemsFromCache('zhgl-dwlx').map(function (i) {\n return {\n text: i.name,\n value: i.value\n };\n }))),\n // 整改状态配置数组对象\n statusOpt: [{\n text: '所有',\n value: '',\n type: 'primary'\n }, {\n text: '待排查',\n value: '1',\n type: 'danger'\n }, {\n text: '整改中',\n value: '2',\n type: 'warning'\n }, {\n text: '已完成',\n value: '3',\n type: 'success'\n }],\n querySearchPopup: false,\n // 搜索弹层\n loading: false,\n // 列表加载loading状态\n finished: false,\n // 是否数据加载完毕\n refreshing: false // 下拉刷新\n\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 };\n }\n },\n created: function created() {\n this.getTroubleshootingPlanOpt(); // 获取排查方案配置数组对象\n\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: 'text',\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 getTroubleshootingPlanOpt: function getTroubleshootingPlanOpt() {\n var _this = this;\n\n loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n },\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'pubState',\n relation: 'AND',\n value: 2\n }]\n }, function (res) {\n _this.troubleshootingPlanOpt = [{\n text: '所有排查方案',\n value: ''\n }].concat(_toConsumableArray(res.rows.map(function (item) {\n return {\n text: item.schemeName,\n value: item.pkVal\n };\n })));\n });\n },\n // 跳转设备详情\n handleDetail: function handleDetail(item) {\n this.$router.push({\n name: 'MobileSaftyDangerCheckPlanDetail',\n query: {\n id: item.id\n }\n });\n },\n // 触底时触发\n onLoad: function onLoad() {\n var _this2 = this;\n\n this.customQueryPrams.page++;\n this.getListData(function (_) {\n return _this2.loading = false;\n });\n },\n // 下拉时触发\n onRefresh: function onRefresh() {\n var _this3 = this;\n\n this.customQueryPrams.page = 1;\n this.listData = [];\n this.getListData(function (_) {\n return _this3.refreshing = false;\n });\n },\n // 获取列表数据\n getListData: function () {\n var _getListData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(callback) {\n var _this4 = 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 status: 'statusOpt',\n unit_type_: 'unitsTypeOpt',\n checkschemeId: 'troubleshootingPlanOpt'\n };\n queryParams = _objectSpread(_objectSpread({}, this.queryParams), {}, {\n querys: this.queryParams.querys.map(function (i) {\n if (i.property === 'checkDate') {\n return _objectSpread(_objectSpread({}, i), {}, {\n value: i.value === '' ? '' : i.value.split(' ~ ')\n });\n }\n\n var escape = _this4[escapeOpt[i.property]];\n if (!escape) return i;\n return _objectSpread(_objectSpread({}, i), {}, {\n value: _this4.dictionaryEscape(escape, i.value, {\n dictionaryType: false\n })\n });\n })\n });\n _context.next = 4;\n return loadCmgtSaftyDangerCheckrecord(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 this.$nextTick(function (_) {\n return callback && callback();\n });\n if (pageSize * page >= total) this.finished = true;\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]}