参数调整
This commit is contained in:
		| @@ -70,6 +70,9 @@ export default { | ||||
|         </el-option> | ||||
|       </el-select> | ||||
|     </config-item> | ||||
|     <config-item label="图表模板"> | ||||
|       <chart-picker v-model="config.type" :tpls="layers" @input="v=>config.echartOps=$echartTpls[v]"/> | ||||
|     </config-item> | ||||
|     <template v-if="/(AiDvMap|linkageMap)/.test(config.type)"> | ||||
|       <config-item label="地图数据(geoJSON)"> | ||||
|         <el-input v-model="config.geoJson" size="mini" clearable placeholder="请输入geoJson的URL地址"/> | ||||
| @@ -89,9 +92,6 @@ export default { | ||||
|       </group-item> | ||||
|     </template> | ||||
|     <template v-if="/Chart/.test(config.type)"> | ||||
|       <config-item label="图表模板"> | ||||
|         <chart-picker v-model="config.config" @input="v=>config.echartOps=$echartTpls[v]"/> | ||||
|       </config-item> | ||||
|       <config-item label="图表配置项" top-label> | ||||
|         <json-editor v-model="config.echartOps"/> | ||||
|       </config-item> | ||||
|   | ||||
| @@ -26,7 +26,7 @@ | ||||
|                     :key="`chart-${index}`" | ||||
|                     :theme="theme" | ||||
|                     :data="values" | ||||
|                     :tpl="data.config" | ||||
|                     :tpl="currentType" | ||||
|                     :ops="data.echartOps"/> | ||||
|       <AiDvTable | ||||
|           v-else-if="currentType === 'AiDvTable'" | ||||
|   | ||||
| @@ -129,7 +129,7 @@ export default { | ||||
|     theme() { | ||||
|       this.refresh() | ||||
|     }, | ||||
|     tpl(v) { | ||||
|     type(v) { | ||||
|       v && this.refresh() | ||||
|     } | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user