|
@@ -54,7 +54,7 @@
|
|
|
<template slot="footer">
|
|
|
<a-button @click="lcModa.visible=false">关闭</a-button>
|
|
|
<a-button key="back" @click="close">重置</a-button>
|
|
|
- <a-button key="submit" type="primary" @click="handleOkAll" :loading="loading">提交</a-button>
|
|
|
+ <a-button key="submit" type="primary" @click="handleOkAll" :loading="loadingElse">提交</a-button>
|
|
|
</template>
|
|
|
<k-form-build v-if="lcModa.visible" :defaultValue="defaultValue" :value="jsonData" ref="kfb" />
|
|
|
</a-modal>
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- loading: false,
|
|
|
+ loadingElse: false,
|
|
|
typeList: [
|
|
|
'input',
|
|
|
'textarea',
|
|
@@ -152,13 +152,14 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
handleOkAll() {
|
|
|
- this.loading = true
|
|
|
+ this.loadingElse = true
|
|
|
var that = this
|
|
|
this.$refs.kfb
|
|
|
.getData()
|
|
|
.then((values) => {
|
|
|
console.log('验证通过', values,this.lcModa.processData)
|
|
|
var formData = {}
|
|
|
+ formData.tableId = this.lcModa.processData.customTableId
|
|
|
formData.procDefId = this.lcModa.processData.id
|
|
|
formData.procDeTitle = this.lcModa.processData.name
|
|
|
formData.formText = JSON.stringify(values)
|
|
@@ -167,14 +168,14 @@ export default {
|
|
|
if (res.success) {
|
|
|
that.lcModa.visible=false
|
|
|
that.$message.success('保存成功!')
|
|
|
- that.loading = false
|
|
|
+ that.loadingElse = false
|
|
|
} else {
|
|
|
that.$message.error(res.message)
|
|
|
- that.loading = false
|
|
|
+ that.loadingElse = false
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|
|
|
- that.loading = true
|
|
|
+ that.loadingElse = false
|
|
|
})
|
|
|
})
|
|
|
},
|
|
@@ -247,6 +248,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
})
|
|
|
+ this.loadingElse = false
|
|
|
// this.lcModa.formComponent = this.getFormComponent(v.routeName).component
|
|
|
this.lcModa.title = '发起流程:' + v.name
|
|
|
this.lcModa.isNew = true
|