Handy_Cao 7 tháng trước cách đây
mục cha
commit
ee8ca7e983

+ 3 - 1
src/packages/pc/views/member/institution/marketer/components/edit/index.vue

@@ -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]