OA审批页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
oa-web/src/app/utils/objectData.service.ts

24 lines
528 B

export class ObjectData {
/**
* @Author Sum1Dream
* @Name getWhereCondition
* @Description // 将对象转换成GET请求参数 key1=value1&key2=value2
* @Date 14:02 2024/4/9
* @Param object
*/
static objectByString(object: any): string {
let str = '';
for (const i in object) {
if (object[i] != null && object[i] !== '') {
if (str === '') {
str = i + '=' + object[i];
} else {
str += '&' + i + '=' + object[i];
}
}
}
return str;
}
}