|
|
@@ -18,10 +18,11 @@
|
|
|
<el-form-item label="归属">
|
|
|
<el-cascader
|
|
|
style="width: 100%"
|
|
|
- v-model="insuranceForm.userDept"
|
|
|
+ v-model="insuranceForm.userDeptId"
|
|
|
placeholder="请选择"
|
|
|
:options="deptOption"
|
|
|
:props="cascaderProps"
|
|
|
+ @change="handleCascaderChange"
|
|
|
clearable
|
|
|
></el-cascader>
|
|
|
</el-form-item>
|
|
|
@@ -533,6 +534,10 @@ const initDept = () => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const handleCascaderChange = (value) => {
|
|
|
+ insuranceForm.value.userDept = value[value.length - 1]
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
initData()
|
|
|
initCompany()
|