123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- var antmove_export = {};
- function desensitization(string = "", start, end, VisitorLog, type, notDesensitizedColumn) {
- var star = '';
- if (string) {
- let res = false
- if (VisitorLog == 'VisitorLog') {
- res = notDesensitizedColumn.includes(type)
- }
- if (res) {
- return string
- }
- function makeStar(number) {
- if (number > 0) {
- star += '*';
- return makeStar(--number);
- } else {
- return star;
- }
- };
- return string.substring(0, start) + makeStar(end - start) + string.substring(end);
- }
- }
- function indexOf(array, value) {
- return array.indexOf(value);
- }
- function floorCss(index, chooseFloorIndex) {
- let css = 'floor-item-box'
- chooseFloorIndex.forEach(item => {
- if (item == index) {
- css = css + ' choose-floor-item'
- }
- })
- return css;
- }
- antmove_export = {
- desensitization: desensitization,
- indexOf: indexOf,
- floorCss: floorCss,
- };
- export default antmove_export;
|