|
@@ -54,19 +54,13 @@ const custType = {
|
|
this.$emit('input', value);
|
|
this.$emit('input', value);
|
|
},
|
|
},
|
|
getList () {
|
|
getList () {
|
|
- const data = this.$store.state.app.custTypeAll
|
|
|
|
- if(data&&data.length){
|
|
|
|
- this.list = data
|
|
|
|
- }else{
|
|
|
|
- custTypeFindAllList().then(res => {
|
|
|
|
- if (res.status == 200) {
|
|
|
|
- this.list = res.data
|
|
|
|
- this.$store.state.app.custTypeAll = res.data
|
|
|
|
- } else {
|
|
|
|
- this.list = []
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ custTypeFindAllList().then(res => {
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ this.list = res.data
|
|
|
|
+ } else {
|
|
|
|
+ this.list = []
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|