优化
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
:visible.sync="dialogVisible"
|
||||
:show-close="false"
|
||||
@close="close"
|
||||
@open="open"
|
||||
>
|
||||
<span slot="title" class="dialog-footer">
|
||||
<div class="crud-opts2">
|
||||
@@ -173,11 +174,13 @@ export default {
|
||||
workorder.getDepts().then(res => {
|
||||
this.Depts = res
|
||||
})
|
||||
producetask.getDevices().then(res => {
|
||||
this.Devices = res
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
open() {
|
||||
producetask.getDevices({ product_series_id: this.form.product_series}).then(res => {
|
||||
this.Devices = res
|
||||
})
|
||||
},
|
||||
close() {
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.form = {}
|
||||
@@ -185,7 +188,6 @@ export default {
|
||||
},
|
||||
submit() {
|
||||
producetask.submit3(this.form).then(res => {
|
||||
debugger
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.form = {}
|
||||
this.$emit('AddChanged')
|
||||
|
||||
Reference in New Issue
Block a user