|
@@ -39,15 +39,15 @@ export class UtilService {
|
|
|
@Inject()
|
|
|
dictDataService: DictDataService;
|
|
|
|
|
|
- @Config('upload.realdir')
|
|
|
- uploadDir;
|
|
|
+ @Config('PathConfig.path')
|
|
|
+ path;
|
|
|
|
|
|
// 导出
|
|
|
async toExport(query) {
|
|
|
const { table, config, user } = query;
|
|
|
const nowDate = new Date().getTime();
|
|
|
const filename = `产学研用导出-${table}-${nowDate}.xlsx`;
|
|
|
- const path = 'D:\\temp\\cxyy\\';
|
|
|
+ const path = this.path;
|
|
|
if (!path) {
|
|
|
throw new ServiceError('服务端没有设置存储路径');
|
|
|
}
|