【开发】 修改一些样式

This commit is contained in:
fengachen
2022-09-02 17:00:12 +08:00
parent b418d00b54
commit 5b97582cf5
4 changed files with 7 additions and 3 deletions
@@ -175,6 +175,7 @@ export default {
name:'合同金额', name:'合同金额',
data: this.echartsData.allMoney, data: this.echartsData.allMoney,
type: 'bar', type: 'bar',
barMaxWidth:30,
itemStyle:{ itemStyle:{
borderRadius:[8,8,0,0] borderRadius:[8,8,0,0]
} }
@@ -183,6 +184,7 @@ export default {
name:'确认收入金额', name:'确认收入金额',
data: this.echartsData.confirmAmount, data: this.echartsData.confirmAmount,
type: 'bar', type: 'bar',
barMaxWidth:30,
itemStyle:{ itemStyle:{
borderRadius:[8,8,0,0] borderRadius:[8,8,0,0]
} }
+2 -2
View File
@@ -59,14 +59,14 @@ export default {
computed: { computed: {
// 所领导 部门负责人 还是其他角色 // 所领导 部门负责人 还是其他角色
roleCoe() { roleCoe() {
return false return !(this.$store.getters.userInfo.roleCode === 'bmfzr' || this.$store.getters.userInfo.roleCode === 'sld')
} }
}, },
data() { data() {
return {} return {}
}, },
created() { created() {
console.log(this.$store.getters.userInfo.roleCode === 'bmfzr' || this.$store.getters.userInfo.roleCode === 'sld') console.log()
}, },
mounted() { mounted() {
}, },
@@ -174,6 +174,7 @@ export default {
name:'合同金额', name:'合同金额',
data: this.echartsData.allMoney, data: this.echartsData.allMoney,
type: 'bar', type: 'bar',
barMaxWidth:30,
itemStyle:{ itemStyle:{
borderRadius:[8,8,0,0] borderRadius:[8,8,0,0]
} }
@@ -182,6 +183,7 @@ export default {
name:'确认收入金额', name:'确认收入金额',
data: this.echartsData.confirmAmount, data: this.echartsData.confirmAmount,
type: 'bar', type: 'bar',
barMaxWidth:30,
itemStyle:{ itemStyle:{
borderRadius:[8,8,0,0] borderRadius:[8,8,0,0]
} }
+1 -1
View File
@@ -53,7 +53,7 @@ export default {
}) })
}, },
initEcharts(data) { initEcharts(data) {
let color = ['#069F99', '#6D7FD0 ', '#A5B3FF', '#A5B3FF', '#BDA79E'] let color = ['#069F99', '#6D7FD0 ', '#B78571', '#FA9D81', '#BDA79E']
let echartsData = data.reduce( (pre,val) => { let echartsData = data.reduce( (pre,val) => {
return pre.concat({value:val.value,name:val.name_dictText}) return pre.concat({value:val.value,name:val.name_dictText})
},[]) },[])