无关风月
3 天以前 4742874ad840d7e1e3ac79dc288b38e9a642319d
cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord.js
@@ -14,7 +14,7 @@
TSmsrecord.initColumn = function () {
    return [
        {field: 'selectItem', radio: true},
        {title: '序号', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: '发送时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'10%',
            formatter: function (value, row) {
                var btn = "";
@@ -78,13 +78,7 @@
TSmsrecord.check = function () {
    var selected = $('#' + this.id).bootstrapTable('getSelections');
    if(selected.length == 0){
        if(language==1){
            Feng.info("请先选中表格中的某一记录!");
        }else if(language==2){
            Feng.info("Please select 条记录 in the table first!");
        }else {
            Feng.info("Pilih catatan di tabel terlebih dahulu!");
        }
        Feng.info("请先选中表格中的某一记录!");
        return false;
    }else{
        TSmsrecord.seItem = selected[0];
@@ -130,22 +124,10 @@
TSmsrecord.delete = function () {
    if (this.check()) {
        var ajax = new $ax(Feng.ctxPath + "/tSmsrecord/delete", function (data) {
            if(language==1){
                Feng.success("删除成功!");
            }else if(language==2){
                Feng.success("Delete succeeded!");
            }else {
                Feng.success("Hapus berhasil!");
            }
             Feng.success("删除成功!");
            TSmsrecord.table.refresh();
        }, function (data) {
            if(language==1){
                Feng.error("删除失败!" + data.responseJSON.message + "!");
            }else if(language==2){
                Feng.error("Delete failed!" + data.responseJSON.message + "!");
            }else {
                Feng.error("Hapus gagal!" + data.responseJSON.message + "!");
            }
            Feng.error("删除失败!" + data.responseJSON.message + "!");
        });
        ajax.set("tSmsrecordId",this.seItem.id);
        ajax.start();