下载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 var showType = this.$route.params.processShowType
this.processVisible = true this.processVisible = true
this.$nextTick(() => { this.$nextTick(() => {
if (this.$route.params.processDefinitionKey) { if (this.$route.params.processDefinitionKey && this.$refs.renProcessMultiple) {
this.$refs.renProcessMultiple.dataForm.processDefinitionKey = this.$route.params.processDefinitionKey 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 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.processInstanceId = this.$route.params.processInstanceId
} }
if (this.$refs.renProcessMultiple) {
this.$refs.renProcessMultiple.dataForm.businessKey = this.$route.params.businessKey this.$refs.renProcessMultiple.dataForm.businessKey = this.$route.params.businessKey
this.$refs.renProcessMultiple.showType = showType this.$refs.renProcessMultiple.showType = showType
this.$refs.renProcessMultiple.parentObj = this this.$refs.renProcessMultiple.parentObj = this
this.$refs.renProcessMultiple.callbacks = callbacks this.$refs.renProcessMultiple.callbacks = callbacks
}
}) })
}, },
// 关闭当前窗口 // 关闭当前窗口

View File

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