hurx 1 bulan lalu
induk
melakukan
6d4c54fb1b

+ 8 - 2
src/views/customer/customerFile/customerInfo/components/addContactDialog.vue

@@ -92,7 +92,7 @@ interface Emits {
   (e: 'confirm', data: CustomerContactForm): void;
 }
 
-const roleOptions = ref<RoleVO[]>([]);
+const roleOptions = ref<any>([]);
 
 const props = withDefaults(defineProps<Props>(), {
   modelValue: false,
@@ -205,7 +205,13 @@ const loadRoleOptions = async () => {
       status: ''
     } as any);
 
-    roleOptions.value = res?.rows || res?.data?.rows || res?.data || [];
+    // roleOptions.value = res?.rows || res?.data?.rows || res?.data || [];
+    roleOptions.value = [
+      { roleId: 1, roleName: '管理角色' },
+      { roleId: 2, roleName: '采购角色' },
+      { roleId: 3, roleName: '查询角色' },
+      { roleId: 4, roleName: '审核角色' }
+    ];
   } catch (error) {
     console.error('加载角色列表失败:', error);
     roleOptions.value = [];