소스 검색

修复bug

shaogen1995 3 달 전
부모
커밋
7b6627aa91
3개의 변경된 파일18개의 추가작업 그리고 19개의 파일을 삭제
  1. 16 17
      src/pages/B_enterTibet/B34typeIn/B34MoAdd/index.tsx
  2. 1 1
      src/pages/B_enterTibet/B34typeIn/B34edit/index.tsx
  3. 1 1
      src/utils/tableData.ts

+ 16 - 17
src/pages/B_enterTibet/B34typeIn/B34MoAdd/index.tsx

@@ -215,7 +215,7 @@ function B34MoAdd({ info, closeFu, succFu, type, look = false }: Props) {
                 allowClear={true}
               />
             </Form.Item>
-            <Form.Item label='完残程度' name='dictTorn'>
+            <Form.Item label='完残情况' name='dictTorn'>
               <Cascader
                 disabled={look}
                 options={cascaderObjFu()['完残程度']}
@@ -225,13 +225,21 @@ function B34MoAdd({ info, closeFu, succFu, type, look = false }: Props) {
               />
             </Form.Item>
 
-            <Form.Item label='来源' name='source'>
-              <Cascader
-                disabled={look}
-                options={cascaderObjFu()['来源']}
-                placeholder={look ? '(空)' : '请选择'}
-                fieldNames={{ label: 'name', value: 'id', children: 'children' }}
-                allowClear={true}
+            <Form.Item label='具体来源' name='sourceInfo'>
+              <TextArea
+                readOnly={look}
+                maxLength={200}
+                showCount
+                placeholder={look ? '(空)' : '请输入内容'}
+              />
+            </Form.Item>
+
+            <Form.Item label='备注' name='intro'>
+              <TextArea
+                readOnly={look}
+                maxLength={200}
+                showCount
+                placeholder={look ? '(空)' : '请输入内容'}
               />
             </Form.Item>
 
@@ -248,15 +256,6 @@ function B34MoAdd({ info, closeFu, succFu, type, look = false }: Props) {
               />
             </Form.Item>
 
-            <Form.Item label='备注' name='intro'>
-              <TextArea
-                readOnly={look}
-                maxLength={200}
-                showCount
-                placeholder={look ? '(空)' : '请输入内容'}
-              />
-            </Form.Item>
-
             <div className='B2Mrow' style={{ marginTop: -20 }}>
               <div className='B2Mrowll' style={{ top: 20 }}>
                 图片:

+ 1 - 1
src/pages/B_enterTibet/B34typeIn/B34edit/index.tsx

@@ -589,7 +589,7 @@ function B34edit({ type }: Props) {
           succFu={(obj, newFlag) => {
             if (newFlag) {
               // 是新增
-              console.log(5454, [obj, ...snaps])
+              // console.log(5454, [obj, ...snaps])
 
               setSnaps([obj, ...snaps])
             } else {

+ 1 - 1
src/utils/tableData.ts

@@ -141,7 +141,7 @@ export const B34TableC2 = [
   ['txtC', '时代', 'dictAge'],
   ['txtC', '质地', 'dictTexture3'],
   ['txtC', '完残情况', 'dictTorn'],
-  ['txtC', '来源', 'source'],
+  ['txt', '具体来源', 'sourceInfo'],
   ['txtChange', '处理情况', 'accountType', accountTypeObj],
   ['text', '备注', 'intro', 50]
 ]