|
@@ -30,7 +30,7 @@
|
|
|
:disabled="disabled||btndisabled"
|
|
|
@click="handleSubmit"
|
|
|
>保存</a-button>
|
|
|
- <a-button style="margin-left: 8px;" :disabled="disabled" @click="close">取消</a-button>
|
|
|
+ <a-button style="margin-left: 8px;" :disabled="disabled||disabled2" @click="close">取消</a-button>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</div>
|
|
@@ -61,6 +61,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ disabled2:false,//用来取决于表单时不同流程节点填写不同表单信息使用
|
|
|
jsonData: {},
|
|
|
url: {
|
|
|
getForm: '/actBusiness/getForm',
|
|
@@ -91,13 +92,16 @@ export default {
|
|
|
if (!this.processData.businessTable) {
|
|
|
this.processData.businessTable = this.processData.tableName
|
|
|
}
|
|
|
- this.getAction('/tbTableInfo/query', { businessTable: this.processData.businessTable }).then(res => {
|
|
|
+ this.getAction('/tbTableInfo/query', { businessTable: this.processData.businessTable ,taskNodeId:this.processData.key}).then(res => {
|
|
|
this.jsonData = res.result.jsonContent
|
|
|
// this.$refs.KFB.setData({aaa:null,bbb:null,name:"123"})
|
|
|
// this.$refs.KFB.getData().then(res => {
|
|
|
// console.log('aaa',res)
|
|
|
// })
|
|
|
-
|
|
|
+ if(res.result.isSave){
|
|
|
+ this.disabled=false;
|
|
|
+ this.btndisabled=false;
|
|
|
+ }
|
|
|
if (!this.isNew) {
|
|
|
this.init()
|
|
|
}
|
|
@@ -258,6 +262,7 @@ export default {
|
|
|
if (res.success) {
|
|
|
this.$message.success('保存成功!')
|
|
|
this.$emit('afterSubmit', formData)
|
|
|
+ this.$emit('close')
|
|
|
} else {
|
|
|
this.$message.error(res.message)
|
|
|
}
|