完成签约之后直接添加人员,录入下发凭证
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

600 lines
22 KiB

webpackJsonp([35],{
/***/ "DWzc":
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ "KwGp":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/object/keys.js
var keys = __webpack_require__("fZjL");
var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/get-iterator.js
var get_iterator = __webpack_require__("BO1k");
var get_iterator_default = /*#__PURE__*/__webpack_require__.n(get_iterator);
// EXTERNAL MODULE: ./node_modules/babel-runtime/core-js/json/stringify.js
var stringify = __webpack_require__("mvHQ");
var stringify_default = /*#__PURE__*/__webpack_require__.n(stringify);
// EXTERNAL MODULE: ./src/api/index.js + 5 modules
var api = __webpack_require__("gyMJ");
// EXTERNAL MODULE: ./node_modules/axios/index.js
var axios = __webpack_require__("mtWM");
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
// EXTERNAL MODULE: ./src/utils/index.js
var utils = __webpack_require__("0xDb");
// EXTERNAL MODULE: ./node_modules/moment/moment.js
var moment = __webpack_require__("PJh5");
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/views/doorMagnetism/alarmRecord.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import XLSX from "xlsx";
/* harmony default export */ var alarmRecord = ({
inject: ['reload'],
name: "alarmRecord",
data: function data() {
return {
selectoption: [],
selectoptionValue: '',
alertType: [{
value: '0',
label: '心跳'
}, {
value: '1',
label: '开门报警'
}, {
value: '2',
label: '低电报警'
}, {
value: '4',
label: '防拆报警'
}, {
value: '5',
label: '设备故障报警'
}, {
value: '13',
label: '设备测试'
}, {
value: '17',
label: '关门报警'
}, {
value: '18',
label: '低电压恢复与上电开机'
}, {
value: '20',
label: '防拆恢复'
}, {
value: '21',
label: '故障恢复'
}, {
value: '30',
label: '添加子设备'
}, {
value: '31',
label: '删除子设备'
}, {
value: '170',
label: '设备ACK'
}],
searchForm: {
operateCode: '',
roomName: '',
time: '',
name: "",
deviceNum: '',
siteIds: '',
startBattery: '',
endBattery: '',
startTime: '',
endTime: ''
},
titleText: '设备未处理报警记录(IMEI:860709056256857)',
textarea: '', //批量处理备注
dialogVisible: false,
dialogVisible1: false,
input: '',
content: '切换单个/多个查询模式',
selected: true,
advancedQueryStatus: false,
advancedQueryText: '高级查询',
formInline: {
region: ''
},
tableData: [],
rowStyle: {
background: '#f8f9fa',
fontSize: '12px'
},
multipleSelection: [],
currentPage: 1,
batch: true,
pageTotal: 0,
pageSize: 10,
roomData: [],
checkNodeId: '',
selectRow: [],
userInfo: {
type: ''
}
};
},
created: function created() {
this.userInfo = JSON.parse(localStorage.getItem('info'));
this.selectoption = JSON.parse(localStorage.getItem('selectoption'));
this.selectoptionValue = localStorage.getItem('tenantId');
this.getReportList();
this.getlist();
},
mounted: function mounted() {},
computed: {},
methods: {
selectTenantId: function selectTenantId(e) {
localStorage.setItem('tenantId', e);
this.reload();
},
exportFun: function exportFun() {
var q = this.yz(this.searchForm);
var data = {
fileName: "报警记录",
q: stringify_default()(q)
};
Object(api["b" /* downloadPost */])(data, this.$api.deviceReport).then(function (res) {
var link = document.createElement("a");
var blob = new Blob([res], {
type: "application/vnd.ms-excel"
});
var objectUrl = URL.createObjectURL(blob);
link.href = objectUrl;
link.download = "报警记录.xlsx";
link.click();
URL.revokeObjectURL(objectUrl);
});
},
// 选择房源
checkNode: function checkNode(e) {
this.checkNodeId = e;
// var str=this.getCascaderObj([e[e.length-1]],this.roomData)
// console.log(str)
var selectRow = [];
// this.roomData.map((li,index)=>{
// if(li.id==e[0]){
// selectRow=li
// }
// })
selectRow = this.getChild(this.roomData, e[e.length - 1], []);
// console.log(arr)
// this.selectRow=selectRow
this.searchForm.siteIds = selectRow;
},
getChild: function getChild(nodes, item, arr) {
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = get_iterator_default()(nodes), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var el = _step.value;
if (el.id === item) {
arr.push(el.id);
if (el.children) {
this.childNodesDeep(el.children, arr);
}
} else if (el.children) {
this.getChild(el.children, item, arr);
}
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator.return) {
_iterator.return();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
return arr;
},
childNodesDeep: function childNodesDeep(nodes, arr) {
var _this = this;
if (nodes) nodes.forEach(function (ele) {
arr.push(ele.id);
if (ele.children) {
_this.childNodesDeep(ele.children, arr);
}
});
},
getCascaderObj: function getCascaderObj(val, opt) {
return val.map(function (value, index, array) {
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = get_iterator_default()(opt), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var itm = _step2.value;
if (itm.value == value) {
opt = itm.children;
return itm;
}
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2.return) {
_iterator2.return();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}
return null;
});
},
// 获取列表
getlist: function getlist() {
var _this2 = this;
var data = {};
Object(api["d" /* httpGet */])(data, this.$api.getPlaceList).then(function (res) {
if (res.data.list.length > 0) {
var arrdata = Object(utils["n" /* uniqueArray */])(res.data.list, "id");
_this2.roomData = Object(utils["p" /* ztreeToElementTree */])(arrdata, {});
}
});
},
reset: function reset() {
this.searchForm = {
operateCode: '',
roomName: '',
time: '',
name: "",
deviceNum: '',
siteIds: '',
startBattery: '',
endBattery: '',
startTime: '',
endTime: ''
};
},
yz: function yz(obj) {
var str = {};
keys_default()(obj).forEach(function (key) {
if (obj[key] != '' && key != 'roomName' && key != 'time') {
str[key] = obj[key];
}
});
return str;
},
getReportList: function getReportList() {
var _this3 = this;
var q = this.yz(this.searchForm);
var data = {
pageNum: this.currentPage,
pageSize: this.pageSize,
orderType: 'desc',
orderBy: "createAt",
q: stringify_default()(q)
};
Object(api["g" /* httpPost */])(data, this.$api.getReportList).then(function (res) {
if (res.success) {
res.data.list.map(function (li) {
li.createAt = moment_default()(li.createAt).format('YYYY/MM/DD HH:mm:ss');
});
_this3.tableData = res.data.list;
_this3.pageTotal = res.data.total;
} else {
_this3.$message.console.error("查询失败");
}
});
},
// 未处理记录打开
recordFun: function recordFun() {
this.dialogVisible1 = true;
},
// 未处理记录处理关闭
handleClose1: function handleClose1(done) {
done();
},
// 批量处理关闭
handleClose: function handleClose(done) {
done();
},
// 批量处理
batchProcessing: function batchProcessing() {
this.dialogVisible = true;
},
// 分页
handleSizeChange: function handleSizeChange(val) {
this.pageSize = val;
this.getReportList();
console.log("\u6BCF\u9875 " + val + " \u6761");
},
handleCurrentChange: function handleCurrentChange(val) {
this.currentPage = val;
this.getReportList();
console.log("\u5F53\u524D\u9875: " + val);
},
// 表头样式
rowClass: function rowClass(_ref) {
var row = _ref.row,
rowIndex = _ref.rowIndex;
return "background:#f8f9fa;color:#333;font-blod:none;font-size:12px;";
},
// 表格勾选
handleSelectionChange: function handleSelectionChange(val) {
if (val.length > 0) {
this.batch = false;
} else {
this.batch = true;
}
},
// 高级查询显示
advancedQueryFun: function advancedQueryFun() {
if (this.advancedQueryStatus) {
this.advancedQueryText = "高级查询";
this.advancedQueryStatus = false;
} else {
this.advancedQueryText = "同用查询";
this.advancedQueryStatus = true;
}
},
// 批量处理备注监控
textareaFun: function textareaFun(e) {
this.textarea = e;
},
// 输入监控
InputFun: function InputFun(e, name) {
if (name == 'startBattery' || name == 'endBattery') {
if (Number(e) < 0) {
e = 0;
}
if (Number(e) > 100) {
e = 100;
}
}
if (name == "time") {
this.searchForm.startTime = moment_default()(e[0]).format('YYYY-MM-DD HH:mm:ss');
this.searchForm.endTime = moment_default()(e[1]).format('YYYY-MM-DD HH:mm:ss');
}
this.searchForm[name] = e;
},
// 单个/多个查询切换
switchFun: function switchFun() {
this.selected = !this.selected;
}
}
});
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-e0592f90","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/doorMagnetism/alarmRecord.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"container"}},[_c('div',{staticClass:"alarmrecord"},[_c('el-card',{staticClass:"box-card"},[_c('el-row',{},[_c('div',{staticClass:"search"},[_c('div',{staticClass:"inputInline"},[(_vm.userInfo.type==0)?_c('el-select',{staticClass:"w150",staticStyle:{"width":"1.5rem"},attrs:{"size":"mini","placeholder":"请选择数据中心"},on:{"change":_vm.selectTenantId},model:{value:(_vm.selectoptionValue),callback:function ($$v) {_vm.selectoptionValue=$$v},expression:"selectoptionValue"}},_vm._l((_vm.selectoption),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1):_vm._e(),_vm._v(" "),_c('el-cascader',{staticClass:"w150",attrs:{"options":_vm.roomData,"popper-class":"cascadername","props":{ checkStrictly: true },"clearable":"","size":"mini"},on:{"change":_vm.checkNode},model:{value:(_vm.searchForm.roomName),callback:function ($$v) {_vm.$set(_vm.searchForm, "roomName", $$v)},expression:"searchForm.roomName"}}),_vm._v(" "),_c('el-input',{staticClass:"w150",attrs:{"clearable":true,"placeholder":"设备名称","size":"mini"},on:{"input":function($event){return _vm.InputFun($event,'deviceNum')}},model:{value:(_vm.searchForm.deviceNum),callback:function ($$v) {_vm.$set(_vm.searchForm, "deviceNum", $$v)},expression:"searchForm.deviceNum"}}),_vm._v(" "),_c('el-input',{staticClass:"w150",attrs:{"clearable":true,"placeholder":"IMEI","size":"mini"},on:{"input":function($event){return _vm.InputFun($event,'imei')}},model:{value:(_vm.searchForm.imei),callback:function ($$v) {_vm.$set(_vm.searchForm, "imei", $$v)},expression:"searchForm.imei"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"w250",attrs:{"size":"mini","type":"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{"input":function($event){return _vm.InputFun($event,'time')}},model:{value:(_vm.searchForm.time),callback:function ($$v) {_vm.$set(_vm.searchForm, "time", $$v)},expression:"searchForm.time"}}),_vm._v(" "),_c('div',{staticClass:"quantity"},[_vm._v("\n 电量: "),_c('el-input',{staticClass:"w50",attrs:{"placeholder":"","clearable":"","size":"mini"},on:{"input":function($event){return _vm.InputFun($event,'startBattery')}},model:{value:(_vm.searchForm.startBattery),callback:function ($$v) {_vm.$set(_vm.searchForm, "startBattery", $$v)},expression:"searchForm.startBattery"}},[_c('template',{slot:"append"},[_vm._v("%")])],2),_vm._v(" - "),_c('el-input',{staticClass:"w50",attrs:{"placeholder":"","clearable":"","size":"mini"},on:{"input":function($event){return _vm.InputFun($event,'endBattery')}},model:{value:(_vm.searchForm.endBattery),callback:function ($$v) {_vm.$set(_vm.searchForm, "endBattery", $$v)},expression:"searchForm.endBattery"}},[_c('template',{slot:"append"},[_vm._v("%")])],2)],1),_vm._v(" "),_c('div',{staticClass:"quantity"},[_c('el-select',{staticClass:"w150",attrs:{"clearable":"","placeholder":"报警类型","size":"mini"},on:{"input":function($event){return _vm.InputFun($event,'operateCode')}},model:{value:(_vm.searchForm.operateCode),callback:function ($$v) {_vm.$set(_vm.searchForm, "operateCode", $$v)},expression:"searchForm.operateCode"}},_vm._l((_vm.alertType),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.label,"value":item.value}})}),1)],1)],1),_vm._v(" "),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.reset}},[_vm._v("重置")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.getReportList}},[_vm._v("查询")])],1)]),_vm._v(" "),_c('el-row',{staticClass:"marginTop"},[_c('div',{staticClass:"tablecell"},[_c('el-row',{staticClass:"floatRight"},[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.exportFun}},[_vm._v("导出")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":true,"tooltip-effect":"dark","header-cell-style":_vm.rowClass,"cell-style":{fontSize:'12px'},"stripe":"","height":"590"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"prop":"deviceNum","label":"设备名称","width":"200"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"房间名称","width":"200"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"imei","label":"IMEI","width":"200"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"imsi","label":"IMSI","width":"200"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"battery","label":"电池电量"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"voltage","label":"电池电压"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"rssi","label":"信号强度"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operateCode","label":"报警类型"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.operateCode==0)?_c('span',[_vm._v("心跳")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==1)?_c('span',[_vm._v("开门报警")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==2)?_c('span',[_vm._v("低电报警")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==4)?_c('span',[_vm._v("防拆报警")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==5)?_c('span',[_vm._v("设备故障报警")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==13)?_c('span',[_vm._v("设备测试")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==17)?_c('span',[_vm._v("关门报警")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==18)?_c('span',[_vm._v("低电压恢复与上电开机")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==20)?_c('span',[_vm._v("防拆恢复")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==21)?_c('span',[_vm._v("故障恢复")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==170)?_c('span',[_vm._v("设备ACK")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==30)?_c('span',[_vm._v("添加子设备")]):_vm._e(),_vm._v(" "),(scope.row.operateCode==31)?_c('span',[_vm._v("删除子设备")]):_vm._e()]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createAt","label":"最近报警时间","width":"200"}})],1)],1),_vm._v(" "),_c('div',{staticClass:"page"},[_c('el-pagination',{attrs:{"current-page":_vm.currentPage,"page-sizes":[10, 20, 30, 100],"page-size":_vm.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.pageTotal},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)])],1),_vm._v(" "),_c('el-dialog',{attrs:{"title":"报警处理","visible":_vm.dialogVisible,"width":"30%","before-close":_vm.handleClose},on:{"update:visible":function($event){_vm.dialogVisible=$event}}},[_c('el-input',{attrs:{"type":"textarea","rows":2,"clearable":true,"placeholder":"备注"},on:{"input":_vm.textareaFun},model:{value:(_vm.textarea),callback:function ($$v) {_vm.textarea=$$v},expression:"textarea"}}),_vm._v(" "),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogVisible = false}}},[_vm._v("取 消")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary"},on:{"click":function($event){_vm.dialogVisible = false}}},[_vm._v("处 理")])],1)],1),_vm._v(" "),_c('el-dialog',{staticClass:"dialogcontent",attrs:{"title":_vm.titleText,"visible":_vm.dialogVisible1,"width":"60%","before-close":_vm.handleClose1},on:{"update:visible":function($event){_vm.dialogVisible1=$event}}},[_c('div',{staticClass:"tablecell"},[_c('el-row',{staticClass:"floatRight"},[_c('el-button',{attrs:{"type":"danger","size":"mini"},on:{"click":_vm.batchProcessing}},[_vm._v("一键处理处理全部报警")]),_vm._v(" "),_c('el-button',{attrs:{"type":"primary","size":"mini"}},[_vm._v("导出")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticStyle:{"width":"100%"},attrs:{"data":_vm.tableData,"border":true,"tooltip-effect":"dark","header-cell-style":_vm.rowClass,"cell-style":{fontSize:'12px'},"stripe":"","height":"400"},on:{"selection-change":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{"type":"selection","width":"55"}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"日期","width":"120"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(_vm._s(scope.row.date))]}}])}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"name","label":"姓名","width":"120"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"address","label":"地址","show-overflow-tooltip":""}}),_vm._v(" "),_c('el-table-column',{attrs:{"label":"操作","width":"80"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-button',{attrs:{"type":"primary","size":"mini"}},[_vm._v("处理")])]}}])})],1)],1),_vm._v(" "),_c('div',{staticClass:"page"},[_c('el-pagination',{attrs:{"current-page":_vm.currentPage,"page-sizes":[10, 20, 30, 100],"page-size":_vm.pageSize,"layout":"total, sizes, prev, pager, next, jumper","total":_vm.pageTotal},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)])],1)])}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var doorMagnetism_alarmRecord = (esExports);
// CONCATENATED MODULE: ./src/views/doorMagnetism/alarmRecord.vue
function injectStyle (ssrContext) {
__webpack_require__("DWzc")
}
var normalizeComponent = __webpack_require__("VU/8")
/* script */
/* template */
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-e0592f90"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
alarmRecord,
doorMagnetism_alarmRecord,
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
/* harmony default export */ var views_doorMagnetism_alarmRecord = __webpack_exports__["default"] = (Component.exports);
/***/ })
});