|
@ -7,7 +7,7 @@ |
|
|
ref="FormConfigRef" |
|
|
ref="FormConfigRef" |
|
|
:formList="formList" |
|
|
:formList="formList" |
|
|
column="1" |
|
|
column="1" |
|
|
labelWidth="90px" |
|
|
labelWidth="100px" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
@ -68,6 +68,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: "人员类型:", |
|
|
|
|
|
key: "employeesType", |
|
|
|
|
|
required: true, |
|
|
|
|
|
type: "select", |
|
|
|
|
|
options: { |
|
|
|
|
|
options: [ |
|
|
|
|
|
{ |
|
|
|
|
|
key: 1, |
|
|
|
|
|
label: "路管人员", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
key: 2, |
|
|
|
|
|
label: "应急人员", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: "岗位:", |
|
|
label: "岗位:", |
|
|
key: "postId", |
|
|
key: "postId", |
|
@ -127,7 +145,7 @@ export default { |
|
|
getSelectOptionsStation(2), |
|
|
getSelectOptionsStation(2), |
|
|
]).then(([post, organization]) => { |
|
|
]).then(([post, organization]) => { |
|
|
if (post.status === "fulfilled" && post.value.code == 200) { |
|
|
if (post.status === "fulfilled" && post.value.code == 200) { |
|
|
this.formList[2].options.options = post.value.data.map((item) => ({ |
|
|
this.formList[3].options.options = post.value.data.map((item) => ({ |
|
|
key: item.postId + "", |
|
|
key: item.postId + "", |
|
|
label: item.postName, |
|
|
label: item.postName, |
|
|
})); |
|
|
})); |
|
@ -137,7 +155,7 @@ export default { |
|
|
organization.status === "fulfilled" && |
|
|
organization.status === "fulfilled" && |
|
|
Array.isArray(organization.value) |
|
|
Array.isArray(organization.value) |
|
|
) { |
|
|
) { |
|
|
this.formList[3].options.options = organization.value; |
|
|
this.formList[4].options.options = organization.value; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
@ -181,7 +199,7 @@ export default { |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.AddNEditDialog { |
|
|
.AddNEditDialog { |
|
|
width: 450px; |
|
|
width: 450px; |
|
|
height: 150px; |
|
|
height: 200px; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
gap: 15px; |
|
|
gap: 15px; |
|
|