|
@@ -298,6 +298,7 @@ export default {
|
|
|
name = ["维保", "专维", "第三方检测"];
|
|
|
_.forEach(data, (item, index) => {
|
|
|
newData.push({
|
|
|
+ index: index,
|
|
|
id: index + 1,
|
|
|
name: name[index],
|
|
|
open: true,
|
|
@@ -350,10 +351,10 @@ export default {
|
|
|
name: item.name,
|
|
|
checked: "uncheck",
|
|
|
originData: _.map(item.data, _item => {
|
|
|
- _item.startDate = moment.unix((new Date().getTime() - 1000*60*60*24*7)/1000).format('YYYY-MM-DD HH:mm:ss');
|
|
|
- // _item.startDate = moment.unix(_item.startDate / 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
|
- _item.endDate = moment.unix(new Date().getTime()/1000).format('YYYY-MM-DD HH:mm:ss');
|
|
|
- // _item.endDate = moment.unix(_item.endDate / 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ // _item.startDate = moment.unix((new Date().getTime() - 1000*60*60*24*7)/1000).format('YYYY-MM-DD HH:mm:ss');
|
|
|
+ _item.startDate = moment.unix(_item.startDate / 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
|
+ // _item.endDate = moment.unix(new Date().getTime()/1000).format('YYYY-MM-DD HH:mm:ss');
|
|
|
+ _item.endDate = moment.unix(_item.endDate / 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
|
_item.description = _item.parentname;
|
|
|
return _item;
|
|
|
})
|
|
@@ -364,8 +365,9 @@ export default {
|
|
|
/**
|
|
|
* 展开收起节点
|
|
|
*/
|
|
|
- toggleNode(status) {
|
|
|
- console.log("status", status);
|
|
|
+ toggleNode(status, item) {
|
|
|
+ console.log("status", status, item);
|
|
|
+ window.gc.toggle(item.index);
|
|
|
},
|
|
|
/**
|
|
|
* 显示弹窗
|