【修改】修改bug

This commit is contained in:
zhoulingpo
2023-04-28 11:41:17 +08:00
parent 6499712caf
commit 83acaf9dc9
8 changed files with 64 additions and 21 deletions
+12
View File
@@ -62,4 +62,16 @@
color: #1890FF ; color: #1890FF ;
cursor: pointer; cursor: pointer;
} }
.reportName{
max-height: 500px;
}
.reportName el-message-box__content .el-message-box__message{
overflow: scroll;
}
.reportName .el-message-box__message p{
word-break: break-word;
max-height: 300px;
overflow: auto;
}
+1 -1
View File
@@ -113,7 +113,7 @@
let data=res.data let data=res.data
this.processOld=data this.processOld=data
console.log( this.processOld,"processOld") console.log( this.processOld,"processOld")
resolve() resolve(this)
}).catch(err=>{ }).catch(err=>{
reject() reject()
}) })
+15 -2
View File
@@ -461,9 +461,22 @@ export default {
getTreeLabel(){ getTreeLabel(){
this.$api.report.labelList().then(res => { this.$api.report.labelList().then(res => {
this.treeData=res.data this.treeData=res.data
this.cascaderOptions=res.data this.cascaderOptions=this.getTreeData(res.data)
}) })
}, },
//用递归方式去除children
getTreeData(data) {
for (var i = 0; i < data.length; i++) {
if (data[i].children.length < 1) {
// children若为空数组,则将children设为undefined
data[i].children = undefined;
} else {
// children若不为空数组,则继续 递归调用 本方法
this.getTreeData(data[i].children);
}
}
return data;
},
//标签搜索 //标签搜索
filterNode(value, data) { filterNode(value, data) {
if (!value) return true; if (!value) return true;
@@ -1244,7 +1257,7 @@ export default {
.el-input__inner, .el-input__inner,
.el-textarea__inner { .el-textarea__inner {
font-size: 14px; font-size: 15px;
font-weight: 400; font-weight: 400;
color: #434343; color: #434343;
} }
@@ -126,8 +126,8 @@ export default {
}) })
if (name.length > 0) { if (name.length > 0) {
this.$alert(`报告${name.toString()}已经存在`, '提示', { this.$alert(`报告${name.toString()}已经存在`, '提示', {
confirmButtonText: '确定' confirmButtonText: '确定',
customClass: 'reportName'
}) })
} }
// 找出已经存在的数据 用弹窗提示 // 找出已经存在的数据 用弹窗提示
@@ -309,5 +309,6 @@ export default {
.tag-btns { .tag-btns {
padding-right: 15px; padding-right: 15px;
} }
} }
</style> </style>
+6 -4
View File
@@ -230,15 +230,17 @@ export default {
this.prcNum = this.$store.getters.handleProcess.prcNum this.prcNum = this.$store.getters.handleProcess.prcNum
this.prcId = this.$store.getters.handleProcess.prcId this.prcId = this.$store.getters.handleProcess.prcId
this.prcName = this.$store.getters.handleProcess.prcName this.prcName = this.$store.getters.handleProcess.prcName
this.prcName = JSON.stringify(this.prcName)
this.initShow = true this.initShow = true
this.formControlname = true this.formControlname = true
this.processForm.prcName = this.$route.query.prcName
console.log("122")
this.getProcessDetail().then(res => { this.getProcessDetail().then(res => {
//基础信息 //基础信息
this.tableData = JSON.parse(this.processOld.dataJson) this.tableData = JSON.parse(this.processOld.dataJson)
this.applicationForm.power = this.tableData[0].power this.applicationForm.power = this.tableData[0].power
this.applicationForm.applyReason = this.tableData[0].applyReason this.applicationForm.applyReason = this.tableData[0].applyReason
this.processForm.prcName = this.prcName
//指派信息 //指派信息
({oneApprove:this.assignForm.oneApprove,oneApproveName:this.assignForm.oneApproveName,twoApprove:this.assignForm.twoApprove,twoApproveName:this.assignForm.twoApproveName,remark:this.assignForm.remark}= JSON.parse(this.processOld.submitJson)) ({oneApprove:this.assignForm.oneApprove,oneApproveName:this.assignForm.oneApproveName,twoApprove:this.assignForm.twoApprove,twoApproveName:this.assignForm.twoApproveName,remark:this.assignForm.remark}= JSON.parse(this.processOld.submitJson))
}) })
@@ -430,7 +432,7 @@ export default {
userId: this.$store.getters.userInfo.usid userId: this.$store.getters.userInfo.usid
}, dataMsg: this.tableData }, dataMsg: this.tableData
} }
form.approvalOpinion = this.assignForm.remark
form.prcType = this.prcType form.prcType = this.prcType
form.prcName = this.processForm.prcName form.prcName = this.processForm.prcName
form.userId = this.$store.getters.userInfo.usid form.userId = this.$store.getters.userInfo.usid
@@ -448,6 +450,6 @@ export default {
} }
</script> </script>
<style scoped> <style scoped>
</style> </style>
@@ -108,12 +108,14 @@ export default {
this.$store.commit('setHandleProcess',params) this.$store.commit('setHandleProcess',params)
switch (row.prcType) { switch (row.prcType) {
case '1' : case '1' :
debugger
if (row.taskDefinitionKey == 'aid4') { if (row.taskDefinitionKey == 'aid4') {
this.$router.push({ this.$router.push({
path: '/permission/launch', path: '/permission/launch',
query: { query: {
id: this.$route.query.id, id: this.$route.query.id,
taskDefinitionKey:row.taskDefinitionKey taskDefinitionKey:row.taskDefinitionKey,
prcName: row.prcName
} }
}) })
}else{ }else{
@@ -121,7 +123,8 @@ export default {
path: '/permission/examine', path: '/permission/examine',
query: { query: {
id: this.$route.query.id, id: this.$route.query.id,
taskDefinitionKey:row.taskDefinitionKey taskDefinitionKey:row.taskDefinitionKey,
prcName: row.prcName
} }
}) })
} }
@@ -72,7 +72,7 @@
</vxe-column> </vxe-column>
</vxe-table> </vxe-table>
</div> </div>
<monitorModal ref="monitorModal" :prcId="prcId"></monitorModal> <monitorModal ref="monitorModal" :prcId="prcId" @uploadTable="processTable"></monitorModal>
</div> </div>
</template> </template>
@@ -236,7 +236,7 @@ export default {
if(check.length > 0){ if(check.length > 0){
this.$message.warning("请选择状态为未完成并且任务步骤不为重新发起的数据") this.$message.warning("请选择状态为未完成并且任务步骤不为重新发起的数据")
}else{ }else{
this.$refs.monitorModal.open(this.checkList[0].id,this.prcId,this.checkList[0].assigneeId) this.$refs.monitorModal.open(this.checkList[0].id,this.prcId,this.checkList[0].assigneeId,this.checkList[0].taskDefinitionKey,this.checkList[0].prcType)
} }
} }
}, },
@@ -59,7 +59,9 @@ export default {
] ]
}, },
taskId: '', taskId: '',
pId: '' pId: '' ,
aid: '',
prcType: ''
}; };
}, },
@@ -93,13 +95,15 @@ export default {
this.userList = data.records; this.userList = data.records;
}) })
}, },
open(taskId, pId,assigneeId) { open(taskId, pId,assigneeId,aid,prcType) {
this.taskId = taskId this.taskId = taskId
this.pId = pId this.pId = pId
this.prcType = prcType
this.form.name = { this.form.name = {
assignee: '' assignee: ''
} }
this.assigneeId=assigneeId this.assigneeId = assigneeId
this.aid = aid
this.dialogVisible = true this.dialogVisible = true
}, },
submit() { submit() {
@@ -110,18 +114,26 @@ export default {
if (userId == assignee) { if (userId == assignee) {
this.$message.warning("当前任务受理人就是您选择的人员") this.$message.warning("当前任务受理人就是您选择的人员")
} else { } else {
this.$api.process.changeAssignee({ let params={
taskId: this.taskId, taskId: this.taskId,
assignee: assignee, assignee: userId ,
userId: userId, userId: assignee ,
pId: this.pId pId: this.pId
}) }
if(this.prcType == '1'){
if(this.aid=='aid2'){
params.replaceMap="oneApprove:"+ this.form.assignee+','+"oneApproveName:"+ this.form.assigneeName
}else{
params.replaceMap="twoApprove:"+ this.form.assignee+','+"twoApproveName:"+ this.form.assigneeName
}
}
this.$api.process.changeAssignee(params)
.then(res => { .then(res => {
//转办完应该跳到哪个页面? //转办完应该跳到哪个页面?
//转办完这个人还能看到这个监控流程吗 //转办完这个人还能看到这个监控流程吗
this.dialogVisible = false this.dialogVisible = false
this.$message.success(res.data.message) this.$message.success(res.data.message)
this.sysUserList() this.$emit('uploadTable')
}) })
} }
} }