完成签约之后直接添加人员,录入下发凭证
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.
 
 
 
 
 
 

935 lines
37 KiB

webpackJsonp([46],{
/***/ "mavR":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
// 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: ./src/utils/util.js
var util = __webpack_require__("oFuF");
// EXTERNAL MODULE: ./src/utils/index.js
var utils = __webpack_require__("0xDb");
// EXTERNAL MODULE: ./src/utils/equipment.js
var equipment = __webpack_require__("ObZk");
// 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/DeviceFeedbackLog.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var DeviceFeedbackLog = ({
inject: ['reload'],
name: "warningLog",
data: function data() {
return {
selectoption: [],
selectoptionValue: '',
query: {
command: "",
deviceNum: "",
operModul: "",
result: '',
cardName: '',
operateName: '',
roomId: '',
roomName: '',
roomIds: '',
startTime: '',
endTime: ''
},
pageNum: 1,
pageSize: 10,
pageIndex: 1,
query1: {
command: "",
deviceNum: "",
status: ""
},
activeName: "first",
tableData: [],
tableData1: [],
multipleSelection: [],
delList: [],
editVisible: false,
pageTotal: 0,
pageTotal1: 0,
form: {},
idx: -1,
id: -1,
AboutDevice: [],
userInfo: {
type: ''
},
DeviceFeedbackLog: [],
options: [],
checkNodeId: []
};
},
beforeCreate: function beforeCreate() {
// var tenantId = JSON.parse(localStorage.getItem('tenantId'))
// if (tenantId == 400) {
// this.$store.commit('defaultsettenantid')
// }
},
created: function created() {
this.getalllist();
this.DeviceFeedbackLog = this.$MANUFACTURER.DeviceFeedbackLog;
this.userInfo = JSON.parse(localStorage.getItem('info'));
this.getAboutDevice();
this.selectoption = JSON.parse(localStorage.getItem('selectoption'));
this.selectoptionValue = localStorage.getItem('tenantId');
},
mounted: function mounted() {
document.addEventListener('keydown', this.keyDown);
this.getOperates();
},
methods: {
//获取房源筛选列表
getalllist: function getalllist() {
var _this = this;
var data = {};
Object(api["d" /* httpGet */])(data, this.$api.getTree).then(function (res) {
var list = res.data.sort(function (pre, cur) {
return pre.id - cur.id;
});
var array = Object(utils["n" /* uniqueArray */])(list, "id");
_this.options = Object(utils["p" /* ztreeToElementTree */])(array, {});
});
},
// 选择房源
checkNode: function checkNode(e) {
console.log(e);
// this.checkNodeId = e[e.length-1]
var options = this.options;
if (e) {
var arr = this.getId(options, e[e.length - 1]);
var listarr = [arr[0]];
var obj = this.getNodeId(listarr);
console.log(obj);
this.checkNodeId = obj;
this.query.roomIds = obj;
}
},
getParentId: function getParentId(list, id) {
for (var i in list) {
if (list[i].id == id) {
return [list[i]];
}
if (list[i].children) {
var node = this.getParentId(list[i].children, id);
if (node !== undefined) {
return node.concat(list[i]);
}
}
}
},
getId: function getId(list, id) {
for (var i in list) {
if (list[i].id == id) {
return [list[i]];
}
if (list[i].children) {
var node = this.getParentId(list[i].children, id);
if (node !== undefined) {
return node;
}
}
}
},
getNodeId: function getNodeId(list) {
var newNodeId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
for (var i in list) {
newNodeId.push(list[i].id);
if (list[i].children) {
this.getNodeId(list[i].children, newNodeId);
}
}
return newNodeId;
},
keyDown: function keyDown(e) {
//如果是回车则执行登录方法
if (e.keyCode == 13) {
if (this.$route.name == 'DeviceFeedbackLog') {
if (!this.drawer) {
this.handleSearch();
}
}
}
},
selectTenantId: function selectTenantId(e) {
localStorage.setItem('tenantId', e);
this.reload();
},
// 取消下发
cancelDistribution: function cancelDistribution(index, row) {
var _this2 = this;
// var data = [row.id]
// httpPost(data, this.$api.cancelDistribution).then(res => {
// if (res.success) {
// this.$message.success("取消成功")
// } else {
// this.$message.error("取消失败")
// }
// })
Object(api["d" /* httpGet */])("", "/v1/device/editStatus/bySerial/" + 703 + "/" + row.serial).then(function (res) {
if (res.code == 200) {
_this2.$message.success("操作成功");
} else {
_this2.$message.error("操作失败");
}
});
},
// 重新下发
reissueMethods: function reissueMethods(index, row) {
var _this3 = this;
var data = {
pageNum: 0,
pageSize: 0,
orderBy: "create_at desc",
q: {
serial: row.serial
}
};
Object(api["d" /* httpGet */])(data, this.$api.getCertificates).then(function (res) {
if (res.code == 200) {
var dataresult = util["a" /* default */].zlib_unzip(res.data);
if (res.data.total > 0) {
var dataOne = {
pageNum: 0,
pageSize: 0,
q: stringify_default()({
deviceNum: dataresult[0].deviceNum
})
};
Object(api["g" /* httpPost */])(dataOne, _this3.$api.getDeviceItems).then(function (resOne) {
if (resOne.code == 200) {
if (resOne.data.total > 0) {
_this3.sendAginMethods(resOne.data.list[0], dataresult[0], row);
} else {
_this3.$message.error("未发现对应门锁,操作失败");
}
} else {
_this3.$message.error("操作失败");
}
});
} else {
_this3.$message.error("未发现对应凭证记录,操作失败");
}
} else {
_this3.$message.error("操作失败");
}
});
},
sendAginMethods: function sendAginMethods(deviceData, certificates, row) {
var _this4 = this;
this.$confirm("是否重新下发!", "提示", {
type: "warning"
}).then(function () {
if (deviceData.manufactureId == 101) {
var content = JSON.parse(certificates.content);
if (row.command == 6226) {
var str1 = {
imei: certificates.imei,
deviceNum: certificates.deviceNum,
userTelephone: content.userTelephone,
userPassword: content.userPassword,
password: content.password,
operateMode: 26,
order: 6226,
passwordStartTime: content.passwordStartTime,
passwordEndTime: content.passwordEndTime,
is: false,
cardName: row.cardName,
roomName: row.roomName
};
Object(api["g" /* httpPost */])(str1, _this4.$api.getDeviceOperateUserInfo).then(function (res2) {
if (res2.code == 200) {
_this4.$message.success("发送成功");
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: res2.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6207) {
var str1 = {
imei: certificates.imei,
deviceNum: certificates.deviceNum,
userTelephone: content.userTelephone,
userPassword: content.userPassword,
password: content.password,
operateMode: 7,
order: 6207,
passwordStartTime: content.passwordStartTime,
passwordEndTime: content.passwordEndTime,
is: false,
cardName: row.cardName,
roomName: row.roomName
};
Object(api["g" /* httpPost */])(str1, _this4.$api.getDeviceOperateUserInfo).then(function (res2) {
if (res2.code == 200) {
_this4.$message.success("发送成功");
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: res2.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6216) {
var fpId = new Date();
var str1 = {
imei: certificates.imei,
deviceNum: certificates.deviceNum,
fingerprintAlias: content.fingerprintAlias,
length: content.fingerprint.length / 2,
fpTimeId: fpId.getTime(),
fingerprint: content.fingerprint,
userTelephone: content.userTelephone,
userPassword: content.userPassword,
password: content.password,
operateMode: 16,
order: 6216,
type: 1,
fingerprintStartTime: content.passwordStartTime,
fingerprintEndTime: content.passwordEndTime,
is: false,
cardName: row.cardName,
roomName: row.roomName
};
Object(api["g" /* httpPost */])(str1, _this4.$api.fingerprintTransfer).then(function (res2) {
if (res2.code == 200) {
_this4.$message.success("发送成功");
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: res2.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6213) {
var str1 = {
imei: certificates.imei,
deviceNum: certificates.deviceNum,
userTelephone: content.userTelephone,
userPassword: content.userPassword,
password: content.password,
operateMode: 13,
order: 6213,
type: 2,
passwordStartTime: content.passwordStartTime,
passwordEndTime: content.passwordEndTime,
is: false,
cardName: row.cardName,
roomName: row.roomName
};
Object(api["g" /* httpPost */])(str1, _this4.$api.getDeviceOperateUserInfo).then(function (res2) {
if (res2.code == 200) {
_this4.$message.success("发送成功");
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: res2.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6210) {
var str1 = {
imei: certificates.imei,
deviceNum: certificates.deviceNum,
userTelephone: content.userTelephone,
userPassword: content.userPassword,
password: content.password,
operateMode: 10,
order: 6210,
type: 3,
passwordStartTime: content.passwordStartTime,
passwordEndTime: content.passwordEndTime,
is: false,
cardName: row.cardName,
roomName: row.roomName
};
Object(api["g" /* httpPost */])(str1, _this4.$api.getDeviceOperateUserInfo).then(function (res2) {
if (res2.code == 200) {
_this4.$message.success("发送成功");
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: res2.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
}
} else if (deviceData.manufactureId == 201 || deviceData.manufactureId == 221) {
var content = JSON.parse(certificates.content);
if (row.command == 6226) {
var data = {
lockerId: certificates.deviceNum,
imei: certificates.imei,
lockerUserId: content.userPassword,
keyId: content.userPassword,
role: 0,
action: 1,
order: 6226,
cardName: row.cardName,
roomName: row.roomName
};
equipment["a" /* default */].addUserToLock(data.lockerId, data.imei, data.lockerUserId, data.role, data.action, data.order, data.cardName, data.roomName, function (callback1) {
if (callback1.code == 200) {
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: callback1.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6207) {
var str = {
lockerId: certificates.deviceNum,
imei: certificates.imei,
order: 6207,
passwordCount: 255,
lockerUserId: content.userPassword,
keyId: content.userPassword,
startTime: content.passwordStartTime,
endTime: content.passwordEndTime,
action: 1,
password: content.password,
cardName: row.cardName,
roomName: row.roomName
};
equipment["a" /* default */].addForeverPassword(str.lockerId, str.imei, str.lockerUserId, 1, str.password, 255, str.startTime, str.endTime, 6207, str.cardName, str.roomName, function (callback1) {
if (callback1.success) {
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: callback1.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6216) {
var str = {
lockerId: certificates.deviceNum,
imei: certificates.imei,
order: 6216,
lockerUserId: content.userPassword,
keyId: content.userPassword,
fingerType: 0,
file: content.fingerprint,
startTime: content.passwordStartTime,
endTime: content.passwordEndTime,
cardName: row.cardName,
roomName: row.roomName
};lockId, _imei, _userId, _fingerType, _file, _startTime, _endTime, _cardName, _roomName, callback;
equipment["a" /* default */].addFingerPrints(str.lockerId, str.imei, str.lockerUserId, str.fingerType, str.file, str.startTime, str.endTime, str.cardName, str.roomName, function (callback1) {
if (callback1.success) {
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: callback1.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6213) {
var data3 = {
lockerId: certificates.deviceNum,
imei: certificates.imei,
lockerUserId: content.userPassword,
keyId: content.userPassword,
action: 1,
taskStatus: 1,
order: 6213,
startTime: content.passwordStartTime,
endTime: content.passwordEndTime,
cardType: 36,
cardName: row.cardName,
roomName: row.roomName,
cardNo: content.password
};
equipment["a" /* default */].RfCardRegister(data3.lockerId, data3.imei, data3.keyId, data3.action, data3.taskStatus, data3.cardNo, data3.cardType, data3.startTime, data3.endTime, data3.order, data3.cardName, data3.roomName, function (callback1) {
if (callback1.success) {
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: callback1.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
} else if (row.command == 6210) {
var data3 = {
lockerId: certificates.deviceNum,
imei: certificates.imei,
lockerUserId: content.userPassword,
keyId: content.userPassword,
action: 1,
taskStatus: 1,
order: 6210,
startTime: content.passwordStartTime,
endTime: content.passwordEndTime,
cardType: 50,
cardName: row.cardName,
roomName: row.roomName,
cardNo: content.password
};
equipment["a" /* default */].RfCardRegister(data3.lockerId, data3.imei, data3.keyId, data3.action, data3.taskStatus, data3.cardNo, data3.cardType, data3.startTime, data3.endTime, data3.order, data3.cardName, data3.roomName, function (callback1) {
if (callback1.success) {
var datafidOne = {
cardId: certificates.cardId,
content: certificates.content, //operateMode:NFC-10、把人员添加到凭证-1
type: certificates.type,
startTime: certificates.startTime,
endTime: certificates.endTime,
serial: callback1.data.serialNumber
};
Object(api["g" /* httpPost */])(datafidOne, _this4.$api.addCertificates).then(function (resThree) {
if (resThree.code == 200) {
_this4.$message.success("重新下发成功");
_this4.handleSearch();
}
});
}
});
}
}
});
},
// 重置
resting: function resting() {
this.query = {
command: "",
deviceNum: "",
result: "",
cardName: '',
operateName: '',
roomName: '',
roomId: '',
roomIds: '',
startTime: '',
endTime: ''
};
this.handleSearch();
},
// 查询和房间相关的设备
getAboutDevice: function getAboutDevice() {
var _this5 = this;
var data = {
pageNum: 0,
pageSize: 0,
q: stringify_default()({
lockType: 1
})
};
Object(api["g" /* httpPost */])(data, this.$api.getDeviceItems).then(function (res) {
_this5.AboutDevice = res.data.list;
});
},
time: function time() {
var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : +new Date();
var date = new Date(time + 8 * 3600 * 1000); // 增加8小时
return date.toJSON().substr(0, 19).replace("T", " ");
},
searchParaProcess: function searchParaProcess(obj) {
var myObj = obj;
for (var i in myObj) {
if (myObj[i] == '' || myObj[i] == null || myObj[i] == undefined || myObj[i] == 'Invalid date' || i == 'roomId') {
delete myObj[i];
}
}
return stringify_default()(myObj);
},
// 获取操作日志
getOperates: function getOperates() {
var _this6 = this;
var data = {
pageNum: 1,
pageSize: this.pageSize,
orderType: "desc",
orderBy: "createTime"
};
Object(api["g" /* httpPost */])(data, this.$api.getDeviceResult).then(function (res) {
var AboutDevice = _this6.AboutDevice;
var datalist = util["a" /* default */].zlib_unzip(res.data);
datalist.map(function (li) {
if ((li.command == 6204 || li.command == 6207 || li.command == 6210 || li.command == 6213) && li.result == 702) {
li['reStatus'] = true;
} else {
li['reStatus'] = false;
}
li.createTime = _this6.time(+new Date(li.createTime));
var resultArr = AboutDevice.filter(function (_item) {
return _item.imei == li.imei;
})[0];
li['operationType'] = '';
var operationType = _this6.DeviceFeedbackLog.filter(function (item) {
return item.code == li.command;
})[0];
if (operationType) {
li['operationType'] = operationType.desc;
}
li['statusText'] = util["a" /* default */].statusCode(li.result);
if (resultArr) {
li.roomId = resultArr.id;
li.roomName = resultArr.roomName;
}
if (li.command == 61101) {
var commandContent = JSON.parse(li.content);
if (commandContent.opendDoorType == 1) {
li.operationType = li.operationType + '-开启';
} else if (commandContent.opendDoorType == 0) {
li.operationType = li.operationType + '-关闭';
}
}
});
console.log(datalist);
_this6.tableData = datalist;
_this6.pageTotal = res.data.total;
});
},
// 触发搜索按钮
handleSearch: function handleSearch() {
var _this7 = this;
var q = JSON.parse(stringify_default()(this.query));
q.startTime = moment_default()(q.startTime).format("YYYY-MM-DD HH:mm:ss");
q.endTime = moment_default()(q.endTime).format("YYYY-MM-DD HH:mm:ss");
var data = {
pageNum: 1,
pageSize: this.pageSize,
q: this.searchParaProcess(q),
orderType: "desc",
orderBy: "createTime"
};
this.pageNum = 1;
Object(api["g" /* httpPost */])(data, this.$api.getDeviceResult).then(function (res) {
var AboutDevice = _this7.AboutDevice;
var dataOne = util["a" /* default */].zlib_unzip(res.data);
console.log(dataOne);
dataOne.map(function (li) {
if ((li.command == 6204 || li.command == 6207 || li.command == 6210 || li.command == 6213) && li.result == 702) {
li['reStatus'] = true;
} else {
li['reStatus'] = false;
}
li['operationType'] = '';
var operationType = _this7.DeviceFeedbackLog.filter(function (item) {
return item.code == li.command;
})[0];
if (operationType) {
li['operationType'] = operationType.desc;
}
if (li.command == 61101) {
var commandContent = JSON.parse(li.content);
if (commandContent.opendDoorType == 1) {
li.operationType = li.operationType + '-开启';
} else if (commandContent.opendDoorType == 0) {
li.operationType = li.operationType + '-关闭';
}
}
li['statusText'] = util["a" /* default */].statusCode(li.result);
li.createTime = _this7.time(+new Date(li.createTime));
var resultArr = AboutDevice.filter(function (_item) {
return _item.imei == li.imei;
})[0];
if (resultArr) {
li.roomId = resultArr.id;
li.roomName = resultArr.roomName;
}
});
_this7.tableData = dataOne;
_this7.pageTotal = res.data.total;
// this.$store.commit('increment', 1)
});
// this.$set(this.query, "pageIndex", 1);
},
getSearchList: function getSearchList() {
var _this8 = this;
var q = JSON.parse(stringify_default()(this.query));
// var q = {
// command: this.query.command,
// deviceNum: this.query.deviceNum,
// result: this.query.result
// };
q.startTime = moment_default()(q.startTime).format("YYYY-MM-DD HH:mm:ss");
q.endTime = moment_default()(q.endTime).format("YYYY-MM-DD HH:mm:ss");
var data = {
pageNum: this.pageNum,
pageSize: this.pageSize,
q: this.searchParaProcess(q),
orderType: "desc",
orderBy: "createTime"
};
Object(api["g" /* httpPost */])(data, this.$api.getDeviceResult).then(function (res) {
var AboutDevice = _this8.AboutDevice;
var dataOne = util["a" /* default */].zlib_unzip(res.data);
dataOne.map(function (li) {
li['statusText'] = util["a" /* default */].statusCode(li.result);
var resultArr = AboutDevice.filter(function (_item) {
return _item.imei == li.imei;
})[0];
li.createTime = _this8.time(+new Date(li.createTime));
if ((li.command == 6204 || li.command == 6207 || li.command == 6210 || li.command == 6213) && li.result == 702) {
li['reStatus'] = true;
} else {
li['reStatus'] = false;
}
if (resultArr) {
li.roomId = resultArr.id;
li.roomName = resultArr.roomName;
}
li['operationType'] = '';
var operationType = _this8.DeviceFeedbackLog.filter(function (item) {
return item.code == li.command;
})[0];
if (operationType) {
li['operationType'] = operationType.desc;
}
if (li.command == 61101) {
var commandContent = JSON.parse(li.content);
if (commandContent.opendDoorType == 1) {
li.operationType = li.operationType + '-开启';
} else if (commandContent.opendDoorType == 0) {
li.operationType = li.operationType + '-关闭';
}
}
});
_this8.tableData = dataOne;
_this8.pageTotal = res.data.total;
});
},
// 分页导航
handlePageChange: function handlePageChange(val) {
this.pageNum = val;
this.getSearchList();
},
handleSizeChange: function handleSizeChange(val) {
this.pageNum = 1;
this.pageSize = val;
this.getSearchList();
}
}
});
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-84c1bc0e","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/DeviceFeedbackLog.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"container"},[_c('div',{staticClass:"handle-box"},[_c('selectoption'),_vm._v(" "),_c('el-cascader',{staticClass:"handle-input mb-1",attrs:{"options":_vm.options,"size":"small","props":{ checkStrictly: true },"clearable":true},on:{"change":_vm.checkNode},model:{value:(_vm.query.roomId),callback:function ($$v) {_vm.$set(_vm.query, "roomId", $$v)},expression:"query.roomId"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mr10 mb-1",attrs:{"size":"small","placeholder":"房间名称","clearable":true},model:{value:(_vm.query.roomName),callback:function ($$v) {_vm.$set(_vm.query, "roomName", $$v)},expression:"query.roomName"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"handle-input mr10 mb-1",attrs:{"size":"small","type":"datetime","clearable":"","placeholder":"选择开始日期时间","default-time":"00:00:00"},model:{value:(_vm.query.startTime),callback:function ($$v) {_vm.$set(_vm.query, "startTime", $$v)},expression:"query.startTime"}}),_vm._v(" "),_c('el-date-picker',{staticClass:"handle-input mr10 mb-1",attrs:{"size":"small","type":"datetime","clearable":"","placeholder":"选择结束日期时间","default-time":"00:00:00"},model:{value:(_vm.query.endTime),callback:function ($$v) {_vm.$set(_vm.query, "endTime", $$v)},expression:"query.endTime"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mb-1 mr10",attrs:{"size":"small","placeholder":"设备号","clearable":true},model:{value:(_vm.query.deviceNum),callback:function ($$v) {_vm.$set(_vm.query, "deviceNum", $$v)},expression:"query.deviceNum"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mb-1 mr10",attrs:{"size":"small","placeholder":"租客","clearable":true},model:{value:(_vm.query.cardName),callback:function ($$v) {_vm.$set(_vm.query, "cardName", $$v)},expression:"query.cardName"}}),_vm._v(" "),_c('el-input',{staticClass:"handle-input mb-1 mr10",attrs:{"size":"small","placeholder":"操作员","clearable":true},model:{value:(_vm.query.operateName),callback:function ($$v) {_vm.$set(_vm.query, "operateName", $$v)},expression:"query.operateName"}}),_vm._v(" "),_c('el-select',{staticClass:"handle-select mb-1 mr10",attrs:{"size":"small","placeholder":"操作类型","clearable":true},model:{value:(_vm.query.command),callback:function ($$v) {_vm.$set(_vm.query, "command", $$v)},expression:"query.command"}},_vm._l((_vm.DeviceFeedbackLog),function(item,index){return _c('el-option',{key:item.code,attrs:{"label":item.desc,"value":item.code}})}),1),_vm._v(" "),_c('el-select',{staticClass:"handle-select mr10 mb-1",attrs:{"size":"small","placeholder":"状态","clearable":true},model:{value:(_vm.query.result),callback:function ($$v) {_vm.$set(_vm.query, "result", $$v)},expression:"query.result"}},[_c('el-option',{key:"0",attrs:{"label":"下发中","value":"0"}}),_vm._v(" "),_c('el-option',{key:"1",attrs:{"label":"下发成功","value":"1"}}),_vm._v(" "),_c('el-option',{key:"702",attrs:{"label":"下发失败","value":"702"}}),_vm._v(" "),_c('el-option',{key:"704",attrs:{"label":"下发超时","value":"704"}})],1),_vm._v(" "),_c('el-button',{staticClass:"mb-1",staticStyle:{"background":"#FA8E00","border":"none"},attrs:{"type":"primary","size":"small","icon":"el-icon-search"},on:{"click":_vm.handleSearch}},[_vm._v("搜索")]),_vm._v(" "),_c('el-button',{staticClass:"mb-1",staticStyle:{"background":"#FA8E00","border":"none"},attrs:{"type":"primary","size":"small"},on:{"click":_vm.resting}},[_vm._v("重置")])],1),_vm._v(" "),_c('el-table',{ref:"multipleTable",staticClass:"table",attrs:{"data":_vm.tableData,"border":"","header-cell-class-name":"table-header","height":"600"}},[_c('el-table-column',{attrs:{"prop":"deviceNum","label":"设备号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"roomName","label":"房间名称"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operationType","label":"操作类型"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"statusText","label":"命令状态"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"cardName","label":"锁用户"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"operateName","label":"操作员"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"serial","label":"流水号"}}),_vm._v(" "),_c('el-table-column',{attrs:{"prop":"createTime","label":"生效时间"}}),_vm._v(" "),(_vm.userInfo.type==0)?_c('el-table-column',{attrs:{"prop":"createTime","label":"操作"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.result==704 && scope.row.serial)?_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.cancelDistribution(scope.$index,scope.row)}}},[_vm._v("作废")]):_vm._e(),_vm._v(" "),(scope.row.result==704 && (scope.row.command==6216 || scope.row.command==6210 || scope.row.command==6207 || scope.row.command==6213))?_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.reissueMethods(scope.$index,scope.row)}}},[_vm._v("重新下发")]):_vm._e()]}}],null,false,3164655944)}):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"pagination"},[_c('el-pagination',{attrs:{"background":"","layout":"total, sizes, prev, pager, next, jumper","current-page":_vm.pageNum,"page-size":_vm.pageSize,"total":_vm.pageTotal},on:{"current-change":_vm.handlePageChange,"size-change":_vm.handleSizeChange}})],1)],1)])}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var views_DeviceFeedbackLog = (esExports);
// CONCATENATED MODULE: ./src/views/DeviceFeedbackLog.vue
function injectStyle (ssrContext) {
__webpack_require__("tcpz")
}
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-84c1bc0e"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
DeviceFeedbackLog,
views_DeviceFeedbackLog,
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
__vue_module_identifier__
)
/* harmony default export */ var src_views_DeviceFeedbackLog = __webpack_exports__["default"] = (Component.exports);
/***/ }),
/***/ "tcpz":
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ })
});