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

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' }"
border
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>
@ -169,6 +169,41 @@
<el-table-column prop="zj" label="总计" min-width="100%">
</el-table-column>
</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
@ -322,6 +357,7 @@ export default {
homeIsShow: true,
servicesIsShow: false,
resourcesIsShow: false,
showFlag: false,
UsedIsShow: false,
titleList: [
{ name: '组件服务', key: 1 },
@ -381,7 +417,7 @@ export default {
},
methods: {
closeModal () {
this.detailsVisible = false;
this.detailsVisible = false
},
handleCurrentChange (val) {
if (this.choseId === 0) {
@ -421,7 +457,6 @@ export default {
// --
getFirstTree (page) {
if (this.examineStatus == '-1') {
this.status = ''
} else if (this.examineStatus == '0') {
@ -461,12 +496,16 @@ export default {
if (!result[i].hasOwnProperty('ywzj')) {
result[i].ywzj = 0
}
if (!result[i].hasOwnProperty('hys')) {
result[i].hys = 0
}
result[i].zj =
parseInt(result[i].yyzy) +
parseInt(result[i].kfzj) +
parseInt(result[i].znsf) +
parseInt(result[i].ywzj) +
parseInt(result[i].tcfw)
parseInt(result[i].tcfw) +
parseInt(result[i].hys)
}
this.tableData = res.data.data
this.total = res.data.data.total
@ -513,12 +552,16 @@ export default {
if (!result[i].hasOwnProperty('ywzj')) {
result[i].ywzj = 0
}
if (!result[i].hasOwnProperty('hys')) {
result[i].hys = 0
}
result[i].zj =
parseInt(result[i].yyzy) +
parseInt(result[i].kfzj) +
parseInt(result[i].znsf) +
parseInt(result[i].ywzj) +
parseInt(result[i].tcfw)
parseInt(result[i].tcfw) +
parseInt(result[i].hys)
}
this.tableData = res.data.data
this.total = res.data.data.total
@ -527,50 +570,44 @@ export default {
//
detailClick (row) {
this.detailParamss = {}
let applyNumber=row.applyNumber
const applyNumber = row.applyNumber
if (this.departmentId == 3) { //
this.detailType = '能力上架'
let params = {
processInstanceId: applyNumber,
const params = {
processInstanceId: applyNumber
}
this.$http
.get('/act/his/getTaskHandleDetailInfo', { params })
.then((res) => {
if (res.data.code == 0) {
if (res.data.data != null) {
this.detailParamss.resourceApplication = []
this.detailParamss.resourceApplication = res.data.data
this.detailsVisible = true
} else {
this.$message.info('暂无详情数据!')
}}else {
}
} else {
this.$message.error('数据请求失败!')
}
})
} else if (this.departmentId === 4) { // 使
this.detailType = '能力使用'
this.$http
.get('/processForm/tabilityapplication/getByApplyFlag/' + applyNumber)
.then((res) => {
if (res.data.code == 0) {
if (res.data.data != null) {
this.detailParamss = res.data.data
this.detailsVisible=true }
else{
this.detailsVisible = true
} else {
this.$message.info('暂无详情数据!')
}
} else {
this.$message.error('数据请求失败!')
}
})
}
},
//
getOneDetail (page) {
@ -661,12 +698,16 @@ export default {
if (!result[i].hasOwnProperty('ywzj')) {
result[i].ywzj = 0
}
if (!result[i].hasOwnProperty('hys')) {
result[i].hys = 0
}
result[i].zj =
parseInt(result[i].yyzy) +
parseInt(result[i].kfzj) +
parseInt(result[i].znsf) +
parseInt(result[i].ywzj) +
parseInt(result[i].tcfw)
parseInt(result[i].tcfw) +
parseInt(result[i].hys)
}
this.tableData = res.data.data
this.total = res.data.data.total