|
|
@@ -88,6 +88,9 @@ const { loading } = useRequest(initAdd, {
|
|
|
params: {
|
|
|
role: 'marketer'
|
|
|
},
|
|
|
+ onSuccess: (res) => {
|
|
|
+ formData.value.enumdicnames = res.data.enumDicItems.map(e => e.enumitemname)
|
|
|
+ },
|
|
|
onError: (err) => {
|
|
|
ElMessage.error(err)
|
|
|
}
|
|
|
@@ -152,7 +155,6 @@ const formRules: FormRules = {
|
|
|
}
|
|
|
|
|
|
const onSubmit = () => {
|
|
|
- formData.value.enumdicnames = [1]
|
|
|
const { accountid } = formData.value
|
|
|
if (accountid) {
|
|
|
formData.value.accountids = [accountid]
|