Adición del modo mapa satelital
This commit is contained in:
@@ -12,8 +12,10 @@ define([
|
||||
|
||||
//console.log('Params:', params);
|
||||
this.anexarUbic = ko.observable(false);
|
||||
this.satMap = ko.observable(false);
|
||||
this.anexarImagenes = ko.observable(false);
|
||||
this.anexarPdfs = ko.observable(false);
|
||||
|
||||
const boolToStr = (bool) => bool ? "1" : "0";
|
||||
|
||||
self.resourceId = ko.observable(
|
||||
@@ -23,7 +25,7 @@ define([
|
||||
self.exportPDF = function() {
|
||||
var id = self.resourceId();
|
||||
if (id) {
|
||||
var url = '/export/pdf/' + id + '/' + boolToStr(self.anexarUbic()) + '/' + boolToStr(self.anexarImagenes()) + '/' + boolToStr(self.anexarPdfs()) + '/';
|
||||
var url = '/export/pdf/' + id + '/' + boolToStr(self.anexarUbic()) + '/' + boolToStr(self.satMap()) + '/' + boolToStr(self.anexarImagenes()) + '/' + boolToStr(self.anexarPdfs()) + '/';
|
||||
window.open(url, '_blank');
|
||||
} else {
|
||||
alert('No se encontró el ID del recurso.');
|
||||
|
||||
Reference in New Issue
Block a user