{"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\\MobileTrainingPlan\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileTrainingPlan\\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 \"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//\nimport SecurityFileApi from '@/views/Manage/saftyDanger/api/SecurityFileApi';\nimport dictUtils from '@/components/dict/DictSelectUtils';\nimport QuerySearchPopup from \"./components/QuerySearchPopup/index.vue\";\nvar loadCmgtSaftyTrainingPlan = SecurityFileApi.loadCmgtSaftyTrainingPlan;\nexport default {\n name: 'MobileTrainingPlan',\n components: {\n QuerySearchPopup: QuerySearchPopup\n },\n // 隐患档案查询\n data: function data() {\n return {\n // 自定义请求参数配置对象\n customQueryPrams: {\n pageSize: 10,\n page: 1,\n 'unit_name_': '',\n // 单位名称\n 'type_': '',\n // 受检单位类别\n 'name_': '' // 负责人姓名\n\n },\n listData: [],\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 loading: false,\n // 列表是否触发loading\n finished: false,\n // 列表是否加载完成\n refreshing: false,\n // 列表是否开始下拉刷新\n querySearchPopup: false // 搜索弹层\n\n };\n },\n computed: {\n // 加工为后端需要的请求格式\n queryParams: function queryParams() {\n var _this = this;\n\n var _this$customQueryPram = this.customQueryPrams,\n pageSize = _this$customQueryPram.pageSize,\n page = _this$customQueryPram.page,\n item = _objectWithoutProperties(_this$customQueryPram, [\"pageSize\", \"page\"]);\n /*\r\n * 定义 escapeOpt 字段对应字典名 对象,后续进行字段的翻译逻辑\r\n * 为重新加工结构赋值的新请求配置参数\r\n * */\n\n\n var querys = [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'unit_name_',\n relation: 'AND'\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'type_',\n relation: 'AND'\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name_',\n relation: 'AND'\n }];\n var escapeOpt = {\n 'type_': 'unitsTypeOpt'\n };\n return {\n pageBean: {\n pageSize: pageSize,\n page: page\n },\n querys: querys.map(function (i) {\n var value = item[i.property];\n var escape = _this[escapeOpt[i.property]];\n if (!escape) return _objectSpread(_objectSpread({}, i), {}, {\n value: value\n });\n value = _this.dictionaryEscape(escape, value, {\n dictionaryType: false\n });\n return _objectSpread(_objectSpread({}, i), {}, {\n value: value\n });\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: '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 goSecurityInvestigationPlan: function goSecurityInvestigationPlan(_ref) {\n var unitName = _ref.unitName,\n id = _ref.id;\n this.$router.push({\n name: 'securityInvestigationPlan',\n query: {\n unitName: unitName,\n id: 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 showPopup: function showPopup(popupName) {\n this[popupName] = true;\n },\n // 获取列表数据\n getListData: function () {\n var _getListData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(callback) {\n var _yield$loadCmgtSaftyT, _yield$loadCmgtSaftyT2, 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 _context.next = 2;\n return loadCmgtSaftyTrainingPlan(this.queryParams);\n\n case 2:\n _yield$loadCmgtSaftyT = _context.sent;\n _yield$loadCmgtSaftyT2 = _yield$loadCmgtSaftyT.data;\n rows = _yield$loadCmgtSaftyT2.rows;\n total = _yield$loadCmgtSaftyT2.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 10:\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 searchData: function searchData() {\n this.finished = false;\n this.customQueryPrams.page = 1;\n this.listData = [];\n this.getListData();\n }\n }\n};",null]}