Commit 2c81960b by dong

fix20221211

parent 1609f5a5
......@@ -405,8 +405,8 @@ def batch_export_project5():
req_dic = request.get_json()
select_id_list = req_dic["select_id_list"]
# path = './apps/statics/project_file/'
pro_path = 'http://39.100.39.50:8008/aaa_statics/project_file/' # 项目路径
path = './apps/statics/project_file/'
pro_path = 'http://39.100.39.50:5050/statics/project_file/' # 项目路径
# pro_path = 'http://192.168.1.4:5000/statics/project_file/' # 项目路径
if not select_id_list:
return jsonify(code=RET.PARAMERR, msg="参数不能为空!")
......@@ -507,7 +507,7 @@ def batch_export_project5():
sheet.write(i + 1, j, target_data_list[i][j])
time_stamp = '{0:%Y%m%d%H%M%S}'.format(datetime.now())
file_name = "招商引资项目表{}.xlsx".format(time_stamp)
excel.save(pro_path + file_name)
excel.save(path + file_name)
return jsonify(code=RET.OK, url=pro_path + file_name, msg="导出/下载成功!")
except Exception as e:
current_app.logger.error(e)
......
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