|
@@ -436,7 +436,7 @@ export default {
|
|
|
init () {
|
|
|
this.setServiceType()
|
|
|
this.setPlatformType()
|
|
|
- this.setUserinfo()
|
|
|
+ this.setUserInfo()
|
|
|
},
|
|
|
//加载数据
|
|
|
loadData: function () {
|
|
@@ -560,7 +560,11 @@ export default {
|
|
|
//this.resetForm()
|
|
|
},
|
|
|
setServiceType () {
|
|
|
- this.serviceType = getAllServiceTypes()
|
|
|
+ getAllServiceTypes().then((res)=>{
|
|
|
+ this.serviceType = res
|
|
|
+ }).catch((error)=>{
|
|
|
+ notify('error','获取服务类型出错')
|
|
|
+ })
|
|
|
},
|
|
|
setPlatformType () {
|
|
|
this.platforms = getAllPlatformTypes()
|
|
@@ -605,10 +609,15 @@ export default {
|
|
|
datetime: ''
|
|
|
}
|
|
|
},
|
|
|
- setUserinfo () {
|
|
|
+ setUserInfo () {
|
|
|
this.user = storageGet('user')
|
|
|
}
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ serviceType(val){
|
|
|
+ this.serviceType = val
|
|
|
+ }
|
|
|
+ },
|
|
|
created: function () {
|
|
|
}
|
|
|
}
|