New file |
| | |
| | | /* 电池告警参数设置 */ |
| | | import axios from "../axios"; |
| | | |
| | | |
| | | /* 修改 |
| | | json={"alm_name":"容量告警告警","alm_id":"119010","alm_high_coe":"3","alm_high_level":"3", |
| | | "alm_low_coe":"0.8","alm_low_level":"2","alm_high_en":0,"alm_low_en":1} |
| | | */ |
| | | export const settingEdit = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Alarm_paramAction!update", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | | |
| | | /* 查询 |
| | | json={"alm_id":"0"} |
| | | */ |
| | | export const settingSearch = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Alarm_paramAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | /* 删除 |
| | | json=[{"stationname":"上海市-市辖区-FBS-埔东新区-五莲沪新开关站-电池组1", |
| | | "num":561804,"note":"单体电压低"}] |
| | | */ |
| | | export const hisDelet = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Battalarm_data_historyAction!delete", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
New file |
| | |
| | | /* 设备告警参数设置 */ |
| | | import axios from "../axios"; |
| | | |
| | | |
| | | /* 修改 |
| | | json={"alm_name":"在线电压告警","note":"上海市-市辖区-浦东新区-丁香站-FBS","alm_id":"119001", |
| | | "alm_high_coe":"1.2","alm_high_level":"2","alm_low_coe":"0.8","alm_low_level":"2", |
| | | "dev_id":"401900011","alm_high_en":0,"alm_low_en":0} |
| | | */ |
| | | export const devSetting = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!update", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | | |
| | | /* 查询设备 |
| | | json={"UNote":""} |
| | | */ |
| | | export const devSearchs = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/User_battgroup_baojigroup_battgroupAction!serchStationByStationName1", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | | |
| | | |
| | | /* 查询告警ID |
| | | json={"dev_id":"401900011"} |
| | | */ |
| | | export const devSeidd = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!serchByInfo", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | | |
| | | /* 查询告警下限数值 |
| | | json={"dev_id":"401900011","alm_id":"0"} |
| | | */ |
| | | export const devSearnumbe = (data) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: "/yckj/fg/Dev_paramAction!serchByCondition", |
| | | data: "json=" + JSON.stringify(data) |
| | | }) |
| | | } |
| | |
| | | :data="userList" |
| | | :style="{width: w}" |
| | | > |
| | | <el-table-column prop="UDepartment" width="100px" align="center" label="编号" ></el-table-column> |
| | | <el-table-column prop="UDepartment" width="100px" align="center" label="编号"></el-table-column> |
| | | <el-table-column prop="UName" width="150px" align="center" label="告警名称"></el-table-column> |
| | | <el-table-column prop="UShenFenId" width="150px" align="center" label="告警ID"></el-table-column> |
| | | <el-table-column prop="UEmployeeId" width="230px" align="center" label="告警上限系数值(0.0~30.0)"></el-table-column> |
| | |
| | | <el-checkbox :checked="scope.row.UBaojiusr == 1" readonly="true"></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="UMobilephone" width="230px" align="center" label="告警下限系数值(0.0~30.0)"></el-table-column> |
| | | <el-table-column prop="UMobilephone" width="230px" align="center" label="告警下限等级(1~4)"></el-table-column> |
| | | <el-table-column prop="UMobilephone" width="230px" align="center" label="告警下限使能"> |
| | | <el-table-column prop="alramDown" width="230px" align="center" label="告警下限系数值(0.0~30.0)"></el-table-column> |
| | | <el-table-column prop="UMobDown" width="230px" align="center" label="告警下限等级(1~4)"></el-table-column> |
| | | <el-table-column prop="alramNub" width="230px" align="center" label="告警下限使能"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox :checked="scope.row.UBaojiusr == 0" readonly="true"></el-checkbox> |
| | | </template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | settingSearch /* 查询 */ |
| | | } from "@/assets/js/alarmAdmian/batterypaSetting.js"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | w:document.documentElement.offsetWidth + 'px', |
| | | h:`${document.documentElement.offsetHeight - 344} + 'px'`, |
| | | userList:[{ |
| | | UDepartment:'111', |
| | | }, |
| | | w: document.documentElement.offsetWidth + "px", |
| | | h: `${document.documentElement.offsetHeight - 344} + 'px'`, |
| | | /* 列表 */ |
| | | userList: [ |
| | | { |
| | | UName:'222' |
| | | UDepartment: "0" /* 编号 */, |
| | | UName: "0" /* 告警名称 */, |
| | | UShenFenId: 0 /* 告警id */, |
| | | UEmployeeId: 0 /* 告警上限数值 */, |
| | | UTelephone: 0 /* 告警上限等级 */, |
| | | UMobilephone: 0 /* 告警上限使能 */, |
| | | alramDown: 0 /* 告警下限数值 */, |
| | | UMobDown: 0 /* 告警下限等级 */, |
| | | alramNub: 0 /* 告警下限使能 */, |
| | | cztime: 0 /* 操作 */ |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }; |
| | | }, |
| | | mounted() { |
| | | let vm = this; |
| | | window.addEventListener('resize', function(){ |
| | | vm.w = document.documentElement.offsetWidth + 'px'; |
| | | }) |
| | | |
| | | }, |
| | | methods: { |
| | | mounted() { |
| | | let vm = this; |
| | | window.addEventListener("resize", function() { |
| | | vm.w = document.documentElement.offsetWidth + "px"; |
| | | }); |
| | | /* 查询 */ |
| | | |
| | | this.searchParam(); |
| | | }, |
| | | methods: { |
| | | async searchParam() { |
| | | const search = await settingSearch({ alm_id: "0" }); |
| | | /* console.log('search',search); */ |
| | | |
| | | if (search.data.result) { |
| | | this.userList = JSON.parse(search.data.result).data.map( |
| | | (item, index) => { |
| | | item.index = index + 1; |
| | | return { |
| | | UDepartment: item.index, |
| | | UEmployeeId: item.alm_high_coe, |
| | | UShenFenId: item.alm_id, |
| | | UTelephone: item.alm_high_level, |
| | | alramDown: item.alm_low_coe, |
| | | UMobDown: item.alm_low_level |
| | | }; |
| | | } |
| | | ); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | width="100%" |
| | | border="1" |
| | | cellspacing="0" |
| | | style="border: 1px solid #ffffff; " |
| | | > |
| | | style="border: 1px solid #ffffff; " > |
| | | <thead> |
| | | <tr> |
| | | <th>维护区</th> |
| | |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | |
| | | <!-- 选择 --> |
| | | <table class="condiOpt" border="1"> |
| | | <tr class="trTitle"> |
| | | <td> |
| | | <center> |
| | | <input type="checkbox" :value="usr_ids">在线电压 |
| | | <input type="checkbox" value="119001" checked="checked" v-model="checkbox.usr_id.bol" />在线电压 |
| | | </center> |
| | | </td> |
| | | <td> |
| | | <center> |
| | | <input type="checkbox">组端电压 |
| | | <input type="checkbox" value="119002" checked="checked" v-model="checkbox.fault_type_id.bol" />组端电压 |
| | | </center> |
| | | </td> |
| | | <td> |
| | | <center> |
| | | <input type="checkbox"> |
| | | <input type="checkbox" value="119002" checked="checked" v-model="checkbox.fault_level.bol"> |
| | | 充电电流 |
| | | </center> |
| | | </td> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="cztime" fixed="right" width="80px" align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="danger" size="mini" @click="deleteUser(scope.$index, scope.row)">删除</el-button> |
| | | <el-button type="danger" size="mini" @click="deleteUser(scope.row.num)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <!-- 底部分页 --> |
| | | <div class="flex-page-footer" slot="footer"> |
| | | <div class="el-pagination-btns"> |
| | |
| | | :total="total" |
| | | ></el-pagination> |
| | | <el-button type="primary" round size="mini" icon="el-icon-wallet">全部选中</el-button> |
| | | <!-- <span class="tiao" @click="historyArlm">跳转</span> --> |
| | | </div> |
| | | </flex-layout> |
| | | </template> |
| | |
| | | historyTrye /* 维护区 */, |
| | | historyStation /*机房站点 */, |
| | | historyBattery /* 蓄电池组 */, |
| | | historySeroom /* 历史告警记录 */ |
| | | historySeroom, /* 历史告警记录 */ |
| | | hisDelet/*删除 */ |
| | | } from "@/assets/js/alarmAdmian/batteryrHistoryquery.js"; |
| | | export default { |
| | | data() { |
| | |
| | | label: null |
| | | } |
| | | ], |
| | | checkbox:{ |
| | | usr_id:{bol:true,value:"119001"}, |
| | | fault_type_id:{bol:true,value:"119002"}, |
| | | fault_level:{bol:true,value:"119003"}, |
| | | // record_uid:{bol:true,value:"119004"}, |
| | | // maint_type_id:{bol:true,value:"119005"}, |
| | | // maint_done:{bol:true,value:"119006"}, |
| | | // maint_close:{bol:true,value:"119007"} |
| | | }, |
| | | selectValue1: "", |
| | | selectPlace1: "", |
| | | selectValue2: "", |
| | |
| | | this.sessionSite(); /* 机房站点 */ |
| | | this.batterJque(); /* 蓄电池组 */ |
| | | this.historyArlm(); /* 历史告警记录 */ |
| | | this.deleteUser()/* 删除 */ |
| | | }, |
| | | methods: { |
| | | /* 维护区 */ |
| | |
| | | }, |
| | | /* 历史告警记录 */ |
| | | async historyArlm() { |
| | | let params = {} |
| | | |
| | | Object.keys(this.checkbox).forEach((item,index)=>{ |
| | | if(this.checkbox[item].bol){ |
| | | params[item] = this.checkbox[item].value; |
| | | }else{ |
| | | params[item] = ""; |
| | | } |
| | | }) |
| | | console.log('params.........',params) |
| | | const historyList = await historySeroom({ |
| | | |
| | | page: { |
| | | pageCurr: this.queryInfo.pagenum, |
| | | pageSize: this.queryInfo.pagesize, |
| | |
| | | master_audit: "3", |
| | | num: "1", |
| | | BattGroupId: "2", |
| | | usr_id: this.usr_ids, |
| | | fault_type_id: "119002", |
| | | fault_level: "119003", |
| | | usr_id: "119001", |
| | | fault_type_id: params.fault_type_id, |
| | | fault_level:"119003", |
| | | record_uid: "119004", |
| | | maint_type_id: "119005", |
| | | maint_done: "119006", |
| | |
| | | |
| | | this.table.datas = newLists; |
| | | }, |
| | | /* 删除 */ |
| | | async deleteUser(){ |
| | | const ws = await hisDelet({ |
| | | stationname:"上海市-市辖区-FBS-埔东新区-五莲沪新开关站-电池组1", |
| | | num:"561804", |
| | | note:"单体电压低" |
| | | }) |
| | | console.log('ws',ws); |
| | | }, |
| | | handleSizeChange(newSize) { |
| | | this.queryInfo.pagesize = newSize; |
| | | /* console.log(`每页 ${newSize} 条`); */ |
| | |
| | | } |
| | | } |
| | | }); |
| | | /* console.log('alarmDatas',alarmDatas); */ |
| | | const newsAlaa = JSON.parse(alarmDatas.data.result).data; |
| | | /* console.log("newsAlaa", newsAlaa); */ |
| | | |
| | | |
| | | const paaLista = newsAlaa.map((item, index) => { |
| | | item.index = index + 1; |
| | | return { |
| | | room1: item.index, |
| | | /* battery1: item.adata.BattGroupId */ |
| | | }; |
| | | this.table.datas = newsAlaa.map((item, index) => { |
| | | item.room1 = index + 1; |
| | | item.battery1 = |
| | | item.binf && item.binf.StationName ? item.binf.StationName : ""; |
| | | return item; |
| | | }); |
| | | |
| | | this.table.datas = paaLista; |
| | | }, |
| | | //selectValue1改变事件 |
| | | changeSelect1() { |
| | |
| | | width="100%" |
| | | border="1" |
| | | cellspacing="0" |
| | | style="border: 1px solid #ffffff; " |
| | | > |
| | | style="border: 1px solid #ffffff; "> |
| | | <thead> |
| | | <tr> |
| | | <th>维护区</th> |
| | |
| | | </td> |
| | | <td width="300px"> |
| | | <el-date-picker |
| | | unlink-panels |
| | | class="blocks" |
| | | v-model="valueTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | <!-- 表单 --> |
| | | <div class="flex-page-content"> |
| | | <el-table border size="small" :data="table.datas" height="100%" class="tableCent"> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <!-- 底部分页 --> |
| | | <div class="flex-page-footer" slot="footer"> |
| | | <div class="el-pagination-btns"> |
| | | <el-button type="primary" round size="mini" icon="el-icon-search">查询</el-button> |
| | | <el-button type="primary" @click="alramData" round size="mini" icon="el-icon-search">查询</el-button> |
| | | <el-button type="primary" round size="mini" icon="el-icon-wallet">导出</el-button> |
| | | </div> |
| | | <el-pagination |
| | |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :page-sizes="[2, 5, 10, 20]" |
| | | :page-size="100" |
| | | :page-size="queryInfo.pagesize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="20" |
| | | :total="total" |
| | | ></el-pagination> |
| | | <el-button type="primary" round size="mini" icon="el-icon-wallet">全部选中</el-button> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | queryInfo: { |
| | | query: "" /* 查询 */, |
| | | pagenum: 2 /* 当前页码 绑定queryInfo.pagenum */, |
| | | pagesize: 3 /* 每页显示的数据 绑定queryInfo.pagesize */ |
| | | }, |
| | | total: 11, |
| | | /* 日期 */ |
| | | valueTime: "", |
| | | valueTime: ["2000-01-01 00:00:00", "2020-09-20 00:00:00"], |
| | | /* 维护区 */ |
| | | devss: [ |
| | | { |
| | |
| | | label: "告警确认时间", |
| | | width: "" |
| | | }, |
| | | /* { |
| | | prop: "number1", |
| | | label: "确认告警", |
| | | width: "" |
| | | }, */ |
| | | { |
| | | prop: "start1", |
| | | label: "告警开始时间", |
| | |
| | | current1: 0, |
| | | capacity1: 0, |
| | | monomer1: 0, |
| | | /* number1: 0, */ |
| | | /*number1: 0*/ |
| | | start1: 0, |
| | | end1: 0 |
| | | } |
| | |
| | | /* 机房站点 */ |
| | | async sesston() { |
| | | const newss = await deviserchSeions({ UNote: this.selectValue1 }); |
| | | |
| | | let opt = JSON.parse(newss.data.result).data.map(item => { |
| | | return { label: item }; |
| | | }); |
| | |
| | | this.selectPlace2 = `全部(共${opt.length}种)`; |
| | | }, |
| | | /*查询设备历史告警记录 */ |
| | | |
| | | async alramData() { |
| | | const alramaa = await deviceRecord({ |
| | | binf: { |
| | | StationName: "湖北省", |
| | | StationName1: "", |
| | | BattProductDate: "2000-01-01 00:00:00", |
| | | BattProductDate1: "2020-09-11 23:59:59" |
| | | StationName: '' , |
| | | StationName1: this.selectValue1, |
| | | BattProductDate: this.valueTime[0], |
| | | BattProductDate1: this.valueTime[1] |
| | | }, |
| | | page: { pageSize: "10", pageCurr: "1" } |
| | | page: { pageSize: this.queryInfo.pagesize, pageCurr: this.queryInfo.pagenum } |
| | | }); |
| | | const newAlrams = JSON.parse(alramaa.data.result).data; |
| | | /* console.log('newAlrams',newAlrams); */ |
| | | |
| | | /* console.log('newAlrams',newAlrams); */ |
| | | const oldSalrams = newAlrams.map((item, index) => { |
| | | item.index = index + 1; |
| | | return { |
| | |
| | | }; |
| | | }); |
| | | /* console.log('oldSalrams',oldSalrams); */ |
| | | |
| | | this.table.datas = oldSalrams; |
| | | }, |
| | | //selectValue1改变事件 |
| | |
| | | this.deviceList(); |
| | | this.sesston(); |
| | | }, |
| | | handleSizeChange(val) { |
| | | handleSizeChange(newSize) { |
| | | this.queryInfo.pagesize = newSize; |
| | | /* console.log(`每页 ${val} 条`); */ |
| | | this.alramData() |
| | | }, |
| | | handleCurrentChange(val) { |
| | | handleCurrentChange(newPage) { |
| | | this.queryInfo.pagenum = newPage; |
| | | /* console.log(`当前页: ${val}`); */ |
| | | this.alramData() |
| | | } |
| | | } |
| | | }; |
| | |
| | | <!-- 底部分页 --> |
| | | <div class="flex-page-footer" slot="footer"> |
| | | <div class="el-pagination-btns"> |
| | | <el-button type="primary" round size="mini" icon="el-icon-search">查询</el-button> |
| | | <el-button type="primary" round size="mini" @click="alarmDev" icon="el-icon-search">查询</el-button> |
| | | <el-button type="primary" round size="mini" icon="el-icon-wallet">导出</el-button> |
| | | </div> |
| | | <el-pagination |
| | |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :page-sizes="[2, 5, 10, 20]" |
| | | :page-size="100" |
| | | :page-size="queryInfo.pagesize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="20" |
| | | :total="total" |
| | | ></el-pagination> |
| | | <el-button type="primary" round size="mini" icon="el-icon-wallet">全部选中</el-button> |
| | | </div> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | queryInfo: { |
| | | query: "" /* 查询 */, |
| | | pagenum: 2 /* 当前页码 绑定queryInfo.pagenum */, |
| | | pagesize: 3 /* 每页显示的数据 绑定queryInfo.pagesize */ |
| | | }, |
| | | total: 11, |
| | | /* 日期 */ |
| | | valueTime: ["2000-01-01 00:00:00", "2020-09-20 00:00:00"], |
| | | selectValue1: "", |
| | | selectPlace1: "", |
| | | selectValue2: "", |
| | |
| | | stationName1: "", |
| | | stationName: "", |
| | | alm_type: "0", |
| | | page: { pageSize: "14", pageCurr: "1" } |
| | | page: { pageSize: this.queryInfo.pagesize, pageCurr:this.queryInfo.pagenum } |
| | | }); |
| | | /* console.log('newAlarm',newAlarm); */ |
| | | if (newAlarm.data.result && JSON.parse(newAlarm.data.result).code == 1) { |
| | |
| | | this.deviceTime(); |
| | | this.deviceName(); |
| | | }, |
| | | handleSizeChange(val) { |
| | | handleSizeChange(newSize) { |
| | | this.queryInfo.pagesize = newSize; |
| | | /* console.log(`每页 ${val} 条`); */ |
| | | this.alarmDev() |
| | | }, |
| | | handleCurrentChange(val) { |
| | | handleCurrentChange(newPage) { |
| | | this.queryInfo.pagenum = newPage; |
| | | /* console.log(`当前页: ${val}`); */ |
| | | this.alarmDev() |
| | | } |
| | | } |
| | | }; |
| | |
| | | <template> |
| | | <flex-layout> |
| | | <!-- 头部 --> |
| | | <div slot="header"> |
| | | <!-- 头部 --> |
| | | <div slot="header"> |
| | | <table |
| | | class="table-head" |
| | | width="100%" |
| | |
| | | <tbody> |
| | | <tr> |
| | | <td width="500px"> |
| | | <el-select |
| | | v-model="selectValue2" |
| | | :placeholder="selectPlace2" |
| | | class="rooms" |
| | | > |
| | | <el-select :placeholder="selectPlace1" class="rooms" v-model="value"> |
| | | <el-option |
| | | v-for="item in sesionsNews" |
| | | :key="item.label" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.label" |
| | | :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </td> |
| | | <td width="300px"> |
| | | <el-select placeholder="全部" class="dainchi"> |
| | | <el-select :placeholder="selectPlace2" class="dainchi"> |
| | | <el-option |
| | | v-for="item in devAranam" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | </div> |
| | | |
| | | <!-- 内容 --> |
| | | <div class="table-layout filter-box-table flex-page-content" > |
| | | <div class="table-layout filter-box-table flex-page-content"> |
| | | <el-table |
| | | ref="tableBox" |
| | | border |
| | |
| | | :data="userList" |
| | | :style="{width: w}" |
| | | > |
| | | <el-table-column prop="UDepartment" width="250px" align="center" label="设备" ></el-table-column> |
| | | <el-table-column prop="UDepartment" width="250px" align="center" label="设备"></el-table-column> |
| | | <el-table-column prop="UName" width="218px" align="center" label="告警名称"></el-table-column> |
| | | <el-table-column prop="UShenFenId" width="150px" align="center" label="告警ID"></el-table-column> |
| | | <el-table-column prop="UEmployeeId" width="210px" align="center" label="告警上限系数值(0.0~30.0)"></el-table-column> |
| | |
| | | <el-checkbox :checked="scope.row.UBaojiusr == 1" readonly="true"></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="UMobilephone" width="210px" align="center" label="告警下限系数值(0.0~30.0)"></el-table-column> |
| | | <el-table-column prop="UMobilephone" width="200px" align="center" label="告警下限等级(1~4)"></el-table-column> |
| | | <el-table-column prop="UMobilephone" width="190px" align="center" label="告警下限使能"> |
| | | <el-table-column prop="alramDown" width="210px" align="center" label="告警下限系数值(0.0~30.0)"></el-table-column> |
| | | <el-table-column prop="UMobDown" width="200px" align="center" label="告警下限等级(1~4)"></el-table-column> |
| | | <el-table-column prop="alramNub" width="190px" align="center" label="告警下限使能"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox :checked="scope.row.UBaojiusr == 0" readonly="true"></el-checkbox> |
| | | </template> |
| | |
| | | </el-table> |
| | | </div> |
| | | <!-- 底部 --> |
| | | <div class="flex-page-footer" slot="footer"> |
| | | <div class="el-pagination-btns"> |
| | | <el-button type="primary" round size="mini" icon="el-icon-search">查询</el-button> |
| | | </div> |
| | | <div class="flex-page-footer" slot="footer"> |
| | | <div class="el-pagination-btns"> |
| | | <el-button type="primary" round size="mini" icon="el-icon-search">查询</el-button> |
| | | </div> |
| | | </div> |
| | | </flex-layout> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | devSearchs /* 查询设备 */, |
| | | devSeidd /* 查询告警ID */, |
| | | devSearnumbe /* 查询告警下限数值 */ |
| | | } from "@/assets/js/alarmAdmian/devicepaSetting.js"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | selectValue1: "", |
| | | value:'', |
| | | selectPlace1: "", |
| | | selectValue2: "", |
| | | selectPlace2: "", |
| | | /* 机房站点 */ |
| | | /* 设备 */ |
| | | sesionsNews: [ |
| | | { |
| | | value: null, |
| | | label: null |
| | | } |
| | | ], |
| | | /* 表单 */ |
| | | table: { |
| | | headers: [ |
| | | { |
| | | prop: "rooms1", |
| | | label: "编号", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "batterys1", |
| | | label: "设备ID", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "tesa1", |
| | | label: "设备名", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "dev1", |
| | | label: "设备IP", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "tester1", |
| | | label: "机房名称", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "session1", |
| | | label: "告警事件", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "capacitys1", |
| | | label: "告警等级", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "monomers1", |
| | | label: "告警确认时间", |
| | | width: "" |
| | | }, |
| | | /* { |
| | | prop: "number1", |
| | | label: "确认告警", |
| | | width: "" |
| | | }, */ |
| | | { |
| | | prop: "starts1", |
| | | label: "告警开始时间", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "ends1", |
| | | label: "告警结束时间", |
| | | width: "" |
| | | } |
| | | ], |
| | | datas: [ |
| | | { |
| | | rooms1: 0, |
| | | batterys1: 0, |
| | | tesa1: 0, |
| | | tester1: 0, |
| | | dev1: 0, |
| | | session1: 0, |
| | | capacitys1: 0, |
| | | monomers1: 0, |
| | | starts1: 0, |
| | | ends1: 0 |
| | | } |
| | | ] |
| | | }, |
| | | /* 宽度 */ |
| | | w:document.documentElement.offsetWidth + 'px', |
| | | h:`${document.documentElement.offsetHeight - 344} + 'px'`, |
| | | userList:[{ |
| | | UDepartment:'111', |
| | | }, |
| | | /* 告警名称 */ |
| | | devAranam: [ |
| | | { |
| | | UName:'222' |
| | | value: null, |
| | | label: null |
| | | } |
| | | ] |
| | | } |
| | | ], |
| | | /* 列表 */ |
| | | userList: [ |
| | | { |
| | | UDepartment: "0" /* 设备 */, |
| | | UName: "0" /* 告警名称 */, |
| | | UShenFenId: 0 /* 告警id */, |
| | | UEmployeeId: 0 /* 告警上限数值 */, |
| | | UTelephone: 0 /* 告警上限等级 */, |
| | | UMobilephone: 0 /* 告警上限使能 */, |
| | | alramDown: 0 /* 告警下限数值 */, |
| | | UMobDown: 0 /* 告警下限等级 */, |
| | | alramNub: 0 /* 告警下限使能 */, |
| | | cztime: 0 /* 操作 */ |
| | | } |
| | | ], |
| | | |
| | | /* 宽度 */ |
| | | w: document.documentElement.offsetWidth + "px", |
| | | h: `${document.documentElement.offsetHeight - 344} + 'px'`, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | let vm = this; |
| | | window.addEventListener('resize', function(){ |
| | | vm.w = document.documentElement.offsetWidth + 'px'; |
| | | }) |
| | | |
| | | }, |
| | | mounted() { |
| | | let vm = this; |
| | | window.addEventListener("resize", function() { |
| | | vm.w = document.documentElement.offsetWidth + "px"; |
| | | }); |
| | | this.searchDev(); /*查询设备 */ |
| | | this.alramId(); /* 查询告警ID */ |
| | | this.sears(); /* 查询告警下限数值 */ |
| | | }, |
| | | methods: { |
| | | //selectValue1改变事件 |
| | | changeSelect1() { |
| | | /* this.deviceTime(); |
| | | this.deviceName(); */ |
| | | /* 查询设备 */ |
| | | async searchDev() { |
| | | const sea = await devSearchs({ UNote: "" }); |
| | | let sesionsNews = JSON.parse(sea.data.result).data.map((item,index) => { |
| | | item.index = index + 1; |
| | | return { |
| | | value: item.index, |
| | | label: item.StationName }; |
| | | }); |
| | | this.sesionsNews = sesionsNews; |
| | | this.selectPlace1 = `全部(共${sesionsNews.length}种)`; |
| | | }, |
| | | /* 告警ID */ |
| | | async alramId() { |
| | | const ids = await devSeidd({ dev_id: "401900011" }); |
| | | /* console.log("ids", ids); */ |
| | | }, |
| | | /* 查询告警下限数值 */ |
| | | async sears() { |
| | | const numbe = await devSearnumbe({ dev_id: "401900011", alm_id: "0" }); |
| | | /* console.log("numbe", numbe); */ |
| | | const st = JSON.parse(numbe.data.result).data |
| | | this.userList =st.map(item =>{ |
| | | return{ |
| | | UDepartment:item.note, |
| | | UShenFenId:item.alm_id, |
| | | UEmployeeId:item.alm_high_coe, |
| | | UTelephone:item.alm_high_level, |
| | | alramDown:item.alm_low_coe, |
| | | UMobDown:item.alm_low_level |
| | | } |
| | | }) |
| | | |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | .dainchi { |
| | | width: 100%; |
| | | } |
| | |
| | | .rooms { |
| | | width: 100%; |
| | | } |
| | | |
| | | |
| | | </style> |