updated cost file controller in admin UI
parent
82479e8b18
commit
65a18aff97
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
app.controller('CostFileController', function ($scope, $common, $translate, $uibModal, $interval, CostFileService, toaster, SweetAlert) {
|
||||
app.controller('CostFileController', function ($scope, $common, $cookies, $translate, $uibModal, $interval, CostFileService, toaster, SweetAlert) {
|
||||
|
||||
$scope.getAllCostFiles = function () {
|
||||
CostFileService.getAllCostFiles(function (error, data) {
|
||||
|
|
@ -17,7 +17,8 @@ app.controller('CostFileController', function ($scope, $common, $translate, $ui
|
|||
url: getAPI() + 'offlinecostfiles',
|
||||
acceptedFiles: '.xlsx',
|
||||
dictDefaultMessage: 'Click(or Drop) to add files',
|
||||
maxFilesize: '100'
|
||||
maxFilesize: '100',
|
||||
headers: { "User-UUID": $cookies.get("user_uuid"), "Token": $cookies.get("token") }
|
||||
};
|
||||
|
||||
$scope.dzCallbacks = {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ app.controller('OfflineMeterFileController', function($scope, $common, $cookies
|
|||
$scope.dzOptions = {
|
||||
url: getAPI() + 'offlinemeterfiles',
|
||||
acceptedFiles: '.xlsx',
|
||||
dictDefaultMessage : 'Click(or Drop) to add files',
|
||||
dictDefaultMessage: 'Click(or Drop) to add files',
|
||||
maxFilesize: '100',
|
||||
headers: { "User-UUID": $cookies.get("user_uuid"), "Token": $cookies.get("token") }
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue