purui vor 3 Monaten
Ursprung
Commit
5593a42432

+ 14 - 7
packages/merchant/src/pages/agent/designer/archives/basic-info/index.vue

@@ -11,6 +11,7 @@ import {
   getDesignerBasicInfo,
   updateDesignerBasicInfo,
 } from '../../../../../core/libs/agent-requests'
+import { getByDictType } from '../../../../../core/libs/requests'
 import { messages } from '../../../../../core/libs/messages'
 import BottomAppBar from '@/components/bottom-app-bar.vue'
 import DataForm from '@/components/data-form.vue'
@@ -30,6 +31,7 @@ const tabs = [
   { label: '其他活动信息', value: 'events' },
 ]
 const id = ref()
+const wish = ref()
 const { data: basicData, run: setBasicData } = useRequest(() => getDesignerBasicInfo(id.value))
 const formData = ref({})
 const schema = ref<
@@ -103,12 +105,13 @@ const schema = ref<
     label: messages.objects.designerBasiceInfo.sharingIntent,
     labelWidth: 120,
     props: {
-      columns: [
-        { label: '不愿意', value: 3 },
-        { label: '一般', value: 1 },
-        { label: '愿意', value: 2 },
-        { label: '非常愿意', value: 4 },
-      ],
+      // columns: [
+      //   { label: '不愿意', value: 3 },
+      //   { label: '一般', value: 1 },
+      //   { label: '愿意', value: 2 },
+      //   { label: '非常愿意', value: 4 },
+      // ],
+	  columns: []
     },
   },
   // imageUrl: {
@@ -153,7 +156,11 @@ onLoad(async (query: { id: string }) => {
   await setBasicData()
   formData.value = {
     ...omit(basicData.value, ['sex']),
-  }
+  };
+  let value1 = await getByDictType('sharing_intent_type') 
+  schema.value.sharingIntent!.props!.columns = value1.data
+  // console.log(value1)
+  console.log(schema.value.sharingIntent.props?.columns)
 })
 </script>
 <template>