{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\DSModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\DSModel.vue","mtime":1684458238559},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 dictUtils from '@/components/dict/DictSelectUtils.js'\nimport digitalReservoir from '@/api/frontScreen/digitalReservoir.js'\nexport default {\n\tname: 'DSModel',\n\tdata() {\n\t\treturn {\n\t\t\tvisible: false,\n\t\t\ttitle: '',\n\t\t\tdata: [],\n\t\t\tyjdjs: [],\n\t\t\twarnSdList: [{\n\t\t\t\tname: '1小时雨量',\n\t\t\t\tvalue: 'p1'\n\t\t\t}, {\n\t\t\t\tname: '3小时雨量',\n\t\t\t\tvalue: 'p3'\n\t\t\t}, {\n\t\t\t\tname: '6小时雨量',\n\t\t\t\tvalue: 'p6'\n\t\t\t}, {\n\t\t\t\tname: '12小时雨量',\n\t\t\t\tvalue: 'p12'\n\t\t\t}, {\n\t\t\t\tname: '24小时雨量',\n\t\t\t\tvalue: 'p24'\n\t\t\t}, ],\n\t\t\tmultipleSelection: []\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.yjdjs = dictUtils.getDictItemsFromCache('yjdj')\n\t},\n\tmethods: {\n\t\topen(title, data) {\n\t\t\tthis.title = title\n\t\t\tthis.visible = true\n\t\t\tthis.data = data\n\t\t\tthis.data.forEach(e => {\n\t\t\t\tif (e.warnGrade) {\n\t\t\t\t\tthis.yjdjs.forEach(c => {\n\t\t\t\t\t\tif (e.warnGrade == c.value) {\n\t\t\t\t\t\t\te.level = c.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tif (e.warnDate) {\n\t\t\t\t\tlet a = JSON.parse(e.warnDate)\n\t\t\t\t\tthis.warnSdList.forEach(w => {\n\t\t\t\t\t\tif (w.value == a.warnSd) {\n\t\t\t\t\t\t\te.warnSdName = w.name\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.currentValue = a.currentValue\n\t\t\t\t\t\te.warnVal = a.warnVal\n\n\t\t\t\t\t})\n\t\t\t\t}\n\n\t\t\t})\n\t\t},\n\t\tclose() {\n\t\t\tthis.visible = false\n\t\t\tthis.$emit('close')\n\t\t\tthis.$emit('callAgain')\n\t\t},\n\t\t//批量处理\n\t\tBatchProcess() {\n\t\t\tthis.$confirm('此操作将关闭所选测站预警状态, 是否继续?', '提示', {\n\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\tdigitalReservoir.updateStatus(this.multipleSelection, res => {\n\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\tthis.$message.success('处理成功')\n\t\t\t\t\t\tthis.close()\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.$message.error(res.$message)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}).catch(() => {\n\t\t\t\tthis.$message({\n\t\t\t\t\ttype: 'info',\n\t\t\t\t\tmessage: '已取消删除'\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tthis.multipleSelection = this.multipleSelection = val.map(item => {\n\t\t\t\treturn item.id\n\t\t\t})\n\t\t},\n\t}\n\n}\n",null]}