From: Alexander Smirnov Date: Fri, 26 Jul 2024 14:48:06 +0000 (+0300) Subject: Поправили композер X-Git-Tag: 1.4~45^2~13 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=9bc6fffb5475f6866cf8a356abef6b4d86ba5cb0;p=erp24_rep%2Fyii-erp24%2F.git Поправили композер --- diff --git a/erp24/composer.json b/erp24/composer.json index 46fe76d7..b3251528 100644 --- a/erp24/composer.json +++ b/erp24/composer.json @@ -27,7 +27,7 @@ "kartik-v/yii2-widget-fileinput": "dev-master", "yiisoft/yii2-imagine": "^2.3", "kartik-v/yii2-builder": "dev-master", - "phpoffice/phpspreadsheet": "^1.12" + "phpoffice/phpspreadsheet": "^2.2" }, "require-dev": { "yiisoft/yii2-debug": "~2.1.0", diff --git a/erp24/views/motivation/index.php b/erp24/views/motivation/index.php index 626d1f19..5a91c905 100644 --- a/erp24/views/motivation/index.php +++ b/erp24/views/motivation/index.php @@ -58,7 +58,7 @@ $this->registerJsFile('/js/motivation/index.js', ['position' => \yii\web\View::P
'btn btn-success btn-sm', - 'onclick' => 'openUploadDictionary(' . (file_exists(Yii::getAlias('@uploads') . '/template_plan.xlsx') ? 'true' : 'false'). ');'])?>
+ 'onclick' => 'openUploadDictionary();'])?>
diff --git a/erp24/web/js/motivation/index.js b/erp24/web/js/motivation/index.js index bc37ef85..568d8827 100644 --- a/erp24/web/js/motivation/index.js +++ b/erp24/web/js/motivation/index.js @@ -4,7 +4,7 @@ const param10 = $("meta[name=csrf-param]").attr("content"); const token10 = $("meta[name=csrf-token]").attr("content"); /* jshint unused: false */ -function openUploadDictionary(showDownloadLink) { +function openUploadDictionary() { 'use strict' const $mainModal = $('#mainModal'); const $modalBody = $mainModal.find('.modal-body'); @@ -12,7 +12,7 @@ function openUploadDictionary(showDownloadLink) { $mainModal.find('.close').on('click', () => { $mainModal.modal('hide'); }); $mainModal.find('.modal-title').html('Загрузка плановых значений'); $modalFooter.html(''); - $modalBody.html('
' + (!showDownloadLink ? '' : '
Скачать
') + '
'); + $modalBody.html('
Скачать шаблон
'); const browse = $modalBody.find('input[type=file]').get(0); const btn = $modalBody.find('input[type=submit]').get(0); const info = $modalBody.find('#infoModal').get(0);