|
@@ -135,7 +135,7 @@ var render = function () {
|
|
|
(_vm.device_type == 3 || _vm.device_type == 7) && _vm.$QueryPermission(325)
|
|
(_vm.device_type == 3 || _vm.device_type == 7) && _vm.$QueryPermission(325)
|
|
|
var l0 = _vm.__map(_vm.equipArr[_vm.active].list, function (item, index) {
|
|
var l0 = _vm.__map(_vm.equipArr[_vm.active].list, function (item, index) {
|
|
|
var $orig = _vm.__get_orig(item)
|
|
var $orig = _vm.__get_orig(item)
|
|
|
- var f0 = _vm._f("timeFormat")(item.addtime)
|
|
|
|
|
|
|
+ var f0 = _vm._f("timeFormat")(item.uptime)
|
|
|
return {
|
|
return {
|
|
|
$orig: $orig,
|
|
$orig: $orig,
|
|
|
f0: f0,
|
|
f0: f0,
|
|
@@ -408,6 +408,9 @@ var _default = {
|
|
|
_this2.loadingtf = false;
|
|
_this2.loadingtf = false;
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
_this2.equipArr[act].list = [].concat((0, _toConsumableArray2.default)(_this2.equipArr[act].list), (0, _toConsumableArray2.default)(res.data));
|
|
_this2.equipArr[act].list = [].concat((0, _toConsumableArray2.default)(_this2.equipArr[act].list), (0, _toConsumableArray2.default)(res.data));
|
|
|
|
|
+ _this2.equipArr[act].list.forEach(function (item) {
|
|
|
|
|
+ item.uptime = item.addtime;
|
|
|
|
|
+ });
|
|
|
for (i = 0; i < _this2.equipArr[act].list.length; i++) {
|
|
for (i = 0; i < _this2.equipArr[act].list.length; i++) {
|
|
|
if (_this2.equipArr[act].list[i].device_expire == 0) {
|
|
if (_this2.equipArr[act].list[i].device_expire == 0) {
|
|
|
_this2.equipArr[act].list[i]['device_expiretext'] = "未到期";
|
|
_this2.equipArr[act].list[i]['device_expiretext'] = "未到期";
|
|
@@ -418,7 +421,7 @@ var _default = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
console.log(_this2.equipArr[act].list);
|
|
console.log(_this2.equipArr[act].list);
|
|
|
- case 9:
|
|
|
|
|
|
|
+ case 10:
|
|
|
case "end":
|
|
case "end":
|
|
|
return _context.stop();
|
|
return _context.stop();
|
|
|
}
|
|
}
|
|
@@ -516,11 +519,8 @@ var _default = {
|
|
|
_this5.loadingtf = false;
|
|
_this5.loadingtf = false;
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
_this5.equipArr[act].list = [].concat((0, _toConsumableArray2.default)(_this5.equipArr[act].list), (0, _toConsumableArray2.default)(res.data));
|
|
_this5.equipArr[act].list = [].concat((0, _toConsumableArray2.default)(_this5.equipArr[act].list), (0, _toConsumableArray2.default)(res.data));
|
|
|
- _this5.equipArr[act].list.forEach(function (item) {
|
|
|
|
|
- item.addtime = item.uptime;
|
|
|
|
|
- });
|
|
|
|
|
console.log(_this5.equipArr[act].list);
|
|
console.log(_this5.equipArr[act].list);
|
|
|
- case 9:
|
|
|
|
|
|
|
+ case 8:
|
|
|
case "end":
|
|
case "end":
|
|
|
return _context4.stop();
|
|
return _context4.stop();
|
|
|
}
|
|
}
|
|
@@ -538,7 +538,8 @@ var _default = {
|
|
|
url: "./search?device_id=" + this.device_id
|
|
url: "./search?device_id=" + this.device_id
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- itemClick: function itemClick(item) {
|
|
|
|
|
|
|
+ itemClick: function itemClick(itemOld) {
|
|
|
|
|
+ var item = JSON.parse(JSON.stringify(itemOld));
|
|
|
item.type = this.equipArr[this.active].type;
|
|
item.type = this.equipArr[this.active].type;
|
|
|
var data = JSON.stringify(item);
|
|
var data = JSON.stringify(item);
|
|
|
if (item.type == 10) {
|
|
if (item.type == 10) {
|