29-修改 01

main
喻忠伟 4 months ago
parent f278e0a92f
commit 690c81fff3
  1. 9
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/topic/controller/TopicController.java
  2. 7
      jeecg-boot-master/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
  3. 5
      jeecgboot-vue3-master/src/views/annualcomp/uncommitted/AnnualComp.data.ts
  4. 4
      jeecgboot-vue3-master/src/views/comp/Comp.data.ts
  5. 2
      jeecgboot-vue3-master/src/views/scorepersion/ScorePersionList.vue
  6. 2
      jeecgboot-vue3-master/src/views/scorestapoint/ScoreStaPointList.vue
  7. 2
      jeecgboot-vue3-master/src/views/scorestapointd/ScoreStaPointDList.vue
  8. 6
      jeecgboot-vue3-master/src/views/topic/Topic.data.ts

@ -335,9 +335,12 @@ public class TopicController extends JeecgController<Topic, ITopicService> {
QueryWrapper<Topic> queryWrapper= new QueryWrapper<>(); QueryWrapper<Topic> queryWrapper= new QueryWrapper<>();
queryWrapper.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber()); queryWrapper.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber());
Topic one = topicService.getOne(queryWrapper); Topic one = topicService.getOne(queryWrapper);
if (!Objects.equals(one.getId(), topic.getId())){ if(one!=null){
return Result.error("编码重复"); if (!Objects.equals(one.getId(), topic.getId())){
} return Result.error("编码重复");
}
}
topicService.updateById(topic); topicService.updateById(topic);
return Result.OK("编辑成功!"); return Result.OK("编辑成功!");
} }

@ -247,6 +247,13 @@ public class SysUserController {
// 保存用户走一个service 保证事务 // 保存用户走一个service 保证事务
//获取租户ids //获取租户ids
String relTenantIds = jsonObject.getString("relTenantIds"); String relTenantIds = jsonObject.getString("relTenantIds");
SysUser sysUser = sysUserService.getUserByPhone(user.getPhone());
if (sysUser != null) {
result.setMessage("该手机号已注册");
result.setSuccess(false);
return result;
}
sysUserService.saveUser(user, selectedRoles, selectedDeparts, relTenantIds); sysUserService.saveUser(user, selectedRoles, selectedDeparts, relTenantIds);
baseCommonService.addLog("添加用户,username: " +user.getUsername() ,CommonConstant.LOG_TYPE_2, 2); baseCommonService.addLog("添加用户,username: " +user.getUsername() ,CommonConstant.LOG_TYPE_2, 2);
result.success("添加成功!"); result.success("添加成功!");

@ -149,9 +149,12 @@ export const formSchema: FormSchema[] = [
}, },
{ {
label: '驳回信息', label: '反馈信息',
field: 'backinfo', field: 'backinfo',
component: 'InputTextArea', component: 'InputTextArea',
dynamicDisabled: ({ values }) => {
return !!values.id;
},
}, },
// TODO 主键隐藏字段,目前写死为ID // TODO 主键隐藏字段,目前写死为ID
{ {

@ -30,12 +30,12 @@ export const columns: BasicColumn[] = [
dataIndex: 'compImg', dataIndex: 'compImg',
customRender: render.renderImage, customRender: render.renderImage,
}, },
{ /* {
title: '比赛详情', title: '比赛详情',
align: 'center', align: 'center',
dataIndex: 'compDetail', dataIndex: 'compDetail',
slots: { customRender: 'htmlSlot' }, slots: { customRender: 'htmlSlot' },
}, },*/
{ {
title: '比赛介绍文件', title: '比赛介绍文件',
align: 'center', align: 'center',

@ -105,7 +105,7 @@
canResize:false, canResize:false,
useSearchForm: false, useSearchForm: false,
actionColumn: { actionColumn: {
width: 120, width: 160,
fixed: 'right', fixed: 'right',
}, },
beforeFetch: (params) => { beforeFetch: (params) => {

@ -73,7 +73,7 @@
canResize:false, canResize:false,
useSearchForm: false, useSearchForm: false,
actionColumn: { actionColumn: {
width: 120, width: 160,
fixed: 'right', fixed: 'right',
}, },
beforeFetch: (params) => { beforeFetch: (params) => {

@ -78,7 +78,7 @@
canResize:false, canResize:false,
useSearchForm: false, useSearchForm: false,
actionColumn: { actionColumn: {
width: 120, width: 160,
fixed: 'right', fixed: 'right',
}, },
beforeFetch: (params) => { beforeFetch: (params) => {

@ -70,11 +70,11 @@ export const formSchema: FormSchema[] = [
multi:true multi:true
} }
}, },
dynamicRules: ({model,schema}) => { /* dynamicRules: ({model,schema}) => {
return [ return [
{ required: true, message: '请输入年度比赛项目id!'}, { required: true, message: '请选择年度比赛项目!'},
]; ];
}, },*/
}, },
{ {
label: '题目编号', label: '题目编号',

Loading…
Cancel
Save