| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 | export default {	colors: ["rgba(245, 166, 35, 1)", "rgba(19, 173, 255, 1)", '#9689FF', '#FF8A26', '#5FB878', '#73c0de',		'#4ED33C',		'#FF5252', '#01AAED', '#FF5722',		'#6648FF', '#2A8BFD', '#BAFF7F', '#00FAC1', '#00CAFF', '#FDE056', 'rgba(245, 166, 35, 1)',		'#fac858', '#ee6666', '#91cc75', '#38cafb', '#4caff9', '#4adeca', '#2aa7ee', '#0270f2', '#488cf7'	],	bmapstyle: {		styleJson: [{				featureType: "water",				elementType: "all",				stylers: {					color: "#021019"				}			},			{				featureType: "highway",				elementType: "geometry.fill",				stylers: {					color: "#000000"				}			},			{				featureType: "highway",				elementType: "geometry.stroke",				stylers: {					color: "#147a92"				}			},			{				featureType: "arterial",				elementType: "geometry.fill",				stylers: {					color: "#000000"				}			},			{				featureType: "arterial",				elementType: "geometry.stroke",				stylers: {					color: "#0b3d51"				}			},			{				featureType: "local",				elementType: "geometry",				stylers: {					color: "#000000"				}			},			{				featureType: "land",				elementType: "all",				stylers: {					color: "#08304b"				}			},			{				featureType: "railway",				elementType: "geometry.fill",				stylers: {					color: "#000000"				}			},			{				featureType: "railway",				elementType: "geometry.stroke",				stylers: {					color: "#08304b"				}			},			{				featureType: "subway",				elementType: "geometry",				stylers: {					lightness: -70				}			},			{				featureType: "building",				elementType: "geometry.fill",				stylers: {					color: "#000000"				}			},			{				featureType: "all",				elementType: "labels.text.fill",				stylers: {					color: "#857f7f"				}			},			{				featureType: "all",				elementType: "labels.text.stroke",				stylers: {					color: "#000000"				}			},			{				featureType: "building",				elementType: "geometry",				stylers: {					color: "#022338"				}			},			{				featureType: "green",				elementType: "geometry",				stylers: {					color: "#062032"				}			},			{				featureType: "boundary",				elementType: "all",				stylers: {					color: "#1e1c1c"				}			},			{				featureType: "manmade",				elementType: "geometry",				stylers: {					color: "#022338"				}			},			{				featureType: "poi",				elementType: "all",				stylers: {					visibility: "off"				}			},			{				featureType: "all",				elementType: "labels.icon",				stylers: {					visibility: "off"				}			},			{				featureType: "all",				elementType: "labels.text.fill",				stylers: {					color: "#2da0c6",					visibility: "on"				}			},			{				featureType: "background",				elementType: "all",				stylers: {					color: "#200000"				}			}		]	},	defaultconfig: [{		key: 'theme',		value: 'dark',		label: '界面主题',		type: 'select',		required: true,		options: [{			value: 'dark',			label: '深色主题'		}, {			value: 'red',			label: '紅色主题'		}]	}, {		key: 'refreshtime',		value: 10 * 1000,		label: '刷新时间',		type: 'number',		required: true	}, {		key: 'turntime',		value: 20 * 1000,		label: '切换时间',		type: 'select',		required: true,		options: [{			value: 20 * 1000,			label: '20秒'		}, {			value: 60 * 1000,			label: '1分钟'		}, {			value: 2 * 60 * 1000,			label: '2分钟'		}, {			value: 5 * 60 * 1000,			label: '5分钟'		}]	}, {		key: 'serverurl',		value: '/',		label: '接口地址',		type: 'text',		required: true	}],	/**	 * 获取系统配置	 */	getConfig: function() {		var config = localStorage.getItem("config");		if (!config) {			config = this.defaultconfig;		} else {			config = JSON.parse(config);		}		return config;	}}
 |