下载bug

This commit is contained in:
wuhongjian 2022-12-08 17:27:30 +08:00
parent 50e730c9ff
commit dff7426103
2 changed files with 22 additions and 11 deletions

View File

@ -14,19 +14,21 @@ export default {
var showType = this.$route.params.processShowType
this.processVisible = true
this.$nextTick(() => {
if (this.$route.params.processDefinitionKey) {
if (this.$route.params.processDefinitionKey && this.$refs.renProcessMultiple) {
this.$refs.renProcessMultiple.dataForm.processDefinitionKey = this.$route.params.processDefinitionKey
}
if (this.$route.params.taskId) {
if (this.$route.params.taskId && this.$refs.renProcessMultiple) {
this.$refs.renProcessMultiple.dataForm.taskId = this.$route.params.taskId
}
if (this.$route.params.processInstanceId) {
if (this.$route.params.processInstanceId && this.$refs.renProcessMultiple) {
this.$refs.renProcessMultiple.dataForm.processInstanceId = this.$route.params.processInstanceId
}
this.$refs.renProcessMultiple.dataForm.businessKey = this.$route.params.businessKey
this.$refs.renProcessMultiple.showType = showType
this.$refs.renProcessMultiple.parentObj = this
this.$refs.renProcessMultiple.callbacks = callbacks
if (this.$refs.renProcessMultiple) {
this.$refs.renProcessMultiple.dataForm.businessKey = this.$route.params.businessKey
this.$refs.renProcessMultiple.showType = showType
this.$refs.renProcessMultiple.parentObj = this
this.$refs.renProcessMultiple.callbacks = callbacks
}
})
},
// 关闭当前窗口

View File

@ -139,6 +139,12 @@ export default {
//
fieldDisabled: false,
dataForm: {
applyUserName: '',
applyUserPhone: '',
applyUserDeptName: '',
demandSubject: '',
detailsField: '',
demandDetails: '',
id: '',
user: '',
phone: '',
@ -146,7 +152,8 @@ export default {
area: '',
system: '',
scene: '',
basis: ''
basis: '',
enclosure: ''
},
//
dialogVisible: false,
@ -159,7 +166,7 @@ export default {
created () {
// KEY
this.dataForm.id = this.$route.params.businessKey
console.log(this.$route.params)
// console.log(this.$route.params)
this.init()
//
var callbacks = {
@ -202,8 +209,10 @@ export default {
init () {
this.visible = true
this.$nextTick(() => {
this.$refs.dataForm.resetFields()
if (this.dataForm.id) {
if (this.$refs.dataForm) {
this.$refs.dataForm.resetFields()
}
if (this.dataForm && this.dataForm.id) {
// KEY
this.fieldDisabled = true
this.getInfo()