|
|
@@ -190,7 +190,7 @@ import Pagination from '@/components/Pagination'
|
|
|
import TableAction from '@/components/TableAction.vue'
|
|
|
import api from '../../http/api/charge'
|
|
|
import ocpp from '../../http/api/ocpp'
|
|
|
-import provider from '../../http/api/provider'
|
|
|
+import {getServiceProviderOptions} from '../../utils'
|
|
|
export default {
|
|
|
components: { Pagination, TableAction },
|
|
|
data() {
|
|
|
@@ -256,12 +256,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getAllProvider() {
|
|
|
- provider.getAllServiceProvider().then(res => {
|
|
|
- if (res.data && res.data.length > 0) {
|
|
|
- this.providerOptions = res.data
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- this.$message.error(err);
|
|
|
+ getServiceProviderOptions(list => {
|
|
|
+ this.providerOptions = list;
|
|
|
});
|
|
|
},
|
|
|
getList() {
|