课程实操增加附件表,通知增加老师名称
parent
bdb4baace3
commit
8b77f4e2f3
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
|||||||
|
package com.ibeetl.jlw.dao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.ibeetl.jlw.entity.*;
|
||||||
|
import com.ibeetl.jlw.web.query.HandsOnSimulationTasksFileQuery;
|
||||||
|
|
||||||
|
import org.beetl.sql.mapper.annotation.SqlResource;
|
||||||
|
import org.beetl.sql.mapper.BaseMapper;
|
||||||
|
import org.beetl.sql.core.engine.PageQuery;
|
||||||
|
import org.beetl.sql.mapper.annotation.Update;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 课程实操-任务附件 Dao
|
||||||
|
*/
|
||||||
|
@SqlResource("jlw.handsOnSimulationTasksFile")
|
||||||
|
public interface HandsOnSimulationTasksFileDao extends BaseMapper<HandsOnSimulationTasksFile>{
|
||||||
|
PageQuery<HandsOnSimulationTasksFile> queryByCondition(PageQuery query);
|
||||||
|
PageQuery<HandsOnSimulationTasksFile> queryByConditionQuery(PageQuery query);
|
||||||
|
@Update
|
||||||
|
void deleteHandsOnSimulationTasksFileByIds(String ids);
|
||||||
|
@Update
|
||||||
|
int updateGivenByIds(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery);
|
||||||
|
List<HandsOnSimulationTasksFile> getByIds(String ids);
|
||||||
|
List<HandsOnSimulationTasksFile> getValuesByQuery(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery);
|
||||||
|
List<HandsOnSimulationTasksFile> getValuesByQueryNotWithPermission(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery);
|
||||||
|
@Update
|
||||||
|
void deleteByTaskId(Long taskId);
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.ibeetl.jlw.dao;
|
||||||
|
|
||||||
|
import org.beetl.sql.mapper.annotation.SqlResource;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类功能说明
|
||||||
|
*
|
||||||
|
* @Version 0.0.1
|
||||||
|
* @Author 许良彤
|
||||||
|
* @Date 2022/10/24 20:38
|
||||||
|
*/
|
||||||
|
@SqlResource("jlw.statisticalAnalysis")
|
||||||
|
public interface StatisticalAnalysisDao {
|
||||||
|
|
||||||
|
|
||||||
|
Map<String, Object> detail(String teacherOpenCourseId, Date stime, Date etime);
|
||||||
|
}
|
@ -0,0 +1,198 @@
|
|||||||
|
package com.ibeetl.jlw.entity;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
||||||
|
import org.beetl.sql.annotation.entity.*;
|
||||||
|
|
||||||
|
import com.ibeetl.admin.core.util.ValidateConfig;
|
||||||
|
|
||||||
|
import com.ibeetl.admin.core.annotation.Dict;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 课程实操-实训任务附件表
|
||||||
|
* gen by Spring Boot2 Admin 2022-10-24
|
||||||
|
*/
|
||||||
|
public class HandsOnSimulationTasksFile extends BaseEntity{
|
||||||
|
|
||||||
|
//实操任务文件ID
|
||||||
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
||||||
|
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
|
||||||
|
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.HandsOnSimulationTasksFile")
|
||||||
|
|
||||||
|
private Long taskFileId ;
|
||||||
|
|
||||||
|
//实操ID
|
||||||
|
|
||||||
|
private Long handsOnId ;
|
||||||
|
|
||||||
|
//任务ID
|
||||||
|
|
||||||
|
private Long taskId ;
|
||||||
|
|
||||||
|
//文件地址
|
||||||
|
|
||||||
|
private String fileUrl ;
|
||||||
|
|
||||||
|
//文件类型
|
||||||
|
|
||||||
|
private String fileType ;
|
||||||
|
|
||||||
|
//视频时长
|
||||||
|
|
||||||
|
private String fileTime ;
|
||||||
|
|
||||||
|
//文件名称
|
||||||
|
|
||||||
|
private String fileName ;
|
||||||
|
|
||||||
|
//添加时间
|
||||||
|
|
||||||
|
private Date addTime ;
|
||||||
|
|
||||||
|
//用户ID
|
||||||
|
|
||||||
|
private Long userId ;
|
||||||
|
|
||||||
|
//部门ID
|
||||||
|
|
||||||
|
private Long orgId ;
|
||||||
|
|
||||||
|
public HandsOnSimulationTasksFile(){
|
||||||
|
}
|
||||||
|
|
||||||
|
/**实操任务文件ID
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public Long getTaskFileId(){
|
||||||
|
return taskFileId;
|
||||||
|
}
|
||||||
|
/**实操任务文件ID
|
||||||
|
*@param taskFileId
|
||||||
|
*/
|
||||||
|
public void setTaskFileId(Long taskFileId){
|
||||||
|
this.taskFileId = taskFileId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**实操ID
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public Long getHandsOnId(){
|
||||||
|
return handsOnId;
|
||||||
|
}
|
||||||
|
/**实操ID
|
||||||
|
*@param handsOnId
|
||||||
|
*/
|
||||||
|
public void setHandsOnId(Long handsOnId){
|
||||||
|
this.handsOnId = handsOnId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**任务ID
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public Long getTaskId(){
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
/**任务ID
|
||||||
|
*@param taskId
|
||||||
|
*/
|
||||||
|
public void setTaskId(Long taskId){
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**文件地址
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public String getFileUrl(){
|
||||||
|
return fileUrl;
|
||||||
|
}
|
||||||
|
/**文件地址
|
||||||
|
*@param fileUrl
|
||||||
|
*/
|
||||||
|
public void setFileUrl(String fileUrl){
|
||||||
|
this.fileUrl = fileUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**文件类型
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public String getFileType(){
|
||||||
|
return fileType;
|
||||||
|
}
|
||||||
|
/**文件类型
|
||||||
|
*@param fileType
|
||||||
|
*/
|
||||||
|
public void setFileType(String fileType){
|
||||||
|
this.fileType = fileType;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**视频时长
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public String getFileTime(){
|
||||||
|
return fileTime;
|
||||||
|
}
|
||||||
|
/**视频时长
|
||||||
|
*@param fileTime
|
||||||
|
*/
|
||||||
|
public void setFileTime(String fileTime){
|
||||||
|
this.fileTime = fileTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**文件名称
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public String getFileName(){
|
||||||
|
return fileName;
|
||||||
|
}
|
||||||
|
/**文件名称
|
||||||
|
*@param fileName
|
||||||
|
*/
|
||||||
|
public void setFileName(String fileName){
|
||||||
|
this.fileName = fileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**添加时间
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public Date getAddTime(){
|
||||||
|
return addTime;
|
||||||
|
}
|
||||||
|
/**添加时间
|
||||||
|
*@param addTime
|
||||||
|
*/
|
||||||
|
public void setAddTime(Date addTime){
|
||||||
|
this.addTime = addTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**用户ID
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public Long getUserId(){
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
/**用户ID
|
||||||
|
*@param userId
|
||||||
|
*/
|
||||||
|
public void setUserId(Long userId){
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**部门ID
|
||||||
|
*@return
|
||||||
|
*/
|
||||||
|
public Long getOrgId(){
|
||||||
|
return orgId;
|
||||||
|
}
|
||||||
|
/**部门ID
|
||||||
|
*@param orgId
|
||||||
|
*/
|
||||||
|
public void setOrgId(Long orgId){
|
||||||
|
this.orgId = orgId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,174 @@
|
|||||||
|
package com.ibeetl.jlw.service;
|
||||||
|
|
||||||
|
import java.io.*;
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.text.DecimalFormat;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.*;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
import cn.jlw.util.ToolUtils;
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.ibeetl.admin.core.entity.CoreUser;
|
||||||
|
import com.ibeetl.admin.core.util.TimeTool;
|
||||||
|
import com.ibeetl.admin.core.web.JsonResult;
|
||||||
|
import com.ibeetl.admin.core.web.JsonReturnCode;
|
||||||
|
import com.ibeetl.jlw.dao.HandsOnSimulationTasksFileDao;
|
||||||
|
import com.ibeetl.jlw.entity.HandsOnSimulationTasksFile;
|
||||||
|
import com.ibeetl.jlw.web.query.HandsOnSimulationTasksFileQuery;
|
||||||
|
import com.ibeetl.jlw.entity.FileEntity;
|
||||||
|
|
||||||
|
import com.ibeetl.admin.core.service.CoreBaseService;
|
||||||
|
import com.ibeetl.admin.core.util.PlatformException;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||||
|
import org.beetl.sql.core.engine.PageQuery;
|
||||||
|
import org.beetl.sql.core.SqlId;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import static com.ibeetl.admin.core.util.ExcelUtil.getCellFormatValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 课程实操-任务附件 Service
|
||||||
|
* 当分布式ID开启后请勿使用insert(*,true)
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Transactional
|
||||||
|
@Validated
|
||||||
|
public class HandsOnSimulationTasksFileService extends CoreBaseService<HandsOnSimulationTasksFile>{
|
||||||
|
|
||||||
|
@Resource private HandsOnSimulationTasksFileDao handsOnSimulationTasksFileDao;
|
||||||
|
|
||||||
|
public PageQuery<HandsOnSimulationTasksFile>queryByCondition(PageQuery query){
|
||||||
|
PageQuery ret = handsOnSimulationTasksFileDao.queryByCondition(query);
|
||||||
|
queryListAfter(ret.getList());
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
public PageQuery<HandsOnSimulationTasksFile>queryByConditionQuery(PageQuery query){
|
||||||
|
PageQuery ret = handsOnSimulationTasksFileDao.queryByConditionQuery(query);
|
||||||
|
queryListAfter(ret.getList());
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteByList(List list){
|
||||||
|
String ids = "";
|
||||||
|
ToolUtils.deleteNullList(list);
|
||||||
|
for(int i=0;null != list && i<list.size();i++){
|
||||||
|
ids += list.get(i).toString()+(i==list.size()-1?"":",");
|
||||||
|
}
|
||||||
|
if(StringUtils.isNotBlank(ids)){
|
||||||
|
handsOnSimulationTasksFileDao.deleteHandsOnSimulationTasksFileByIds(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteHandsOnSimulationTasksFile(String ids){
|
||||||
|
try {
|
||||||
|
handsOnSimulationTasksFileDao.deleteHandsOnSimulationTasksFileByIds(ids);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new PlatformException("批量删除课程实操-任务附件失败", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String addAll(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
String msg = "";
|
||||||
|
List<HandsOnSimulationTasksFile> handsOnSimulationTasksFileList = new ArrayList<>();
|
||||||
|
try {
|
||||||
|
handsOnSimulationTasksFileList = JSON.parseArray(handsOnSimulationTasksFileQuery.getHandsOnSimulationTasksFileJsonStr(), HandsOnSimulationTasksFile.class);
|
||||||
|
} catch (Exception e) {
|
||||||
|
try {
|
||||||
|
handsOnSimulationTasksFileList.add(JSONObject.parseObject(handsOnSimulationTasksFileQuery.getHandsOnSimulationTasksFileJsonStr(), HandsOnSimulationTasksFile.class));
|
||||||
|
} catch (Exception e1) {}
|
||||||
|
}
|
||||||
|
ToolUtils.deleteNullList(handsOnSimulationTasksFileList);
|
||||||
|
if(null != handsOnSimulationTasksFileList && handsOnSimulationTasksFileList.size()>0){
|
||||||
|
for(int i=0;i<handsOnSimulationTasksFileList.size();i++){
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileList.get(i);
|
||||||
|
handsOnSimulationTasksFile.setUserId(handsOnSimulationTasksFileQuery.getUserId());
|
||||||
|
handsOnSimulationTasksFile.setOrgId(handsOnSimulationTasksFileQuery.getOrgId());
|
||||||
|
}
|
||||||
|
insertBatch(handsOnSimulationTasksFileList);
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JsonResult add(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
String msg = "";
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileQuery.pojo();
|
||||||
|
handsOnSimulationTasksFileDao.insert(handsOnSimulationTasksFile);
|
||||||
|
handsOnSimulationTasksFileQuery.setTaskFileId(handsOnSimulationTasksFile.getTaskFileId());
|
||||||
|
JsonResult jsonResult = new JsonResult();
|
||||||
|
jsonResult.setData(handsOnSimulationTasksFile.getTaskFileId());//自增的ID丢进去
|
||||||
|
jsonResult.setCode(JsonReturnCode.SUCCESS.getCode());
|
||||||
|
jsonResult.setMsg(msg);
|
||||||
|
return jsonResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String edit(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
String msg = "";
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileQuery.pojo();
|
||||||
|
handsOnSimulationTasksFileDao.updateTemplateById(handsOnSimulationTasksFile);
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String updateGivenByIds(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
String msg = "";
|
||||||
|
if(StringUtils.isNotBlank(handsOnSimulationTasksFileQuery.get_given())){
|
||||||
|
boolean flag = handsOnSimulationTasksFileDao.updateGivenByIds(handsOnSimulationTasksFileQuery) > 0;
|
||||||
|
if(!flag){
|
||||||
|
msg = "更新指定参数失败";
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
msg = "指定参数为空";
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<HandsOnSimulationTasksFile> getValues (Object paras){
|
||||||
|
return sqlManager.select(SqlId.of("jlw.handsOnSimulationTasksFile.getHandsOnSimulationTasksFileValues"), HandsOnSimulationTasksFile.class, paras);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<HandsOnSimulationTasksFile> getValuesByQuery (HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
return handsOnSimulationTasksFileDao.getValuesByQuery(handsOnSimulationTasksFileQuery);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<HandsOnSimulationTasksFile> getValuesByQueryNotWithPermission (HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
return handsOnSimulationTasksFileDao.getValuesByQueryNotWithPermission(handsOnSimulationTasksFileQuery);
|
||||||
|
}
|
||||||
|
|
||||||
|
public HandsOnSimulationTasksFile getInfo (Long taskFileId){
|
||||||
|
HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery = new HandsOnSimulationTasksFileQuery();
|
||||||
|
handsOnSimulationTasksFileQuery.setTaskFileId(taskFileId);
|
||||||
|
List<HandsOnSimulationTasksFile> list = handsOnSimulationTasksFileDao.getValuesByQuery(handsOnSimulationTasksFileQuery);
|
||||||
|
if(null != list && list.size()>0){
|
||||||
|
return list.get(0);
|
||||||
|
}else{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public HandsOnSimulationTasksFile getInfo (HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery){
|
||||||
|
List<HandsOnSimulationTasksFile> list = handsOnSimulationTasksFileDao.getValuesByQuery(handsOnSimulationTasksFileQuery);
|
||||||
|
if(null != list && list.size()>0){
|
||||||
|
return list.get(0);
|
||||||
|
}else{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteByTaskId(Long taskId) {
|
||||||
|
handsOnSimulationTasksFileDao.deleteByTaskId(taskId);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,225 @@
|
|||||||
|
package com.ibeetl.jlw.web;
|
||||||
|
|
||||||
|
import cn.jlw.Interceptor.RFile;
|
||||||
|
import cn.jlw.Interceptor.SCoreUser;
|
||||||
|
import cn.jlw.Interceptor.GetFile;
|
||||||
|
import cn.jlw.util.ToolUtils;
|
||||||
|
import cn.jlw.validate.ValidateConfig;
|
||||||
|
import com.ibeetl.admin.core.entity.CoreUser;
|
||||||
|
import com.ibeetl.admin.core.file.FileService;
|
||||||
|
import com.ibeetl.admin.core.util.ConvertUtil;
|
||||||
|
import com.ibeetl.admin.core.util.PlatformException;
|
||||||
|
import com.ibeetl.admin.core.util.TimeTool;
|
||||||
|
import com.ibeetl.admin.core.web.JsonResult;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
import org.apache.poi.hssf.usermodel.*;
|
||||||
|
import org.apache.poi.ss.usermodel.*;
|
||||||
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||||
|
import org.beetl.sql.core.engine.PageQuery;
|
||||||
|
import org.springframework.validation.BindingResult;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import com.ibeetl.admin.console.web.dto.DictExcelImportData;
|
||||||
|
import com.ibeetl.admin.console.web.query.UserQuery;
|
||||||
|
import com.ibeetl.admin.core.annotation.Function;
|
||||||
|
import com.ibeetl.jlw.entity.*;
|
||||||
|
import com.ibeetl.jlw.service.*;
|
||||||
|
import com.ibeetl.jlw.web.query.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 课程实操-任务附件 课程实操-实训任务附件表 接口
|
||||||
|
* 切记不要对非线程安全的静态变量进行写操作
|
||||||
|
*/
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@Validated
|
||||||
|
public class HandsOnSimulationTasksFileController{
|
||||||
|
|
||||||
|
private final Log log = LogFactory.getLog(this.getClass());
|
||||||
|
private static final String MODEL = "/jlw/handsOnSimulationTasksFile";
|
||||||
|
private static final String API = "/api/handsOnSimulationTasksFile";
|
||||||
|
|
||||||
|
|
||||||
|
@Resource private HandsOnSimulationTasksFileService handsOnSimulationTasksFileService;
|
||||||
|
|
||||||
|
@Resource FileService fileService;
|
||||||
|
|
||||||
|
/* 前端接口 */
|
||||||
|
|
||||||
|
@PostMapping(API + "/getPageList.do")
|
||||||
|
public JsonResult<PageQuery> getPageList(HandsOnSimulationTasksFileQuery condition,@SCoreUser CoreUser coreUser){
|
||||||
|
if(null == coreUser){
|
||||||
|
return JsonResult.failMessage("请登录后再操作");
|
||||||
|
}else{
|
||||||
|
PageQuery page = condition.getPageQuery();
|
||||||
|
handsOnSimulationTasksFileService.queryByConditionQuery(page);
|
||||||
|
return JsonResult.success(page);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping(API + "/getInfo.do")
|
||||||
|
public JsonResult<HandsOnSimulationTasksFile>getInfo(HandsOnSimulationTasksFileQuery param,@SCoreUser CoreUser coreUser) {
|
||||||
|
if(null == coreUser){
|
||||||
|
return JsonResult.failMessage("请登录后再操作");
|
||||||
|
}else{
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileService.getInfo(param);
|
||||||
|
return JsonResult.success(handsOnSimulationTasksFile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping(API + "/getList.do")
|
||||||
|
public JsonResult<List<HandsOnSimulationTasksFile>>getList(HandsOnSimulationTasksFileQuery param,@SCoreUser CoreUser coreUser) {
|
||||||
|
if(null == coreUser){
|
||||||
|
return JsonResult.failMessage("请登录后再操作");
|
||||||
|
}else{
|
||||||
|
List<HandsOnSimulationTasksFile>list = handsOnSimulationTasksFileService.getValuesByQuery(param);
|
||||||
|
return JsonResult.success(list);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 后台页面 */
|
||||||
|
|
||||||
|
@GetMapping(MODEL + "/index.do")
|
||||||
|
@Function("handsOnSimulationTasksFile.query")
|
||||||
|
public ModelAndView index() {
|
||||||
|
ModelAndView view = new ModelAndView("/jlw/handsOnSimulationTasksFile/index.html") ;
|
||||||
|
view.addObject("search", HandsOnSimulationTasksFileQuery.class.getName());
|
||||||
|
return view;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping(MODEL + "/edit.do")
|
||||||
|
@Function("handsOnSimulationTasksFile.edit")
|
||||||
|
public ModelAndView edit(Long taskFileId) {
|
||||||
|
ModelAndView view = new ModelAndView("/jlw/handsOnSimulationTasksFile/edit.html");
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileService.queryById(taskFileId);
|
||||||
|
view.addObject("handsOnSimulationTasksFile", handsOnSimulationTasksFile);
|
||||||
|
return view;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping(MODEL + "/add.do")
|
||||||
|
@Function("handsOnSimulationTasksFile.add")
|
||||||
|
public ModelAndView add(Long taskFileId) {
|
||||||
|
ModelAndView view = new ModelAndView("/jlw/handsOnSimulationTasksFile/add.html");
|
||||||
|
if(null != taskFileId){
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileService.queryById(taskFileId);
|
||||||
|
view.addObject("handsOnSimulationTasksFile", handsOnSimulationTasksFile);
|
||||||
|
}else {
|
||||||
|
view.addObject("handsOnSimulationTasksFile", new HandsOnSimulationTasksFile());
|
||||||
|
}
|
||||||
|
return view;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 后台接口 */
|
||||||
|
|
||||||
|
@PostMapping(MODEL + "/list.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.query")
|
||||||
|
public JsonResult<PageQuery> list(HandsOnSimulationTasksFileQuery condition){
|
||||||
|
PageQuery page = condition.getPageQuery();
|
||||||
|
handsOnSimulationTasksFileService.queryByCondition(page);
|
||||||
|
return JsonResult.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping(MODEL + "/addAll.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.add")
|
||||||
|
public JsonResult addAll(HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery,@SCoreUser CoreUser coreUser){
|
||||||
|
if(null == coreUser){
|
||||||
|
return JsonResult.failMessage("请登录后再操作");
|
||||||
|
}else{
|
||||||
|
handsOnSimulationTasksFileQuery.setUserId(coreUser.getId());
|
||||||
|
handsOnSimulationTasksFileQuery.setOrgId(coreUser.getOrgId());
|
||||||
|
String msg = handsOnSimulationTasksFileService.addAll(handsOnSimulationTasksFileQuery);
|
||||||
|
if (StringUtils.isBlank(msg)) {
|
||||||
|
return JsonResult.success();
|
||||||
|
} else {
|
||||||
|
return JsonResult.failMessage("新增失败,"+msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping(MODEL + "/add.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.add")
|
||||||
|
public JsonResult add(@Validated(ValidateConfig.ADD.class) HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery, BindingResult result,@SCoreUser CoreUser coreUser){
|
||||||
|
if(result.hasErrors()){
|
||||||
|
return JsonResult.failMessage(result);
|
||||||
|
}else{
|
||||||
|
handsOnSimulationTasksFileQuery.setUserId(coreUser.getId());
|
||||||
|
handsOnSimulationTasksFileQuery.setOrgId(coreUser.getOrgId());
|
||||||
|
return handsOnSimulationTasksFileService.add(handsOnSimulationTasksFileQuery);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping(MODEL + "/edit.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.edit")
|
||||||
|
public JsonResult<String> update(@Validated(ValidateConfig.UPDATE.class) HandsOnSimulationTasksFileQuery handsOnSimulationTasksFileQuery, BindingResult result) {
|
||||||
|
if(result.hasErrors()){
|
||||||
|
return JsonResult.failMessage(result);
|
||||||
|
}else {
|
||||||
|
handsOnSimulationTasksFileQuery.setUserId(null);
|
||||||
|
handsOnSimulationTasksFileQuery.setOrgId(null);
|
||||||
|
String msg = handsOnSimulationTasksFileService.edit(handsOnSimulationTasksFileQuery);
|
||||||
|
if (StringUtils.isBlank(msg)) {
|
||||||
|
return JsonResult.success();
|
||||||
|
} else {
|
||||||
|
return JsonResult.failMessage("更新失败,"+msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping(MODEL + "/view.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.query")
|
||||||
|
public JsonResult<HandsOnSimulationTasksFile>queryInfo(Long taskFileId) {
|
||||||
|
HandsOnSimulationTasksFile handsOnSimulationTasksFile = handsOnSimulationTasksFileService.queryById( taskFileId);
|
||||||
|
return JsonResult.success(handsOnSimulationTasksFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping(MODEL + "/getValues.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.query")
|
||||||
|
public JsonResult<List<HandsOnSimulationTasksFile>>getValues(HandsOnSimulationTasksFileQuery param) {
|
||||||
|
List<HandsOnSimulationTasksFile>list = handsOnSimulationTasksFileService.getValuesByQuery(param);
|
||||||
|
return JsonResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping(MODEL + "/delete.json")
|
||||||
|
@Function("handsOnSimulationTasksFile.delete")
|
||||||
|
@ResponseBody
|
||||||
|
public JsonResult delete(String ids) {
|
||||||
|
handsOnSimulationTasksFileService.deleteHandsOnSimulationTasksFile(ids);
|
||||||
|
return JsonResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,169 @@
|
|||||||
|
package com.ibeetl.jlw.web.query;
|
||||||
|
|
||||||
|
import cn.jlw.validate.ValidateConfig;
|
||||||
|
import com.ibeetl.jlw.entity.HandsOnSimulationTasksFile;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import com.ibeetl.admin.core.annotation.Query;
|
||||||
|
import com.ibeetl.admin.core.util.Tool;
|
||||||
|
import com.ibeetl.admin.core.util.enums.CoreDictType;
|
||||||
|
import com.ibeetl.admin.core.web.query.PageParam;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*课程实操-任务附件查询
|
||||||
|
*/
|
||||||
|
public class HandsOnSimulationTasksFileQuery extends PageParam {
|
||||||
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
||||||
|
@Query(name = "实操任务文件ID", display = false)
|
||||||
|
private Long taskFileId;
|
||||||
|
@Query(name = "实操ID", display = false)
|
||||||
|
private Long handsOnId;
|
||||||
|
@Query(name = "任务ID", display = false)
|
||||||
|
private Long taskId;
|
||||||
|
@Query(name = "文件地址", display = false)
|
||||||
|
private String fileUrl;
|
||||||
|
@Query(name = "文件类型", display = false)
|
||||||
|
private String fileType;
|
||||||
|
@Query(name = "视频时长", display = false)
|
||||||
|
private String fileTime;
|
||||||
|
@Query(name = "文件名称", display = false)
|
||||||
|
private String fileName;
|
||||||
|
@Query(name = "添加时间", display = false)
|
||||||
|
private Date addTime;
|
||||||
|
@Query(name = "用户ID", display = false)
|
||||||
|
private Long userId;
|
||||||
|
@Query(name = "部门ID", display = false)
|
||||||
|
private Long orgId;
|
||||||
|
|
||||||
|
private String taskFileIdPlural;
|
||||||
|
private String handsOnIdPlural;
|
||||||
|
private String taskIdPlural;
|
||||||
|
private String userIdPlural;
|
||||||
|
private String orgIdPlural;
|
||||||
|
|
||||||
|
private String handsOnSimulationTasksFileJsonStr;//json格式
|
||||||
|
|
||||||
|
private String _given;//指定更新的特定字段,多个逗号隔开
|
||||||
|
|
||||||
|
public Long getTaskFileId(){
|
||||||
|
return taskFileId;
|
||||||
|
}
|
||||||
|
public void setTaskFileId(Long taskFileId ){
|
||||||
|
this.taskFileId = taskFileId;
|
||||||
|
}
|
||||||
|
public Long getHandsOnId(){
|
||||||
|
return handsOnId;
|
||||||
|
}
|
||||||
|
public void setHandsOnId(Long handsOnId ){
|
||||||
|
this.handsOnId = handsOnId;
|
||||||
|
}
|
||||||
|
public Long getTaskId(){
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
public void setTaskId(Long taskId ){
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
public String getFileUrl(){
|
||||||
|
return fileUrl;
|
||||||
|
}
|
||||||
|
public void setFileUrl(String fileUrl ){
|
||||||
|
this.fileUrl = fileUrl;
|
||||||
|
}
|
||||||
|
public String getFileType(){
|
||||||
|
return fileType;
|
||||||
|
}
|
||||||
|
public void setFileType(String fileType ){
|
||||||
|
this.fileType = fileType;
|
||||||
|
}
|
||||||
|
public String getFileTime(){
|
||||||
|
return fileTime;
|
||||||
|
}
|
||||||
|
public void setFileTime(String fileTime ){
|
||||||
|
this.fileTime = fileTime;
|
||||||
|
}
|
||||||
|
public String getFileName(){
|
||||||
|
return fileName;
|
||||||
|
}
|
||||||
|
public void setFileName(String fileName ){
|
||||||
|
this.fileName = fileName;
|
||||||
|
}
|
||||||
|
public Date getAddTime(){
|
||||||
|
return addTime;
|
||||||
|
}
|
||||||
|
public void setAddTime(Date addTime ){
|
||||||
|
this.addTime = addTime;
|
||||||
|
}
|
||||||
|
public Long getUserId(){
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId ){
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
public Long getOrgId(){
|
||||||
|
return orgId;
|
||||||
|
}
|
||||||
|
public void setOrgId(Long orgId ){
|
||||||
|
this.orgId = orgId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HandsOnSimulationTasksFile pojo(){
|
||||||
|
HandsOnSimulationTasksFile pojo = new HandsOnSimulationTasksFile();
|
||||||
|
pojo.setTaskFileId(this.getTaskFileId());
|
||||||
|
pojo.setHandsOnId(this.getHandsOnId());
|
||||||
|
pojo.setTaskId(this.getTaskId());
|
||||||
|
pojo.setFileUrl(this.getFileUrl());
|
||||||
|
pojo.setFileType(this.getFileType());
|
||||||
|
pojo.setFileTime(this.getFileTime());
|
||||||
|
pojo.setFileName(this.getFileName());
|
||||||
|
pojo.setAddTime(this.getAddTime());
|
||||||
|
pojo.setUserId(this.getUserId());
|
||||||
|
pojo.setOrgId(this.getOrgId());
|
||||||
|
return pojo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskFileIdPlural(){
|
||||||
|
return taskFileIdPlural;
|
||||||
|
}
|
||||||
|
public void setTaskFileIdPlural(String taskFileIdPlural){
|
||||||
|
this.taskFileIdPlural = taskFileIdPlural;
|
||||||
|
}
|
||||||
|
public String getHandsOnIdPlural(){
|
||||||
|
return handsOnIdPlural;
|
||||||
|
}
|
||||||
|
public void setHandsOnIdPlural(String handsOnIdPlural){
|
||||||
|
this.handsOnIdPlural = handsOnIdPlural;
|
||||||
|
}
|
||||||
|
public String getTaskIdPlural(){
|
||||||
|
return taskIdPlural;
|
||||||
|
}
|
||||||
|
public void setTaskIdPlural(String taskIdPlural){
|
||||||
|
this.taskIdPlural = taskIdPlural;
|
||||||
|
}
|
||||||
|
public String getUserIdPlural(){
|
||||||
|
return userIdPlural;
|
||||||
|
}
|
||||||
|
public void setUserIdPlural(String userIdPlural){
|
||||||
|
this.userIdPlural = userIdPlural;
|
||||||
|
}
|
||||||
|
public String getOrgIdPlural(){
|
||||||
|
return orgIdPlural;
|
||||||
|
}
|
||||||
|
public void setOrgIdPlural(String orgIdPlural){
|
||||||
|
this.orgIdPlural = orgIdPlural;
|
||||||
|
}
|
||||||
|
public String getHandsOnSimulationTasksFileJsonStr(){
|
||||||
|
return handsOnSimulationTasksFileJsonStr;
|
||||||
|
}
|
||||||
|
public void setHandsOnSimulationTasksFileJsonStr(String handsOnSimulationTasksFileJsonStr ){
|
||||||
|
this.handsOnSimulationTasksFileJsonStr = handsOnSimulationTasksFileJsonStr;
|
||||||
|
}
|
||||||
|
public String get_given() {
|
||||||
|
return _given;
|
||||||
|
}
|
||||||
|
public void set_given(String _given) {
|
||||||
|
this._given = _given;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
detail
|
||||||
|
===
|
||||||
|
* 查询统计分析
|
@ -0,0 +1,38 @@
|
|||||||
|
layui.define([ 'form', 'laydate', 'table','handsOnSimulationTasksFileApi'], function(exports) {
|
||||||
|
var form = layui.form;
|
||||||
|
var handsOnSimulationTasksFileApi = layui.handsOnSimulationTasksFileApi;
|
||||||
|
var index = layui.index;
|
||||||
|
var view = {
|
||||||
|
init:function(){
|
||||||
|
Lib.initGenrealForm($("#addForm"),form);
|
||||||
|
this.initSubmit();
|
||||||
|
},
|
||||||
|
initSubmit:function(){
|
||||||
|
$("#addButton").click(function(){
|
||||||
|
form.on('submit(form)', function(){
|
||||||
|
var taskFileId = $("#addForm input[name='taskFileId']").val();
|
||||||
|
if(!$.isEmpty(taskFileId)){
|
||||||
|
handsOnSimulationTasksFileApi.updateHandsOnSimulationTasksFile($('#addForm'),function(){
|
||||||
|
parent.window.dataReload();
|
||||||
|
Common.info("更新成功");
|
||||||
|
Lib.closeFrame();
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
handsOnSimulationTasksFileApi.addHandsOnSimulationTasksFile($('#addForm'),function(){
|
||||||
|
parent.window.dataReload();
|
||||||
|
Common.info("添加成功");
|
||||||
|
Lib.closeFrame();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#addButton-cancel").click(function(){
|
||||||
|
Lib.closeFrame();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
exports('add',view);
|
||||||
|
});
|
@ -0,0 +1,23 @@
|
|||||||
|
layui.define(['table', 'handsOnSimulationTasksFileApi'], function(exports) {
|
||||||
|
var handsOnSimulationTasksFileApi = layui.handsOnSimulationTasksFileApi;
|
||||||
|
var table=layui.table;
|
||||||
|
var view = {
|
||||||
|
init:function(){
|
||||||
|
},
|
||||||
|
delBatch:function(){
|
||||||
|
var data = Common.getMoreDataFromTable(table,"handsOnSimulationTasksFileTable");
|
||||||
|
if(data==null){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
Common.openConfirm("确认要删除这些课程实操-任务附件?",function(){
|
||||||
|
var ids =Common.concatBatchId(data,"taskFileId");
|
||||||
|
handsOnSimulationTasksFileApi.del(ids,function(){
|
||||||
|
Common.info("删除成功");
|
||||||
|
dataReload();
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports('del',view);
|
||||||
|
|
||||||
|
});
|
@ -0,0 +1,28 @@
|
|||||||
|
layui.define([ 'form', 'laydate', 'table','handsOnSimulationTasksFileApi'], function(exports) {
|
||||||
|
var form = layui.form;
|
||||||
|
var handsOnSimulationTasksFileApi = layui.handsOnSimulationTasksFileApi;
|
||||||
|
var index = layui.index;
|
||||||
|
var view = {
|
||||||
|
init:function(){
|
||||||
|
Lib.initGenrealForm($("#updateForm"),form);
|
||||||
|
this.initSubmit();
|
||||||
|
},
|
||||||
|
initSubmit:function(){
|
||||||
|
$("#updateButton").click(function(){
|
||||||
|
form.on('submit(form)', function(){
|
||||||
|
handsOnSimulationTasksFileApi.updateHandsOnSimulationTasksFile($('#updateForm'),function(){
|
||||||
|
parent.window.dataReload();
|
||||||
|
Common.info("更新成功");
|
||||||
|
Lib.closeFrame();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$("#updateButton-cancel").click(function(){
|
||||||
|
Lib.closeFrame();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
exports('edit',view);
|
||||||
|
|
||||||
|
});
|
@ -0,0 +1,18 @@
|
|||||||
|
/*访问后台的代码*/
|
||||||
|
layui.define([], function(exports) {
|
||||||
|
var api={
|
||||||
|
updateHandsOnSimulationTasksFile:function(form,callback){
|
||||||
|
Lib.submitForm("/jlw/handsOnSimulationTasksFile/edit.json",form,{},callback)
|
||||||
|
},
|
||||||
|
addHandsOnSimulationTasksFile:function(form,callback){
|
||||||
|
Lib.submitForm("/jlw/handsOnSimulationTasksFile/add.json",form,{},callback)
|
||||||
|
},
|
||||||
|
del:function(ids,callback){
|
||||||
|
Common.post("/jlw/handsOnSimulationTasksFile/delete.json",{"ids":ids},function(){
|
||||||
|
callback();
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
exports('handsOnSimulationTasksFileApi',api);
|
||||||
|
});
|
@ -0,0 +1,29 @@
|
|||||||
|
<!--#layout("/common/layout.html",{"jsBase":"/js/jlw/handsOnSimulationTasksFile/"}){ -->
|
||||||
|
<layui:searchForm formId="searchForm" searchList="" condition="${search}">
|
||||||
|
</layui:searchForm>
|
||||||
|
<table id="handsOnSimulationTasksFileTable" lay-filter="handsOnSimulationTasksFileTable"></table>
|
||||||
|
<!--#} -->
|
||||||
|
|
||||||
|
<script type="text/html" id="toolbar_handsOnSimulationTasksFile">
|
||||||
|
<div class="layui-btn-container">
|
||||||
|
<div class="layui-btn-group" >
|
||||||
|
<!--# if(core.searchIsShow(search)) {-->
|
||||||
|
<layui:accessButton function="handsOnSimulationTasksFile.query" id="searchFormSearch" action="search"><i class="layui-icon"></i>搜索</layui:accessButton>
|
||||||
|
<!--# }-->
|
||||||
|
<layui:accessButton function="handsOnSimulationTasksFile.add" action="add">添加</layui:accessButton>
|
||||||
|
<layui:accessButton function="handsOnSimulationTasksFile.edit" action="edit">修改</layui:accessButton>
|
||||||
|
<layui:accessButton function="handsOnSimulationTasksFile.del" action="del">删除</layui:accessButton>
|
||||||
|
<!--# if(!isEmpty(search)) {-->
|
||||||
|
<layui:accessButton function="handsOnSimulationTasksFile.query" action="refresh"><i class="layui-icon"></i>刷新</layui:accessButton>
|
||||||
|
<!--# }-->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
layui.use(['index'], function(){
|
||||||
|
var index = layui.index;
|
||||||
|
index.init();
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
Loading…
Reference in New Issue