多维表功能完成
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
<config-item label="接口地址" v-else-if="chart.dataType=='apiData'">
|
||||
<el-input size="mini" v-model="chart.api"/>
|
||||
</config-item>
|
||||
<config-item label="数据维度" v-if="chart.dataType !== 'staticData'">
|
||||
<code-editor v-model="chart.djson" lang="json" theme="github" width="100%" height="100"
|
||||
placeholder="参照echarts配置数据维度,为一个数组,数组的第一个值为维度值"
|
||||
@change="v=>chart.dimensions=JSON.parse(v)"/>
|
||||
</config-item>
|
||||
</ai-fold>
|
||||
<el-button type="text" icon="el-icon-plus" @click="options.charts.push({title:'新图表'})">添加图表</el-button>
|
||||
</template>
|
||||
@@ -159,6 +164,7 @@ import 'brace/theme/monokai';
|
||||
import AiDialogBtn from "dui/packages/layout/AiDialogBtn.vue";
|
||||
import AiFold from "dui/packages/layout/AiFold.vue";
|
||||
import ChartPicker from "../chartPicker.vue";
|
||||
import {DvCompData} from "../../config";
|
||||
|
||||
export default {
|
||||
name: 'dataConfig',
|
||||
@@ -173,20 +179,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dataTypes: [
|
||||
{
|
||||
id: 'staticData',
|
||||
label: '静态数据'
|
||||
},
|
||||
{
|
||||
id: 'dynamicData',
|
||||
label: '动态数据'
|
||||
},
|
||||
{
|
||||
id: 'apiData',
|
||||
label: '接口'
|
||||
}
|
||||
],
|
||||
dataTypes: Object.entries(DvCompData.types).map(e => ({id: e[0], label: e[1]})),
|
||||
json: "",
|
||||
sourceDataId: '',
|
||||
sourceData: [],
|
||||
@@ -195,7 +188,6 @@ export default {
|
||||
list: [],
|
||||
showMapEditor: false,
|
||||
form: {},
|
||||
charts: Object.keys({}).map((label, id) => ({id, label}))
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user