Commit cf8b3128 authored by chase's avatar chase

fix bug

parent 4211c6e0
...@@ -1618,14 +1618,12 @@ taxDocumentManageModule.directive('pdfPreview', function () { ...@@ -1618,14 +1618,12 @@ taxDocumentManageModule.directive('pdfPreview', function () {
}); });
} }
start().then(function(data) { start().then(function(data) {
console.log('result of start: ', data);
return taxDocumentListService.readPDF({path:url}); return taxDocumentListService.readPDF({path:url});
}).then(function(dataURL) { }).then(function(dataURL) {
var pdfData=null; var pdfData=null;
if(typeof dataURL =="string"){ if(typeof dataURL =="string"){
pdfData = convertDataURIToBinary(dataURL); pdfData = convertDataURIToBinary(dataURL);
} }
console.log(pdfData);
return window.PDFJS.getDocument({data:pdfData}); return window.PDFJS.getDocument({data:pdfData});
}).then(function(data) { }).then(function(data) {
pdfSumPages = data.numPages; pdfSumPages = data.numPages;
...@@ -2046,7 +2044,6 @@ taxDocumentManageModule.directive('tempModule', function () { ...@@ -2046,7 +2044,6 @@ taxDocumentManageModule.directive('tempModule', function () {
} }
$scope.loadSelectMap = function () { $scope.loadSelectMap = function () {
taxDocumentListService.getFileInfoOptions().then(function (data) { taxDocumentListService.getFileInfoOptions().then(function (data) {
// console.log(data);
if (data) { if (data) {
$scope.typeAndAttrMap = data; $scope.typeAndAttrMap = data;
// 抽取每个元素的头一个字串,用于排序; // 抽取每个元素的头一个字串,用于排序;
...@@ -2086,7 +2083,6 @@ taxDocumentManageModule.directive('tempModule', function () { ...@@ -2086,7 +2083,6 @@ taxDocumentManageModule.directive('tempModule', function () {
//加载可用的档案属性 //加载可用的档案属性
$scope.loadSelectEnableMap = function () { $scope.loadSelectEnableMap = function () {
taxDocumentListService.getFileInfoEnableOptions().then(function (data) { taxDocumentListService.getFileInfoEnableOptions().then(function (data) {
// console.log(data);
if (data) { if (data) {
$scope.typeAndAttrMap = data; $scope.typeAndAttrMap = data;
// 抽取每个元素的头一个字串,用于排序; // 抽取每个元素的头一个字串,用于排序;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment