From 75299e864884b0c166fdf5d599bf4090cd0d44ba Mon Sep 17 00:00:00 2001
From: a0049873 <79py69t9wb@privaterelay.appleid.com>
Date: Thu, 13 Oct 2022 11:55:06 +0800
Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=BB=9F=E8=AE=A1=20=20?=
=?UTF-8?q?=E8=83=BD=E5=8A=9B=E4=BD=BF=E7=94=A8=E7=BB=9F=E8=AE=A1=20?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E4=BC=9A=E8=AE=AE=E5=AE=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/modules/abilityStatistics/index.vue | 239 ++++++++++--------
1 file changed, 140 insertions(+), 99 deletions(-)
diff --git a/back/src/views/modules/abilityStatistics/index.vue b/back/src/views/modules/abilityStatistics/index.vue
index e1b2f00d..9ae9cc02 100644
--- a/back/src/views/modules/abilityStatistics/index.vue
+++ b/back/src/views/modules/abilityStatistics/index.vue
@@ -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"
>
@@ -169,6 +169,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
- 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 {
- this.$message.error('数据请求失败!')
+ // 点击查看详情
+ detailClick (row) {
+ this.detailParamss = {}
+ const applyNumber = row.applyNumber
+ if (this.departmentId == 3) { // 能力上架
+ this.detailType = '能力上架'
+ const params = {
+ processInstanceId: applyNumber
}
-
- })
- } 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.$message.info('暂无详情数据!')
- }
- } else {
- this.$message.error('数据请求失败!')
- }
-
- })
+ .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 {
+ 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.$message.info('暂无详情数据!')
+ }
+ } else {
+ this.$message.error('数据请求失败!')
+ }
+ })
}
-
-
},
// 能力上架明细
getOneDetail (page) {
var passAndReview = '' // 转变"审核完成"字段为通过
- if(this.examineStatus== '-1' ){
- this.status=''
- }else if(this.examineStatus== '0' ){
- this.status='审核中'
- }else if(this.examineStatus== '1' ){
- this.status='通过'
- }else{
- this.status=this.examineStatus
+ if (this.examineStatus == '-1') {
+ this.status = ''
+ } else if (this.examineStatus == '0') {
+ this.status = '审核中'
+ } else if (this.examineStatus == '1') {
+ this.status = '通过'
+ } else {
+ this.status = this.examineStatus
}
this.$http
.get('/census/center/selectCensusResourceTable', {
@@ -605,14 +642,14 @@ export default {
// 能力使用明细
getTwoDetail (page) {
var passAndReview = '' // 转变"审核完成"字段为通过
- if(this.examineStatus== '-1' ){
- this.status=''
- }else if(this.examineStatus== '0' ){
- this.status='审核中'
- }else if(this.examineStatus== '1' ){
- this.status='通过'
- }else{
- this.status=this.examineStatus
+ if (this.examineStatus == '-1') {
+ this.status = ''
+ } else if (this.examineStatus == '0') {
+ this.status = '审核中'
+ } else if (this.examineStatus == '1') {
+ this.status = '通过'
+ } else {
+ this.status = this.examineStatus
}
this.$http
.get('/census/center/selectCensusApplyTable', {
@@ -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
@@ -807,9 +848,9 @@ export default {
if (this.value1 && this.value1.length > 0) {
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')
- }else{
- this.startDate =''
- this.endDate =''
+ } else {
+ this.startDate = ''
+ this.endDate = ''
}
if (this.abilityDepartment) {
@@ -823,10 +864,10 @@ export default {
} else {
this.abilityType = ''
}
- if (this.departmentId === 1) {
- this.handleChose(1)
- } else if (this.departmentId === 2) {
- this.handleChose(2)
+ if (this.departmentId === 1) {
+ this.handleChose(1)
+ } else if (this.departmentId === 2) {
+ this.handleChose(2)
} else if (this.departmentId === 3) {
this.handleChose(3)
} else {
@@ -835,7 +876,7 @@ export default {
},
// 重置按钮查询数据
resetDataList () {
- this.value1=[]
+ this.value1 = []
this.startDate = ''
this.endDate = ''
this.examineStatus = '全部'
@@ -846,7 +887,7 @@ export default {
// this.handleChose(3)
// this.detailFlag = !this.detailFlag
// } else {
- this.handleChose(1)
+ this.handleChose(1)
// this.detailFlag = !this.detailFlag
// }
// this.departmentId = 1;
@@ -855,7 +896,7 @@ export default {
// this.handleChose(4)
// this.detailFlag = !this.detailFlag
// } else {
- this.handleChose(2)
+ this.handleChose(2)
// this.detailFlag = !this.detailFlag
// }
} else if (this.departmentId === 3) {