对接项目当前状态
This commit is contained in:
+18
-6
@@ -21,14 +21,18 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
|
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CurrentStatusOfTheProjectEcharts',
|
name: 'CurrentStatusOfTheProjectEcharts',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading:false,
|
loading: false,
|
||||||
dataSource:[],
|
dataSource: [],
|
||||||
columns:[
|
url: {
|
||||||
|
getProjectDetailsStatistics: '/project/projectLibraryBase/getProjectDetailsStatistics'
|
||||||
|
},
|
||||||
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('nonConformity'),
|
title: this.$t('nonConformity'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -52,14 +56,22 @@
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'notEvaluated',
|
dataIndex: 'notEvaluated',
|
||||||
scopedSlots: { customRender: 'titleName' }
|
scopedSlots: { customRender: 'titleName' }
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.mainLeftEcharts()
|
this.mainLeftEcharts()
|
||||||
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData() {
|
||||||
|
getAction(this.url.getProjectDetailsStatistics, { id: this.$route.query.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getEcharts(chart, title, color, data) {
|
getEcharts(chart, title, color, data) {
|
||||||
var myChart = echarts.init(document.getElementById(chart))
|
var myChart = echarts.init(document.getElementById(chart))
|
||||||
myChart.setOption({
|
myChart.setOption({
|
||||||
@@ -104,7 +116,7 @@
|
|||||||
{ value: 580, name: this.$t('notEvaluated') }
|
{ value: 580, name: this.$t('notEvaluated') }
|
||||||
]
|
]
|
||||||
this.getEcharts('main-left', this.$t('CurrentStatusOfTheProject'), ['#2F8DF3', '#FF8543', '#37CED1', '#FDB033', '#9DB9D4'], data)
|
this.getEcharts('main-left', this.$t('CurrentStatusOfTheProject'), ['#2F8DF3', '#FF8543', '#37CED1', '#FDB033', '#9DB9D4'], data)
|
||||||
},
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user