Commit 42c06dca authored by xioln's avatar xioln

是否归档是否贴皮修改

parent f3268cab
......@@ -57,7 +57,20 @@ export default {
rules: {
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 () { },
......@@ -72,7 +85,7 @@ export default {
this.$refs.taskForm.$refs.form.validate().then(() => {
const form = { ...this.flowData, ...this.form, operator: 'MODIFY' }
this.$api
.recursion('DxDocument', form)
.recursion(this.modelName, form)
.then((res) => {
if (res) {
resolve(true)
......
......@@ -61,7 +61,20 @@ export default {
rules: {
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 () { },
......@@ -75,7 +88,7 @@ export default {
this.$refs.taskForm.$refs.form.validate().then(() => {
const form = { ...this.flowData, ...this.form, operator: 'MODIFY' }
this.$api
.recursion('DxDocument', form)
.recursion(this.modelName, form)
.then((res) => {
if (res) {
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