Commit cf8b3128 authored by chase's avatar chase

fix bug

parent 4211c6e0
......@@ -1618,14 +1618,12 @@ taxDocumentManageModule.directive('pdfPreview', function () {
});
}
start().then(function(data) {
console.log('result of start: ', data);
return taxDocumentListService.readPDF({path:url});
}).then(function(dataURL) {
var pdfData=null;
if(typeof dataURL =="string"){
pdfData = convertDataURIToBinary(dataURL);
}
console.log(pdfData);
return window.PDFJS.getDocument({data:pdfData});
}).then(function(data) {
pdfSumPages = data.numPages;
......@@ -2046,7 +2044,6 @@ taxDocumentManageModule.directive('tempModule', function () {
}
$scope.loadSelectMap = function () {
taxDocumentListService.getFileInfoOptions().then(function (data) {
// console.log(data);
if (data) {
$scope.typeAndAttrMap = data;
// 抽取每个元素的头一个字串,用于排序;
......@@ -2086,7 +2083,6 @@ taxDocumentManageModule.directive('tempModule', function () {
//加载可用的档案属性
$scope.loadSelectEnableMap = function () {
taxDocumentListService.getFileInfoEnableOptions().then(function (data) {
// console.log(data);
if (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