此文总结一下项目实训7.23-7.24的开发内容
1.根据后端改进的数据结构再次设计css,使得界面可以展示学生姓名
用v-for和v-if显示选项卡,重新修改绑定数据
其他的毕业申请审核、外审论文审核、毕业论文审核、出国申请审核、国际会议申请审核、归国申请审核和归国变更审核也差不多进行改正。
2.增加collapse显示其他之前未展示的信息
3.进行文件下载功能的开发
后端springboot+前端uniapp
downloadFile(id){
console.log("id:"+id);
uni.downloadFile({
url: 'http://localhost:8081/studentGraduatePaper/'+id+'.PDF',//下载地址接口返回
success: (data) => {
if (data.statusCode === 200) {
//文件保存到本地
uni.saveFile({
tempFilePath: data.tempFilePath, //临时路径
success: function(res) {
uni.showToast({
icon: 'none',
mask: true,
title: '文件已保存:' + res.savedFilePath, //保存路径
duration: 3000,
});
setTimeout(() => {
//打开文档查看
uni.openDocument({
filePath: res.savedFilePath,
success: function(res) {
// console.log('打开文档成功');
}
});
}, 3000)
}
});
}
},
fail: (err) => {
console.log(err);
uni.showToast({
icon: 'none',
mask: true,
title: '失败请重新下载',
});
},
});
},
4.有关uniapp在此提一句如果设置了APPID,那么git下来之后运行的时候记得修改小程序的appid,否则运行不起来
哪里都不报错一般就是appid的问题了