Browse Source

任务由需求生产

master
陈裕财 4 years ago
parent
commit
e6626cf8cf
  1. 28
      src/views/xm/core/xmTask/XmTaskMng.vue

28
src/views/xm/core/xmTask/XmTaskMng.vue

@ -1613,6 +1613,7 @@ export default {
i.id = i.menuId; i.id = i.menuId;
i.parentTaskid = i.pmenuId; i.parentTaskid = i.pmenuId;
i.name = i.menuName; i.name = i.menuName;
i.ntype="1"
}); });
this.onTaskTemplatesSelected(menus2); this.onTaskTemplatesSelected(menus2);
this.menuVisible = false; this.menuVisible = false;
@ -1640,8 +1641,7 @@ export default {
this.getXmTasks(); this.getXmTasks();
this.menuStory = false; this.menuStory = false;
}, },
onTaskTemplatesSelected(taskTemplates) {
debugger;
onTaskTemplatesSelected(taskTemplates) {
if (taskTemplates == null || taskTemplates.length == 0) { if (taskTemplates == null || taskTemplates.length == 0) {
this.taskTemplateVisible = false; this.taskTemplateVisible = false;
return; return;
@ -1701,6 +1701,12 @@ export default {
ptype:"0" ptype:"0"
} }
params.projectId=projectId params.projectId=projectId
if(this.filters.xmProduct && this.filters.xmProduct.id){
params.productId=this.filters.xmProduct.id
}else if(taskTemplates2.some(k=>k.productId)){
params.productId=taskTemplates2.find(k=>k.productId).productId
}
if(this.parentTask && this.parentTask.id){ if(this.parentTask && this.parentTask.id){
params.parentTaskid=this.parentTask.id params.parentTaskid=this.parentTask.id
} }
@ -1766,21 +1772,7 @@ export default {
} }
return dateStr.substr(0, 10); return dateStr.substr(0, 10);
} }
},
formatDicts: function (itemCode, value) {
if (this.dicts[itemCode]) {
var dicts = this.dicts[itemCode].filter(
(i) => i.id == value
);
if (dicts && dicts.length > 0) {
return dicts[0].name;
} else {
return value;
}
} else {
return value;
}
},
},
toFixed(floatValue, xsd) { toFixed(floatValue, xsd) {
if (floatValue == null || floatValue == "" || floatValue == undefined) { if (floatValue == null || floatValue == "" || floatValue == undefined) {
@ -2163,7 +2155,7 @@ export default {
if(tips.isOk){ if(tips.isOk){
this.searchXmTasks(); this.searchXmTasks();
var rows=[...this.sels,{id:'xxxxx',parentTaskid:task.id}]
var rows=[...this.sels]
//treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'parentTaskid',this.loadXmTaskLazy) //treeTool.reloadAllChildren(this.$refs.table,this.maps,rows,'parentTaskid',this.loadXmTaskLazy)
} }
this.$notify({ this.$notify({

Loading…
Cancel
Save