浏览代码

关于补录任务管理新增模板项修正

ZhangYanJie 5 月之前
父节点
当前提交
2172a65878

+ 4 - 2
Procedure/frontend/projectb/src/pages/product/datasupplementary/supplementtaskmanagement.tsx

@@ -299,6 +299,8 @@ const supplementtaskmanagement : React.FC<widowRush> = (prop:widowRush) => {
                 {validator:(rules,value,callback)=>{
                   if (templateListData?.find(item => value === item?.tmpCodeOfDefine)) {
                     callback('补录模板列表不可出现重复模板');
+                  } else if (value === '请选择补录模板'){
+                    callback('请选择补录模板');
                   } else {
                     callback();
                   }
@@ -347,7 +349,7 @@ const supplementtaskmanagement : React.FC<widowRush> = (prop:widowRush) => {
                 key="roleCfg"
                 icon={<WomanOutlined />}
                 successMessage=""
-                onClick={async ()=>{ 
+                onClick={async ()=>{
                   templateListActionRef.current?.startEditable(record.tmpCodeOfDefine);
                  } }
               >
@@ -680,7 +682,7 @@ const supplementtaskmanagement : React.FC<widowRush> = (prop:widowRush) => {
                   successMessage=''
                   onClick={() => {
                     templateListActionRef.current?.addEditRecord?.({
-                      tmpCodeOfDefine: dataInfoIndex+1,
+                      tmpCodeOfDefine: '请选择补录模板',
                       title: 'NEWROW',
                     });
                   }}