修改UAT提出的问题
This commit is contained in:
@@ -270,6 +270,9 @@
|
|||||||
this.textColor(this.$t('projectDetails'))
|
this.textColor(this.$t('projectDetails'))
|
||||||
this.textTitle = this.$t('projectDetails')
|
this.textTitle = this.$t('projectDetails')
|
||||||
} else if (this.$route.query.type == '102') {
|
} else if (this.$route.query.type == '102') {
|
||||||
|
if (this.$route.query.dutyTerritoryName){
|
||||||
|
this.areaOfResponsibilityList = this.$route.query
|
||||||
|
}
|
||||||
this.textColor(this.$t('listOfRegulations'))
|
this.textColor(this.$t('listOfRegulations'))
|
||||||
this.textTitle = this.$t('listOfRegulations')
|
this.textTitle = this.$t('listOfRegulations')
|
||||||
} else if (this.$route.query.type == '103') {
|
} else if (this.$route.query.type == '103') {
|
||||||
@@ -285,6 +288,9 @@
|
|||||||
this.textColor(this.$t('TaskParameterCollection'))
|
this.textColor(this.$t('TaskParameterCollection'))
|
||||||
this.textTitle = this.$t('TaskParameterCollection')
|
this.textTitle = this.$t('TaskParameterCollection')
|
||||||
} else if (this.$route.query.type == '106') {
|
} else if (this.$route.query.type == '106') {
|
||||||
|
if (this.$route.query.dutyTerritoryName){
|
||||||
|
this.areaOfResponsibility = this.$route.query
|
||||||
|
}
|
||||||
this.textColor(this.$t('certificationList'))
|
this.textColor(this.$t('certificationList'))
|
||||||
this.textTitle = this.$t('certificationList')
|
this.textTitle = this.$t('certificationList')
|
||||||
}
|
}
|
||||||
|
|||||||
+175
@@ -0,0 +1,175 @@
|
|||||||
|
<template>
|
||||||
|
<a-modal
|
||||||
|
:title="title"
|
||||||
|
:width="800"
|
||||||
|
:visible="visible"
|
||||||
|
:confirm-loading="confirmLoading"
|
||||||
|
:maskClosable="false"
|
||||||
|
@cancel="visible = false"
|
||||||
|
>
|
||||||
|
<template slot="footer">
|
||||||
|
<a-button key="back" @click="visible = false">
|
||||||
|
{{$t('cancel')}}
|
||||||
|
</a-button>
|
||||||
|
</template>
|
||||||
|
<!-- <div style="text-align: right;margin-bottom: 10px">-->
|
||||||
|
<!-- <div @click="handleExport" class="operator-text">-->
|
||||||
|
<!-- <a-icon type="export" :rotate="-90"/>-->
|
||||||
|
<!-- {{$t('export')}}-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<a-table
|
||||||
|
ref="table"
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
|
:loading="loading"
|
||||||
|
:pagination="false"
|
||||||
|
:scroll="{x: '100%',y:400}"
|
||||||
|
:data-source="dataSource"
|
||||||
|
@change="tableOnChange"
|
||||||
|
:columns="columns"
|
||||||
|
>
|
||||||
|
<!-- -->
|
||||||
|
<a slot="areaOfResponsibility" @click="areaOfResponsibilityClick(result)" slot-scope="text,result">
|
||||||
|
{{text}}
|
||||||
|
</a>
|
||||||
|
</a-table>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction, downloadFile } from '@/api/manage'
|
||||||
|
import moment from 'moment'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'responsibilityList',
|
||||||
|
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
title: '',
|
||||||
|
confirmLoading: false,
|
||||||
|
loading: false,
|
||||||
|
dataSource: [],
|
||||||
|
queryParam: {},
|
||||||
|
projectInfo: {},
|
||||||
|
url: {
|
||||||
|
groupByTerritoryXls: '/project/projectLibraryBase/exportProjectDetailsStatisticsGroupByTerritoryXls',
|
||||||
|
GroupByTerritory: '/project/projectLibraryBase/getProjectDetailsStatisticsGroupByTerritory'
|
||||||
|
},
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('areaOfResponsibility'),
|
||||||
|
dataIndex: 'dutyTerritoryName',
|
||||||
|
align: 'left',
|
||||||
|
width: 150,
|
||||||
|
ellipsis: true,
|
||||||
|
sorter: true,
|
||||||
|
scopedSlots: { customRender: 'areaOfResponsibility' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('Quantity'),
|
||||||
|
dataIndex: 'amount',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 150,
|
||||||
|
sorter: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('proportionWithInTheAreaOfResponsibility'),
|
||||||
|
dataIndex: 'percentage',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 240,
|
||||||
|
sorter: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getData(data, projectInfo) {
|
||||||
|
this.visible = true
|
||||||
|
this.projectInfo = projectInfo
|
||||||
|
this.title = data.title
|
||||||
|
this.queryParam = data
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
tableOnChange(pagination, filters, sorter) {
|
||||||
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
if (sorter.columnKey == 'attestationRank_dictText') {
|
||||||
|
this.orderByField = 'attestationRank'
|
||||||
|
} else if (sorter.columnKey == 'dutyTerritory_dictText') {
|
||||||
|
this.orderByField = 'dutyTerritory'
|
||||||
|
} else if (sorter.columnKey == 'designDeliverableTypeName') {
|
||||||
|
this.orderByField = 'designDeliverableType'
|
||||||
|
} else if (sorter.columnKey == 'verifyDeliverableTypeName') {
|
||||||
|
this.orderByField = 'verifyDeliverableType'
|
||||||
|
} else if (sorter.columnKey == 'designDutyIdName') {
|
||||||
|
this.orderByField = 'designDutyId'
|
||||||
|
} else if (sorter.columnKey == 'verifyDutyIdName') {
|
||||||
|
this.orderByField = 'verifyDutyId'
|
||||||
|
} else if (sorter.columnKey == 'verifyFlowStatusName') {
|
||||||
|
this.orderByField = 'verifyFlowStatus'
|
||||||
|
} else if (sorter.columnKey == 'designFlowStatusName') {
|
||||||
|
this.orderByField = 'designFlowStatus'
|
||||||
|
} else {
|
||||||
|
this.orderByField = sorter.columnKey
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
this.loading = true
|
||||||
|
let query = {
|
||||||
|
...this.queryParam,
|
||||||
|
orderBy: this.orderBy,
|
||||||
|
orderByField: this.orderByField
|
||||||
|
}
|
||||||
|
getAction(this.url.GroupByTerritory, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.loading = false
|
||||||
|
this.dataSource = res.result.dataList || []
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.dataSource = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleExport() {
|
||||||
|
downloadFile(this.url.groupByTerritoryXls, this.title + '.xls', this.queryParam)
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
areaOfResponsibilityClick(item) {
|
||||||
|
let type = ''
|
||||||
|
if (this.queryParam.operatorType == 'queryFGTaskToConfirmStatistics' ||
|
||||||
|
this.queryParam.operatorType == 'queryDesignStatistics' ||
|
||||||
|
this.queryParam.operatorType == 'queryVerifyStatistics') {
|
||||||
|
type = '102'
|
||||||
|
} else {
|
||||||
|
type = '106'
|
||||||
|
}
|
||||||
|
let query = {
|
||||||
|
id: this.projectInfo.id,
|
||||||
|
projectName: this.projectInfo.projectName,
|
||||||
|
projectNameId: this.projectInfo.projectNameId,
|
||||||
|
targetMarket: this.projectInfo.targetMarket,
|
||||||
|
studioEngineer: this.projectInfo.studioEngineer,
|
||||||
|
type: type,
|
||||||
|
dutyTerritoryName: item.dutyTerritoryName
|
||||||
|
}
|
||||||
|
let newUrl = this.$router.resolve({
|
||||||
|
path: '/ProjectDetails',
|
||||||
|
query: query
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
+136
-169
@@ -1,108 +1,116 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-drawer
|
<div>
|
||||||
:title="title"
|
<a-drawer
|
||||||
:maskClosable="false"
|
:title="title"
|
||||||
:width="1000"
|
:maskClosable="false"
|
||||||
placement="right"
|
:width="1000"
|
||||||
:closable="true"
|
placement="right"
|
||||||
@close="handleCancel"
|
:closable="true"
|
||||||
:visible="visible"
|
@close="handleCancel"
|
||||||
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
:visible="visible"
|
||||||
<a-spin :spinning="confirmLoading">
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
<div class="box-content" v-if="visible">
|
<a-spin :spinning="confirmLoading">
|
||||||
<div class="box-content-top"
|
<div class="box-content" v-if="visible">
|
||||||
v-if="projectQuery.name == this.$t('listPublishing') || projectQuery.name == this.$t('responsibilityConfirmation')">
|
<div class="box-content-top"
|
||||||
<div class="total-text">
|
v-if="projectQuery.name == this.$t('listPublishing') || projectQuery.name == this.$t('responsibilityConfirmation')">
|
||||||
<span>{{$t('totalTable')+' : '+mainTopNum}}</span>
|
<div class="total-text">
|
||||||
|
<span>{{$t('totalTable')+' : '+mainTopNum}}</span>
|
||||||
|
</div>
|
||||||
|
<div id="main-top"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main-top"></div>
|
<div class="box-content-top" v-if="projectQuery.name == this.$t('designVerification')">
|
||||||
</div>
|
<div class="total-text">
|
||||||
<div class="box-content-top" v-if="projectQuery.name == this.$t('designVerification')">
|
<span>{{$t('totalTable')+' : '+mainLeftNum}}</span>
|
||||||
<div class="total-text">
|
</div>
|
||||||
<span>{{$t('totalTable')+' : '+mainLeftNum}}</span>
|
<div id="main-left"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main-left"></div>
|
<div class="box-content-top" v-if="projectQuery.name == this.$t('verificationAndVerification')">
|
||||||
</div>
|
<div class="total-text">
|
||||||
<div class="box-content-top" v-if="projectQuery.name == this.$t('verificationAndVerification')">
|
<span>{{$t('totalTable')+' : '+mainRightNum}}</span>
|
||||||
<div class="total-text">
|
</div>
|
||||||
<span>{{$t('totalTable')+' : '+mainRightNum}}</span>
|
<div id="main-right"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main-right"></div>
|
<div class="box-content-top"
|
||||||
</div>
|
v-if="projectQuery.name == this.$t('listPublishing') || projectQuery.name == this.$t('responsibilityConfirmation')">
|
||||||
<div class="box-content-top"
|
<div class="total-text">
|
||||||
v-if="projectQuery.name == this.$t('listPublishing') || projectQuery.name == this.$t('responsibilityConfirmation')">
|
<span>{{$t('totalTable')+' : '+mainTopNumOne}}</span>
|
||||||
<div class="total-text">
|
</div>
|
||||||
<span>{{$t('totalTable')+' : '+mainTopNumOne}}</span>
|
<div id="main-top-one"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main-top-one"></div>
|
<div class="box-content-top"
|
||||||
</div>
|
v-if="projectQuery.name == this.$t('getStarted') || projectQuery.name == this.$t('certificationStartOne')">
|
||||||
<div class="box-content-top"
|
<div class="total-text">
|
||||||
v-if="projectQuery.name == this.$t('getStarted') || projectQuery.name == this.$t('certificationStartOne')">
|
<span>{{$t('totalTable')+' : '+mainLeftNumOne}}</span>
|
||||||
<div class="total-text">
|
</div>
|
||||||
<span>{{$t('totalTable')+' : '+mainLeftNumOne}}</span>
|
<div id="main-right-one"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="main-right-one"></div>
|
<div class="box-content-top"
|
||||||
</div>
|
v-if="projectQuery.name == this.$t('certificationEnd') || projectQuery.name == this.$t('certificationSubmission')">
|
||||||
<div class="box-content-top"
|
<div class="total-text-text" :class="{'total-text-text-cntop':long == 'zh-cn' ? true:false,
|
||||||
v-if="projectQuery.name == this.$t('certificationEnd') || projectQuery.name == this.$t('certificationSubmission')">
|
|
||||||
<div class="total-text-text" :class="{'total-text-text-cntop':long == 'zh-cn' ? true:false,
|
|
||||||
'total-text-text-entop':long == 'zh-cn' ? false:true}">
|
'total-text-text-entop':long == 'zh-cn' ? false:true}">
|
||||||
<span>{{$t('totalTable')+' : '+mainBottomNum}}</span>
|
<span>{{$t('totalTable')+' : '+mainBottomNum}}</span>
|
||||||
|
</div>
|
||||||
|
<div class="box-content-text">
|
||||||
|
<div class="box-content-text-text" @click="boxContentClick(0)">
|
||||||
|
{{$t('whole')}}
|
||||||
|
</div>
|
||||||
|
<div class="box-content-text-text" @click="boxContentClick(1)">
|
||||||
|
{{$t('completeVehicle')}}
|
||||||
|
</div>
|
||||||
|
<div class="box-content-text-text" @click="boxContentClick(2)">
|
||||||
|
{{$t('components')}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="main-bottom"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content-text">
|
<div class="table-page-search-wrapper"
|
||||||
<div class="box-content-text-text" @click="boxContentClick(0)">
|
v-if="this.projectQuery.name == this.$t('getStarted') || this.projectQuery.name == this.$t('certificationStartOne')">
|
||||||
{{$t('whole')}}
|
<a-form layout="inline">
|
||||||
</div>
|
<a-row :gutter="24">
|
||||||
<div class="box-content-text-text" @click="boxContentClick(1)">
|
<a-col :md="12" :sm="10">
|
||||||
{{$t('completeVehicle')}}
|
<div class="box-title-text">
|
||||||
</div>
|
<div class="title-text" :title="$t('Statisticalmodels')">
|
||||||
<div class="box-content-text-text" @click="boxContentClick(2)">
|
<span>{{ $t('Statisticalmodels') }}</span>
|
||||||
{{$t('components')}}
|
</div>
|
||||||
</div>
|
<a-radio-group class="box-input"
|
||||||
</div>
|
v-model="queryParam.value" @change="onChange">
|
||||||
<div id="main-bottom"></div>
|
<a-radio :value="1">
|
||||||
</div>
|
{{$t('Thepercentage')}}
|
||||||
<div class="table-page-search-wrapper"
|
</a-radio>
|
||||||
v-if="this.projectQuery.name == this.$t('getStarted') || this.projectQuery.name == this.$t('certificationStartOne')">
|
<a-radio :value="2">
|
||||||
<a-form layout="inline">
|
{{$t('Quantity')}}
|
||||||
<a-row :gutter="24">
|
</a-radio>
|
||||||
<a-col :md="12" :sm="10">
|
</a-radio-group>
|
||||||
<div class="box-title-text">
|
|
||||||
<div class="title-text" :title="$t('Statisticalmodels')">
|
|
||||||
<span>{{ $t('Statisticalmodels') }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<a-radio-group class="box-input"
|
</a-col>
|
||||||
v-model="queryParam.value" @change="onChange">
|
</a-row>
|
||||||
<a-radio :value="1">
|
</a-form>
|
||||||
{{$t('Thepercentage')}}
|
</div>
|
||||||
</a-radio>
|
<div class="box-content-top-one"
|
||||||
<a-radio :value="2">
|
v-if="this.projectQuery.name == this.$t('getStarted') || this.projectQuery.name == this.$t('certificationStartOne')">
|
||||||
{{$t('Quantity')}}
|
<div id="main-left-parameter"></div>
|
||||||
</a-radio>
|
</div>
|
||||||
</a-radio-group>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
</a-form>
|
|
||||||
</div>
|
|
||||||
<div class="box-content-top-one"
|
|
||||||
v-if="this.projectQuery.name == this.$t('getStarted') || this.projectQuery.name == this.$t('certificationStartOne')">
|
|
||||||
<div id="main-left-parameter"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</a-spin>
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-spin>
|
</a-drawer>
|
||||||
<div class="drawer-bootom-button">
|
<responsibilityList ref="responsibilityListRef"/>
|
||||||
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
</div>
|
||||||
</div>
|
|
||||||
</a-drawer>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||||
|
import responsibilityList from './responsibilityList'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'statistics',
|
name: 'statistics',
|
||||||
|
components: {
|
||||||
|
responsibilityList
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
@@ -138,6 +146,7 @@
|
|||||||
submitquantity: [],
|
submitquantity: [],
|
||||||
syncReportpercentage: [],
|
syncReportpercentage: [],
|
||||||
syncReportquantity: [],
|
syncReportquantity: [],
|
||||||
|
projectInfo:{},
|
||||||
long: localStorage.getItem('language') || 'zh-cn',
|
long: localStorage.getItem('language') || 'zh-cn',
|
||||||
certificationProgressMap: {},
|
certificationProgressMap: {},
|
||||||
url: {
|
url: {
|
||||||
@@ -150,8 +159,9 @@
|
|||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
getData(val) {
|
getData(val,projectInfo) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.projectInfo = projectInfo
|
||||||
this.title = val.name
|
this.title = val.name
|
||||||
this.projectQuery = val
|
this.projectQuery = val
|
||||||
this.getEchart()
|
this.getEchart()
|
||||||
@@ -201,7 +211,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getEcharts(chart, title, color, data) {
|
getEcharts(chart, title, color, data) {
|
||||||
var myChart = echarts.init(document.getElementById(chart))
|
let myChart = echarts.init(document.getElementById(chart))
|
||||||
myChart.setOption({
|
myChart.setOption({
|
||||||
title: {
|
title: {
|
||||||
text: title
|
text: title
|
||||||
@@ -245,31 +255,59 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
myChart.off('click') // 重点代码
|
||||||
myChart.on('click', (params) => {
|
myChart.on('click', (params) => {
|
||||||
let query = {}
|
let query = {}
|
||||||
if (params.seriesName == this.$t('regulatoryTaskConfirmation')) {
|
if (params.seriesName == this.$t('regulatoryTaskConfirmation')) {
|
||||||
query = {
|
query = {
|
||||||
title: params.seriesName,
|
title: params.seriesName + '-' + params.name,
|
||||||
projectLibraryId: this.$route.query.id,
|
projectLibraryId: this.projectQuery.projectId,
|
||||||
operatorType: 'queryFGTaskToConfirmStatistics',
|
operatorType: 'queryFGTaskToConfirmStatistics',
|
||||||
status: params.data.status
|
status: params.data.status
|
||||||
}
|
}
|
||||||
} else if (params.seriesName == this.$t('designCompliance')) {
|
} else if (params.seriesName == this.$t('designCompliance')) {
|
||||||
query = {
|
query = {
|
||||||
title: params.seriesName,
|
title: params.seriesName + '-' + params.name,
|
||||||
projectLibraryId: this.$route.query.id,
|
projectLibraryId: this.projectQuery.projectId,
|
||||||
operatorType: 'queryDesignStatistics',
|
operatorType: 'queryDesignStatistics',
|
||||||
status: params.data.status
|
status: params.data.status
|
||||||
}
|
}
|
||||||
} else if (params.seriesName == this.$t('verifyCompliance')) {
|
} else if (params.seriesName == this.$t('verifyCompliance')) {
|
||||||
query = {
|
query = {
|
||||||
title: params.seriesName,
|
title: params.seriesName + '-' + params.name,
|
||||||
projectLibraryId: this.$route.query.id,
|
projectLibraryId: this.projectQuery.projectId,
|
||||||
operatorType: 'queryVerifyStatistics',
|
operatorType: 'queryVerifyStatistics',
|
||||||
status: params.data.status
|
status: params.data.status
|
||||||
}
|
}
|
||||||
|
} else if (params.seriesName === this.$t('certificationTaskConfirmation')) {
|
||||||
|
query = {
|
||||||
|
title: params.seriesName + '-' + params.name,
|
||||||
|
projectLibraryId: this.projectQuery.projectId,
|
||||||
|
operatorType: 'queryRZTaskToConfirmStatistics',
|
||||||
|
status: params.data.status
|
||||||
|
}
|
||||||
|
} else if (params.seriesName === this.$t('preHomoFlow')) {
|
||||||
|
query = {
|
||||||
|
title: params.seriesName + '-' + params.name,
|
||||||
|
projectLibraryId: this.projectQuery.projectId,
|
||||||
|
operatorType: 'queryPrehomoStatistics',
|
||||||
|
status: params.data.status
|
||||||
|
}
|
||||||
|
} else if (params.seriesName === this.$t('CertificationProgress')) {
|
||||||
|
query = {
|
||||||
|
title: params.seriesName + '-' + params.name,
|
||||||
|
projectLibraryId: this.projectQuery.projectId,
|
||||||
|
status: params.data.status
|
||||||
|
}
|
||||||
|
if (this.num == '0') {
|
||||||
|
query.operatorType = 'queryCertificationProgressStatisticsAll'
|
||||||
|
} else if (this.num == '1') {
|
||||||
|
query.operatorType = 'queryCertificationProgressStatisticsCar'
|
||||||
|
} else if (this.num == '2') {
|
||||||
|
query.operatorType = 'queryCertificationProgressStatisticsPart'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.$refs.responsibilityListRef.getData(query)
|
this.$refs.responsibilityListRef.getData(query,this.projectInfo)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -500,7 +538,7 @@
|
|||||||
this.mainLeftNumOne += res.taskAffirmStatusCount
|
this.mainLeftNumOne += res.taskAffirmStatusCount
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.getEchartsOne('main-right-one', this.$t('preHomoFlow'), color, data)
|
this.getEcharts('main-right-one', this.$t('preHomoFlow'), color, data)
|
||||||
},
|
},
|
||||||
|
|
||||||
mainBottomEcharts(dataSource) {
|
mainBottomEcharts(dataSource) {
|
||||||
@@ -569,79 +607,7 @@
|
|||||||
this.mainBottomNum += res.certificationProgressCount
|
this.mainBottomNum += res.certificationProgressCount
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.getEchartsOne('main-bottom', this.$t('CertificationProgress'), color, data)
|
this.getEcharts('main-bottom', this.$t('CertificationProgress'), color, data)
|
||||||
},
|
|
||||||
|
|
||||||
getEchartsOne(chart, title, color, data) {
|
|
||||||
var myChart = echarts.init(document.getElementById(chart))
|
|
||||||
myChart.setOption({
|
|
||||||
title: {
|
|
||||||
text: title
|
|
||||||
},
|
|
||||||
tooltip: {
|
|
||||||
trigger: 'item',
|
|
||||||
textStyle: {
|
|
||||||
fontWeight: 'normal',
|
|
||||||
fontSize: 14,
|
|
||||||
color: '#040B29',
|
|
||||||
fontFamily: 'BlueSkyNoto'
|
|
||||||
},
|
|
||||||
formatter: function(parms) {
|
|
||||||
let str = parms.marker + ' ' + parms.data.name + ' ' + parms.data.value + ' (' + parms.percent + '%)'
|
|
||||||
return str
|
|
||||||
}
|
|
||||||
},
|
|
||||||
legend: {
|
|
||||||
itemWidth: 12,
|
|
||||||
itemHeight: 12,
|
|
||||||
bottom: '0',
|
|
||||||
left: 'center',
|
|
||||||
itemGap: 30,
|
|
||||||
icon: 'circle'
|
|
||||||
},
|
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: title,
|
|
||||||
type: 'pie',
|
|
||||||
radius: ['40%', '54%'],
|
|
||||||
avoidLabelOverlap: false,
|
|
||||||
label: {
|
|
||||||
show: false,
|
|
||||||
position: 'center'
|
|
||||||
},
|
|
||||||
labelLine: {
|
|
||||||
show: false
|
|
||||||
},
|
|
||||||
color: color,
|
|
||||||
data: data
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
|
||||||
myChart.off('click') // 重点代码
|
|
||||||
myChart.on('click', (params) => {
|
|
||||||
console.log(params)
|
|
||||||
let query = {
|
|
||||||
title: params.seriesName,
|
|
||||||
projectLibraryId: this.$route.query.id
|
|
||||||
}
|
|
||||||
if (params.seriesName === this.$t('certificationTaskConfirmation')) {
|
|
||||||
query.operatorType = 'queryRZTaskToConfirmStatistics'
|
|
||||||
query.status = params.data.status
|
|
||||||
} else if (params.seriesName === this.$t('preHomoFlow')) {
|
|
||||||
query.operatorType = 'queryPrehomoStatistics'
|
|
||||||
query.status = params.data.status
|
|
||||||
} else if (params.seriesName === this.$t('CertificationProgress')) {
|
|
||||||
if (this.num == '0') {
|
|
||||||
query.operatorType = 'queryCertificationProgressStatisticsAll'
|
|
||||||
} else if (this.num == '1') {
|
|
||||||
query.operatorType = 'queryCertificationProgressStatisticsCar'
|
|
||||||
} else if (this.num == '2') {
|
|
||||||
query.operatorType = 'queryCertificationProgressStatisticsPart'
|
|
||||||
}
|
|
||||||
query.status = params.data.status
|
|
||||||
}
|
|
||||||
this.$refs.responsibilityListRef.getData(query)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
boxContentClick(num) {
|
boxContentClick(num) {
|
||||||
@@ -1034,6 +1000,7 @@
|
|||||||
.total-text-text-entop {
|
.total-text-text-entop {
|
||||||
right: 290px;
|
right: 290px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.box-title-text {
|
.box-title-text {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -92,6 +92,9 @@
|
|||||||
<div style="overflow:visible;">
|
<div style="overflow:visible;">
|
||||||
<div class="box-top-content-left">
|
<div class="box-top-content-left">
|
||||||
<div class="box-top-content-left-text"
|
<div class="box-top-content-left-text"
|
||||||
|
:class="{'box-top-content-left-text-projectStatus':
|
||||||
|
item.projectInfo.projectStatus == '4786d0f0d230454e99a9fce15579eabf' ||
|
||||||
|
item.projectInfo.projectStatus == 'f737d063de754f2ab1bf51cd4118d04a'?true:false}"
|
||||||
v-for="(item,index) in timeData" :key="index">
|
v-for="(item,index) in timeData" :key="index">
|
||||||
<a-tooltip overlayClassName="overlayClassName" placement="topLeft">
|
<a-tooltip overlayClassName="overlayClassName" placement="topLeft">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
@@ -135,19 +138,23 @@
|
|||||||
v-if="!val.g"
|
v-if="!val.g"
|
||||||
v-for="(val,indexTwo) in item.data[0]">
|
v-for="(val,indexTwo) in item.data[0]">
|
||||||
<!-- <div class="process-content-right-top" v-if="indexOne % 2 == 0" :title="val.name">{{ val.name }}</div>-->
|
<!-- <div class="process-content-right-top" v-if="indexOne % 2 == 0" :title="val.name">{{ val.name }}</div>-->
|
||||||
<div @click="statusClick(val)" class="process-content-right-button" :title="val.name">{{ val.name }}
|
<div @click="statusClick(val,item.projectInfo)" class="process-content-right-button"
|
||||||
|
:title="val.name">{{ val.name }}
|
||||||
</div>
|
</div>
|
||||||
<a-tooltip placement="topLeft" overlayClassName="tooltipColor">
|
<a-tooltip placement="topLeft" overlayClassName="tooltipColor">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<span>{{ val.time.slice(0, 11) }}</span>
|
<span>{{ val.time.slice(0, 11) }}</span>
|
||||||
</template>
|
</template>
|
||||||
<img @click="statusClick(val)" v-if="val.status == 1" src="../../../assets/huiBottom.png"
|
<img @click="statusClick(val,item.projectInfo)" v-if="val.status == 1"
|
||||||
|
src="../../../assets/huiBottom.png"
|
||||||
class="process-content-left"
|
class="process-content-left"
|
||||||
alt="">
|
alt="">
|
||||||
<img @click="statusClick(val)" v-else-if="val.status == 2" src="../../../assets/kongBottom.png"
|
<img @click="statusClick(val,item.projectInfo)" v-else-if="val.status == 2"
|
||||||
|
src="../../../assets/kongBottom.png"
|
||||||
class="process-content-left"
|
class="process-content-left"
|
||||||
alt="">
|
alt="">
|
||||||
<img @click="statusClick(val)" v-else-if="val.status == 3" src="../../../assets/shiBottom.png"
|
<img @click="statusClick(val,item.projectInfo)" v-else-if="val.status == 3"
|
||||||
|
src="../../../assets/shiBottom.png"
|
||||||
class="process-content-left"
|
class="process-content-left"
|
||||||
alt="">
|
alt="">
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
@@ -601,8 +608,8 @@
|
|||||||
downloadFile('/project/ProjectStatusBoardController/exportXls',
|
downloadFile('/project/ProjectStatusBoardController/exportXls',
|
||||||
this.$t('GRPSystemProjectProgressStatistics') + '.xls', query, this.Deselect)
|
this.$t('GRPSystemProjectProgressStatistics') + '.xls', query, this.Deselect)
|
||||||
},
|
},
|
||||||
statusClick(val) {
|
statusClick(val, projectInfo) {
|
||||||
this.$refs.statisticsRef.getData(val)
|
this.$refs.statisticsRef.getData(val, projectInfo)
|
||||||
},
|
},
|
||||||
boxContentClick(num) {
|
boxContentClick(num) {
|
||||||
let boxContentTextColor = document.getElementsByClassName('box-header-text-color')
|
let boxContentTextColor = document.getElementsByClassName('box-header-text-color')
|
||||||
@@ -1024,4 +1031,7 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.box-top-content-left-text-projectStatus{
|
||||||
|
color: #9C9FAC;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user