MOD:文件列表页增加excel下载功能,识别结果excel取消删除
Showing
2 changed files
with
3 additions
and
1 deletions
... | @@ -1978,7 +1978,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1978,7 +1978,7 @@ class Command(BaseCommand, LoggerMixin): |
1978 | self.log_base, task_str, traceback.format_exc())) | 1978 | self.log_base, task_str, traceback.format_exc())) |
1979 | else: | 1979 | else: |
1980 | self.online_log.info('{0} [process complete] [task={1}]'.format(self.log_base, task_str)) | 1980 | self.online_log.info('{0} [process complete] [task={1}]'.format(self.log_base, task_str)) |
1981 | os.remove(excel_path) | 1981 | # os.remove(excel_path) |
1982 | 1982 | ||
1983 | # report新增流水真伪 | 1983 | # report新增流水真伪 |
1984 | try: | 1984 | try: | ... | ... |
... | @@ -1083,6 +1083,8 @@ class DocView(DocGenericView, DocHandler): | ... | @@ -1083,6 +1083,8 @@ class DocView(DocGenericView, DocHandler): |
1083 | application_link = '{0}/showList/showList?entity={1}&scheme={2}&case_id={3}'.format( | 1083 | application_link = '{0}/showList/showList?entity={1}&scheme={2}&case_id={3}'.format( |
1084 | conf.BASE_URL, prefix, tmp_scheme, doc_dict['application_id']) | 1084 | conf.BASE_URL, prefix, tmp_scheme, doc_dict['application_id']) |
1085 | doc_dict['target_url'] = application_link | 1085 | doc_dict['target_url'] = application_link |
1086 | doc_id = doc_dict.get('id') | ||
1087 | doc_dict['pdf_link'] = self.get_link(doc_id, business_type) | ||
1086 | 1088 | ||
1087 | # total = len(doc_list) | 1089 | # total = len(doc_list) |
1088 | pagination = {'current': page, 'total': total, 'page_size': page_size} | 1090 | pagination = {'current': page, 'total': total, 'page_size': page_size} | ... | ... |
-
Please register or sign in to post a comment