| | |
| | | TCompetition.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', radio: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle', |
| | | }, |
| | | {title: '图片', field: 'url', visible: role==1?true:false, align: 'center', valign: 'middle', |
| | | }, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | { |
| | | title: '图片', |
| | | field: 'url', |
| | | visible: role == 1 ? true : false, |
| | | align: 'center', |
| | | valign: 'middle', |
| | | formatter: function(value, row, index) { |
| | | return '<img src="' + value + '" alt="图片" style="width: 100px; height: 100px;">'; |
| | | } |
| | | } |
| | | , |
| | | {title: '跳转模块', field: 'name', visible: role==1?true:false, align: 'center', valign: 'middle', |
| | | }, |
| | | {title: '跳转页面', field: 'page', visible: role==1?true:false, align: 'center', valign: 'middle', |
| | |
| | | |
| | | TCompetition.delete1= function (e) { |
| | | console.log(e) |
| | | var ajax = new $ax(Feng.ctxPath + "/tShop/deleteOne", function (data) { |
| | | var ajax = new $ax(Feng.ctxPath + "/tShop/deleteTwo", function (data) { |
| | | Feng.success("删除成功!"); |
| | | TCompetition.table.refresh(); |
| | | }, function (data) { |
| | |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tShop/tShop_add_two?id='+$("#id").val() |
| | | content: Feng.ctxPath + '/tShop/tShop_add_two1?id='+$("#id").val() |
| | | }); |
| | | this.layerIndex = index; |
| | | }; |
| | |
| | | ajax.set("id",$("#id").val()); |
| | | ajax.start(); |
| | | } |
| | | |
| | | |
| | | |
| | | TCompetition.close = function() { |
| | | parent.layer.close(window.parent.TCompetition.layerIndex); |
| | | } |