|
|
@@ -105,16 +105,19 @@ const { run: runRoleDetail } = useRequest(queryRoleDetail, {
|
|
|
ElMessage.error(err)
|
|
|
},
|
|
|
onSuccess: (res) => {
|
|
|
- formData.value.customertype = res.data.customertype.customertype
|
|
|
- // 查询数据
|
|
|
- run({
|
|
|
- riskcontrolmode: 2,
|
|
|
- customertype: formData.value.customertype
|
|
|
- })
|
|
|
- // 获取资金账号信息
|
|
|
- runAccountIdForMarket({
|
|
|
- userid: props.record?.userid
|
|
|
- })
|
|
|
+ const { customertype } = res.data
|
|
|
+ if (customertype) {
|
|
|
+ formData.value.customertype = customertype.customertype
|
|
|
+ // 查询数据
|
|
|
+ run({
|
|
|
+ riskcontrolmode: 2,
|
|
|
+ customertype: formData.value.customertype
|
|
|
+ })
|
|
|
+ // 获取资金账号信息
|
|
|
+ runAccountIdForMarket({
|
|
|
+ userid: props.record?.userid
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
|