@@ -13,7 +13,8 @@ export default {
props: {
label: String,
value: {default: null},
- topLabel: Boolean
+ topLabel: Boolean,
+ bold: Boolean
},
}
@@ -35,6 +36,10 @@ export default {
color: #FFFFFF;
font-size: 12px;
text-align: right;
+
+ &.bold {
+ font-weight: bold;
+ }
}
.el-select .el-tag {
diff --git a/packages/bigscreen/designer/components/groupItem.vue b/packages/bigscreen/designer/components/groupItem.vue
new file mode 100644
index 00000000..bf336af4
--- /dev/null
+++ b/packages/bigscreen/designer/components/groupItem.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
diff --git a/packages/bigscreen/designer/config.js b/packages/bigscreen/designer/config.js
index 579edfff..207ef80f 100644
--- a/packages/bigscreen/designer/config.js
+++ b/packages/bigscreen/designer/config.js
@@ -172,7 +172,7 @@ export const chartTpl = [{
thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/bar10.png',
height: 300,
dataType: 'staticData',
- staticData: [{name: '阿斯达', v1: 23}, {name: '水电费', v1: 12}, {name: '凡哥', v1: 67}, {name: '党费', v1: 98}],
+ staticData: [{name: '阿斯达', v1: 23}, {name: '水电费', v1: 12}],
config: 'barChart10'
},
]
@@ -473,6 +473,241 @@ const customHtml = {
html: `
自定义HTML
`
}]
}
+const tables = [{
+ type: 'table',
+ label: '表格',
+ title: '表格',
+ border: 'border6',
+ width: 650,
+ height: 400,
+ zIndex: 1,
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
+ dataX: '',
+ dataY: [],
+ rowNum: 7,
+ isShowIndex: '1',
+ sourceDataId: '',
+ api: '',
+ apiData: [],
+ dataType: 'staticData',
+ dynamicData: [],
+ staticData: [{name: '列1', v: 23, v2: 3}, {name: '列2', v: 12, v2: 4}, {name: '列2', v: 12, v2: 4}]
+}, {
+ type: 'AiDvTable',
+ label: '新版表格',
+ title: '新版表格',
+ border: 'border6',
+ width: 650,
+ height: 400,
+ zIndex: 1,
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
+ dataX: '',
+ dataY: [],
+ rowNum: 7,
+ stripe: '1',
+ isShowIndex: '1',
+ sourceDataId: '',
+ api: '',
+ config: [{
+ width: '', color: '', align: ''
+ }, {
+ width: '', color: '', align: ''
+ }, {
+ width: '', color: '', align: ''
+ }],
+ apiData: [],
+ dataType: 'staticData',
+ dynamicData: [],
+ staticData: [{name: '列1', v: 23, v2: 3}, {name: '列2', v: 12, v2: 4}, {name: '列2', v: 12, v2: 4}]
+}, {
+ type: 'AiRanking',
+ label: '排行榜',
+ title: '排行榜',
+ border: 'border6',
+ width: 523,
+ height: 400,
+ zIndex: 1,
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
+ dataX: '',
+ dataY: [],
+ rowNum: 7,
+ subType: 'Ranking1',
+ stripe: '1',
+ isShowIndex: '1',
+ sourceDataId: '',
+ api: '',
+ apiData: [],
+ dataType: 'staticData',
+ dynamicData: [],
+ staticData: [{name: '列1', value: 23}, {name: '列2', value: 12}, {name: '列2', value: 12}]
+}]
+const layouts = [
+ {
+ type: 'display',
+ label: '装饰',
+ display: 'display0',
+ width: 840,
+ height: 540,
+ isZoom: false,
+ zIndex: 1,
+ title: '标题',
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/display.png',
+ sourceDataId: '',
+ dataType: 'staticData',
+ staticData: [{
+ label: '个人服务办理', value: 247
+ }, {
+ label: '同比上月', value: 247
+ }]
+ }, {
+ type: 'panel',
+ label: '边框',
+ title: '边框',
+ border: 'border0',
+ width: 400,
+ height: 400,
+ isZoom: false,
+ zIndex: 1,
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/border.png'
+ }, {
+ type: 'summary',
+ label: '数据统计',
+ display: 'summary0',
+ width: 480,
+ height: 240,
+ zIndex: 1,
+ top: 0,
+ left: 0,
+ dataX: '',
+ dataY: [],
+ summaryTitle: '',
+ border: 'border3',
+ sourceDataId: '',
+ title: '数据统计',
+ dataType: 'staticData',
+ staticData: [{
+ key: '个人服务办理', value: 247
+ }, {
+ key: '同比上月', value: 247
+ }],
+ dynamicData: [],
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png'
+ },
+]
+const others = [
+ {
+ label: "图片", list: [
+ {
+ label: "普通图片",
+ type: "img",
+ width: 500,
+ height: 400,
+ thumb: "https://cdn.cunwuyun.cn/dvcp/dv/img/display0-bg.png"
+ }
+ ]
+ },
+ {
+ label: '党组织', type: 'partyOrg', list: [{
+ type: 'partyOrg',
+ label: '党组织',
+ width: 840,
+ height: 800,
+ zIndex: 1,
+ top: 0,
+ left: 0,
+ dataX: '',
+ dataY: [],
+ title: '党组织',
+ border: 'border3',
+ sourceDataId: '',
+ dataType: 'staticData',
+ staticData: [{
+ key: '个人服务办理', value: 247
+ }, {
+ key: '同比上月', value: 247
+ }],
+ dynamicData: [],
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png'
+ }]
+ }, {
+ label: '轮播图', list: [{
+ type: 'swiper',
+ label: '轮播图',
+ width: 400,
+ height: 300,
+ zIndex: 1,
+ border: 'border2',
+ dataType: 'staticData',
+ staticData: [{
+ img: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/pie.png', title: '湖羊', content: `歙县众城湖羊养殖专业合作社
+ 徐晓红 - 18273645627
+ 歙县郑村镇唐跃村碉墅`
+ }],
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png'
+ }, {
+ type: 'swiper',
+ label: '轮播图(点指示器)',
+ width: 800,
+ height: 358,
+ zIndex: 1,
+ border: 'border14',
+ dataType: 'staticData',
+ staticData: [{
+ content: `歙县众城湖羊养殖专业合作社
+ 徐晓红 - 18273645627
+ 歙县郑村镇唐跃村碉墅`
+ }, {
+ content: `歙县众城湖羊养殖专业合作社
+ 徐晓红 - 18273645627
+ 歙县郑村镇唐跃村碉墅`
+ },],
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png',
+ dotIndicator: true
+ }]
+ }, {
+ label: '视频播放器', type: 'video', list: [{
+ type: 'video',
+ label: '视频播放器',
+ width: 400,
+ height: 300,
+ zIndex: 1,
+ src: '',
+ border: 'border2',
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png'
+ }]
+ }, {
+ label: '视频监控', list: [
+ {
+ type: 'monitor',
+ label: '视频监控',
+ src: '',
+ width: 480,
+ height: 240,
+ zIndex: 1,
+ top: 0,
+ left: 0,
+ title: '',
+ moniterId: '',
+ monitorType: 'cmcc',
+ api: '/app/appzyvideoequipment/list2',
+ border: 'border2',
+ sourceDataId: '',
+ dataType: 'staticData',
+ staticData: '',
+ dynamicData: '',
+ thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png'
+ },
+ {
+ type: "monitorCarousel",
+ label: "视频轮播",
+ width: 480,
+ height: 480,
+ zIndex: 1,
+ title: "视频轮播",
+ thumb: "https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png"
+ }
+ ]
+ }, customHtml]
const components = [{
label: '图表', list: [...chartTpl, {
label: "多维图", type: "plot", list: [{
@@ -498,130 +733,14 @@ const components = [{
}]
}]
-}, {
- label: '表格', list: [{
- type: 'table',
- label: '表格',
- title: '表格',
- border: 'border6',
- width: 650,
- height: 400,
- zIndex: 1,
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
- dataX: '',
- dataY: [],
- rowNum: 7,
- isShowIndex: '1',
- sourceDataId: '',
- api: '',
- apiData: [],
- dataType: 'staticData',
- dynamicData: [],
- staticData: [{name: '列1', v: 23, v2: 3}, {name: '列2', v: 12, v2: 4}, {name: '列2', v: 12, v2: 4}]
- }, {
- type: 'AiDvTable',
- label: '新版表格',
- title: '新版表格',
- border: 'border6',
- width: 650,
- height: 400,
- zIndex: 1,
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
- dataX: '',
- dataY: [],
- rowNum: 7,
- stripe: '1',
- isShowIndex: '1',
- sourceDataId: '',
- api: '',
- config: [{
- width: '', color: '', align: ''
- }, {
- width: '', color: '', align: ''
- }, {
- width: '', color: '', align: ''
- }],
- apiData: [],
- dataType: 'staticData',
- dynamicData: [],
- staticData: [{name: '列1', v: 23, v2: 3}, {name: '列2', v: 12, v2: 4}, {name: '列2', v: 12, v2: 4}]
- }, {
- type: 'AiRanking',
- label: '排行榜',
- title: '排行榜',
- border: 'border6',
- width: 523,
- height: 400,
- zIndex: 1,
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/table.png',
- dataX: '',
- dataY: [],
- rowNum: 7,
- subType: 'Ranking1',
- stripe: '1',
- isShowIndex: '1',
- sourceDataId: '',
- api: '',
- apiData: [],
- dataType: 'staticData',
- dynamicData: [],
- staticData: [{name: '列1', value: 23}, {name: '列2', value: 12}, {name: '列2', value: 12}]
- }]
},
+ {label: '表格', list: tables},
{
- label: "样式", list: [
- {
- type: 'display',
- label: '装饰',
- display: 'display0',
- width: 840,
- height: 540,
- isZoom: false,
- zIndex: 1,
- title: '标题',
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/display.png',
- sourceDataId: '',
- dataType: 'staticData',
- staticData: [{
- label: '个人服务办理', value: 247
- }, {
- label: '同比上月', value: 247
- }]
- }, {
- type: 'panel',
- label: '边框',
- title: '边框',
- border: 'border0',
- width: 400,
- height: 400,
- isZoom: false,
- zIndex: 1,
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/border.png'
- }, {
- type: 'summary',
- label: '数据统计',
- display: 'summary0',
- width: 480,
- height: 240,
- zIndex: 1,
- top: 0,
- left: 0,
- dataX: '',
- dataY: [],
- summaryTitle: '',
- border: 'border3',
- sourceDataId: '',
- title: '数据统计',
- dataType: 'staticData',
- staticData: [{
- key: '个人服务办理', value: 247
- }, {
- key: '同比上月', value: 247
- }],
- dynamicData: [],
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png'
- }
- ]
+ label: "样式", list: [...layouts, {
+ type: "tabs", label: "TAB页签", border: "border13", width: 480,
+ height: 240, thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/tabs.png', top: 0, left: 0,
+ dataType: 'staticData', staticData: {}, title: "TAB页签"
+ }]
},
{label: '地图', list: maps}, {
type: 'ai3d', label: "3D", list: [{
@@ -646,122 +765,9 @@ const components = [{
thumb: "https://cdn.cunwuyun.cn/dvcp/dv/aiIcon.png"
}]
}, {
- label: '其他', list: [
- {
- label: "图片", list: [
- {
- label: "普通图片",
- type: "img",
- width: 500,
- height: 400,
- thumb: "https://cdn.cunwuyun.cn/dvcp/dv/img/display0-bg.png"
- }
- ]
- },
- {
- label: '党组织', type: 'partyOrg', list: [{
- type: 'partyOrg',
- label: '党组织',
- width: 840,
- height: 800,
- zIndex: 1,
- top: 0,
- left: 0,
- dataX: '',
- dataY: [],
- title: '党组织',
- border: 'border3',
- sourceDataId: '',
- dataType: 'staticData',
- staticData: [{
- key: '个人服务办理', value: 247
- }, {
- key: '同比上月', value: 247
- }],
- dynamicData: [],
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/total.png'
- }]
- }, {
- label: '轮播图', list: [{
- type: 'swiper',
- label: '轮播图',
- width: 400,
- height: 300,
- zIndex: 1,
- border: 'border2',
- dataType: 'staticData',
- staticData: [{
- img: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/pie.png', title: '湖羊', content: `歙县众城湖羊养殖专业合作社
- 徐晓红 - 18273645627
- 歙县郑村镇唐跃村碉墅`
- }],
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png'
- }, {
- type: 'swiper',
- label: '轮播图(点指示器)',
- width: 800,
- height: 358,
- zIndex: 1,
- border: 'border14',
- dataType: 'staticData',
- staticData: [{
- content: `歙县众城湖羊养殖专业合作社
- 徐晓红 - 18273645627
- 歙县郑村镇唐跃村碉墅`
- }, {
- content: `歙县众城湖羊养殖专业合作社
- 徐晓红 - 18273645627
- 歙县郑村镇唐跃村碉墅`
- },],
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png',
- dotIndicator: true
- }]
- }, {
- label: '视频播放器', type: 'video', list: [{
- type: 'video',
- label: '视频播放器',
- width: 400,
- height: 300,
- zIndex: 1,
- src: '',
- border: 'border2',
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/swiper.png'
- }]
- }, {
- label: '视频监控', list: [
- {
- type: 'monitor',
- label: '视频监控',
- src: '',
- width: 480,
- height: 240,
- zIndex: 1,
- top: 0,
- left: 0,
- title: '',
- moniterId: '',
- monitorType: 'cmcc',
- api: '/app/appzyvideoequipment/list2',
- border: 'border2',
- sourceDataId: '',
- dataType: 'staticData',
- staticData: '',
- dynamicData: '',
- thumb: 'https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png'
- },
- {
- type: "monitorCarousel",
- label: "视频轮播",
- width: 480,
- height: 480,
- zIndex: 1,
- title: "视频轮播",
- thumb: "https://cdn.cunwuyun.cn/dvcp/dv/tpl/video.png"
- }
- ]
- }, customHtml]
+ label: '其他', list: others
}]
-
+export const layers = [...chartTpl.map(e => e.list), maps, tables, layouts, ...others.map(e => e.list)].flat()
export {components}
/**
diff --git a/ui/dv/AiDvMap.vue b/ui/dv/AiDvMap.vue
index be34da87..1d6b3727 100644
--- a/ui/dv/AiDvMap.vue
+++ b/ui/dv/AiDvMap.vue
@@ -130,7 +130,7 @@ export default {
fontSize: 22
},
itemStyle: {
- borderColor: "rgba(2, 198, 220, 1)",
+ borderColor: "rgba(2, 198, 220, 0)",
borderWidth: 2,
areaColor: "#02bcff29",
shadowBlur: 120,
diff --git a/ui/dv/AiDvRender.vue b/ui/dv/AiDvRender.vue
index ca15e022..00f6cb71 100644
--- a/ui/dv/AiDvRender.vue
+++ b/ui/dv/AiDvRender.vue
@@ -1,9 +1,10 @@
+
{
- return {
- color: this.data.config[i] ? (this.data.config[i].color || '') : '',
- width: this.data.config[i] ? (this.data.config[i].width || '') : '',
- align: this.data.config[i] ? (this.data.config[i].align || '') : ''
- }
- })
- this.data.config = this.dvTableConfig
}
}
}
@@ -241,7 +235,7 @@ export default {
diff --git a/ui/dv/AiLinkageMap.vue b/ui/dv/AiLinkageMap.vue
index 65ff328d..0715b68c 100644
--- a/ui/dv/AiLinkageMap.vue
+++ b/ui/dv/AiLinkageMap.vue
@@ -21,24 +21,23 @@ export default {
min: 0,
max: 8000,
maxOpen: true,
+ itemWidth: 14,
+ itemHeight: 14,
+ align: 'left',
+ itemSymbol: 'circle',
inRange: {
color: [
- "#25EDF4",
- "rgba(12,222,233,0.9)",
- "rgba(11,208,218,0.81)",
- "rgba(11,193,213,0.72)",
- "rgba(11,172,193,0.63)",
- "rgba(9,147,174,0.54)",
- "rgba(7,108,136,0.45)",
- "rgba(6,78,107,0.36)",
- "rgba(5,66,97,0.27)"].reverse()
+ "#25b3f866", "#73DCFC66", "#35FDFC66", "#37FBB980", "#05FA8280",
+ "#D8F98A80", "#F3C83F80", "#FD900480", "#FB374480"
+ ],
},
+ inverse: true,
outOfRange: {color: "#25EDF4"},
textStyle: {
- color: "#fff"
+ color: "#9BB7D4FF"
},
- calculable: true
},
+ geo: []
},
dialog: false,
detail: [],
@@ -56,7 +55,7 @@ export default {
},
computed: {
sta: v => v.config.summaryConfigs || [],
- mapData: v => v.geoData.map(e => ({name: e.name.replace(/([市县区])/g, ""), value: parseInt(e.低风险纠纷) + parseInt(e.中风险纠纷) + parseInt(e.高风险纠纷)}))
+ mapData: v => v.geoData.map(e => ({name: e.name.replace(/([市县区])/g, ""), value: parseInt(e.排查受理总数)}))
},
methods: {
getData(type = "530300000000") {
@@ -65,7 +64,6 @@ export default {
if (type == "530300000000") {
this.geoData = json.map
this.$refs.map.chart?.setOption({series: {data: this.mapData}})
- console.log(this.$refs.map.chart?.getOption()?.series)
}
this.config.summaryConfigs = json.sta?.map((e, i) => ({pos: ["rt", "lb", 'lt', 'rb'][i % 4], display: "summary20", ...e})) || []
})
@@ -89,6 +87,7 @@ export default {
高风险纠纷: "#FF6868",
中风险纠纷: "#FFAB68",
低风险纠纷: "#7FE89E",
+ 排查受理总数: "#25EDF4"
}[k]
})
}
diff --git a/ui/dv/layout/AiDvPanel/AiDvPanel.vue b/ui/dv/layout/AiDvPanel/AiDvPanel.vue
index a27da127..5539277c 100644
--- a/ui/dv/layout/AiDvPanel/AiDvPanel.vue
+++ b/ui/dv/layout/AiDvPanel/AiDvPanel.vue
@@ -4,6 +4,9 @@
+
+
+
diff --git a/ui/dv/layout/AiDvPanel/borders/border13.vue b/ui/dv/layout/AiDvPanel/borders/border13.vue
index 25dc4fe4..b9b7bd5c 100644
--- a/ui/dv/layout/AiDvPanel/borders/border13.vue
+++ b/ui/dv/layout/AiDvPanel/borders/border13.vue
@@ -1,8 +1,9 @@
-
+
-
{{ title }}
+
+
@@ -44,6 +45,10 @@ export default {
height: 28px;
margin-right: 8px;
}
+
+ &.right {
+ padding-right: 0;
+ }
}
&.border13-1 .border13-title {
diff --git a/ui/dv/layout/AiDvTable/AiDvTable.vue b/ui/dv/layout/AiDvTable/AiDvTable.vue
index 68d37785..0867667c 100644
--- a/ui/dv/layout/AiDvTable/AiDvTable.vue
+++ b/ui/dv/layout/AiDvTable/AiDvTable.vue
@@ -118,7 +118,7 @@ export default {
columns: v => v.header.map((e, i) => {
let item = {}
Object.values(e).forEach(label => {
- const {align, width, color} = v.config[i]
+ const {align, width, color} = (v.config[i] || {})
item.align = align
item.prop = `col${i}`
item.label = label
@@ -233,7 +233,7 @@ export default {
}
.body {
- height: calc(100% - 40px);
+ height: calc(100% - 32px);
padding: 10px 0;
overflow-y: auto;
box-sizing: border-box;
diff --git a/ui/packages/tools/AiEchartV2.vue b/ui/packages/tools/AiEchartV2.vue
index a13519c3..2d3419c3 100644
--- a/ui/packages/tools/AiEchartV2.vue
+++ b/ui/packages/tools/AiEchartV2.vue
@@ -129,7 +129,7 @@ export default {
theme() {
this.refresh()
},
- tpl(v) {
+ type(v) {
v && this.refresh()
}
},