29-修改 01

main
喻忠伟 4 months ago
parent f278e0a92f
commit 690c81fff3
  1. 3
      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.eq("annual_compid",topic.getAnnualCompid()).eq("number",topic.getNumber());
Topic one = topicService.getOne(queryWrapper);
if(one!=null){
if (!Objects.equals(one.getId(), topic.getId())){
return Result.error("编码重复");
}
}
topicService.updateById(topic);
return Result.OK("编辑成功!");
}

@ -247,6 +247,13 @@ public class SysUserController {
// 保存用户走一个service 保证事务
//获取租户ids
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);
baseCommonService.addLog("添加用户,username: " +user.getUsername() ,CommonConstant.LOG_TYPE_2, 2);
result.success("添加成功!");

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

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

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

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

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

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

Loading…
Cancel
Save