Commit ed7b4d4f authored by 沈翠玲's avatar 沈翠玲

数据大屏和合同管理

parent 2d84963a
...@@ -101,7 +101,7 @@ const option = { ...@@ -101,7 +101,7 @@ const option = {
data: salvProMax, data: salvProMax,
itemStyle: { itemStyle: {
normal: { normal: {
color: 'rgba(24,31,68,1)', color: '#05091e',
barBorderRadius: 30, barBorderRadius: 30,
} }
}, },
......
...@@ -14,7 +14,7 @@ var salvProName =["还呗","360借条"]; ...@@ -14,7 +14,7 @@ var salvProName =["还呗","360借条"];
var salvProValue =[70,65]; var salvProValue =[70,65];
var salvProMax =[];//背景按最大值 var salvProMax =[];//背景按最大值
for (let i = 0; i < salvProValue.length; i++) { for (let i = 0; i < salvProValue.length; i++) {
salvProMax.push(salvProValue[0]) salvProMax.push(100)
} }
const colors = ["#1089E7", "#F57474", "#56D0E3", "#F8B448", "#8B78F6"]; const colors = ["#1089E7", "#F57474", "#56D0E3", "#F8B448", "#8B78F6"];
...@@ -45,9 +45,10 @@ const option = { ...@@ -45,9 +45,10 @@ const option = {
type: 'category', type: 'category',
inverse: true, inverse: true,
axisLabel: { axisLabel: {
show: true, show: false,
textStyle: { textStyle: {
color: '#fff' color: '#fff',
fontSize: '14'
}, },
}, },
splitLine: { splitLine: {
...@@ -69,7 +70,7 @@ const option = { ...@@ -69,7 +70,7 @@ const option = {
axisLabel: { axisLabel: {
textStyle: { textStyle: {
color: '#ffffff', color: '#ffffff',
fontSize: '12' fontSize: '14'
}, },
}, },
data:salvProValue data:salvProValue
...@@ -80,7 +81,7 @@ const option = { ...@@ -80,7 +81,7 @@ const option = {
zlevel: 1, zlevel: 1,
itemStyle: { itemStyle: {
normal: { normal: {
barBorderRadius: 30, // barBorderRadius: 30,
color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
offset: 0, offset: 0,
color: 'rgb(57,89,255,1)' color: 'rgb(57,89,255,1)'
...@@ -90,19 +91,32 @@ const option = { ...@@ -90,19 +91,32 @@ const option = {
}]), }]),
}, },
}, },
barWidth: 20, label: {
normal: {
color: '#b3ccf8',
show: true,
position: [0, '-24px'],
textStyle: {
fontSize: 16
},
formatter: function (a, b) {
return a.name
}
}
},
barWidth: 60,
data: salvProValue data: salvProValue
}, },
{ {
name: '背景', name: '背景',
type: 'bar', type: 'bar',
barWidth: 20, barWidth: 60,
barGap: '-100%', barGap: '-100%',
data: salvProMax, data: salvProMax,
itemStyle: { itemStyle: {
normal: { normal: {
color: 'rgba(24,31,68,1)', color: '#05091e',
barBorderRadius: 30, // barBorderRadius: 30,
} }
}, },
}, },
......
...@@ -295,15 +295,15 @@ ...@@ -295,15 +295,15 @@
default({ row }) { default({ row }) {
return ( return (
<> <>
<ElButton type="primary" link onClick={() => addConstant(row, true)} v-show={row.createBy === userStore.userInfo.id} disabled={row.legalFlowStatus=== 'pass' && row.financeFlowStatus === 'pass'}> <ElButton type="primary" link onClick={() => addConstant(row, true)} v-show={row.createBy === userStore.userInfo.id} disabled={row.legalFlowStatus=== 'pass'}>
修改 修改
</ElButton> </ElButton>
<ElButton type="primary" link onClick={() => apply(row, 'finance')} v-show={authButtonListGet.includes('finance_apply')} disabled={row.legalFlowStatus || row.financeFlowStatus === 'pass'}> <ElButton type="primary" link onClick={() => apply(row, 'finance')} v-show={authButtonListGet.includes('finance_apply')} disabled={row.legalFlowStatus || row.financeFlowStatus === 'pass'}>
财务审批 财务审批
</ElButton> </ElButton>
<ElButton type="primary" link onClick={() => apply(row, 'legal')} v-show={authButtonListGet.includes('legal_apply')} disabled={row.financeFlowStatus !== 'pass' || row.legalFlowStatus === 'pass'}> {/* <ElButton type="primary" link onClick={() => apply(row, 'legal')} v-show={authButtonListGet.includes('legal_apply')} disabled={row.financeFlowStatus !== 'pass' || row.legalFlowStatus === 'pass'}>
法务审批 法务审批
</ElButton> </ElButton> */}
</> </>
); );
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment