客户健康优化修改

This commit is contained in:
xiezhijun
2021-01-26 20:42:59 +08:00
parent e53ac00fbd
commit 9c899e344e
13 changed files with 641 additions and 267 deletions

View File

@ -1,3 +1,15 @@
export const titleArray = [
"一、基础信息",
"二、减脂经历评估",
"三、食品安全评估",
"四、饮食结构评估",
"五、生活习惯评估",
"六、运动习惯评估",
"七、睡眠质量评估",
"八、既往病史/用药史评估",
"九、体检报告"
]
export const condimentArray = [
{"name":"鸡精", "value":"1"},
{"name":"耗油", "value":"2"},
@ -158,6 +170,11 @@ export const longEatDrugClassifyArray = [
{"name":"洗洁剂","value": "10"},{"name":"化妆品","value": "11"}
]
export const makeFoodTypeArray = [
{"name":"居家做饭","value": "1"},{"name":"外卖食堂","value": "2"},{"name":"居家和外食","value": "3"},{"name":"国外饮食","value": "4"},
{"name":"运动饮食","value": "5"}
]
//需要将数组转成字符串的属性名称,包含对象数组、字符串数组
export const arrayName = [
"condiment","cookingStyle","cookingStyleRate", "washVegetablesStyle","lunchType","dinner","dietFlavor",

View File

@ -97,11 +97,16 @@ export function selectDictLabels(datas, value, separator) {
return actions.join('').substring(0, actions.join('').length - 1);
}
// 通用下载方法
// 通用下载方法导出Excel,下载之后删除)
export function download(fileName) {
window.location.href = baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true;
}
// 通用下载本地资源方法
export function downloadResource(fileName) {
window.location.href = baseURL + "/common/download/resource?name=" + encodeURI(fileName);
}
// 字符串格式化(%s )
export function sprintf(str) {
var args = arguments, flag = true, i = 1;