|
@@ -1331,22 +1331,23 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
|
function success(data) {
|
|
|
- console.log(data);
|
|
|
let list = [];
|
|
|
list = data.data.data;
|
|
|
- if (data.data.lastManList.length > 0) {
|
|
|
+ if (data.data.lastmandata.length!=0) {
|
|
|
data.data.lastmandata.map((item, index) => {
|
|
|
item.id = index + 22;
|
|
|
});
|
|
|
- list.map((item, index) => {
|
|
|
- item.startTime = _this.$util.datetimeFormat(item.startTime);
|
|
|
- item.endTime = _this.$util.datetimeFormat(item.endTime);
|
|
|
- item.id = index + 1;
|
|
|
+ }
|
|
|
+ list.map((item, index) => {
|
|
|
+ item.startTime = _this.$util.datetimeFormat(item.startTime);
|
|
|
+ item.endTime = _this.$util.datetimeFormat(item.endTime);
|
|
|
+ item.id = index + 1;
|
|
|
+ if (data.data.lastmandata.length!=0) {
|
|
|
if (item.taskId == data.data.lastmandata[0].taskId) {
|
|
|
item.children = data.data.lastmandata;
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
+ }
|
|
|
+ });
|
|
|
_this.lables.data = list;
|
|
|
_this.abc = true;
|
|
|
}
|