这个设置navicat是没有用的,可以通过js把金额格式化成千分位
/*
千分位格式化
*/
function toThousands(num) {
let logo = "";
let negative = num.charAt(0)
if (negative=="-") {
logo = "-";
num=num.substring(1)
}
num = (num || 0).toString();
let number = 0,
floatNum = '',
intNum = '';
if (num.indexOf('.') > 0) {
number = num.indexOf('.');
floatNum = num.substr(number);
intNum = num.substring(0, number);
} else {
intNum = num;
}
let result = [],
counter = 0;
intNum = intNum.split('');
for (let i = intNum.length - 1; i >= 0; i--) {
counter++;
result.unshift(intNum[i]);
if (!(counter % 3) && i != 0) { result.unshift(','); }
}
return logo + result.join('') + floatNum || '';
}