修改bug

beetlsql3-dev
姚丹ab 2 years ago
parent bcf1c378fe
commit 90d8c09207

@ -511,6 +511,7 @@ layui.define([ 'form','laytpl', 'laydate', 'table','element','handsOnSimulationT
} }
// noinspection BadExpressionStatementJS
form.on('radio(taskType)', obj => { form.on('radio(taskType)', obj => {
element.tabChange('demo', obj.value); element.tabChange('demo', obj.value);
if (obj.value === "4") { if (obj.value === "4") {

@ -1,10 +1,10 @@
<!--#layout("/common/layout.html",{"jsBase":"/js/jlw/handsOn/"}){ --> <!--#layout("/common/layout.html",{"jsBase":"/js/jlw/handsOn/"}){ -->
<style> <style>
/* 分页确定按钮*/ /* 分页确定按钮*/
.layui-laypage-btn{
color: white!important; color: white!important;
} }
.layui-table a { .layui .layui-laypage-btn{
-table a {
margin-right: 10px; margin-right: 10px;
} }
</style> </style>
@ -13,7 +13,8 @@
<label class="layui-form-label">课程筛选</label> <label class="layui-form-label">课程筛选</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<layui:simpleDictSelect style='layui-input-inline' <layui:simpleDictSelect style='layui-input-inline'
type="course_info.course_info_name.course_info_status=1,course_info_type=1,find_in_set(course_label_id,(select group_concat(course_label_id) from course_label where course_label_status = 1))" type="course_info.course_info_name.course_info_status=1,course_info_type=1,
find_in_set(course_label_id,(select group_concat(course_label_id) from course_label where course_label_status = 1))"
id="courseInfoId" name="courseInfoId" id="courseInfoId" name="courseInfoId"
layFilter="select_courseInfoIds"/> layFilter="select_courseInfoIds"/>
</div> </div>

@ -77,7 +77,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <!--<div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务顺序</label> <label class="layui-form-label">任务顺序</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -86,7 +86,7 @@
class="layui-input"> class="layui-input">
</div> </div>
</div> </div>
</div> </div>-->
<div class="layui-row"> <div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务分值</label> <label class="layui-form-label">任务分值</label>
@ -155,7 +155,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <!--<div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务顺序</label> <label class="layui-form-label">任务顺序</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -164,7 +164,7 @@
class="layui-input"> class="layui-input">
</div> </div>
</div> </div>
</div> </div>-->
<div class="layui-row"> <div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务分值</label> <label class="layui-form-label">任务分值</label>
@ -235,7 +235,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <!--<div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务顺序</label> <label class="layui-form-label">任务顺序</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -244,7 +244,7 @@
class="layui-input"> class="layui-input">
</div> </div>
</div> </div>
</div> </div>-->
<div class="layui-row"> <div class="layui-row">
<label class="layui-form-label">客观题设置:</label> <label class="layui-form-label">客观题设置:</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -346,7 +346,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <!--<div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务顺序</label> <label class="layui-form-label">任务顺序</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -355,7 +355,7 @@
class="layui-input"> class="layui-input">
</div> </div>
</div> </div>
</div> </div>-->
<div class="layui-row"> <div class="layui-row">
<label class="layui-form-label">考核内容:</label> <label class="layui-form-label">考核内容:</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -450,7 +450,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-row"> <!--<div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">任务顺序</label> <label class="layui-form-label">任务顺序</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -459,7 +459,7 @@
class="layui-input"> class="layui-input">
</div> </div>
</div> </div>
</div> </div>-->
<div class="layui-row"> <div class="layui-row">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">报告要求:</label> <label class="layui-form-label">报告要求:</label>

@ -14,20 +14,22 @@
<label class="layui-form-label">应用管理:</label> <label class="layui-form-label">应用管理:</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input type="text" name="studentClientLinkTitle" autocomplete="off" placeholder="请输入检索条件" <input type="text" name="studentClientLinkTitle" autocomplete="off" placeholder="请输入检索条件"
class="layui-input" > class="layui-input">
</div> </div>
</div> </div>
<div style="display: none"> <div style="display: none">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">链接类型</label> <label class="layui-form-label">链接类型</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" name="studentClientLinkType" id="studentClientLinkType" value="THIRD_APPL" autocomplete="off" placeholder="请输入检索条件" class="layui-input"> <input type="text" name="studentClientLinkType" id="studentClientLinkType" value="THIRD_APPL"
autocomplete="off" placeholder="请输入检索条件" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">状态</label> <label class="layui-form-label">状态</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" name="studentClientLinkStatus" id="studentClientLinkStatus" value="1" autocomplete="off" placeholder="请输入检索条件" class="layui-input"> <input type="text" name="studentClientLinkStatus" id="studentClientLinkStatus" value="1"
autocomplete="off" placeholder="请输入检索条件" class="layui-input">
</div> </div>
</div> </div>
</div> </div>
@ -53,44 +55,44 @@
var laydate = layui.laydate; var laydate = layui.laydate;
var table = layui.table; var table = layui.table;
var resourcesApplicationTable = null; var resourcesApplicationTable = null;
var view ={ var view = {
init:function(){ init: function () {
this.initTable(); this.initTable();
this.initSearchForm(); this.initSearchForm();
this.initToolBar(); this.initToolBar();
window.dataReload = function(){ window.dataReload = function () {
Lib.doSearchForm($("#searchForm"),resourcesApplicationTable) Lib.doSearchForm($("#searchForm"), resourcesApplicationTable)
} }
}, },
initTable:function(){ initTable: function () {
resourcesApplicationTable = table.render({ resourcesApplicationTable = table.render({
elem : '#resourcesApplicationTable', elem: '#resourcesApplicationTable',
height : Lib.getTableHeight(), height: Lib.getTableHeight(),
cellMinWidth: 100, cellMinWidth: 100,
even:true, even: true,
method : 'post', method: 'post',
size:"lg", size: "lg",
where:{studentClientLinkType:'THIRD_APPL',studentClientLinkStatus:'1'},//第三方应用管理 where: {studentClientLinkType: 'THIRD_APPL', studentClientLinkStatus: '1'},//第三方应用管理
url : Common.ctxPath + '/jlw/studentClientLink/list.json' // 数据接口 url: Common.ctxPath + '/jlw/studentClientLink/list.json' // 数据接口
,page : Lib.tablePage // 开启分页 , page: Lib.tablePage // 开启分页
,limit : 10, , limit: 10,
cols : [ [ // 表头 cols: [[ // 表头
{ {
type : 'checkbox', type: 'checkbox',
fixed:'left', fixed: 'left',
}, },
{ {
field : 'studentClientLinkTitle', field: 'studentClientLinkTitle',
title : '应用名称',align:"center",width:300 title: '应用名称', align: "center", width: 300
}, },
{ {
field : 'studentClientLinkContent', field: 'studentClientLinkContent',
title : '应用链接',align:"center" title: '应用链接', align: "center"
},{ }, {
field : 'studentClientLinkImg', field: 'studentClientLinkImg',
title : '应用图片',align:"center", title: '应用图片', align: "center",
// templet: function (d) { // templet: function (d) {
// return '<a class="layui-table-link" lay-event="photos">' + // return '<a class="layui-table-link" lay-event="photos">' +
// '<img src="'+Common.ctxPath + d.studentClientLinkImg+'" />"'+ // '<img src="'+Common.ctxPath + d.studentClientLinkImg+'" />"'+
@ -98,54 +100,61 @@
// } // }
}, },
{ {
field : 'studentClientLinkDesc', field: 'studentClientLinkDesc',
title : '应用描述',align:"center" title: '应用描述', align: "center"
}, },
{ {
field : 'orgIdText', field: 'orgIdText',
title : '来源',align:"center" title: '来源', align: "center"
}, },
{ {
field : 'userId',title : '操作',align:"center", width:150,templet: function (d) { field: 'userId', title: '操作', align: "center", width: 150, templet: function (d) {
var htm = '<a class="layui-table-link" lay-event="edit">编辑</a>'; var htm = '';
htm += '<a class="layui-table-link" lay-event="del">删除</a>'; if (d.isEdit) {
htm = '<a class="layui-table-link" lay-event="edit">编辑</a>';
htm += '<a class="layui-table-link" lay-event="del" >删除</a>';
} else {
htm = '<a class="layui-table-link layui-btn-disabled" style="color: #b1b1b1">编辑</a>';
htm += '<a class="layui-table-link layui-btn-disabled" style="color: #b1b1b1">删除</a>';
}
return htm; return htm;
} }
} }
] ] ]]
}); });
table.on('checkbox(resourcesApplicationTable)', function(obj){ table.on('checkbox(resourcesApplicationTable)', function (obj) {
var resourcesApplication = obj.data; var resourcesApplication = obj.data;
if(obj.checked){ if (obj.checked) {
//按钮逻辑Lib.buttonEnable() //按钮逻辑Lib.buttonEnable()
}else{ } else {
} }
}) })
}, },
initSearchForm:function(){ initSearchForm: function () {
Lib.initSearchForm( $("#searchForm"),resourcesApplicationTable,form); Lib.initSearchForm($("#searchForm"), resourcesApplicationTable, form);
}, },
initToolBar:function(){ initToolBar: function () {
toolbar = { toolbar = {
add : function() { // 获取选中数据 add: function () { // 获取选中数据
var url = "/jlw/studentClientLink/add.do?sign=5"; var url = "/jlw/studentClientLink/add.do?sign=5";
Common.openDlg(url,"第三方应用管理/新增应用"); Common.openDlg(url, "第三方应用管理/新增应用");
}, },
refresh: function () {//刷新 refresh: function () {//刷新
searchForm.reset(); searchForm.reset();
Lib.doSearchForm($("#searchForm"), resourcesApplicationTable, 1); Lib.doSearchForm($("#searchForm"), resourcesApplicationTable, 1);
}, },
search:function () { search: function () {
Lib.doSearchForm($("#searchForm"), resourcesApplicationTable, 1); Lib.doSearchForm($("#searchForm"), resourcesApplicationTable, 1);
},allDel:function (){ }, allDel: function () {
var checkStatus = table.checkStatus('resourcesApplicationTable') var checkStatus = table.checkStatus('resourcesApplicationTable')
,data = checkStatus.data,ids = Common.concatBatchId(data, "studentClientLinkId"); , data = checkStatus.data, ids = Common.concatBatchId(data, "studentClientLinkId");
if($.isEmpty(ids)){ if ($.isEmpty(ids)) {
layer.msg("请选择需要删除的应用!", { layer.msg("请选择需要删除的应用!", {
offset: ['50%'], offset: ['50%'],
icon: 2, icon: 2,
@ -156,40 +165,40 @@
deleteInfo(ids); deleteInfo(ids);
} }
}; };
$('.ext-toolbar').on('click', function() { $('.ext-toolbar').on('click', function () {
var type = $(this).data('type'); var type = $(this).data('type');
toolbar[type] ? toolbar[type].call(this) : ''; toolbar[type] ? toolbar[type].call(this) : '';
}); });
}, initTableTool: table.on('tool(resourcesApplicationTable)', function (obj) { }, initTableTool: table.on('tool(resourcesApplicationTable)', function (obj) {
var data = obj.data; var data = obj.data;
if (obj.event === 'edit') { if (obj.event === 'edit') {
var url = "/jlw/studentClientLink/add.do?&sign=5&studentClientLinkId="+data.studentClientLinkId; var url = "/jlw/studentClientLink/add.do?&sign=5&studentClientLinkId=" + data.studentClientLinkId;
Common.openDlg(url,"应用管理/编辑应用"); Common.openDlg(url, "应用管理/编辑应用");
}else if(obj.event === "del"){ } else if (obj.event === "del") {
deleteInfo(data.studentClientLinkId); deleteInfo(data.studentClientLinkId);
}else if(obj.event === "photos"){ } else if (obj.event === "photos") {
var json ={ var json = {
"title": "", //相册标题 "title": "", //相册标题
"id": 123, //相册id "id": 123, //相册id
"start": 0, //初始显示的图片序号默认0 "start": 0, //初始显示的图片序号默认0
"data": [ //相册包含的图片,数组格式 "data": [ //相册包含的图片,数组格式
{ {
"alt": "图片名", "alt": "图片名",
"pid": 666, //图片id "pid": 666, //图片id
"src": Common.ctxPath + data.studentClientLinkImg, //原图地址 "src": Common.ctxPath + data.studentClientLinkImg, //原图地址
"thumb": "" //缩略图地址 "thumb": "" //缩略图地址
} }
] ]
} }
layer.photos({ layer.photos({
photos: json photos: json
,anim: 5 //0-6的选择指定弹出图片动画类型默认随机请注意3.0之前的版本用shift参数 , anim: 5 //0-6的选择指定弹出图片动画类型默认随机请注意3.0之前的版本用shift参数
}); });
} }
}) })
} }
function deleteInfo(ids){ function deleteInfo(ids) {
layer.confirm('是否确定删除应用?', function (index) { layer.confirm('是否确定删除应用?', function (index) {
var ret = Common.postAjax("/jlw/studentClientLink/delete.json", {ids: ids}); var ret = Common.postAjax("/jlw/studentClientLink/delete.json", {ids: ids});
layer.msg(ret.code == 0 ? "删除成功!" : ret.msg, { layer.msg(ret.code == 0 ? "删除成功!" : ret.msg, {

@ -66,8 +66,8 @@
<th>使用层次</th> <th>使用层次</th>
<th>开始时间</th> <th>开始时间</th>
<th>结束时间</th> <th>结束时间</th>
<!--<th>子系统<br/>登录页logo设计</th> <th>子系统<br/>登录页logo设计</th>
<th>子系统logo设计</th>--> <th>子系统logo设计</th>
<th>子系统底栏名称</th> <th>子系统底栏名称</th>
</tr> </tr>
</thead> </thead>
@ -95,7 +95,7 @@
value="{{Common.getDate(item.useEndTime,'yyyy-MM-dd HH:mm')}}" name="useEndTime" value="{{Common.getDate(item.useEndTime,'yyyy-MM-dd HH:mm')}}" name="useEndTime"
class="layui-input"/> class="layui-input"/>
</td> </td>
<!--<td> <td>
{{#if(!$.isEmpty(item.subsystemIndexLogo)){}} {{#if(!$.isEmpty(item.subsystemIndexLogo)){}}
<img id="subsystemIndexLogo_xt_{{index}}" src="${ctxPath}{{item.subsystemIndexLogo}}"/> <img id="subsystemIndexLogo_xt_{{index}}" src="${ctxPath}{{item.subsystemIndexLogo}}"/>
{{#}else{}} {{#}else{}}
@ -109,7 +109,7 @@
{{#}else{}} {{#}else{}}
<i class="iconfont" id="subsystemLogo_xt_{{index}}" style="font-size: 30px;color: #73a2f8;">&#xebb8;</i> <i class="iconfont" id="subsystemLogo_xt_{{index}}" style="font-size: 30px;color: #73a2f8;">&#xebb8;</i>
{{#}}} {{#}}}
</td>--> </td>
<td> <td>
<textarea name="subsystemBottomBar" style="min-height: 30px;" <textarea name="subsystemBottomBar" style="min-height: 30px;"
id="subsystemBottomBar_xt_{{index}}" placeholder="请输入内容" class="layui-textarea"> id="subsystemBottomBar_xt_{{index}}" placeholder="请输入内容" class="layui-textarea">
@ -276,7 +276,8 @@
function loadkcInfo() { function loadkcInfo() {
var typeIds = ''; var typeIds = '';
$("input[name='xt_id']:checked").each(function (obj) {typeIds += obj+',';}); $("input[name='xt_id']:checked").each(function (obj) {typeIds += obj+',';});
var ret = Common.getAjax("/jlw/universitiesCollegesJurisdictionCurriculumResources/getAllAuthCourseInfoByOrgId.json", {
var ret = Common.getAjax("/jlw/universitiesCollegesJurisdictionCurriculumResources/getAllByQuery.json", {
universitiesCollegesId: $("select[name='universitiesCollegesId']").val() || onUniversitiesCollegesId, universitiesCollegesId: $("select[name='universitiesCollegesId']").val() || onUniversitiesCollegesId,
applicationIds:typeIds.substring(0,typeIds.length-1) applicationIds:typeIds.substring(0,typeIds.length-1)
});//获取课程系统 });//获取课程系统

Loading…
Cancel
Save