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