下载bug
This commit is contained in:
parent
50e730c9ff
commit
dff7426103
|
@ -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
|
||||
}
|
||||
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
|
||||
}
|
||||
})
|
||||
},
|
||||
// 关闭当前窗口
|
||||
|
|
|
@ -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(() => {
|
||||
if (this.$refs.dataForm) {
|
||||
this.$refs.dataForm.resetFields()
|
||||
if (this.dataForm.id) {
|
||||
}
|
||||
if (this.dataForm && this.dataForm.id) {
|
||||
// 如业务KEY已存在,不允许编辑
|
||||
this.fieldDisabled = true
|
||||
this.getInfo()
|
||||
|
|
Loading…
Reference in New Issue