能力统计 能力使用统计 新增 会议室

This commit is contained in:
a0049873 2022-10-13 11:55:06 +08:00
parent c2c5c30122
commit 75299e8648
1 changed files with 140 additions and 99 deletions

View File

@ -142,7 +142,7 @@
:cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }"
border border
style="width: 100%" style="width: 100%"
v-show="this.departmentId === 1 || this.departmentId === 2" v-show="this.departmentId === 1"
> >
<el-table-column prop="name" label="部门名称" min-width="100%"> <el-table-column prop="name" label="部门名称" min-width="100%">
</el-table-column> </el-table-column>
@ -169,6 +169,41 @@
<el-table-column prop="zj" label="总计" min-width="100%"> <el-table-column prop="zj" label="总计" min-width="100%">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-table
:data="tableData"
:header-cell-style="{ textAlign: 'center' }"
:cell-style="{ textAlign: 'center' }"
border
style="width: 100%"
v-show="this.departmentId === 2"
>
<el-table-column prop="name" label="部门名称" min-width="100%">
</el-table-column>
<el-table-column label="组件">
<el-table-column prop="znsf" label="智能算法" min-width="100%">
</el-table-column>
<el-table-column prop="tcfw" label="图层服务" min-width="100%">
</el-table-column>
<el-table-column
prop="kfzj"
label="通用开发组件"
min-width="100%"
>
</el-table-column>
<el-table-column
prop="ywzj"
label="业务能力组件"
min-width="100%"
>
</el-table-column>
</el-table-column>
<el-table-column prop="yyzy" label="应用资源" min-width="100%">
</el-table-column>
<el-table-column prop="hys" label="会议室" min-width="100%" v-show='departmentId == 2'>
</el-table-column>
<el-table-column prop="zj" label="总计" min-width="100%">
</el-table-column>
</el-table>
<!--明细表--> <!--明细表-->
<el-table <el-table
@ -244,13 +279,13 @@ import { mapState } from 'vuex'
// showType: { type: String, default: null }, // showType: { type: String, default: null },
// }) // })
export default { export default {
components: { componentServices, applicationResources, ComponentUsed,AbilityDetail }, components: { componentServices, applicationResources, ComponentUsed, AbilityDetail },
data () { data () {
return { return {
detailType:'', detailType: '',
detailParamss:{}, detailParamss: {},
isBack:true, isBack: true,
detailsVisible:false, detailsVisible: false,
inputTxt: '', inputTxt: '',
tableId: '', tableId: '',
fatherId: '', fatherId: '',
@ -322,6 +357,7 @@ export default {
homeIsShow: true, homeIsShow: true,
servicesIsShow: false, servicesIsShow: false,
resourcesIsShow: false, resourcesIsShow: false,
showFlag: false,
UsedIsShow: false, UsedIsShow: false,
titleList: [ titleList: [
{ name: '组件服务', key: 1 }, { name: '组件服务', key: 1 },
@ -341,7 +377,7 @@ export default {
} }
], ],
examineStatus: '-1', // examineStatus: '-1', //
status:'', status: '',
value1: [], // value1: [], //
abilityDepartment: '', // abilityDepartment: '', //
abilityType: '', // abilityType: '', //
@ -380,8 +416,8 @@ export default {
...mapState(['departmentSelects']) ...mapState(['departmentSelects'])
}, },
methods: { methods: {
closeModal() { closeModal () {
this.detailsVisible = false; this.detailsVisible = false
}, },
handleCurrentChange (val) { handleCurrentChange (val) {
if (this.choseId === 0) { if (this.choseId === 0) {
@ -421,15 +457,14 @@ export default {
// -- // --
getFirstTree (page) { getFirstTree (page) {
if (this.examineStatus == '-1') {
if(this.examineStatus== '-1' ){ this.status = ''
this.status='' } else if (this.examineStatus == '0') {
}else if(this.examineStatus== '0' ){ this.status = '审核中'
this.status='审核中' } else if (this.examineStatus == '1') {
}else if(this.examineStatus== '1' ){ this.status = '审核完成'
this.status='审核完成' } else {
}else{ this.status = this.examineStatus
this.status=this.examineStatus
} }
this.$http this.$http
.get('/census/center/selectDeptDetailTypeCountList/', { .get('/census/center/selectDeptDetailTypeCountList/', {
@ -461,12 +496,16 @@ export default {
if (!result[i].hasOwnProperty('ywzj')) { if (!result[i].hasOwnProperty('ywzj')) {
result[i].ywzj = 0 result[i].ywzj = 0
} }
if (!result[i].hasOwnProperty('hys')) {
result[i].hys = 0
}
result[i].zj = result[i].zj =
parseInt(result[i].yyzy) + parseInt(result[i].yyzy) +
parseInt(result[i].kfzj) + parseInt(result[i].kfzj) +
parseInt(result[i].znsf) + parseInt(result[i].znsf) +
parseInt(result[i].ywzj) + parseInt(result[i].ywzj) +
parseInt(result[i].tcfw) parseInt(result[i].tcfw) +
parseInt(result[i].hys)
} }
this.tableData = res.data.data this.tableData = res.data.data
this.total = res.data.data.total this.total = res.data.data.total
@ -474,14 +513,14 @@ export default {
}, },
// 使-使 // 使-使
getSecondTree () { getSecondTree () {
if(this.examineStatus== '-1' ){ if (this.examineStatus == '-1') {
this.status='' this.status = ''
}else if(this.examineStatus== '0' ){ } else if (this.examineStatus == '0') {
this.status='审核中' this.status = '审核中'
}else if(this.examineStatus== '1' ){ } else if (this.examineStatus == '1') {
this.status='审核完成' this.status = '审核完成'
}else{ } else {
this.status=this.examineStatus this.status = this.examineStatus
} }
this.$http this.$http
.get('/census/center/selectApplyDeptDetailTypeCountList', { .get('/census/center/selectApplyDeptDetailTypeCountList', {
@ -513,76 +552,74 @@ export default {
if (!result[i].hasOwnProperty('ywzj')) { if (!result[i].hasOwnProperty('ywzj')) {
result[i].ywzj = 0 result[i].ywzj = 0
} }
if (!result[i].hasOwnProperty('hys')) {
result[i].hys = 0
}
result[i].zj = result[i].zj =
parseInt(result[i].yyzy) + parseInt(result[i].yyzy) +
parseInt(result[i].kfzj) + parseInt(result[i].kfzj) +
parseInt(result[i].znsf) + parseInt(result[i].znsf) +
parseInt(result[i].ywzj) + parseInt(result[i].ywzj) +
parseInt(result[i].tcfw) parseInt(result[i].tcfw) +
parseInt(result[i].hys)
} }
this.tableData = res.data.data this.tableData = res.data.data
this.total = res.data.data.total this.total = res.data.data.total
}) })
}, },
// //
detailClick(row){ detailClick (row) {
this.detailParamss={} this.detailParamss = {}
let applyNumber=row.applyNumber const applyNumber = row.applyNumber
if (this.departmentId == 3) { // if (this.departmentId == 3) { //
this.detailType='能力上架' this.detailType = '能力上架'
let params = { const params = {
processInstanceId: applyNumber, processInstanceId: applyNumber
} }
this.$http this.$http
.get('/act/his/getTaskHandleDetailInfo',{params}) .get('/act/his/getTaskHandleDetailInfo', { params })
.then((res) => { .then((res) => {
if (res.data.code == 0) { if (res.data.code == 0) {
if (res.data.data != null) {
if(res.data.data!=null){ this.detailParamss.resourceApplication = []
this.detailParamss.resourceApplication=[] this.detailParamss.resourceApplication = res.data.data
this.detailParamss.resourceApplication=res.data.data this.detailsVisible = true
this.detailsVisible=true } else {
} else{ this.$message.info('暂无详情数据!')
this.$message.info('暂无详情数据!') }
}}else { } else {
this.$message.error('数据请求失败!') this.$message.error('数据请求失败!')
} }
})
}) } else if (this.departmentId === 4) { // 使
} else if (this.departmentId === 4) {//使 this.detailType = '能力使用'
this.$http
this.detailType='能力使用' .get('/processForm/tabilityapplication/getByApplyFlag/' + applyNumber)
this.$http .then((res) => {
.get('/processForm/tabilityapplication/getByApplyFlag/'+applyNumber) if (res.data.code == 0) {
.then((res) => { if (res.data.data != null) {
this.detailParamss = res.data.data
if (res.data.code == 0) { this.detailsVisible = true
if(res.data.data!=null){ } else {
this.detailParamss=res.data.data
this.detailsVisible=true }
else{
this.$message.info('暂无详情数据!') this.$message.info('暂无详情数据!')
} }
} else { } else {
this.$message.error('数据请求失败!') this.$message.error('数据请求失败!')
} }
}) })
} }
}, },
// //
getOneDetail (page) { getOneDetail (page) {
var passAndReview = '' // "" var passAndReview = '' // ""
if(this.examineStatus== '-1' ){ if (this.examineStatus == '-1') {
this.status='' this.status = ''
}else if(this.examineStatus== '0' ){ } else if (this.examineStatus == '0') {
this.status='审核中' this.status = '审核中'
}else if(this.examineStatus== '1' ){ } else if (this.examineStatus == '1') {
this.status='通过' this.status = '通过'
}else{ } else {
this.status=this.examineStatus this.status = this.examineStatus
} }
this.$http this.$http
.get('/census/center/selectCensusResourceTable', { .get('/census/center/selectCensusResourceTable', {
@ -605,14 +642,14 @@ export default {
// 使 // 使
getTwoDetail (page) { getTwoDetail (page) {
var passAndReview = '' // "" var passAndReview = '' // ""
if(this.examineStatus== '-1' ){ if (this.examineStatus == '-1') {
this.status='' this.status = ''
}else if(this.examineStatus== '0' ){ } else if (this.examineStatus == '0') {
this.status='审核中' this.status = '审核中'
}else if(this.examineStatus== '1' ){ } else if (this.examineStatus == '1') {
this.status='通过' this.status = '通过'
}else{ } else {
this.status=this.examineStatus this.status = this.examineStatus
} }
this.$http this.$http
.get('/census/center/selectCensusApplyTable', { .get('/census/center/selectCensusApplyTable', {
@ -661,12 +698,16 @@ export default {
if (!result[i].hasOwnProperty('ywzj')) { if (!result[i].hasOwnProperty('ywzj')) {
result[i].ywzj = 0 result[i].ywzj = 0
} }
if (!result[i].hasOwnProperty('hys')) {
result[i].hys = 0
}
result[i].zj = result[i].zj =
parseInt(result[i].yyzy) + parseInt(result[i].yyzy) +
parseInt(result[i].kfzj) + parseInt(result[i].kfzj) +
parseInt(result[i].znsf) + parseInt(result[i].znsf) +
parseInt(result[i].ywzj) + parseInt(result[i].ywzj) +
parseInt(result[i].tcfw) parseInt(result[i].tcfw) +
parseInt(result[i].hys)
} }
this.tableData = res.data.data this.tableData = res.data.data
this.total = res.data.data.total this.total = res.data.data.total
@ -807,9 +848,9 @@ export default {
if (this.value1 && this.value1.length > 0) { if (this.value1 && this.value1.length > 0) {
this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd HH:mm:ss') this.startDate = this.handleTime(this.value1[0], 'yyyy-MM-dd HH:mm:ss')
this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd HH:mm:ss') this.endDate = this.handleTime(this.value1[1], 'yyyy-MM-dd HH:mm:ss')
}else{ } else {
this.startDate ='' this.startDate = ''
this.endDate ='' this.endDate = ''
} }
if (this.abilityDepartment) { if (this.abilityDepartment) {
@ -835,7 +876,7 @@ export default {
}, },
// //
resetDataList () { resetDataList () {
this.value1=[] this.value1 = []
this.startDate = '' this.startDate = ''
this.endDate = '' this.endDate = ''
this.examineStatus = '全部' this.examineStatus = '全部'