w-vue-middle
Version:
统一公共服务组件
34 lines (31 loc) • 762 B
JavaScript
/*
* @Author: Jason Liu
* @Date: 2024-01-04 13:20:26
* @Desc:
*/
const $dataSource = require('w-vue-middle/api/appService/dataSource.js');
export default {
data() {
return {
loading: false,
};
},
methods: {
/**
* @Author: Jason Liu
* @description: 连接全部数据源
*/
linkSourceAll() {
this.loading = true;
const hide = this.$message.loading($t('全量数据源连接启动中,请稍等!'), 0);
$dataSource
.refreshDataSourceMeta(() => {})
.finally(() => {
hide();
this.loading = false;
this.$message.success($t('全部数据源连接完成!'));
this.$emit('reload');
});
},
},
};