|
|
|
@ -482,6 +482,7 @@ |
|
|
|
@node-click="handleNodeClick" |
|
|
|
@node-click="handleNodeClick" |
|
|
|
:default-expand-all="true" |
|
|
|
:default-expand-all="true" |
|
|
|
:expand-on-click-node="false" |
|
|
|
:expand-on-click-node="false" |
|
|
|
|
|
|
|
ref="tree" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="process-right"> |
|
|
|
<div class="process-right"> |
|
|
|
@ -491,7 +492,7 @@ |
|
|
|
<el-form-item label="重要度:" prop="prority"> |
|
|
|
<el-form-item label="重要度:" prop="prority"> |
|
|
|
<el-select |
|
|
|
<el-select |
|
|
|
v-model="treeNodes.rawData.prority" |
|
|
|
v-model="treeNodes.rawData.prority" |
|
|
|
:placeholder="'请选择'" |
|
|
|
:placeholder="''" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
disabled |
|
|
|
disabled |
|
|
|
@ -512,7 +513,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="备注:" prop="beizhu"> |
|
|
|
<el-form-item label="备注:" prop="beizhu"> |
|
|
|
<el-input v-model="treeNodes.rawData.remarks" placeholder="请输入" disabled /> |
|
|
|
<el-input v-model="treeNodes.rawData.remarks" placeholder="" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
@ -823,15 +824,14 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 组织树点击 |
|
|
|
// 组织树点击 |
|
|
|
handleNodeClick(nodes, node, self) { |
|
|
|
handleNodeClick(nodes, node, self) { |
|
|
|
|
|
|
|
console.log(9999999,nodes,node) |
|
|
|
if (nodes.disabled) { |
|
|
|
if (nodes.disabled) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
this.treeNodes = nodes; |
|
|
|
this.treeNodes = nodes; |
|
|
|
this.treeLeave = node.level; |
|
|
|
this.treeLeave = node.level; |
|
|
|
|
|
|
|
|
|
|
|
if(this.treeNodes.rawData.prority){ |
|
|
|
|
|
|
|
this.treeNodes.rawData.prority = this.treeNodes.rawData.prority+''; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 清空现有表格数据 |
|
|
|
// 清空现有表格数据 |
|
|
|
this.form1.tableData1 = []; |
|
|
|
this.form1.tableData1 = []; |
|
|
|
@ -842,6 +842,8 @@ export default { |
|
|
|
if (this.treeLeave === 2) { |
|
|
|
if (this.treeLeave === 2) { |
|
|
|
this.activeName = '1'; |
|
|
|
this.activeName = '1'; |
|
|
|
this.form1.tableData1 = nodes.processList; |
|
|
|
this.form1.tableData1 = nodes.processList; |
|
|
|
|
|
|
|
console.log('默认点击选中第一个数据') |
|
|
|
|
|
|
|
this.treeNodes.rawData.prority = this.treeNodes.rawData.prority+''; |
|
|
|
} |
|
|
|
} |
|
|
|
// 根据节点层级加载对应数据 |
|
|
|
// 根据节点层级加载对应数据 |
|
|
|
if (this.treeLeave === 3) { |
|
|
|
if (this.treeLeave === 3) { |
|
|
|
@ -932,6 +934,7 @@ export default { |
|
|
|
getProcessManagementAuthorized(query).then(res => { |
|
|
|
getProcessManagementAuthorized(query).then(res => { |
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
this.tabLoading = false; |
|
|
|
this.tabLoading = false; |
|
|
|
|
|
|
|
this.autoSelectFirstNode(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else if (this.detailsType === 'taskProcessing') { |
|
|
|
} else if (this.detailsType === 'taskProcessing') { |
|
|
|
let query_ = {}; |
|
|
|
let query_ = {}; |
|
|
|
@ -955,6 +958,7 @@ export default { |
|
|
|
this.craftData = res.data.data; |
|
|
|
this.craftData = res.data.data; |
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
this.data = this.transformCraftTree(res.data.data); |
|
|
|
this.tabLoading = false; |
|
|
|
this.tabLoading = false; |
|
|
|
|
|
|
|
this.autoSelectFirstNode(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -1061,7 +1065,7 @@ export default { |
|
|
|
return { |
|
|
|
return { |
|
|
|
...processInfo, |
|
|
|
...processInfo, |
|
|
|
id: generateId('process', processInfo.id, processInfo.processNo), |
|
|
|
id: generateId('process', processInfo.id, processInfo.processNo), |
|
|
|
label: processInfo.processName || '未知工序', |
|
|
|
label: processInfo.processNo+'-'+processInfo.processName, |
|
|
|
level: 3, |
|
|
|
level: 3, |
|
|
|
rawData: { |
|
|
|
rawData: { |
|
|
|
processInfo, |
|
|
|
processInfo, |
|
|
|
@ -1072,7 +1076,7 @@ export default { |
|
|
|
// ✅ 子节点(项目) |
|
|
|
// ✅ 子节点(项目) |
|
|
|
children: (projectList || []).map(project => ({ |
|
|
|
children: (projectList || []).map(project => ({ |
|
|
|
id: generateId('project', project.id, project.projectCode), |
|
|
|
id: generateId('project', project.id, project.projectCode), |
|
|
|
label: project.projectName || '未知项目', |
|
|
|
label: project.trialNo+'-'+project.projectName, |
|
|
|
level: 4, |
|
|
|
level: 4, |
|
|
|
disabled: true, |
|
|
|
disabled: true, |
|
|
|
rawData: project, |
|
|
|
rawData: project, |
|
|
|
|