修改冲突
commit
8ae783ebe4
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<script>
|
||||||
|
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
|
||||||
|
CSS.supports('top: constant(a)'))
|
||||||
|
document.write(
|
||||||
|
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
|
||||||
|
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
|
||||||
|
</script>
|
||||||
|
<title></title>
|
||||||
|
<!--preload-links-->
|
||||||
|
<!--app-context-->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"><!--app-html--></div>
|
||||||
|
<script type="module" src="/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
125
manifest.json
125
manifest.json
|
@ -1,32 +1,41 @@
|
||||||
{
|
{
|
||||||
"name" : "飞猴",
|
"name" : "飞猴云服务",
|
||||||
"appid" : "__UNI__25FB71A",
|
"appid" : "__UNI__BDCAFA5",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion" : 3,
|
"compilerVersion" : 3,
|
||||||
/* 5+App特有相关 */
|
"splashscreen" : {
|
||||||
"modules" : {},
|
"alwaysShowBeforeRender" : true,
|
||||||
|
"waiting" : true,
|
||||||
|
"autoclose" : true,
|
||||||
|
"delay" : 0
|
||||||
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"distribute" : {
|
"modules" : {
|
||||||
|
"Maps" : {}
|
||||||
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"android" : {
|
"distribute" : {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
|
"android" : {
|
||||||
"permissions" : [
|
"permissions" : [
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
|
||||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
|
"<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
||||||
|
@ -34,84 +43,50 @@
|
||||||
"<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
|
"<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ios" : {
|
|
||||||
"privacyDescription" : {
|
|
||||||
"NSLocationWhenInUseUsageDescription" : ""
|
|
||||||
},
|
|
||||||
"capabilities" : {
|
|
||||||
"entitlements" : {
|
|
||||||
"com.apple.developer.associated-domains" : [ "applinks:static-c27fa8d7-ef72-4327-ab9b-d4787a747ee3.bspapp.com" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
|
"ios" : {},
|
||||||
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
|
"ad" : {},
|
||||||
"maps" : {
|
"maps" : {
|
||||||
"amap" : {
|
"amap" : {
|
||||||
"appkey_ios" : "",
|
"appkey_ios" : "",
|
||||||
"appkey_android" : "57d6437544bb36bd3b5f4efb5b06ddbf"
|
"appkey_android" : ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"payment" : {
|
|
||||||
"weixin" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appid" : "wx2654bc27c419ada6",
|
|
||||||
"UniversalLinks" : "https://static-c27fa8d7-ef72-4327-ab9b-d4787a747ee3.bspapp.com/uni-universallinks/__UNI__25FB71A/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"push" : {},
|
|
||||||
"geolocation" : {
|
|
||||||
"system" : {
|
|
||||||
"__platform__" : [ "ios", "android" ]
|
|
||||||
},
|
|
||||||
"baidu" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appkey_ios" : "",
|
|
||||||
"appkey_android" : "mDcZsWM7gGKb7MC1bC8Mo33FScjYEr0I"
|
|
||||||
},
|
|
||||||
"amap" : {
|
|
||||||
"__platform__" : [ "ios", "android" ],
|
|
||||||
"appkey_ios" : "",
|
|
||||||
"appkey_android" : "57d6437544bb36bd3b5f4efb5b06ddbf"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"share" : {
|
|
||||||
"weixin" : {
|
|
||||||
"appid" : "wx2654bc27c419ada6",
|
|
||||||
"UniversalLinks" : "https://static-c27fa8d7-ef72-4327-ab9b-d4787a747ee3.bspapp.com/uni-universallinks/__UNI__25FB71A/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ad" : {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"splashscreen" : {
|
|
||||||
"alwaysShowBeforeRender" : false,
|
|
||||||
"waiting" : false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/* SDK配置 */
|
|
||||||
"quickapp" : {},
|
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"mp-weixin" : {
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
|
"mp-weixin" : {
|
||||||
"appid" : "wx372ffc194d87c693",
|
"appid" : "wx372ffc194d87c693",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : true,
|
"urlCheck" : false
|
||||||
"es6" : true
|
|
||||||
},
|
},
|
||||||
"usingComponents" : true,
|
"usingComponents" : true
|
||||||
"permission" : {
|
|
||||||
"scope.userLocation" : {
|
|
||||||
"desc" : "您的位置信息将用于小程序位置接口的效果展示"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
"mp-alipay" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-baidu" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"mp-toutiao" : {
|
||||||
|
"usingComponents" : true
|
||||||
|
},
|
||||||
|
"uniStatistics" : {
|
||||||
|
"enable" : false
|
||||||
|
},
|
||||||
|
"vueVersion" : "2",
|
||||||
"h5" : {
|
"h5" : {
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
"maps" : {
|
"maps" : {
|
||||||
|
@ -135,9 +110,5 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"mp-baidu" : {
|
|
||||||
"appid" : "24346353"
|
|
||||||
},
|
|
||||||
"_spaceID" : "c27fa8d7-ef72-4327-ab9b-d4787a747ee3"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"name": "轮播视频和图片",
|
||||||
|
"version": "1.0.1",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "轮播视频和图片",
|
||||||
|
"version": "1.0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,15 +24,12 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="padding">
|
<view class="padding">
|
||||||
<view class="devicename" v-if="current==0">
|
<view class="devicename" v-if="current==0">
|
||||||
<input type="text" class="fon28 width100 col3" v-model="data.project_number"
|
<input type="text" class="fon28 width100 col3" v-model="data.project_number" placeholder="请填写设备编号或扫描二维码" />
|
||||||
placeholder="请填写设备编号或扫描二维码" />
|
<image @click="scanCodeFun" class="sm flexs" src="../../static/iocn/sm.png" lazy-load mode=""></image>
|
||||||
<image @click="scanCodeFun" class="sm flexs" src="../../static/iocn/sm.png" lazy-load mode="">
|
|
||||||
</image>
|
|
||||||
</view>
|
</view>
|
||||||
<input v-else v-model="data.device_name" class="devicename" placeholder="请填写设备名称和型号(例:华为LED)" />
|
<input v-else v-model="data.device_name" class="devicename" placeholder="请填写设备名称和型号(例:华为LED)" />
|
||||||
<view class="fault-pictures radius10" @click="chooseImg">
|
<view class="fault-pictures radius10" @click="chooseImg">
|
||||||
<image class="fault-pictures-img" v-if="imgsrcArr.length>=1" :src="imgsrcArr[0]"
|
<image class="fault-pictures-img" v-if="imgsrcArr.length>=1" :src="imgsrcArr[0]" mode="aspectFill"></image>
|
||||||
mode="aspectFill"></image>
|
|
||||||
<view class="fault-pictures-con" v-else>
|
<view class="fault-pictures-con" v-else>
|
||||||
<image class="img" src="../../static/iocn/gz.png" lazy-load mode="aspectFill"></image>
|
<image class="img" src="../../static/iocn/gz.png" lazy-load mode="aspectFill"></image>
|
||||||
<view class="text">添加维保图片</view>
|
<view class="text">添加维保图片</view>
|
||||||
|
@ -41,19 +38,13 @@
|
||||||
<textarea v-model="data.fault_describe" class="fault-description radius10" placeholder="维保情况描述"
|
<textarea v-model="data.fault_describe" class="fault-description radius10" placeholder="维保情况描述"
|
||||||
placeholder-class="fault-description-text" />
|
placeholder-class="fault-description-text" />
|
||||||
<view class="detailed-address inputCss">
|
<view class="detailed-address inputCss">
|
||||||
<input type="text" v-model="data.service_address" class="fon26 width100 mar-y20"
|
<input type="text" v-model="data.service_address" class="fon26 width100 mar-y20" placeholder="请输入详细的上门服务地址" placeholder-class="inputCss-input" />
|
||||||
placeholder="请输入详细的上门服务地址" placeholder-class="inputCss-input" />
|
<image @click="mapFun" src="../../static/iocn/map.png" class="map flexs" mode="aspectFill"></image>
|
||||||
<image @click="mapFun" src="../../static/iocn/map.png" class="map flexs" mode="aspectFill">
|
|
||||||
</image>
|
|
||||||
</view>
|
</view>
|
||||||
<input type="text" class="inputCss" v-model="data.username" placeholder="请填写您的姓名"
|
<input type="text" class="inputCss" v-model="data.username" placeholder="请填写您的姓名" placeholder-class="inputCss-input" />
|
||||||
placeholder-class="inputCss-input" />
|
<input type="number" maxlength="11" class="inputCss" v-model="data.phone" placeholder="请填写联系电话" placeholder-class="inputCss-input" />
|
||||||
<input type="number" maxlength="11" class="inputCss" v-model="data.phone" placeholder="请填写联系电话"
|
<input type="text" class="inputCss" @tap="openDatetimePicker" disabled v-model="data.visit_time" placeholder="请选择上门时间" placeholder-class="inputCss-input" />
|
||||||
placeholder-class="inputCss-input" />
|
<yy-mm-dd-hh-ss ref="myPicker" @submit="handleSubmit" :start-year="2022" :end-year="2122"></yy-mm-dd-hh-ss>
|
||||||
<input type="text" class="inputCss" @tap="openDatetimePicker" disabled v-model="data.visit_time"
|
|
||||||
placeholder="请选择上门时间" placeholder-class="inputCss-input" />
|
|
||||||
<yy-mm-dd-hh-ss ref="myPicker" @submit="handleSubmit" :start-year="2022" :end-year="2122">
|
|
||||||
</yy-mm-dd-hh-ss>
|
|
||||||
<button class="submit-button" @click="submitButton()" type="default">提交维保申报</button>
|
<button class="submit-button" @click="submitButton()" type="default">提交维保申报</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
@ -1,77 +0,0 @@
|
||||||
{
|
|
||||||
"description": "项目配置文件",
|
|
||||||
"packOptions": {
|
|
||||||
"ignore": []
|
|
||||||
},
|
|
||||||
"setting": {
|
|
||||||
"urlCheck": true,
|
|
||||||
"es6": true,
|
|
||||||
"enhance": true,
|
|
||||||
"postcss": true,
|
|
||||||
"preloadBackgroundData": false,
|
|
||||||
"minified": true,
|
|
||||||
"newFeature": false,
|
|
||||||
"coverView": true,
|
|
||||||
"nodeModules": false,
|
|
||||||
"autoAudits": false,
|
|
||||||
"showShadowRootInWxmlPanel": true,
|
|
||||||
"scopeDataCheck": false,
|
|
||||||
"uglifyFileName": false,
|
|
||||||
"checkInvalidKey": true,
|
|
||||||
"checkSiteMap": true,
|
|
||||||
"uploadWithSourceMap": true,
|
|
||||||
"compileHotReLoad": false,
|
|
||||||
"lazyloadPlaceholderEnable": false,
|
|
||||||
"useMultiFrameRuntime": true,
|
|
||||||
"useApiHook": true,
|
|
||||||
"useApiHostProcess": true,
|
|
||||||
"babelSetting": {
|
|
||||||
"ignore": [],
|
|
||||||
"disablePlugins": [],
|
|
||||||
"outputPath": ""
|
|
||||||
},
|
|
||||||
"useIsolateContext": false,
|
|
||||||
"userConfirmedBundleSwitch": false,
|
|
||||||
"packNpmManually": false,
|
|
||||||
"packNpmRelationList": [],
|
|
||||||
"minifyWXSS": true,
|
|
||||||
"disableUseStrict": false,
|
|
||||||
"minifyWXML": true,
|
|
||||||
"showES6CompileOption": false,
|
|
||||||
"useCompilerPlugins": false,
|
|
||||||
"ignoreUploadUnusedFiles": true
|
|
||||||
},
|
|
||||||
"compileType": "miniprogram",
|
|
||||||
"libVersion": "2.22.0",
|
|
||||||
"appid": "wx987dc41899f719e8",
|
|
||||||
"projectname": "%E4%BD%A9%E4%B8%BD%E5%95%86%E5%9F%8E",
|
|
||||||
"debugOptions": {
|
|
||||||
"hidedInDevtools": []
|
|
||||||
},
|
|
||||||
"scripts": {},
|
|
||||||
"staticServerOptions": {
|
|
||||||
"baseURL": "",
|
|
||||||
"servePath": ""
|
|
||||||
},
|
|
||||||
"isGameTourist": false,
|
|
||||||
"condition": {
|
|
||||||
"search": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"conversation": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"game": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"plugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"gamePlugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"miniprogram": {
|
|
||||||
"list": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
36
uni.scss
36
uni.scss
|
@ -39,38 +39,38 @@ $uni-border-color:#c8c7cc;
|
||||||
/* 尺寸变量 */
|
/* 尺寸变量 */
|
||||||
|
|
||||||
/* 文字尺寸 */
|
/* 文字尺寸 */
|
||||||
$uni-font-size-sm:24upx;
|
$uni-font-size-sm:12px;
|
||||||
$uni-font-size-base:28upx;
|
$uni-font-size-base:14px;
|
||||||
$uni-font-size-lg:32upx;
|
$uni-font-size-lg:16;
|
||||||
|
|
||||||
/* 图片尺寸 */
|
/* 图片尺寸 */
|
||||||
$uni-img-size-sm:40upx;
|
$uni-img-size-sm:20px;
|
||||||
$uni-img-size-base:52upx;
|
$uni-img-size-base:26px;
|
||||||
$uni-img-size-lg:80upx;
|
$uni-img-size-lg:40px;
|
||||||
|
|
||||||
/* Border Radius */
|
/* Border Radius */
|
||||||
$uni-border-radius-sm: 4upx;
|
$uni-border-radius-sm: 2px;
|
||||||
$uni-border-radius-base: 6upx;
|
$uni-border-radius-base: 3px;
|
||||||
$uni-border-radius-lg: 12upx;
|
$uni-border-radius-lg: 6px;
|
||||||
$uni-border-radius-circle: 50%;
|
$uni-border-radius-circle: 50%;
|
||||||
|
|
||||||
/* 水平间距 */
|
/* 水平间距 */
|
||||||
$uni-spacing-row-sm: 10px;
|
$uni-spacing-row-sm: 5px;
|
||||||
$uni-spacing-row-base: 20upx;
|
$uni-spacing-row-base: 10px;
|
||||||
$uni-spacing-row-lg: 30upx;
|
$uni-spacing-row-lg: 15px;
|
||||||
|
|
||||||
/* 垂直间距 */
|
/* 垂直间距 */
|
||||||
$uni-spacing-col-sm: 8upx;
|
$uni-spacing-col-sm: 4px;
|
||||||
$uni-spacing-col-base: 16upx;
|
$uni-spacing-col-base: 8px;
|
||||||
$uni-spacing-col-lg: 24upx;
|
$uni-spacing-col-lg: 12px;
|
||||||
|
|
||||||
/* 透明度 */
|
/* 透明度 */
|
||||||
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
|
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
|
||||||
|
|
||||||
/* 文章场景相关 */
|
/* 文章场景相关 */
|
||||||
$uni-color-title: #2C405A; // 文章标题颜色
|
$uni-color-title: #2C405A; // 文章标题颜色
|
||||||
$uni-font-size-title:40upx;
|
$uni-font-size-title:20px;
|
||||||
$uni-color-subtitle: #555555; // 二级标题颜色
|
$uni-color-subtitle: #555555; // 二级标题颜色
|
||||||
$uni-font-size-subtitle:36upx;
|
$uni-font-size-subtitle:26px;
|
||||||
$uni-color-paragraph: #3F536E; // 文章段落颜色
|
$uni-color-paragraph: #3F536E; // 文章段落颜色
|
||||||
$uni-font-size-paragraph:30upx;
|
$uni-font-size-paragraph:15px;
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
|
const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
|
||||||
|
|
||||||
//事件转换函数,主要用作格式化x轴为时间轴,根据需求自行修改
|
//事件转换函数,主要用作格式化x轴为时间轴,根据需求自行修改
|
||||||
const formatDateTime = (timeStamp, returnType)=>{
|
const formatDateTime = (timeStamp, returnType) => {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
date.setTime(timeStamp * 1000);
|
date.setTime(timeStamp * 1000);
|
||||||
var y = date.getFullYear();
|
var y = date.getFullYear();
|
||||||
|
@ -34,51 +34,73 @@ const formatDateTime = (timeStamp, returnType)=>{
|
||||||
var second = date.getSeconds();
|
var second = date.getSeconds();
|
||||||
minute = minute < 10 ? ('0' + minute) : minute;
|
minute = minute < 10 ? ('0' + minute) : minute;
|
||||||
second = second < 10 ? ('0' + second) : second;
|
second = second < 10 ? ('0' + second) : second;
|
||||||
if(returnType == 'full'){return y + '-' + m + '-' + d + ' '+ h +':' + minute + ':' + second;}
|
if (returnType == 'full') {
|
||||||
if(returnType == 'y-m-d'){return y + '-' + m + '-' + d;}
|
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
|
||||||
if(returnType == 'h:m'){return h +':' + minute;}
|
}
|
||||||
if(returnType == 'h:m:s'){return h +':' + minute +':' + second;}
|
if (returnType == 'y-m-d') {
|
||||||
|
return y + '-' + m + '-' + d;
|
||||||
|
}
|
||||||
|
if (returnType == 'h:m') {
|
||||||
|
return h + ':' + minute;
|
||||||
|
}
|
||||||
|
if (returnType == 'h:m:s') {
|
||||||
|
return h + ':' + minute + ':' + second;
|
||||||
|
}
|
||||||
return [y, m, d, h, minute, second];
|
return [y, m, d, h, minute, second];
|
||||||
}
|
}
|
||||||
|
|
||||||
const cfu = {
|
const cfu = {
|
||||||
//demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
|
//demotype为自定义图表类型,一般不需要自定义图表类型,只需要改根节点上对应的类型即可
|
||||||
"type":["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],
|
"type": ["pie", "ring", "rose", "word", "funnel", "map", "arcbar", "line", "column", "bar", "area", "radar",
|
||||||
"range":["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],
|
"gauge", "candle", "mix", "tline", "tarea", "scatter", "bubble", "demotype"
|
||||||
|
],
|
||||||
|
"range": ["饼状图", "圆环图", "玫瑰图", "词云图", "漏斗图", "地图", "圆弧进度条", "折线图", "柱状图", "条状图", "区域图", "雷达图", "仪表盘", "K线图",
|
||||||
|
"混合图", "时间轴折线", "时间轴区域", "散点图", "气泡图", "自定义类型"
|
||||||
|
],
|
||||||
//增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
|
//增加自定义图表类型,如果需要categories,请在这里加入您的图表类型,例如最后的"demotype"
|
||||||
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
|
//自定义类型时需要注意"tline","tarea","scatter","bubble"等时间轴(矢量x轴)类图表,没有categories,不需要加入categories
|
||||||
"categories":["line","column","bar","area","radar","gauge","candle","mix","demotype"],
|
"categories": ["line", "column", "bar", "area", "radar", "gauge", "candle", "mix", "demotype"],
|
||||||
//instance为实例变量承载属性,不要删除
|
//instance为实例变量承载属性,不要删除
|
||||||
"instance":{},
|
"instance": {},
|
||||||
//option为opts及eopts承载属性,不要删除
|
//option为opts及eopts承载属性,不要删除
|
||||||
"option":{},
|
"option": {},
|
||||||
//下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
|
//下面是自定义format配置,因除H5端外的其他端无法通过props传递函数,只能通过此属性对应下标的方式来替换
|
||||||
"formatter":{
|
"formatter": {
|
||||||
"yAxisDemo1":function(val){return val+'元'},
|
"yAxisDemo1": function(val) {
|
||||||
"yAxisDemo2":function(val){return val.toFixed(2)},
|
return val + '元'
|
||||||
"xAxisDemo1":function(val){return val+'年'},
|
},
|
||||||
"xAxisDemo2":function(val){return formatDateTime(val,'h:m')},
|
"yAxisDemo2": function(val) {
|
||||||
"seriesDemo1":function(val){return val+'元'},
|
return val.toFixed(2)
|
||||||
"tooltipDemo1":function(item, category, index, opts){
|
},
|
||||||
|
"xAxisDemo1": function(val) {
|
||||||
|
return val + '年'
|
||||||
|
},
|
||||||
|
"xAxisDemo2": function(val) {
|
||||||
|
return formatDateTime(val, 'h:m')
|
||||||
|
},
|
||||||
|
"seriesDemo1": function(val) {
|
||||||
|
return val + '元'
|
||||||
|
},
|
||||||
|
"tooltipDemo1": function(item, category, index, opts) {
|
||||||
|
|
||||||
if(index==0){
|
if (index == 0) {
|
||||||
return '随便用'+item.data+'年'
|
return '随便用' + item.data + '年'
|
||||||
}else{
|
} else {
|
||||||
return item.name+item.data+'%'
|
return item.name + item.data + '%'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pieDemo":function(val, index, series){
|
"pieDemo": function(val, index, series) {
|
||||||
if(index !== undefined){
|
if (index !== undefined) {
|
||||||
return series[index].name+"\n"+series[index].data+'元'
|
return series[index].name + "\n" + series[index].data + '元'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
//这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
|
//这里演示了自定义您的图表类型的option,可以随意命名,之后在组件上 type="demotype" 后,组件会调用这个花括号里的option,如果组件上还存在opts参数,会将demotype与opts中option合并后渲染图表。
|
||||||
"demotype":{
|
"demotype": {
|
||||||
//我这里把曲线图当做了自定义图表类型,您可以根据需要随意指定类型或配置
|
//我这里把曲线图当做了自定义图表类型,您可以根据需要随意指定类型或配置
|
||||||
"type": "line",
|
"type": "line",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,10,0,15],
|
"padding": [15, 10, 0, 15],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": true,
|
"disableGrid": true,
|
||||||
},
|
},
|
||||||
|
@ -86,8 +108,7 @@ const cfu = {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"line": {
|
"line": {
|
||||||
"type": "curve",
|
"type": "curve",
|
||||||
|
@ -96,7 +117,7 @@ const cfu = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//下面是自定义配置,请添加项目所需的通用配置
|
//下面是自定义配置,请添加项目所需的通用配置
|
||||||
"pie":{
|
"pie": {
|
||||||
"type": "pie",
|
"type": "pie",
|
||||||
"canvasId": "",
|
"canvasId": "",
|
||||||
"canvas2d": false,
|
"canvas2d": false,
|
||||||
|
@ -183,10 +204,10 @@ const cfu = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ring":{
|
"ring": {
|
||||||
"type": "ring",
|
"type": "ring",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [5,5,5,5],
|
"padding": [5, 5, 5, 5],
|
||||||
"rotate": false,
|
"rotate": false,
|
||||||
"dataLabel": true,
|
"dataLabel": true,
|
||||||
"legend": {
|
"legend": {
|
||||||
|
@ -206,7 +227,7 @@ const cfu = {
|
||||||
// },
|
// },
|
||||||
"extra": {
|
"extra": {
|
||||||
"ring": {
|
"ring": {
|
||||||
"ringWidth":30,
|
"ringWidth": 30,
|
||||||
"activeOpacity": 0.5,
|
"activeOpacity": 0.5,
|
||||||
"activeRadius": 10,
|
"activeRadius": 10,
|
||||||
"offsetAngle": 0,
|
"offsetAngle": 0,
|
||||||
|
@ -217,10 +238,10 @@ const cfu = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"rose":{
|
"rose": {
|
||||||
"type": "rose",
|
"type": "rose",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [5,5,5,5],
|
"padding": [5, 5, 5, 5],
|
||||||
"legend": {
|
"legend": {
|
||||||
"show": true,
|
"show": true,
|
||||||
"position": "left",
|
"position": "left",
|
||||||
|
@ -240,7 +261,7 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"word":{
|
"word": {
|
||||||
"type": "word",
|
"type": "word",
|
||||||
"color": color,
|
"color": color,
|
||||||
"extra": {
|
"extra": {
|
||||||
|
@ -250,10 +271,10 @@ const cfu = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"funnel":{
|
"funnel": {
|
||||||
"type": "funnel",
|
"type": "funnel",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,15,0,15],
|
"padding": [15, 15, 0, 15],
|
||||||
"extra": {
|
"extra": {
|
||||||
"funnel": {
|
"funnel": {
|
||||||
"activeOpacity": 0.3,
|
"activeOpacity": 0.3,
|
||||||
|
@ -266,10 +287,10 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"map":{
|
"map": {
|
||||||
"type": "map",
|
"type": "map",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [0,0,0,0],
|
"padding": [0, 0, 0, 0],
|
||||||
"dataLabel": true,
|
"dataLabel": true,
|
||||||
"extra": {
|
"extra": {
|
||||||
"map": {
|
"map": {
|
||||||
|
@ -283,7 +304,7 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"arcbar":{
|
"arcbar": {
|
||||||
"type": "arcbar",
|
"type": "arcbar",
|
||||||
"color": color,
|
"color": color,
|
||||||
"title": {
|
"title": {
|
||||||
|
@ -307,10 +328,10 @@ const cfu = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"line":{
|
"line": {
|
||||||
"type": "line",
|
"type": "line",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,10,0,15],
|
"padding": [15, 10, 0, 15],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": true,
|
"disableGrid": true,
|
||||||
},
|
},
|
||||||
|
@ -318,8 +339,7 @@ const cfu = {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"line": {
|
"line": {
|
||||||
"type": "straight",
|
"type": "straight",
|
||||||
|
@ -327,26 +347,23 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tline":{
|
"tline": {
|
||||||
"type": "line",
|
"type": "line",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,10,0,15],
|
"padding": [15, 10, 0, 15],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"boundaryGap":"justify",
|
"boundaryGap": "justify",
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
"data":[
|
"data": [{
|
||||||
{
|
"min": 0,
|
||||||
"min":0,
|
"max": 80
|
||||||
"max":80
|
}]
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"line": {
|
"line": {
|
||||||
"type": "curve",
|
"type": "curve",
|
||||||
|
@ -354,26 +371,23 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tarea":{
|
"tarea": {
|
||||||
"type": "area",
|
"type": "area",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,10,0,15],
|
"padding": [15, 10, 0, 15],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": true,
|
"disableGrid": true,
|
||||||
"boundaryGap":"justify",
|
"boundaryGap": "justify",
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
"data":[
|
"data": [{
|
||||||
{
|
"min": 0,
|
||||||
"min":0,
|
"max": 80
|
||||||
"max":80
|
}]
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"area": {
|
"area": {
|
||||||
"type": "curve",
|
"type": "curve",
|
||||||
|
@ -384,18 +398,19 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"column":{
|
"column": {
|
||||||
"type": "column",
|
"type": "column",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,15,0,5],
|
"padding": [15, 15, 0, 5],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": true,
|
"disableGrid": true,
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"data":[{"min":0}]
|
"data": [{
|
||||||
},
|
"min": 0
|
||||||
"legend": {
|
}]
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"column": {
|
"column": {
|
||||||
"type": "group",
|
"type": "group",
|
||||||
|
@ -405,20 +420,18 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bar":{
|
"bar": {
|
||||||
"type": "bar",
|
"type": "bar",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,30,0,5],
|
"padding": [15, 30, 0, 5],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"boundaryGap":"justify",
|
"boundaryGap": "justify",
|
||||||
"disableGrid":false,
|
"disableGrid": false,
|
||||||
"min":0,
|
"min": 0,
|
||||||
"axisLine":false
|
"axisLine": false
|
||||||
},
|
|
||||||
"yAxis": {
|
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
},
|
},
|
||||||
|
"yAxis": {},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "group",
|
"type": "group",
|
||||||
|
@ -430,10 +443,10 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"area":{
|
"area": {
|
||||||
"type": "area",
|
"type": "area",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,15,0,15],
|
"padding": [15, 15, 0, 15],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": true,
|
"disableGrid": true,
|
||||||
},
|
},
|
||||||
|
@ -441,8 +454,7 @@ const cfu = {
|
||||||
"gridType": "dash",
|
"gridType": "dash",
|
||||||
"dashLength": 2,
|
"dashLength": 2,
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"area": {
|
"area": {
|
||||||
"type": "straight",
|
"type": "straight",
|
||||||
|
@ -453,10 +465,10 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"radar":{
|
"radar": {
|
||||||
"type": "radar",
|
"type": "radar",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [5,5,5,5],
|
"padding": [5, 5, 5, 5],
|
||||||
"dataLabel": false,
|
"dataLabel": false,
|
||||||
"legend": {
|
"legend": {
|
||||||
"show": true,
|
"show": true,
|
||||||
|
@ -473,7 +485,7 @@ const cfu = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gauge":{
|
"gauge": {
|
||||||
"type": "gauge",
|
"type": "gauge",
|
||||||
"color": color,
|
"color": color,
|
||||||
"title": {
|
"title": {
|
||||||
|
@ -513,10 +525,10 @@ const cfu = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"candle":{
|
"candle": {
|
||||||
"type": "candle",
|
"type": "candle",
|
||||||
"color": color,
|
"color": color,
|
||||||
"padding": [15,15,0,15],
|
"padding": [15, 15, 0, 15],
|
||||||
"enableScroll": true,
|
"enableScroll": true,
|
||||||
"enableMarkLine": true,
|
"enableMarkLine": true,
|
||||||
"dataLabel": false,
|
"dataLabel": false,
|
||||||
|
@ -532,10 +544,8 @@ const cfu = {
|
||||||
"scrollColor": "#A6A6A6",
|
"scrollColor": "#A6A6A6",
|
||||||
"scrollBackgroundColor": "#EFEBEF"
|
"scrollBackgroundColor": "#EFEBEF"
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {},
|
||||||
},
|
"legend": {},
|
||||||
"legend": {
|
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"candle": {
|
"candle": {
|
||||||
"color": {
|
"color": {
|
||||||
|
@ -546,16 +556,15 @@ const cfu = {
|
||||||
},
|
},
|
||||||
"average": {
|
"average": {
|
||||||
"show": true,
|
"show": true,
|
||||||
"name": ["MA5","MA10","MA30"],
|
"name": ["MA5", "MA10", "MA30"],
|
||||||
"day": [5,10,20],
|
"day": [5, 10, 20],
|
||||||
"color": ["#1890ff","#2fc25b","#facc14"]
|
"color": ["#1890ff", "#2fc25b", "#facc14"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"markLine": {
|
"markLine": {
|
||||||
"type": "dash",
|
"type": "dash",
|
||||||
"dashLength": 5,
|
"dashLength": 5,
|
||||||
"data": [
|
"data": [{
|
||||||
{
|
|
||||||
"value": 2150,
|
"value": 2150,
|
||||||
"lineColor": "#f04864",
|
"lineColor": "#f04864",
|
||||||
"showLabel": true
|
"showLabel": true
|
||||||
|
@ -569,7 +578,7 @@ const cfu = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mix":{
|
"mix": {
|
||||||
"type": "mix",
|
"type": "mix",
|
||||||
"canvasId": "",
|
"canvasId": "",
|
||||||
"canvas2d": false,
|
"canvas2d": false,
|
||||||
|
@ -597,7 +606,7 @@ const cfu = {
|
||||||
"rotate": false,
|
"rotate": false,
|
||||||
"errorReload": true,
|
"errorReload": true,
|
||||||
"fontSize": 13,
|
"fontSize": 13,
|
||||||
"fontColor": "#666666",
|
"fontColor": "#666666",//数字颜色
|
||||||
"enableScroll": false,
|
"enableScroll": false,
|
||||||
"touchMoveLimit": 60,
|
"touchMoveLimit": 60,
|
||||||
"enableMarkLine": false,
|
"enableMarkLine": false,
|
||||||
|
@ -605,7 +614,7 @@ const cfu = {
|
||||||
"dataPointShape": true,
|
"dataPointShape": true,
|
||||||
"dataPointShapeType": "solid",
|
"dataPointShapeType": "solid",
|
||||||
"tapLegend": true,
|
"tapLegend": true,
|
||||||
"xAxis": {
|
"xAxis": {//x轴
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"axisLine": true,
|
"axisLine": true,
|
||||||
"axisLineColor": "#CCCCCC",
|
"axisLineColor": "#CCCCCC",
|
||||||
|
@ -626,19 +635,18 @@ const cfu = {
|
||||||
"scrollBackgroundColor": "#EFEBEF",
|
"scrollBackgroundColor": "#EFEBEF",
|
||||||
"format": ""
|
"format": ""
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {//y轴
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"splitNumber": 5,
|
"splitNumber": 5,
|
||||||
"gridType": "dash",
|
"gridType": "solid",//dash:虚线 solid:实线
|
||||||
"dashLength": 4,
|
"dashLength": 4,
|
||||||
"gridColor": "#CCCCCC",
|
"gridColor": "#CCCCCC",
|
||||||
"padding": 10,
|
"padding": 10,
|
||||||
"showTitle": true,
|
"showTitle": true,
|
||||||
"data": [
|
"data": [{
|
||||||
{
|
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"title": "折线",
|
"title": "折线"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"position": "top",
|
"position": "top",
|
||||||
|
@ -681,7 +689,7 @@ const cfu = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"showBox": true,
|
"showBox": false,//点击时不显示描述信息
|
||||||
"showArrow": true,
|
"showArrow": true,
|
||||||
"showCategory": false,
|
"showCategory": false,
|
||||||
"borderWidth": 0,
|
"borderWidth": 0,
|
||||||
|
@ -694,7 +702,7 @@ const cfu = {
|
||||||
"dashLength": 4,
|
"dashLength": 4,
|
||||||
"gridColor": "#CCCCCC",
|
"gridColor": "#CCCCCC",
|
||||||
"fontColor": "#FFFFFF",
|
"fontColor": "#FFFFFF",
|
||||||
"splitLine": true,
|
"splitLine": false,//点击时不显示选中竖线
|
||||||
"horizentalLine": false,
|
"horizentalLine": false,
|
||||||
"xAxisLabel": false,
|
"xAxisLabel": false,
|
||||||
"yAxisLabel": false,
|
"yAxisLabel": false,
|
||||||
|
@ -709,54 +717,51 @@ const cfu = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scatter":{
|
"scatter": {
|
||||||
"type": "scatter",
|
"type": "scatter",
|
||||||
"color":color,
|
"color": color,
|
||||||
"padding":[15,15,0,15],
|
"padding": [15, 15, 0, 15],
|
||||||
"dataLabel":false,
|
"dataLabel": false,
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"gridType":"dash",
|
"gridType": "dash",
|
||||||
"splitNumber":5,
|
"splitNumber": 5,
|
||||||
"boundaryGap":"justify",
|
"boundaryGap": "justify",
|
||||||
"min":0
|
"min": 0
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"gridType":"dash",
|
"gridType": "dash",
|
||||||
},
|
|
||||||
"legend": {
|
|
||||||
},
|
},
|
||||||
|
"legend": {},
|
||||||
"extra": {
|
"extra": {
|
||||||
"scatter": {
|
"scatter": {},
|
||||||
},
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bubble":{
|
"bubble": {
|
||||||
"type": "bubble",
|
"type": "bubble",
|
||||||
"color":color,
|
"color": color,
|
||||||
"padding":[15,15,0,15],
|
"padding": [15, 15, 0, 15],
|
||||||
"xAxis": {
|
"xAxis": {
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"gridType":"dash",
|
"gridType": "dash",
|
||||||
"splitNumber":5,
|
"splitNumber": 5,
|
||||||
"boundaryGap":"justify",
|
"boundaryGap": "justify",
|
||||||
"min":0,
|
"min": 0,
|
||||||
"max":250
|
"max": 250
|
||||||
},
|
},
|
||||||
"yAxis": {
|
"yAxis": {
|
||||||
"disableGrid": false,
|
"disableGrid": false,
|
||||||
"gridType":"dash",
|
"gridType": "dash",
|
||||||
"data":[{
|
"data": [{
|
||||||
"min":0,
|
"min": 0,
|
||||||
"max":150
|
"max": 150
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
"legend": {
|
"legend": {},
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"bubble": {
|
"bubble": {
|
||||||
"border":2,
|
"border": 2,
|
||||||
"opacity": 0.5,
|
"opacity": 0.5,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue