公共组件 #18
@@ -71,7 +71,7 @@ export class CommonTableComponent<T> implements OnInit, OnChanges {
|
|||||||
str = str.replace(regexp, '');
|
str = str.replace(regexp, '');
|
||||||
// tslint:disable-next-line:no-eval
|
// tslint:disable-next-line:no-eval
|
||||||
const value = eval(str);
|
const value = eval(str);
|
||||||
return value ? value : '暂无数据';
|
return value !== undefined ? value : '暂无数据';
|
||||||
}
|
}
|
||||||
|
|
||||||
getContext = (fieldValue: string, index: number) => {
|
getContext = (fieldValue: string, index: number) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user