feat:bug修改,新增指标卡组件

main
liu.tao3 1 year ago
parent 4f6c7cdc30
commit 990b1684da

@ -22,7 +22,7 @@
width: customize.imgSize + 'px', width: customize.imgSize + 'px',
height: customize.imgSize + 'px', height: customize.imgSize + 'px',
}" }"
:src="customize.src" :src="customize.src?customize.src:imgUrl"
fit="contain" fit="contain"
/> />
</div> </div>
@ -79,6 +79,7 @@ export default {
}, },
data () { data () {
return { return {
imgUrl:require('data-room-ui/assets/images/cardImg/cardicon.png'),
customClass: {} customClass: {}
} }
}, },

@ -39,7 +39,7 @@ const customConfig = {
loading: false loading: false
}, },
customize: { customize: {
src: 'http://60.174.249.206:11080/upload/webDesign/uiSucai/dir/icon/icon_top6.png', src: '',
borderRadius: 0, borderRadius: 0,
borderWidth: 0, borderWidth: 0,
lineDistance: 6, lineDistance: 6,

@ -22,7 +22,7 @@
width: customize.imgSize + 'px', width: customize.imgSize + 'px',
height: customize.imgSize + 'px', height: customize.imgSize + 'px',
}" }"
:src="customize.src" :src="customize.src?customize.src:imgUrl"
fit="contain" fit="contain"
/> />
</div> </div>
@ -77,6 +77,7 @@ export default {
}, },
data () { data () {
return { return {
imgUrl:require('data-room-ui/assets/images/cardImg/cardicon.png'),
customClass: {} customClass: {}
} }
}, },

@ -39,7 +39,7 @@ const customConfig = {
loading: false loading: false
}, },
customize: { customize: {
src: 'http://60.174.249.206:11080/upload/webDesign/uiSucai/dir/icon/icon_top6.png', src: '',
borderRadius: 0, borderRadius: 0,
borderWidth: 0, borderWidth: 0,
lineDistance: 6, lineDistance: 6,

@ -43,7 +43,6 @@
@keyup.enter.native="reSearch" @keyup.enter.native="reSearch"
/> />
<el-button <el-button
size="small"
type="primary" type="primary"
@click="reSearch" @click="reSearch"
> >
@ -167,7 +166,6 @@
@keyup.enter.native="reSearch" @keyup.enter.native="reSearch"
/> />
<el-button <el-button
size="small"
type="primary" type="primary"
@click="reSearch" @click="reSearch"
> >

@ -74,7 +74,15 @@ export default {
return this.rightVisiable && this.activeCode return this.rightVisiable && this.activeCode
}, },
title () { title () {
return this.activeItem?.title || '' if(this.activeItem.type=='customComponent'){
return this.activeItem?.category
}else if(this.activeItem.type=='"remoteComponent"'){
return this.activeItem?.title
}
else{
return this.activeItem?.name
}
// if(this.activeItem)
} }
}, },
mounted () { }, mounted () { },

@ -37,7 +37,6 @@
/> />
</el-select> </el-select>
<el-button <el-button
size="small"
type="primary" type="primary"
@click="reSearch" @click="reSearch"
> >

@ -57,7 +57,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -67,7 +67,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -57,7 +57,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -55,7 +55,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -55,7 +55,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -56,7 +56,7 @@ const setting = [
optionField: 'gradientDirection', optionField: 'gradientDirection',
// 是否多选 // 是否多选
multiple: false, multiple: false,
value: '', value: 'to right',
options: [ options: [
{ {
label: '从左到右', label: '从左到右',

@ -15,26 +15,26 @@ const customConfig = {
// 边框线颜色 // 边框线颜色
borderColor: '#87888e', borderColor: '#87888e',
// 边框线宽度 // 边框线宽度
borderWidth: 2, borderWidth: 10,
// 边框背景颜色 // 边框背景颜色
backgroundColor: '#232832', backgroundColor: '#232832',
colorType: 'single', colorType: 'single',
// 渐变色0值 // 渐变色0值
gradientColor0: '#83bff6', gradientColor0: '',
// 渐变色1值 // 渐变色1值
gradientColor1: '#188df0', gradientColor1: '',
// 渐变色色值改变方向 // 渐变色色值改变方向
gradientDirection: 'to right', gradientDirection: 'to right',
// 透明度 // 透明度
opacity: 100, opacity: 100,
// 左上圆角 // 左上圆角
radiusLeftTop: 2, radiusLeftTop: 14,
// 右上圆角 // 右上圆角
radiusRightTop: 2, radiusRightTop: 14,
// 左下圆角 // 左下圆角
radiusLeftBottom: 2, radiusLeftBottom: 14,
// 右下圆角 // 右下圆角
radiusRightBottom: 2 radiusRightBottom: 14
} }
} }
export const dataConfig = { export const dataConfig = {

@ -15,14 +15,14 @@ const customConfig = {
// 边框线颜色 // 边框线颜色
borderColor: '#87888e', borderColor: '#87888e',
// 边框线宽度 // 边框线宽度
borderWidth: 2, borderWidth: 10,
// 边框背景颜色 // 边框背景颜色
backgroundColor: '#232832', backgroundColor: '#232832',
colorType: 'single', colorType: 'single',
// 渐变色0值 // 渐变色0值
gradientColor0: '#83bff6', gradientColor0: '',
// 渐变色1值 // 渐变色1值
gradientColor1: '#188df0', gradientColor1: '',
// 渐变色色值改变方向 // 渐变色色值改变方向
gradientDirection: 'to right', gradientDirection: 'to right',
// 透明度 // 透明度
@ -34,7 +34,7 @@ const customConfig = {
// 字体粗细 // 字体粗细
fontWeight: 500, fontWeight: 500,
// 中心文本 // 中心文本
text: '文本' text: ''
} }
} }
export const dataConfig = { export const dataConfig = {

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: '', decorationColor1: '#fff',
decorationColor2: '', decorationColor2: '#0de7c2',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#00c2ff',
decorationColor2: null, decorationColor2:'rgba(0, 194, 255, 0.3)' ,
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#1a98fc',
decorationColor2: null, decorationColor2: '#2cf7fe',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#3faacb',
decorationColor2: null, decorationColor2: '#fff',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,7 +20,7 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#3faacb',
decorationColor2: null, decorationColor2: null,
reverse: false, reverse: false,
dur: 3, dur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#7acaec',
decorationColor2: null, decorationColor2: '#000',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: 'rgba(255, 255, 255, 0.3)',
decorationColor2: null, decorationColor2: 'rgba(255, 255, 255, 0.3)',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: 'rgba(255, 255, 255, 0.3)',
decorationColor2: null, decorationColor2: 'rgba(255, 255, 255, 0.3)',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#3f96a5',
decorationColor2: null, decorationColor2: '#3f96a5',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1:'#7acaec',
decorationColor2: null, decorationColor2: '#7acaec',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#3f96a5',
decorationColor2: null, decorationColor2: '#3f96a5',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: '#3f96a5',
decorationColor2: null, decorationColor2: '#3f96a5',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

@ -20,8 +20,8 @@ const customConfig = {
contribution: false contribution: false
}, },
customize: { customize: {
decorationColor1: null, decorationColor1: 'rgba(3, 166, 224, 0.8)',
decorationColor2: null, decorationColor2: 'rgba(3, 166, 224, 0.5)',
reverse: false, reverse: false,
dur: 3, dur: 3,
scanDur: 3, scanDur: 3,

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 21 KiB

@ -102,7 +102,7 @@
} }
} }
.data-form-item { .data-form-item {
padding: 12px; padding: 4px 12px;
} }
::v-deep .select-item { ::v-deep .select-item {

@ -287,8 +287,8 @@ export default function getComponentConfig (type) {
} }
case 'indicatorCard': case 'indicatorCard':
return { return {
name: '指标卡', name: '指标卡',
title: '指标卡', title: '指标卡',
icon: null, icon: null,
img: require('data-room-ui/assets/images/cardImg/card.png'), img: require('data-room-ui/assets/images/cardImg/card.png'),
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndicatorCardChart', className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndicatorCardChart',
@ -298,20 +298,6 @@ export default function getComponentConfig (type) {
y: 0, y: 0,
type type
} }
case 'indexCard':
return {
name: '指标卡一',
title: '指标卡一',
icon: null,
img: require('data-room-ui/assets/images/cardImg/indicard.png'),
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
w: 400,
h: 200,
x: 0,
y: 0,
type
}
case 'indicatorCard2': case 'indicatorCard2':
return { return {
name: '指标卡二', name: '指标卡二',
@ -325,11 +311,24 @@ export default function getComponentConfig (type) {
y: 0, y: 0,
type type
} }
case 'indexCard2': case 'indexCard':
return { return {
name: '指标卡三', name: '指标卡三',
title: '指标卡三', title: '指标卡三',
icon: null, icon: null,
img: require('data-room-ui/assets/images/cardImg/indicard.png'),
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
w: 400,
h: 200,
x: 0,
y: 0,
type
}
case 'indexCard2':
return {
name: '指标卡四',
title: '指标卡四',
icon: null,
img: require('data-room-ui/assets/images/cardImg/indcard2.png'), img: require('data-room-ui/assets/images/cardImg/indcard2.png'),
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart', className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
w: 400, w: 400,

Loading…
Cancel
Save