Fan пре 1 месец
родитељ
комит
0dccbc4d84

+ 1 - 1
ui/smarttrade-platform/src/components/addMarketing.vue

@@ -883,7 +883,7 @@
     }
     const getChannelIconById = (id) => ({ email: 'fas fa-envelope', whatsapp: 'fab fa-whatsapp', linkedin: 'fab fa-linkedin', wechat: 'fab fa-weixin' }[id] || 'fas fa-comment')
     const hasWarnings = computed(() => customerList.value.length > 500 || newCampaign.value.channels.length === 0)
-    const confirmChecks = ref({ content: false, schedule: false, compliance: false, unsubscribe: true })
+    const confirmChecks = ref({ content: true, schedule: true, compliance: true, unsubscribe: true })
     const canCreate = computed(() => confirmChecks.value.content && confirmChecks.value.schedule && confirmChecks.value.compliance)
 
     const goToStep = (step) => { currentStep.value = step }

+ 2 - 2
ui/smarttrade-platform/src/components/marketing/customerDetail.vue

@@ -71,12 +71,12 @@
                                             <div class="customer-name">{{ customer.customerName }}</div>
                                             <span class="customer-badge" v-if="customer.customerStatusDictValue">{{ getStatusLabel(customer.customerStatusDictValue) }}</span>
                                         </div>
-                                        <div class="customer-subtitle">
+                                        <div class="customer-subtitle" v-if="customer.liaison">
                                             <span><i class="fas fa-user" style="margin-right: 6px"></i> {{ customer.liaison.name }}{{ customer.liaison.departmentPosition ? ' · ' + customer.liaison.departmentPosition : '' }}</span>
                                         </div>
                                         <div class="customer-info-row">
                                             <span><i class="fas fa-map-marker-alt"></i> {{ customer.continent }} - {{ customer.country }}</span>
-                                            <span v-if="customer.customerCompany.industry">{{ customer.customerCompany.industry }}</span>
+                                            <span v-if="customer.customerCompany && customer.customerCompany.industry">{{ customer.customerCompany.industry }}</span>
                                         </div>
                                     </div>
                                 </div>

+ 1 - 0
ui/smarttrade-platform/src/components/marketing/marketingDetail.vue

@@ -254,6 +254,7 @@
     const addMarketingRef = ref()
     const editCampaign = (campaign) => {
         addMarketingRef.value.open(campaign)
+        showCampaignDetailModal.value = false
     }
 
     const refresh = () => {