如何解决vue-tables-2中的嵌入排序问题?

时间:2019-01-29 07:34:53

标签: vue.js vue-tables-2

我首先将列放入排序中,它可以工作并进行排序,但是还有进一步的问题:Uncaught RangeError:超出了最大调用堆栈大小 我该如何解决? 预先感谢

Vue.use(VueTables.ClientTable);
new Vue({
    el: '#all-bio-scanner-component',
    data: {
        BC_URL: 'BC_ID=' + BC_ID,
        columns: ['scannerFirstName', 'amountCompletedTask', 'inOperation', 'lastReceive', 'scannerStatus', 'edit'],
        data: [],
        options: {
            perPage: 100,
            perPageValues: [100, 200],
            headings: {
                scannerFirstName: 'Имя',
                amountCompletedTask: 'Выполнено',
                inOperation: 'В работе',
                lastReceive: 'Последнее получено',
                edit: 'Дополнительное',
                scannerStatus: "Статус"
            },
            sortable: ['scannerFirstName', 'amountCompletedTask', 'inOperation', 'lastReceive', 'scannerStatus'],
        }
    },
    mounted() {
        axios.get('/Prokat/40_Electroshit/scanners_info_get.php?BC_ID=' + BC_ID)
            .then(function (response) {
                storeBioScanners.commit(MUTATION_SET_BIO_SCANNERS, response.data);
                console.log(response)
            }).catch(function (error) {
            alert("Произошла ошибка:" + error);
        })
    },
    computed: {
        scanners() {
            return storeBioScanners.state.bioScanners;
        },
    },
    methods: {
        showBioScannerRedactor(bioScannerId) {
            storeBioScanners.commit(MUTATION_SET_EDITOR_BIO_SCANNERS_ID, bioScannerId);
        }
    }
})
;

0 个答案:

没有答案