|
|
|
@ -66,13 +66,21 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
{
|
|
|
|
|
field: 'userId', title: '操作', align: "center", width: 220, style:"text-align: left", templet: function (d) {
|
|
|
|
|
let htm = "";
|
|
|
|
|
if((d.sourceType == '2' && isAdmin) || (d.sourceType == '1' && !isAdmin)){
|
|
|
|
|
/*if((d.sourceType == '2' && isAdmin) || (d.sourceType == '1' && !isAdmin)){
|
|
|
|
|
htm +='<a class="layui-table-link" lay-event="up" data-item="${JSON.stringify(d)}" >上架</a>\n'
|
|
|
|
|
+'<a class="layui-table-link" lay-event="down" data-item="${JSON.stringify(d)}" style="color: #bebebe!important">下架</a>'
|
|
|
|
|
+'<a class="layui-table-link" lay-event="edit">编辑</a>\n'
|
|
|
|
|
+'<a class="layui-table-link" lay-event="del">删除</a>';
|
|
|
|
|
}else{
|
|
|
|
|
htm += '<a class="layui-table-link" lay-event="edit">查看</a>';
|
|
|
|
|
}*/
|
|
|
|
|
if((d.addType == 'ADMIN_ADD' && isAdmin)){
|
|
|
|
|
htm +='<a class="layui-table-link" lay-event="up" data-item="${JSON.stringify(d)}" >上架</a>\n'
|
|
|
|
|
+'<a class="layui-table-link" lay-event="down" data-item="${JSON.stringify(d)}" style="color: #bebebe!important">下架</a>'
|
|
|
|
|
+'<a class="layui-table-link" lay-event="edit">编辑</a>\n'
|
|
|
|
|
+'<a class="layui-table-link" lay-event="del">删除</a>';
|
|
|
|
|
}else if((d.addType == 'ADMIN_ADD' && !isAdmin)){
|
|
|
|
|
htm += '<a class="layui-table-link" lay-event="edit">查看</a>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO 上下架前端逻辑待开发
|
|
|
|
|