{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\warningRelease\\latestWarn.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\warningRelease\\latestWarn.vue","mtime":1684458239684},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 latestWarn from '@/api/warningRelease/latestWarn';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport latestWarnInfo from \"./components/latestWarnInfo.vue\";\nimport req from '@/request.js';\nexport default {\n mixins: [TableMixin],\n components: {\n latestWarnInfo: latestWarnInfo\n },\n data: function data() {\n return {\n queryParam: {\n params: {\n stcd: null,\n //测站代码\n warnGrade: null,\n //预警等级\n startTime: null,\n endTime: null\n },\n pageBean: {\n pageSize: 20,\n page: 1\n }\n },\n stnms: [],\n //测站名称\n yjdjs: [],\n //预警等级\n tableData: [],\n //展示的数据嘛\n sendDate: '',\n //预警时间\n total: 0,\n //总数据\n multipleSelection: [],\n // 删除复选框\n title: '',\n showFormDia: false,\n pId: '',\n types: ''\n };\n },\n created: function created() {\n var _this = this;\n\n this.getSysDict(); //获取字典数据\n\n this.getDateList(); //获取数据\n //获取测站下拉列表\n\n latestWarn.getTree({}, function (response) {\n _this.stnms = response.value;\n\n _this.stnms.forEach(function (item) {\n if (item.children) {\n item.children = JSON.parse(JSON.stringify(item.children).replace(/stnm/g, 'name'));\n }\n });\n });\n },\n methods: {\n closeAlartStatus: function closeAlartStatus(val) {\n var _this2 = this;\n\n this.$confirm('此操作将关闭该测站, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n latestWarn.updateStatus(val.id, function (response) {\n if (response.state) {\n _this2.$message.success('关闭成功');\n\n _this2.getDateList();\n } else {\n _this2.$message.error(res.message);\n }\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n openPolice: function openPolice(val) {\n var _this3 = this;\n\n if (val) {\n latestWarn.warniInfo(val.id, function (res) {\n _this3.types = res.value;\n _this3.showFormDia = true; // switch(res.value.warnType){\n // case '1':\n // }\n });\n }\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this4 = this;\n\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {\n _this4.yjdjs = response.data.yjdj;\n\n _this4.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n changeDate: function changeDate(val) {\n if (val) {\n this.queryParam.params.startTime = val[0];\n this.queryParam.params.endTime = val[1];\n } else {\n this.queryParam.params.startTime = '';\n this.queryParam.params.endTime = '';\n }\n },\n //获取数据\n getDateList: function getDateList() {\n var _this5 = this;\n\n this.loading = true;\n this.tableData = [];\n\n if (!this.queryParam.params.stcd) {\n this.queryParam.params.stcd = null;\n }\n\n latestWarn.getListTable(this.queryParam, function (res) {\n if (res.state) {\n if (res.value.rows) {\n res.value.rows.forEach(function (item) {\n item['warnGrade'].trim();\n\n _this5.yjdjs.forEach(function (ii) {\n if (ii.value == item['warnGrade'].trim()) {\n item['warnGrade'] = ii.name;\n }\n });\n });\n }\n\n _this5.tableData = res.value.rows;\n\n _this5.$set(_this5.tableData, _this5.tableData);\n\n _this5.total = res.value.total;\n _this5.loading = false;\n } else {\n _this5.$message(res.message);\n }\n });\n },\n handleChange: function handleChange(children) {\n this.queryParam.params.stcd = children[1];\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {};\n this.sendDate = '';\n this.onClickSearch();\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n }\n }\n};",null]}