|
@@ -34,7 +34,7 @@ const defaultForm={
|
|
|
name:null,
|
|
|
email:null,
|
|
|
ifDefault:false,
|
|
|
- reportType:7,
|
|
|
+ reportTypes:[7],
|
|
|
}
|
|
|
export default {
|
|
|
components: {},
|
|
@@ -92,10 +92,14 @@ export default {
|
|
|
if(this.model == "edit"){
|
|
|
a = '修改'
|
|
|
}
|
|
|
+ if(!this.form.ifDefault){
|
|
|
+ this.form.reportTypes = null
|
|
|
+ }
|
|
|
this.$api[api](this.form).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.btnLoading = false
|
|
|
this.$message.success( a + '成功');
|
|
|
+ this.$emit('close')
|
|
|
this.handleClose()
|
|
|
}
|
|
|
})
|