|
|
@@ -279,17 +279,16 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods:{
|
|
|
- onShow () {
|
|
|
- this.$store.dispatch('optiontypeselect','tradefield').then(res=>{
|
|
|
- this.tradefields = res.data
|
|
|
- })
|
|
|
+ async onShow () {
|
|
|
+ const tradefieldRes = await this.$store.dispatch('optiontypeselect','tradefield')
|
|
|
+ this.tradefields = tradefieldRes.data
|
|
|
this.dialogFormVisible = true
|
|
|
this.form.status = 0
|
|
|
this.list = []
|
|
|
this.salerList = []
|
|
|
// this.form.depname = this.depInfo.data.label
|
|
|
// this.form.departmentid = this.depInfo.data.departmentid
|
|
|
- this.$store.dispatch('optiontypeselect','sex')
|
|
|
+ await this.$store.dispatch('optiontypeselect','sex')
|
|
|
|
|
|
|
|
|
},
|