How to load dynamic data with element components

< el-table: data= "users" highlight-current-row VMI loading = "listLoading" @ selection-change= "selsChange" style= "width: 100%;" >

    <el-table-column type="selection" width="55">
    </el-table-column>
    <el-table-column type="index" width="60">
    </el-table-column>
    <el-table-column prop="name" label="" width="120" sortable>
    </el-table-column>
    <el-table-column prop="sex" label="" width="100" :formatter="formatSex" sortable>
    </el-table-column>
    <el-table-column prop="age" label="" width="100" sortable>
    </el-table-column>
    <el-table-column prop="birth" label="" width="120" sortable>
    </el-table-column>
    <el-table-column prop="addr" label="" min-width="180" sortable>
    </el-table-column>
    <el-table-column label="" width="150">
        <template scope="scope">
            <el-button size="small" @click="handleEdit(scope.$index, scope.row)"></el-button>
            <el-button type="danger" size="small" @click="handleDel(scope.$index, scope.row)"></el-button>
        </template>
    </el-table-column>
</el-table>

if a file like this is used to load simulation data, I would like to change it into my own dynamic data. May I ask you how it was changed? thank you

import axios from "axios";

let base ="";

export const requestLogin = params = > {return axios.post (${base} / login, params). Then (res = > res.data);};

export const getUserList = params = > {return axios.get (${base} / user/list, {params: params});};

export const getUserListPage = params = > {return axios.get (${base} / user/listpage, {params: params});};

export const removeUser = params = > {return axios.get (${base} / user/remove, {params: params});};

export const batchRemoveUser = params = > {return axios.get (${base} / user/batchremove, {params: params});};

export const editUser = params = > {return axios.get (${base} / user/edit, {params: params});};

export const addUser = params = > {return axios.get (${base} / user/add, {params: params});};
it may have read data here

Sep.19,2021

take a good look at the usage of table components in element documents


see the : data on the tag. Process your dynamic data into the format it needs (e.g. users format)
and then change it to your value. Just change user to your processed data name
.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38a52-2c15b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38a52-2c15b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?