{"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\\MobileTrainingPlan.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileTrainingPlan\\MobileTrainingPlan.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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\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//\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 nineLittlePlaceApi from '@/views/Manage/saftyDanger/api/nineLittlePlaceApi';\nimport programApi from '@/views/Manage/saftyDanger/api/programApi';\nimport productManage from '@/api/device/productManage.js';\nimport req from '@/request.js';\nimport resourceManage from '@/api/device/resourceManage.js';\nimport DingMaterialApi from \"../api/DingMaterialApi\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'MobileTrainingPlan',\n // 隐患档案查询\n data: function data() {\n return {\n pickerType: '',\n minDate: new Date('1900/01/01'),\n showCalendar: false,\n unitName: '',\n unitData: [],\n showUnit: false,\n popupShow: false,\n value: '',\n methodData: [{\n text: '请选择',\n value: ''\n }, {\n text: '日常检查',\n value: '1'\n }, {\n text: '临时检查',\n value: '2'\n }],\n active: '0',\n activeIds: [],\n activeIndex: 0,\n policeList: [],\n treeData: [],\n queryParam: {\n pageBean: ''\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: 'EQUAL',\n parentGroup: '',\n property: 'type_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name_',\n relation: 'AND',\n value: ''\n }],\n page: 1,\n startPicker: false,\n statusData: {\n name: '',\n value: ''\n },\n title: '我的设备',\n currentUser: {},\n params: {\n trainingDate: ''\n },\n previewUrl: window.context.portal + '/file/onlinePreviewController/v1/getFileById_',\n //图标预览\n columns: [],\n //产品列表\n startColumns: [],\n product: {\n name: '',\n id: ''\n },\n showPicker: false,\n deviceData: [],\n loading: false,\n finished: true,\n refreshing: false\n };\n },\n created: function created() {\n this.yhztList = dictUtils.getDictItemsFromCache('aqjczt');\n this.dwlxList = dictUtils.getDictItemsFromCache('zhgl-dwlx');\n this.dwlxList = this.dwlxList.map(function (item) {\n return {\n text: item.name,\n value: item.value\n };\n });\n this.dwlxList.unshift({\n text: '所有单位类别',\n value: ''\n });\n },\n mounted: function mounted() {\n this.currentUser = JSON.parse(sessionStorage.getItem('currentUser'));\n this.deviceStatus = dictUtils.getDictItemsFromCache('sbzt'); // this.getProducts()\n\n this.getDevice();\n this.getTreen();\n this.getUnit();\n },\n methods: {\n //搜索\n onSearch: function onSearch() {\n this.page = 1;\n this.deviceData = [];\n this.getDevice();\n },\n onConfirmTime: function onConfirmTime(val) {\n this.querys[4].value = [this.dayjs(val[0]).format('YYYY-MM-DD'), this.dayjs(val[1]).format('YYYY-MM-DD')];\n this.showCalendar = false;\n },\n //获取单位\n getUnit: function getUnit() {\n var _this = this;\n\n nineLittlePlaceApi.loadCmgtSaftyDangerUnit({\n pageBean: {\n pageSize: -1,\n page: 1\n }\n }, function (res) {\n // this.total = res.total\n console.log(res);\n _this.unitData = res.rows.map(function (item) {\n return {\n text: item.unitName,\n value: item.id\n };\n });\n\n _this.unitData.unshift({\n text: '所有单位',\n value: ''\n });\n });\n },\n //重置\n resetBtn: function resetBtn() {\n this.querys[2].value = '';\n this.querys[1].value = '';\n this.pickerType = '';\n this.page = 1;\n this.deviceData = [];\n this.getDevice();\n this.popupShow = false;\n },\n //确认\n confirmBtn: function confirmBtn() {\n this.page = 1;\n this.deviceData = [];\n this.getDevice();\n this.popupShow = false;\n },\n //返回\n popupShowBack: function popupShowBack() {\n // this.querys[2].value = ''\n // this.querys[1].value = ''\n // this.pickerType = ''\n this.popupShow = false;\n },\n //搜索\n seoBtn: function seoBtn(v) {\n // this.regionMast = 1\n // this.siftActive = '0'\n this.popupShow = true;\n },\n // 获取产品信息\n loadData: function loadData(id) {\n var _this2 = this;\n\n var queryParam = {\n pageBean: {},\n querys: []\n };\n queryParam.pageBean = {\n page: 1,\n pageSize: -1\n };\n queryParam.querys = [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'typeId',\n relation: 'AND',\n value: id\n }];\n productManage.productInfo(queryParam).then(function (res) {\n console.log(res); // this.total = res.total\n\n _this2.columns = res.rows.map(function (item) {\n return {\n value: item.id,\n text: item.name\n };\n });\n _this2.columns[0] = {\n text: '请选择',\n value: ''\n };\n });\n },\n onNavClick: function onNavClick(val) {\n console.log(val);\n this.loadData(val.id);\n },\n // 产品组织树查询\n getTreen: function getTreen() {\n var _this3 = this;\n\n productManage.productType().then(function (res) {\n res.value.map(function (item) {\n item.children = item.children.map(function (items) {\n return {\n children: [],\n id: items.id,\n text: items.name\n };\n });\n });\n _this3.getTreenData = res.value;\n _this3.treeData = res.value.map(function (item) {\n return {\n children: item.children,\n id: item.id,\n text: item.name\n };\n });\n console.log(_this3.treeData); // this.$set(this.treeData)\n });\n },\n // 跳转设备详情\n handleDetail: function handleDetail(item) {\n this.$router.push({\n name: 'MobileTrainingPlanDetail',\n query: {\n id: item.id\n }\n }); // if (this.active == '2') {\n // }\n },\n onCancel: function onCancel() {\n this.showPicker = false;\n },\n onLoad: function onLoad() {\n var _this4 = this;\n\n // // this.loading = true\n // // this.getDevice()\n setTimeout(function () {\n _this4.page++;\n _this4.loading = true;\n\n _this4.getDevice();\n }, 500);\n },\n onRefresh: function onRefresh() {\n var _this5 = this;\n\n setTimeout(function () {\n _this5.page = 1;\n _this5.refreshing = true;\n _this5.deviceData = [];\n\n _this5.getDevice();\n }, 500);\n },\n unitChange: function unitChange(v) {\n console.log(v);\n this.pickerType = v.text;\n this.querys[1].value = v.value;\n this.showPicker = false; // this.page = 1\n // this.deviceData = []\n // this.getDevice()\n },\n teamChange: function teamChange(v) {\n this.page = 1;\n this.deviceData = [];\n this.getDevice();\n },\n orgChange: function orgChange(v) {\n this.page = 1;\n this.deviceData = [];\n this.getDevice();\n },\n getDevice: function getDevice() {\n var _this6 = this;\n\n this.finished = false;\n this.queryParam.pageBean = {\n pageSize: 10,\n page: this.page\n };\n this.queryParam.querys = [];\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n SecurityFileApi.loadCmgtSaftyTrainingPlan(this.queryParam, function (res) {\n // console.log(res, 'res')\n res.rows.forEach(function (item) {\n _this6.dwlxList.forEach(function (val) {\n if (item.unitType == val.value) {\n item['unitTypeName'] = val.text;\n }\n });\n });\n _this6.loading = false;\n _this6.deviceData = _this6.deviceData.concat(res.rows);\n console.log(_this6.deviceData); // 如果加载完毕,显示没有更多了\n\n if (res.rows.length === 0) {\n _this6.finished = true;\n }\n\n setTimeout(function () {\n //code\n _this6.refreshing = false;\n }, 1000);\n });\n }\n }\n};",null]}