shaogen1995 5 дней назад
Родитель
Сommit
2cbc7a7544
2 измененных файлов с 6 добавлено и 2 удалено
  1. 1 1
      src/pages/Zother/EditInput/index.tsx
  2. 5 1
      src/pages/Zother/EditTop/index.tsx

+ 1 - 1
src/pages/Zother/EditInput/index.tsx

@@ -57,7 +57,7 @@ function EditInput({ item, isLook }: Props) {
         ) : item.type === 'Input' ? (
           <Input
             readOnly={isLook}
-            placeholder='请输入'
+            placeholder={isLook ? '(空)' : '请输入'}
             value={info[item.key as 'date']}
             onChange={e => dataChangeFu(e.target.value, item)}
             maxLength={item.maxLength || 30}

+ 5 - 1
src/pages/Zother/EditTop/index.tsx

@@ -223,9 +223,13 @@ function EditTop({ rowArr, pageTxt, APIobj, fileUpInfo, moreDom }: Props) {
                         >
                           查看
                         </Button>
-                        <MyPopconfirm txtK='删除' onConfirm={() => setSnapsFu([])} />
+                        {isLook ? null : (
+                          <MyPopconfirm txtK='删除' onConfirm={() => setSnapsFu([])} />
+                        )}
                       </div>
                     </div>
+                  ) : isLook ? (
+                    '(空)'
                   ) : (
                     <div className='Edtop1rr'>
                       <Button