kre-form
Version:
本项目由 Angular8+ 编写的表单设计器和表单应用,所有的配置都是 JSON 结构体组成,PC 端是基于 ANT 组件库封装
469 lines (468 loc) • 11.9 kB
JSON
[
{
"id": "zyz02",
"dataSourceTitle": "考勤汇总",
"echartsList": [
["id", "迟到", "旷工"],
["KNX01650", 41, 1],
["KNX016502", 20, 41],
["KNX01653", 52, 31],
["KNX01654", 37, 21],
["KNX01655", 25, 4],
["KNX01656", 19, 8],
["KNX01657", 71, 77],
["KNX01658", 36, 22],
["KNX01659", 67, 11]
],
"chartOptions": {
"legend": { "show": true, "bottom": "0" },
"series": [
{ "radius": ["35%", "40%"], "type": "pie" },
{ "radius": ["35%", "40%"], "type": "pie" }
],
"color": [
"#893448",
"#d95850",
"#eb8146",
"#ffb248",
"#f2d643",
"#ebdba4"
],
"title": {
"text": "迟到数112",
"left": "33%",
"top": "45%",
"textStyle": { "fontSize": 36 }
},
"dataset": {
"source": [
["id", "迟到", "旷工"],
["KNX01650", 41, 1],
["KNX016502", 20, 41],
["KNX01653", 52, 31],
["KNX01654", 37, 21],
["KNX01655", 25, 4],
["KNX01656", 19, 8],
["KNX01657", 71, 77],
["KNX01658", 36, 22],
["KNX01659", 67, 11]
]
}
},
"chartCondition": {
"type": "doughnut",
"charttype": "pie",
"condition": {
"lineStyle": false,
"x": false,
"y": false,
"yTitle": false,
"dataShow": false,
"dataLabe": false,
"legend": true,
"radius": true,
"title": true
},
"input": {
"nzTabPosition": "setting",
"lineSmooth": "0",
"xAxisrRotate": "0",
"axisLabelInterval": false,
"title": "迟到数112",
"yAxisMax": null,
"yAxisMin": null,
"dataLabeChecked": true,
"isLegend": true,
"legend": "bottom",
"currentColorType": "3",
"inside": 35,
"outside": 40,
"titleX": 34,
"titleY": 46,
"titleSize": 40
}
},
"term": {
"row": [{ "code": "Code", "title": "工号", "closeBtn": "off" }],
"target": [
{ "code": "LateHours", "title": "迟到时数", "closeBtn": "off" }
],
"condition": []
}
},
{
"id": "abc001",
"dataSourceTitle": "订单管理",
"echartsList": [
["area", "2012", "2014", "2015"],
["华北", 43.3, 85.8, 93.7],
["东北", 83.1, 73.4, 55.1],
["西北", 86.4, 65.2, 82.5],
["1", 72.4, 53.9, 39.1],
["2", 43.3, 85.8, 93.7],
["华pp北", 43.3, 85.8, 93.7],
["东.l;北", 83.1, 73.4, 55.1],
["西fvd北", 86.4, 65.2, 82.5],
["华[o中", 72.4, 53.9, 39.1]
],
"chartOptions": {
"legend": { "bottom": "0", "show": true },
"xAxis": {
"type": "category",
"axisLabel": { "rotate": "-30", "interval": 0 }
},
"yAxis": { "type": "value", "max": "95", "min": "20" },
"series": [
{ "type": "line", "smooth": 1 },
{ "type": "line", "smooth": 1 },
{ "type": "line", "smooth": 1 },
{ "type": "line", "smooth": 1 }
],
"color": [
"#2ec7c9",
"#b6a2de",
"#5ab1ef",
"#ffb980",
"#d87a80",
"#8d98b3",
"#e5cf0d",
"#97b552",
"#95706d",
"#dc69aa",
"#07a2a4",
"#9a7fd1",
"#588dd5",
"#f5994e",
"#c05050",
"#59678c",
"#c9ab00",
"#7eb00a",
"#6f5553",
"#c14089"
],
"title": { "text": "111" },
"dataset": {
"source": [
["area", "2012", "2014", "2015"],
["华北", 43.3, 85.8, 93.7],
["东北", 83.1, 73.4, 55.1],
["西北", 86.4, 65.2, 82.5],
["1", 72.4, 53.9, 39.1],
["2", 43.3, 85.8, 93.7],
["华pp北", 43.3, 85.8, 93.7],
["东.l;北", 83.1, 73.4, 55.1],
["西fvd北", 86.4, 65.2, 82.5],
["华[o中", 72.4, 53.9, 39.1]
]
}
},
"chartCondition": {
"type": "line",
"charttype": "line",
"condition": {
"lineStyle": true,
"x": true,
"y": true,
"yTitle": true,
"dataShow": false,
"dataLabe": false,
"legend": true
},
"input": {
"nzTabPosition": "setting",
"lineSmooth": "1",
"xAxisrRotate": "-30",
"axisLabelInterval": true,
"title": "111",
"yAxisMax": "95",
"yAxisMin": "20",
"dataLabeChecked": true,
"isLegend": true,
"legend": "bottom",
"currentColorType": "1"
}
},
"term": {
"row": [{ "code": "RowNum", "title": "地区" }],
"target": [{ "code": "RowNum", "title": "下单日期" }],
"condition": []
}
},
{
"id": "abc112",
"dataSourceTitle": "考勤汇总",
"echartsList": [
["id", "迟到", "旷工"],
["KNX01650", 41, 1],
["KNX016502", 20, 41],
["KNX01653", 52, 31],
["KNX01654", 37, 21],
["KNX01655", 25, 4],
["KNX01656", 19, 8],
["KNX01657", 71, 77],
["KNX01658", 36, 22],
["KNX01659", 67, 11]
],
"chartOptions": {
"legend": { "bottom": "0", "show": false },
"series": [
{ "radius": "50%", "type": "pie" },
{ "radius": "50%", "type": "pie" }
],
"color": [
"#2ec7c9",
"#b6a2de",
"#5ab1ef",
"#ffb980",
"#d87a80",
"#8d98b3",
"#e5cf0d",
"#97b552",
"#95706d",
"#dc69aa",
"#07a2a4",
"#9a7fd1",
"#588dd5",
"#f5994e",
"#c05050",
"#59678c",
"#c9ab00",
"#7eb00a",
"#6f5553",
"#c14089"
],
"title": {
"text": "迟到",
"left": "47%",
"top": "0%",
"textStyle": { "fontSize": 20 }
},
"dataset": {
"source": [
["id", "迟到", "旷工"],
["KNX01650", 41, 1],
["KNX016502", 20, 41],
["KNX01653", 52, 31],
["KNX01654", 37, 21],
["KNX01655", 25, 4],
["KNX01656", 19, 8],
["KNX01657", 71, 77],
["KNX01658", 36, 22],
["KNX01659", 67, 11]
]
}
},
"chartCondition": {
"type": "pie",
"charttype": "pie",
"condition": {
"lineStyle": false,
"x": false,
"y": false,
"yTitle": false,
"dataShow": false,
"dataLabe": false,
"legend": true
},
"input": {
"nzTabPosition": "setting",
"lineSmooth": "0",
"xAxisrRotate": "0",
"axisLabelInterval": false,
"title": "迟到",
"yAxisMax": null,
"yAxisMin": null,
"dataLabeChecked": true,
"isLegend": false,
"legend": "bottom",
"currentColorType": "1",
"titleX": 47,
"titleY": 0,
"titleSize": 20
}
},
"term": {
"row": [{ "code": "Code", "title": "工号", "closeBtn": "off" }],
"target": [
{ "code": "LateHours", "title": "迟到时数", "closeBtn": "off" }
],
"condition": []
}
},
{
"id": "abc998",
"dataSourceTitle": "考勤汇总",
"echartsList": [
["id", "迟到", "旷工"],
["KNX01650", 41, 1],
["KNX016502", 20, 41],
["KNX01653", 52, 31],
["KNX01654", 37, 21],
["KNX01655", 25, 4],
["KNX01656", 19, 8],
["KNX01657", 71, 77],
["KNX01658", 36, 22],
["KNX01659", 67, 11]
],
"chartOptions": {
"legend": { "top": "0", "show": true },
"xAxis": {
"type": "category",
"axisLabel": { "rotate": "0", "interval": "auto" }
},
"yAxis": { "type": "value", "max": null, "min": null },
"series": [{ "type": "bar" }, { "type": "bar" }],
"color": [
"#2ec7c9",
"#b6a2de",
"#5ab1ef",
"#ffb980",
"#d87a80",
"#8d98b3",
"#e5cf0d",
"#97b552",
"#95706d",
"#dc69aa",
"#07a2a4",
"#9a7fd1",
"#588dd5",
"#f5994e",
"#c05050",
"#59678c",
"#c9ab00",
"#7eb00a",
"#6f5553",
"#c14089"
],
"title": { "text": "" },
"dataset": {
"source": [
["id", "迟到", "旷工"],
["KNX01650", 41, 1],
["KNX016502", 20, 41],
["KNX01653", 52, 31],
["KNX01654", 37, 21],
["KNX01655", 25, 4],
["KNX01656", 19, 8],
["KNX01657", 71, 77],
["KNX01658", 36, 22],
["KNX01659", 67, 11]
]
}
},
"chartCondition": {
"type": "bar",
"charttype": "bar",
"condition": {
"lineStyle": false,
"x": true,
"y": true,
"yTitle": true,
"dataShow": false,
"dataLabe": false,
"legend": true
},
"input": {
"nzTabPosition": "setting",
"lineSmooth": "0",
"xAxisrRotate": "0",
"axisLabelInterval": false,
"title": "",
"yAxisMax": null,
"yAxisMin": null,
"dataLabeChecked": true,
"isLegend": true,
"legend": "top",
"currentColorType": "1"
}
},
"term": {
"row": [{ "code": "Code", "title": "工号", "closeBtn": "off" }],
"target": [
{ "code": "LateHours", "title": "迟到时数", "closeBtn": "off" }
],
"condition": []
}
},
{
"id": "aaa99",
"dataSourceTitle": "订单管理",
"echartsList": [
["area", "2012", "2014", "2015"],
["华北", 43.3, 85.8, 93.7],
["东北", 83.1, 73.4, 55.1],
["西北", 86.4, 65.2, 82.5],
["1", 72.4, 53.9, 39.1],
["2", 43.3, 85.8, 93.7],
["华pp北", 43.3, 85.8, 93.7],
["东.l;北", 83.1, 73.4, 55.1],
["西fvd北", 86.4, 65.2, 82.5],
["华[o中", 72.4, 53.9, 39.1]
],
"chartOptions": {
"legend": { "top": "0", "show": true },
"xAxis": {
"type": "value",
"axisLabel": { "rotate": "30", "interval": "auto" }
},
"yAxis": { "type": "category", "max": null, "min": null },
"series": [{ "type": "bar" }, { "type": "bar" }, { "type": "bar" }],
"color": [
"#893448",
"#d95850",
"#eb8146",
"#ffb248",
"#f2d643",
"#ebdba4"
],
"title": { "text": "" },
"dataset": {
"source": [
["area", "2012", "2014", "2015"],
["华北", 43.3, 85.8, 93.7],
["东北", 83.1, 73.4, 55.1],
["西北", 86.4, 65.2, 82.5],
["1", 72.4, 53.9, 39.1],
["2", 43.3, 85.8, 93.7],
["华pp北", 43.3, 85.8, 93.7],
["东.l;北", 83.1, 73.4, 55.1],
["西fvd北", 86.4, 65.2, 82.5],
["华[o中", 72.4, 53.9, 39.1]
]
}
},
"chartCondition": {
"type": "barY",
"charttype": "bar",
"condition": {
"lineStyle": false,
"x": true,
"y": false,
"yTitle": true,
"dataShow": false,
"dataLabe": false,
"legend": true
},
"input": {
"nzTabPosition": "style",
"lineSmooth": "0",
"xAxisrRotate": "30",
"axisLabelInterval": false,
"title": "",
"yAxisMax": null,
"yAxisMin": null,
"dataLabeChecked": true,
"isLegend": true,
"legend": "top",
"currentColorType": "3"
}
},
"term": {
"row": [{ "code": "RowNum", "title": "地区" }],
"target": [{ "code": "RowNum", "title": "金额", "closeBtn": "off" }],
"condition": [
{ "code": "RowNum", "title": "下单日期", "closeBtn": "off" }
]
}
}
]