puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos.js
@@ -7,14 +7,16 @@
    table: null,
    layerIndex: -1
};
TQuestion.close = function() {
    parent.layer.close(window.parent.TQuestion.layerIndex);
}
/**
 * 初始化表格的列
 */
TQuestion.initColumn = function () {
    return [
        {field: 'selectItem', checkbox: true},
        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: 'benefitsVideosId', field: 'benefitsVideosId', visible: false, align: 'center', valign: 'middle'},
        {title: '视频类型', field: 'type', visible: true, align: 'center', valign: 'middle',
            formatter:function (data) {
@@ -88,7 +90,7 @@
    };
    selected.forEach(function(obj) {
        var id = obj.id;
        data1.ids.push(id);
        data1.ids.push(obj.benefitsVideosId);
    });
    data1.state = 1;
    $.ajax({
@@ -124,7 +126,7 @@
        };
        selected.forEach(function(obj) {
            var id = obj.id;
            data1.ids.push(id);
            data1.ids.push(obj.benefitsVideosId);
        });
        data1.state = 2;
        $.ajax({
@@ -280,6 +282,8 @@
        data: JSON.stringify(data),
        contentType: "application/json",
        success: function (response) {
            window.parent.TQuestion.table.refresh();
            TQuestion.close();
            Feng.success("添加成功");
        },