widget-map.js 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /*
  2. * @Descripttion: 中国地图 json
  3. * @version:
  4. * @Author: qianlishi
  5. * @Date: 2021-08-29 07:31:21
  6. * @LastEditors: qianlishi
  7. * @LastEditTime: 2021-09-28 14:17:20
  8. */
  9. export const widgetMap = {
  10. code: 'widget-map',
  11. type: 'chart',
  12. label: '中国地图',
  13. icon: 'iconzhongguoditu',
  14. options: {
  15. setup: [
  16. {
  17. type: 'el-input-text',
  18. label: '图层名称',
  19. name: 'layerName',
  20. required: false,
  21. placeholder: '',
  22. value: '路线图',
  23. },
  24. {
  25. type: 'vue-color',
  26. label: '背景颜色',
  27. name: 'background',
  28. required: false,
  29. placeholder: '',
  30. value: ''
  31. },
  32. [
  33. {
  34. name: '标题设置',
  35. list: [
  36. {
  37. type: 'el-switch',
  38. label: '标题',
  39. name: 'isNoTitle',
  40. required: false,
  41. placeholder: '',
  42. value: true
  43. },
  44. {
  45. type: 'el-input-text',
  46. label: '标题',
  47. name: 'titleText',
  48. required: false,
  49. placeholder: '',
  50. value: ''
  51. },
  52. {
  53. type: 'vue-color',
  54. label: '字体颜色',
  55. name: 'textColor',
  56. required: false,
  57. placeholder: '',
  58. value: '#fff'
  59. },
  60. {
  61. type: 'el-select',
  62. label: '字体粗细',
  63. name: 'textFontWeight',
  64. required: false,
  65. placeholder: '',
  66. selectOptions: [
  67. {code: 'normal', name: '正常'},
  68. {code: 'bold', name: '粗体'},
  69. {code: 'bolder', name: '特粗体'},
  70. {code: 'lighter', name: '细体'}
  71. ],
  72. value: 'normal'
  73. },
  74. {
  75. type: 'el-input-number',
  76. label: '字体大小',
  77. name: 'textFontSize',
  78. required: false,
  79. placeholder: '',
  80. value: 20
  81. },
  82. {
  83. type: 'el-select',
  84. label: '字体位置',
  85. name: 'textAlign',
  86. required: false,
  87. placeholder: '',
  88. selectOptions: [
  89. {code: 'center', name: '居中'},
  90. {code: 'left', name: '左对齐'},
  91. {code: 'right', name: '右对齐'},
  92. ],
  93. value: 'center'
  94. },
  95. {
  96. type: 'el-input-text',
  97. label: '副标题',
  98. name: 'subText',
  99. required: false,
  100. placeholder: '',
  101. value: ''
  102. },
  103. {
  104. type: 'vue-color',
  105. label: '字体颜色',
  106. name: 'subTextColor',
  107. required: false,
  108. placeholder: '',
  109. value: ''
  110. },
  111. {
  112. type: 'el-select',
  113. label: '字体粗细',
  114. name: 'subTextFontWeight',
  115. required: false,
  116. placeholder: '',
  117. selectOptions: [
  118. {code: 'normal', name: '正常'},
  119. {code: 'bold', name: '粗体'},
  120. {code: 'bolder', name: '特粗体'},
  121. {code: 'lighter', name: '细体'}
  122. ],
  123. value: 'normal'
  124. },
  125. {
  126. type: 'el-input-number',
  127. label: '字体大小',
  128. name: 'subTextFontSize',
  129. required: false,
  130. placeholder: '',
  131. value: 12
  132. },
  133. ],
  134. },
  135. {
  136. name: '字体设置',
  137. list: [
  138. {
  139. type: 'el-input-number',
  140. label: '文字大小',
  141. name: 'fontTextSize',
  142. required: false,
  143. placeholder: '',
  144. value: 15,
  145. },
  146. {
  147. type: 'vue-color',
  148. label: '文字颜色',
  149. name: 'fontTextColor',
  150. required: false,
  151. placeholder: '',
  152. value: '#46bee9'
  153. },
  154. {
  155. type: 'el-select',
  156. label: '文字粗细',
  157. name: 'fontTextWeight',
  158. required: false,
  159. placeholder: '',
  160. selectOptions: [
  161. {code: 'normal', name: '正常'},
  162. {code: 'bold', name: '粗体'},
  163. {code: 'bolder', name: '特粗体'},
  164. {code: 'lighter', name: '细体'}
  165. ],
  166. value: 'normal'
  167. },
  168. ],
  169. },
  170. {
  171. name: '点设置',
  172. list: [
  173. {
  174. type: 'el-input-number',
  175. label: '点大小',
  176. name: 'pointSize',
  177. required: false,
  178. placeholder: '',
  179. value: 5,
  180. },
  181. {
  182. type: 'vue-color',
  183. label: '点颜色',
  184. name: 'pointColor',
  185. required: false,
  186. placeholder: '',
  187. value: '#46bee9'
  188. },
  189. ],
  190. },
  191. ]
  192. ],
  193. data: [
  194. {
  195. type: 'el-radio-group',
  196. label: '数据类型',
  197. name: 'dataType',
  198. require: false,
  199. placeholder: '',
  200. selectValue: true,
  201. selectOptions: [
  202. {
  203. code: 'staticData',
  204. name: '静态数据',
  205. },
  206. {
  207. code: 'dynamicData',
  208. name: '动态数据',
  209. },
  210. ],
  211. value: 'staticData',
  212. },
  213. {
  214. type: 'el-input-number',
  215. label: '刷新时间(毫秒)',
  216. name: 'refreshTime',
  217. relactiveDom: 'dataType',
  218. relactiveDomValue: 'dynamicData',
  219. value: 5000
  220. },
  221. {
  222. type: 'el-button',
  223. label: '静态数据',
  224. name: 'staticData',
  225. required: false,
  226. placeholder: '',
  227. relactiveDom: 'dataType',
  228. relactiveDomValue: 'staticData',
  229. value: [
  230. {source: '北京', target: '上海', value: 95},
  231. {source: '北京', target: '广州', value: 90},
  232. {source: '北京', target: '大连', value: 80},
  233. {source: '北京', target: '南宁', value: 70},
  234. {source: '北京', target: '南昌', value: 60},
  235. {source: '北京', target: '拉萨', value: 50},
  236. {source: '北京', target: '长春', value: 40},
  237. {source: '北京', target: '包头', value: 30},
  238. {source: '北京', target: '重庆', value: 20},
  239. {source: '北京', target: '常州', value: 10},
  240. {source: '上海', target: '包头', value: 95},
  241. {source: '上海', target: '昆明', value: 90},
  242. {source: '上海', target: '广州', value: 80},
  243. {source: '上海', target: '郑州', value: 70},
  244. {source: '上海', target: '长春', value: 60},
  245. {source: '上海', target: '重庆', value: 50},
  246. {source: '上海', target: '长沙', value: 40},
  247. {source: '上海', target: '北京', value: 30},
  248. {source: '上海', target: '丹东', value: 20},
  249. {source: '上海', target: '大连', value: 10},
  250. {source: '广州', target: '福州', value: 95},
  251. {source: '广州', target: '太原', value: 90},
  252. {source: '广州', target: '长春', value: 80},
  253. {source: '广州', target: '重庆', value: 70},
  254. {source: '广州', target: '西安', value: 60},
  255. {source: '广州', target: '成都', value: 50},
  256. {source: '广州', target: '常州', value: 40},
  257. {source: '广州', target: '北京', value: 30},
  258. {source: '广州', target: '北海', value: 20},
  259. {source: '广州', target: '海口', value: 10},
  260. ],
  261. },
  262. {
  263. type: 'dycustComponents',
  264. label: '',
  265. name: 'dynamicData',
  266. required: false,
  267. placeholder: '',
  268. relactiveDom: 'dataType',
  269. chartType: 'widget-mapline',
  270. dictKey: 'SOUTAR_PROPERTIES',
  271. relactiveDomValue: 'dynamicData',
  272. value: '',
  273. },
  274. ],
  275. position: [
  276. {
  277. type: 'el-input-number',
  278. label: '左边距',
  279. name: 'left',
  280. required: false,
  281. placeholder: '',
  282. value: 0,
  283. },
  284. {
  285. type: 'el-input-number',
  286. label: '上边距',
  287. name: 'top',
  288. required: false,
  289. placeholder: '',
  290. value: 0,
  291. },
  292. {
  293. type: 'el-input-number',
  294. label: '宽度',
  295. name: 'width',
  296. required: false,
  297. placeholder: '该容器在1920px大屏中的宽度',
  298. value: 600,
  299. },
  300. {
  301. type: 'el-input-number',
  302. label: '高度',
  303. name: 'height',
  304. required: false,
  305. placeholder: '该容器在1080px大屏中的高度',
  306. value: 400,
  307. },
  308. ]
  309. }
  310. }