| | |
| | | }, |
| | | {title: '操作', visible: role==1?true:false, align: 'center', valign: 'middle', |
| | | formatter:function (value,row) { |
| | | return '<a href="javascript:void(0);" style="color: blue" onclick="TCompetition.delete1(' + row.id +')">删除 </a> <a href="javascript:void(0);" style="color: blue" onclick="TCompetition.openTCompetitionDetail(' + row.id +')">编辑</a>' |
| | | return '<a href="javascript:void(0);" style="color: blue" ' + |
| | | 'onclick="TCompetition.delete1(' + row.id +')">删除 </a> ' + |
| | | '<a href="javascript:void(0);" style="color: blue" ' + |
| | | 'onclick="TCompetition.openTCompetitionDetail(' + row.id +')">编辑</a>' |
| | | } |
| | | }, |
| | | ]; |
| | |
| | | let turnId = $("#turnId").val() |
| | | |
| | | |
| | | if ($('#type option:selected').text() == "详情"&&$('#type option:selected').text() == "指定商品"&&$('#type option:selected').text() == "指定折扣") { |
| | | if ($('#type option:selected').text() == "详情"||$('#type option:selected').text() == "指定商品"||$('#type option:selected').text() == "指定折扣") { |
| | | if ($("#turnId").val() == '') { |
| | | Feng.info("请输入跳转ID") |
| | | return; |
| | |
| | | |
| | | |
| | | let name = $("#name").val() |
| | | let sort = $("#sort").val() |
| | | |
| | | if(name=='' || name ==null){ |
| | | Feng.info("请填写板块名称") |
| | | return; |
| | | } |
| | | if(sort=='' || sort ==null){ |
| | | Feng.info("请填写排序") |
| | | return; |
| | | } |
| | | |
| | |
| | | }); |
| | | ajax.set("name",name); |
| | | ajax.set("id",$("#id").val()); |
| | | ajax.set("sort",$("#sort").val()); |
| | | ajax.start(); |
| | | } |
| | | |