|
@@ -28,80 +28,6 @@ export default {
|
|
|
props: ['info'],
|
|
|
data() {
|
|
|
return {
|
|
|
- titleItem: [
|
|
|
- {
|
|
|
- title: '今年累计任务建次数',
|
|
|
- number: {
|
|
|
- number: [120],
|
|
|
- toFixed: 1,
|
|
|
- textAlign: 'left',
|
|
|
- content: '{nt}',
|
|
|
- style: {
|
|
|
- fontSize: 26
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '本月累计任务次数',
|
|
|
- number: {
|
|
|
- number: [18],
|
|
|
- toFixed: 1,
|
|
|
- textAlign: 'left',
|
|
|
- content: '{nt}',
|
|
|
- style: {
|
|
|
- fontSize: 26
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '今日累计任务次数',
|
|
|
- number: {
|
|
|
- number: [2],
|
|
|
- toFixed: 1,
|
|
|
- textAlign: 'left',
|
|
|
- content: '{nt}',
|
|
|
- style: {
|
|
|
- fontSize: 26
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '今年失败任务次数',
|
|
|
- number: {
|
|
|
- number: [14],
|
|
|
- toFixed: 1,
|
|
|
- textAlign: 'left',
|
|
|
- content: '{nt}',
|
|
|
- style: {
|
|
|
- fontSize: 26
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '今年成功任务次数',
|
|
|
- number: {
|
|
|
- number: [106],
|
|
|
- toFixed: 1,
|
|
|
- textAlign: 'left',
|
|
|
- content: '{nt}',
|
|
|
- style: {
|
|
|
- fontSize: 26
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '今年达标任务个数',
|
|
|
- number: {
|
|
|
- number: [100],
|
|
|
- toFixed: 1,
|
|
|
- textAlign: 'left',
|
|
|
- content: '{nt}',
|
|
|
- style: {
|
|
|
- fontSize: 26
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
waterConfig1: {
|
|
|
value: this.info.proportion1,
|
|
|
borderWidth: 2,
|
|
@@ -151,7 +77,25 @@ export default {
|
|
|
},
|
|
|
components: {
|
|
|
CenterChart
|
|
|
- }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ updateData(){
|
|
|
+ const { waterConfig1 } = this
|
|
|
+ this.waterConfig1.value = this.info.proportion1
|
|
|
+ this.waterConfig1.borderWidth= 2
|
|
|
+ this.waterConfig1.borderRadius= 5
|
|
|
+ this.waterConfig1.borderGap= 6
|
|
|
+ this.waterConfig1.localGradient= true
|
|
|
+ this.waterConfig1 = {...this.waterConfig1}
|
|
|
+ const { waterConfig2 } = this
|
|
|
+ this.waterConfig2.value = this.info.proportion2
|
|
|
+ this.waterConfig2.borderWidth= 2
|
|
|
+ this.waterConfig2.borderRadius= 5
|
|
|
+ this.waterConfig2.borderGap= 6
|
|
|
+ this.waterConfig2.localGradient= true
|
|
|
+ this.waterConfig2 = {...this.waterConfig2}
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|