Commit 42c06dca authored by xioln's avatar xioln

是否归档是否贴皮修改

parent f3268cab
...@@ -57,7 +57,20 @@ export default { ...@@ -57,7 +57,20 @@ export default {
rules: { rules: {
whetherArchive: [{ required: true, message: '请选择!', trigger: 'blur' }] whetherArchive: [{ required: true, message: '请选择!', trigger: 'blur' }]
}, },
selectRadio: null selectRadio: null,
modelName: ''
}
},
watch: {
basicData: {
immediate: true,
deep: true,
handler: function(val) {
if (!val || !val.id) {
return
}
this.modelName = this.$utils.getModelName4dxClassName(val.dxClassname)
}
} }
}, },
created () { }, created () { },
...@@ -72,7 +85,7 @@ export default { ...@@ -72,7 +85,7 @@ export default {
this.$refs.taskForm.$refs.form.validate().then(() => { this.$refs.taskForm.$refs.form.validate().then(() => {
const form = { ...this.flowData, ...this.form, operator: 'MODIFY' } const form = { ...this.flowData, ...this.form, operator: 'MODIFY' }
this.$api this.$api
.recursion('DxDocument', form) .recursion(this.modelName, form)
.then((res) => { .then((res) => {
if (res) { if (res) {
resolve(true) resolve(true)
......
...@@ -61,7 +61,20 @@ export default { ...@@ -61,7 +61,20 @@ export default {
rules: { rules: {
whetherApplied: [{ required: true, message: '请选择', trigger: 'blur' }] whetherApplied: [{ required: true, message: '请选择', trigger: 'blur' }]
}, },
selectRadio: null selectRadio: null,
modelName: ''
}
},
watch: {
basicData: {
immediate: true,
deep: true,
handler: function(val) {
if (!val || !val.id) {
return
}
this.modelName = this.$utils.getModelName4dxClassName(val.dxClassname)
}
} }
}, },
created () { }, created () { },
...@@ -75,7 +88,7 @@ export default { ...@@ -75,7 +88,7 @@ export default {
this.$refs.taskForm.$refs.form.validate().then(() => { this.$refs.taskForm.$refs.form.validate().then(() => {
const form = { ...this.flowData, ...this.form, operator: 'MODIFY' } const form = { ...this.flowData, ...this.form, operator: 'MODIFY' }
this.$api this.$api
.recursion('DxDocument', form) .recursion(this.modelName, form)
.then((res) => { .then((res) => {
if (res) { if (res) {
resolve(true) resolve(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment