created(){
setTimeout(() => {
let employeeApi = new restApi(this.$props.data_table);
employeeApi.list().then(res => {
this.items = res.data;
});
});
setTimeout(() => {
let employeeColumn = new restApi(this.$props.data_columns);
employeeColumn.list().then(res => {
this.columns = res.data;
})
});
}
let employeeApi = new restApi(this.$props.data_table);
let employeeColumn = new restApi(this.$props.data_columns);
let arr = [employeeApi.list(), employeeColumn.list()];
Promise.All(arr).then(res=> {
this.items = res[0].data;
this.columns = res[1].data;
});