Commit 763a52fa authored by jingnan's avatar jingnan 👀

没数据时保存修改

parent b8cf452f
......@@ -326,7 +326,7 @@ export default {
}
post(`ExtPosition/queryByStandPost`, params)
.then((res) => {
res.items.forEach(element => {
res.items && res.items.forEach(element => {
element.workingStatus = element.extPositionPlans && element.extPositionPlans.length > 0 ? element.extPositionPlans[0].planState : null
})
this.treeData = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment