Commit 8d95b228 by wuwx

合并master

2 parents 449e9cdd 57d6708c
...@@ -336,19 +336,22 @@ export default { ...@@ -336,19 +336,22 @@ export default {
if (list.length && pIdx != -1) { if (list.length && pIdx != -1) {
list[pIdx].labelList.push({ list[pIdx].labelList.push({
id: item.labelId, id: item.labelId,
name: item.labelName name: item.labelName,
labelType: item.labelGroupType
}) })
} else { } else {
groupIdList.push(item.labelGroupId) groupIdList.push(item.labelGroupId)
list.push({ list.push({
labelGroup: { labelGroup: {
id: item.labelGroupId, id: item.labelGroupId,
name: item.labelGroupName name: item.labelGroupName,
labelType: item.labelGroupType
}, },
labelList: [ labelList: [
{ {
id: item.labelId, id: item.labelId,
name: item.labelName name: item.labelName,
labelType: item.labelGroupType
} }
] ]
}) })
...@@ -405,7 +408,6 @@ export default { ...@@ -405,7 +408,6 @@ export default {
getInfo() { getInfo() {
this.$apis.sop.getSopInfoDetailApi({ sopId: this.routeInfo.id }).then(res => { this.$apis.sop.getSopInfoDetailApi({ sopId: this.routeInfo.id }).then(res => {
// console.log(res)
this.editForm = res this.editForm = res
this.currentCustomerIdx = this.customerDataList.findIndex(item => item.confId == this.editForm.customerOptType) this.currentCustomerIdx = this.customerDataList.findIndex(item => item.confId == this.editForm.customerOptType)
this.recoverCustomerList() this.recoverCustomerList()
...@@ -661,7 +663,7 @@ export default { ...@@ -661,7 +663,7 @@ export default {
list.push({ list.push({
labelGroupId: item.labelGroup.id, labelGroupId: item.labelGroup.id,
labelGroupName: item.labelGroup.name, labelGroupName: item.labelGroup.name,
labelGroupType: item.labelType, labelGroupType: item.labelType || subItem.labelType,
labelId: subItem.id, labelId: subItem.id,
labelName: subItem.name labelName: subItem.name
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!