已有系统需添加下载功能。
1.template
对应页面添加下载栏。
<tr>中增加<th>,<td>
![](https://i-blog.csdnimg.cn/blog_migrate/fab568eddee25adb3013123c2b897427.png)
![](https://i-blog.csdnimg.cn/blog_migrate/e46714cde1d9b2233f57ae8eb8a4e2d3.png)
2.model
从数据中获取满足下载条件的数据。
![数据表对应关系](https://i-blog.csdnimg.cn/blog_migrate/690d6611dfdd417fc1afdebe3491258e.png)
方法一:
从PaperPrintDetail中获取已送印试卷id--->根据对应pf_id获取espf中paper_id--->根据paper_id获取PaperFile中试卷及其名称。
方法二:
根据PaperFile中used标志位获取已使用试卷。
在template对应view中添加按钮对应功能。
已有系统需添加下载功能。
1.template
对应页面添加下载栏。
<tr>中增加<th>,<td>
2.model
从数据中获取满足下载条件的数据。
方法一:
从PaperPrintDetail中获取已送印试卷id--->根据对应pf_id获取espf中paper_id--->根据paper_id获取PaperFile中试卷及其名称。
方法二:
根据PaperFile中used标志位获取已使用试卷。
在template对应view中添加按钮对应功能。