44323
2023-10-13 4433f665bf1eccaeee8de43b08095bf4e576fc5d
cloud-server-management/src/main/webapp/static/modular/system/course/course.js
@@ -15,7 +15,7 @@
Course.initColumn = function () {
    let columns = [
        {field: 'selectItem', radio: true},
        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: '视频类型', field: 'type', align: 'center', valign: 'middle',
            formatter: function (v) {
                switch (v) {
@@ -51,13 +51,7 @@
Course.check = function () {
    let selected = $('#' + this.id).bootstrapTable('getSelections');
    if (selected.length == 0) {
        if(language==1){
            Feng.info("请先选中表格中的某一记录!");
        }else if(language==2){
            Feng.info("Please select a record in the table first!");
        }else {
            Feng.info("Pilih catatan di tabel terlebih dahulu!");
        }
        Feng.info("请先选中表格中的某一记录!");
        return false;
    } else {
        Course.seItem = selected[0];