去除部门管理的重置
去除忘记密码按钮
This commit is contained in:
-63
@@ -329,69 +329,6 @@ public class SysAnnouncementController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出excel
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
*/
|
|
||||||
@RequestMapping(value = "/exportXls")
|
|
||||||
public ModelAndView exportXls(SysAnnouncement sysAnnouncement,HttpServletRequest request) {
|
|
||||||
// Step.1 组装查询条件
|
|
||||||
LambdaQueryWrapper<SysAnnouncement> queryWrapper = new LambdaQueryWrapper<>(sysAnnouncement);
|
|
||||||
//Step.2 AutoPoi 导出Excel
|
|
||||||
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
|
||||||
queryWrapper.eq(SysAnnouncement::getDelFlag,CommonConstant.DEL_FLAG_0);
|
|
||||||
List<SysAnnouncement> pageList = sysAnnouncementService.list(queryWrapper);
|
|
||||||
//导出文件名称
|
|
||||||
mv.addObject(JeroController.FILE_NAME, "系统通告列表");
|
|
||||||
mv.addObject(JeroController.CLASS, SysAnnouncement.class);
|
|
||||||
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
||||||
mv.addObject(JeroController.PARAMS, new ExportParams("系统通告列表数据", "导出人:"+user.getRealname(), "导出信息"));
|
|
||||||
mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
|
|
||||||
return mv;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 通过excel导入数据
|
|
||||||
*
|
|
||||||
* @param request
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
||||||
@PostMapping("/importExcel")
|
|
||||||
public Results<T> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
|
||||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
|
||||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
|
||||||
MultipartFile file = entity.getValue();// 获取上传文件对象
|
|
||||||
ImportParams params = new ImportParams();
|
|
||||||
params.setTitleRows(2);
|
|
||||||
params.setHeadRows(1);
|
|
||||||
params.setNeedSave(true);
|
|
||||||
try {
|
|
||||||
List<SysAnnouncement> listSysAnnouncements = ExcelImportUtil.importExcel(file.getInputStream(), SysAnnouncement.class, params);
|
|
||||||
for (SysAnnouncement sysAnnouncementExcel : listSysAnnouncements) {
|
|
||||||
if(sysAnnouncementExcel.getDelFlag()==null){
|
|
||||||
sysAnnouncementExcel.setDelFlag(CommonConstant.DEL_FLAG_0.toString());
|
|
||||||
}
|
|
||||||
sysAnnouncementService.save(sysAnnouncementExcel);
|
|
||||||
}
|
|
||||||
return Results.OK("文件导入成功!数据行数:" + listSysAnnouncements.size());
|
|
||||||
} catch (Exception e) {
|
|
||||||
log.error(e.getMessage(),e);
|
|
||||||
return Results.error("文件导入失败!");
|
|
||||||
} finally {
|
|
||||||
try {
|
|
||||||
file.getInputStream().close();
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Results.error("文件导入失败!");
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
*同步消息
|
*同步消息
|
||||||
* @param anntId
|
* @param anntId
|
||||||
|
|||||||
@@ -124,7 +124,6 @@
|
|||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
<div class="anty-form-btn">
|
<div class="anty-form-btn">
|
||||||
<a-button @click="emptyCurrForm" type="default" htmlType="button" icon="sync">重置</a-button>
|
|
||||||
<a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">保存</a-button>
|
<a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">保存</a-button>
|
||||||
</div>
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
@@ -436,10 +435,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
emptyCurrForm () {
|
|
||||||
this.$refs.form.resetFields()
|
|
||||||
this.model = {}
|
|
||||||
},
|
|
||||||
nodeSettingFormSubmit () {
|
nodeSettingFormSubmit () {
|
||||||
this.$refs.form.validate(valid => {
|
this.$refs.form.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|||||||
@@ -67,11 +67,11 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6"></a-col>
|
<a-col :span="6"></a-col>
|
||||||
<a-col :span="5" style="text-align: right;color: #1891FF;">
|
<a-col :span="5" style="text-align: right;color: #1891FF;">
|
||||||
<a-form-item>
|
<!-- <a-form-item>-->
|
||||||
<router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">
|
<!-- <router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">-->
|
||||||
忘记密码
|
<!-- 忘记密码-->
|
||||||
</router-link>
|
<!-- </router-link>-->
|
||||||
</a-form-item>
|
<!-- </a-form-item>-->
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row class="login-btn">
|
<a-row class="login-btn">
|
||||||
@@ -150,11 +150,11 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="4"></a-col>
|
<a-col :span="4"></a-col>
|
||||||
<a-col :span="9" style="text-align: right;color: #1891FF;">
|
<a-col :span="9" style="text-align: right;color: #1891FF;">
|
||||||
<a-form-item>
|
<!-- <a-form-item>-->
|
||||||
<router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">
|
<!-- <router-link :to="{ name: 'alteration'}" class="forge-password" style="float: right;">-->
|
||||||
忘记密码
|
<!-- 忘记密码-->
|
||||||
</router-link>
|
<!-- </router-link>-->
|
||||||
</a-form-item>
|
<!-- </a-form-item>-->
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row class="login-btn">
|
<a-row class="login-btn">
|
||||||
|
|||||||
Reference in New Issue
Block a user