]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-360 Сборка страницы автопм
authormarina <m.zozirova@gmail.com>
Tue, 17 Jun 2025 08:20:52 +0000 (11:20 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 17 Jun 2025 08:20:52 +0000 (11:20 +0300)
erp24/views/auto-plannogramma/index.php
erp24/web/js/autoplannogramma/autoplannogramma.js

index 8bd3ecfe15493d454e6f136ed88fffd317501660..40c1cab38b63b91dc67a3757a32a3858859cd55f 100644 (file)
@@ -347,6 +347,15 @@ $this->registerJsFile('/js/autoplannogramma/autoplannogramma.js', ['position' =>
         writing-mode: sideways-lr;
     }
 
+    .custom-tooltip .tooltip-inner {
+        max-width: 300px;
+        white-space: pre-wrap;
+        color: #FFD700;
+        background-color: #333;
+        font-weight: 600;
+    }
+
+
     .input {
         padding: .375rem .75rem;
         font-size: 1rem;
index f137d00f84e87c921aa2bfe717111f76255eaacb..6ac6f7111ad45db1d99d85137e2269eaacecd805 100644 (file)
@@ -79,28 +79,6 @@ $('.subcategory .list-group-item').on('click', function (e) {
                 return;
             }
 
-            // Updated generateTitleString function
-            const generateTitleString = (titleObj) => {
-                if (!titleObj || typeof titleObj !== 'object') return '';
-
-                const typeTitles = {
-                    offline: '📦 Оффлайн',
-                    online: '🌐 Онлайн',
-                    marketplace: '🛒 Маркетплейс'
-                };
-
-                const parts = Object.entries(titleObj)
-                    .map(([typeKey, typeValue]) => {
-                        if (!typeValue || typeof typeValue !== 'object') return '';
-                        const lines = Object.entries(typeValue)
-                            .map(([key, val]) => `- ${key.replace(/_/g, ' ')}: ${parseFloat(val).toFixed(2)}`);
-                        return `${typeTitles[typeKey] || typeKey}:\n${lines.join('\n')}`;
-                    })
-                    .filter(Boolean);
-
-                return parts.join('\n\n');
-            };
-
             const fragment = document.createDocumentFragment();
 
             response.forEach(item => {
@@ -421,4 +399,3 @@ function generateTitleString(titleObj) {
 
     return parts.join('\n\n');
 }
-