下载bug
This commit is contained in:
parent
50e730c9ff
commit
dff7426103
|
@ -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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 关闭当前窗口
|
// 关闭当前窗口
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue