瀏覽代碼

甲方需求修改文字

shaogen1995 1 月之前
父節點
當前提交
f5de1e4406

+ 3 - 3
后台管理/src/pages/A1record/A1add/index.module.scss

@@ -31,7 +31,7 @@
         overflow: auto;
 
         .ant-form-item-label {
-          width: 81px;
+          width: 110px;
         }
 
         .A1aRow {
@@ -80,7 +80,7 @@
           .formLeft {
             position: relative;
             top: 3px;
-            width: 81px;
+            width: 110px;
             text-align: right;
 
             & > span {
@@ -89,7 +89,7 @@
           }
 
           .formRight {
-            width: calc(100% - 81px);
+            width: calc(100% - 110px);
             position: relative;
             top: -15px;
           }

+ 3 - 3
后台管理/src/pages/A1record/A1add/index.tsx

@@ -154,7 +154,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
 
   const formDomRef = useRef<HTMLDivElement>(null)
 
-  // -------------获取番号列表--------------
+  // -------------获取牺牲时所在单位列表--------------
   const dispatch = useDispatch()
   useEffect(() => {
     dispatch(A1_APIgetNumList())
@@ -219,7 +219,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
                     options={nationSelect}
                   />
                 </Form.Item>
-                <Form.Item label='番号' name='intro'>
+                <Form.Item label='牺牲时所在单位' name='intro'>
                   <Input maxLength={50} showCount placeholder='请输入内容' />
                 </Form.Item>
               </div>
@@ -322,7 +322,7 @@ function A1add({ sId, closeFu, addTableFu, upTableFu }: Props) {
         </div>
       </div>
 
-      {/* 番号管理 */}
+      {/* 牺牲时所在单位管理 */}
       {numShow ? (
         <A1num
           AcId={fanHaoRef.current}

+ 3 - 2
后台管理/src/pages/A1record/A1look/index.module.scss

@@ -20,6 +20,7 @@
       .A1Top1 {
         width: calc(100% - 600px);
         margin-right: 20px;
+        padding-left: 0;
 
         .A1topRow {
           display: flex;
@@ -27,11 +28,11 @@
           margin-bottom: 10px;
           .A1top1LL {
             font-weight: 700;
-            width: 82px;
+            width: 140px;
             text-align: right;
           }
           .A1top1RR {
-            width: calc(100% - 82px);
+            width: calc(100% - 140px);
             word-wrap: break-word;
             white-space: pre-wrap;
 

+ 1 - 1
后台管理/src/pages/A1record/A1look/index.tsx

@@ -104,7 +104,7 @@ function A1look({ sId }: Props) {
                 </div>
               </div>
               <div className='A1topRow'>
-                <div className='A1top1LL'>番号:</div>
+                <div className='A1top1LL'>牺牲时所在单位:</div>
                 <div className='A1top1RR'>{info.intro || '(空)'}</div>
               </div>
               <div className='A1topRow'>

+ 5 - 5
后台管理/src/pages/A1record/A1num/index.tsx

@@ -53,7 +53,7 @@ function A1num({ closeFu, upNumList, AcId }: Props) {
 
   // 点击确定
   const addBtn = useCallback(async () => {
-    if (!addInfo.name) return MessageFu.warning('请输入番号名称')
+    if (!addInfo.name) return MessageFu.warning('请输入牺牲时所在单位名称')
 
     const obj = {
       id: addInfo.id > 0 ? addInfo.id : null,
@@ -76,7 +76,7 @@ function A1num({ closeFu, upNumList, AcId }: Props) {
       open={true}
       title={
         <div className='A1Ntit'>
-          <div>番号管理</div>
+          <div>牺牲时所在单位管理</div>
           <Button type='primary' onClick={() => setAddInfo({ id: -1, name: '' })}>
             新增
           </Button>
@@ -90,7 +90,7 @@ function A1num({ closeFu, upNumList, AcId }: Props) {
         classKey='A1num'
         yHeight={500}
         list={numList}
-        columnsTemp={[['txt', '番号名称', 'name']]}
+        columnsTemp={[['txt', '牺牲时所在单位', 'name']]}
         lastBtn={tableLastBtn}
         pagingInfo={false}
       />
@@ -103,14 +103,14 @@ function A1num({ closeFu, upNumList, AcId }: Props) {
         <Modal
           wrapClassName={styles.A1num2}
           open={true}
-          title={addInfo.id > 0 ? '番号编辑' : '番号新增'}
+          title={addInfo.id > 0 ? '牺牲时所在单位编辑' : '牺牲时所在单位新增'}
           footer={
             [] // 设置footer为空,去掉 取消 确定默认按钮
           }
         >
           <div className='A1Ninput'>
             <div>
-              <span>*</span> 番号名称
+              <span>*</span> 牺牲时所在单位
             </div>
             <Input
               value={addInfo.name}

+ 1 - 1
后台管理/src/pages/A1record/data.ts

@@ -274,7 +274,7 @@ export const nationSelect = [
   }
 ]
 
-// 番号相关
+// 牺牲时所在单位相关
 export type NumListType = { id: number; name: string }
 
 // 处理籍贯

+ 4 - 4
后台管理/src/pages/A1record/index.tsx

@@ -94,7 +94,7 @@ function A1record() {
         render: (item: A1ListType) => (item.gender === 1 ? '男' : '女')
       },
       { title: '民族', width: 100, render: (item: A1ListType) => item.nation || '(空)' },
-      { title: '番号', render: (item: A1ListType) => item.intro || '(空)' },
+      { title: '牺牲时所在单位', render: (item: A1ListType) => item.intro || '(空)' },
       {
         title: '籍贯',
 
@@ -156,7 +156,7 @@ function A1record() {
   return (
     <div className={styles.A1record}>
       <div className='pageTitle'>
-        烈士档案{lookInfo.txt ? ` - ${lookInfo.txt}` : ''}{' '}
+        烈士信息{lookInfo.txt ? ` - ${lookInfo.txt}` : ''}{' '}
         {lookInfo.txt === '查看' ? (
           <div onClick={() => setLookInfo({ id: 0, txt: '' })} className='A1LookBack'>
             <Button>返回</Button>
@@ -172,8 +172,8 @@ function A1record() {
               key={inputKey}
               maxLength={30}
               showCount
-              style={{ width: 300 }}
-              placeholder='请输入ID/姓名/番号/籍贯'
+              style={{ width: 350 }}
+              placeholder='请输入ID/姓名/牺牲时所在单位/籍贯'
               allowClear
               onChange={e => fromKeyChangeFu(e, 'searchKey')}
             />

+ 1 - 1
后台管理/src/pages/A2clue/A2add/index.tsx

@@ -17,7 +17,7 @@ type Props = {
   addTableFu: () => void
   upTableFu: () => void
   listAllRes: A1ListSelectType
-  // 从烈士档案中进来
+  // 从烈士信息中进来
   martyrId?: number
 }
 

+ 1 - 1
后台管理/src/pages/A3clan/A3add/index.tsx

@@ -16,7 +16,7 @@ type Props = {
   addTableFu: () => void
   upTableFu: () => void
   listAllRes: A1ListSelectType
-  // 从烈士档案中进来
+  // 从烈士信息中进来
   myMartyrId?: number
 }
 

+ 4 - 4
后台管理/src/pages/A4antique/A4add/index.tsx

@@ -14,7 +14,7 @@ type Props = {
   addTableFu: () => void
   upTableFu: () => void
   listAllRes: A1ListSelectType
-  // 从烈士档案中进来
+  // 从烈士信息中进来
   martyrId?: number
 }
 
@@ -99,9 +99,9 @@ function A4add({ sId, closeFu, addTableFu, upTableFu, listAllRes, martyrId }: Pr
             >
               <div className='A4aRow'>
                 <Form.Item
-                  label='文名称'
+                  label='文名称'
                   name='name'
-                  rules={[{ required: true, message: '请输入文名称' }]}
+                  rules={[{ required: true, message: '请输入文名称' }]}
                   // getValueFromEvent={(e) => e.target.value.replace(/\s+/g, "")}
                   getValueFromEvent={e => e.target.value.trim()}
                 >
@@ -147,7 +147,7 @@ function A4add({ sId, closeFu, addTableFu, upTableFu, listAllRes, martyrId }: Pr
               </div>
 
               <div className='A4aRowAll'>
-                <Form.Item label='文介绍' name='intro'>
+                <Form.Item label='文介绍' name='intro'>
                   <TextArea maxLength={500} showCount placeholder='请输入内容' />
                 </Form.Item>
               </div>

+ 2 - 2
后台管理/src/pages/A4antique/index.tsx

@@ -123,7 +123,7 @@ function A4antique() {
 
   return (
     <div className={styles.A4antique}>
-      <div className='pageTitle'>烈士文物{editId ? (editId > 0 ? ' - 编辑' : ' - 新增') : ''}</div>
+      <div className='pageTitle'>烈士档案{editId ? (editId > 0 ? ' - 编辑' : ' - 新增') : ''}</div>
       {/* 顶部筛选 */}
       <div className='A4top'>
         <div className='A4topLeft'>
@@ -133,7 +133,7 @@ function A4antique() {
               maxLength={30}
               showCount
               style={{ width: 300 }}
-              placeholder='请输入文名称'
+              placeholder='请输入文名称'
               allowClear
               onChange={e => fromKeyChangeFu(e, 'searchKey')}
             />

+ 2 - 2
后台管理/src/pages/Layout/data.ts

@@ -8,7 +8,7 @@ const tabLeftArr: RouterType = [
     son: [
       {
         id: 200,
-        name: '烈士档案',
+        name: '烈士信息',
         path: '/',
         Com: React.lazy(() => import('../A1record'))
       },
@@ -26,7 +26,7 @@ const tabLeftArr: RouterType = [
       },
       {
         id: 500,
-        name: '烈士文物',
+        name: '烈士档案',
         path: '/antique',
         Com: React.lazy(() => import('../A4antique'))
       },

+ 5 - 5
后台管理/src/store/action/A1record.ts

@@ -1,7 +1,7 @@
 import http from '@/utils/http'
 import { AppDispatch } from '..'
 /**
- * 烈士档案-获取列表
+ * 烈士信息-获取列表
  */
 export const A1_APIgetList = (data: any, flag = false): any => {
   if (flag) return http.post('cms/martyr/pageList', data)
@@ -21,27 +21,27 @@ export const A1_APIgetList = (data: any, flag = false): any => {
 }
 
 /**
- * 烈士档案-删除
+ * 烈士信息-删除
  */
 export const A1_APIdel = (id: number) => {
   return http.get(`cms/martyr/remove/${id}`)
 }
 
 /**
- * 烈士档案-新增
+ * 烈士信息-新增
  */
 export const A1_APIsave = (data: any) => {
   return http.post('cms/martyr/save', data)
 }
 
 /**
- * 烈士档案-获取详情
+ * 烈士信息-获取详情
  */
 export const A1_APIgetInfo = (id: number) => {
   return http.get(`cms/martyr/detail/${id}`)
 }
 
-// --------------番号管理--------------------
+// --------------牺牲时所在单位管理--------------------
 export const A1_APIgetNumList = (type = 'pan'): any => {
   return async (dispatch: AppDispatch) => {
     const res = await http.get(`cms/martyr/dict/getDict/${type}`)

+ 4 - 4
后台管理/src/store/action/A4antique.ts

@@ -1,7 +1,7 @@
 import http from '@/utils/http'
 import { AppDispatch } from '..'
 /**
- * 烈士文物-获取列表
+ * 烈士档案-获取列表
  */
 export const A4_APIgetList = (data: any, flag = false): any => {
   if (flag) return http.post('cms/relic/pageList', data)
@@ -21,21 +21,21 @@ export const A4_APIgetList = (data: any, flag = false): any => {
 }
 
 /**
- * 烈士文物-删除
+ * 烈士档案-删除
  */
 export const A4_APIdel = (id: number) => {
   return http.get(`cms/relic/remove/${id}`)
 }
 
 /**
- * 烈士文物-新增
+ * 烈士档案-新增
  */
 export const A4_APIsave = (data: any) => {
   return http.post('cms/relic/save', data)
 }
 
 /**
- * 烈士文物-获取详情
+ * 烈士档案-获取详情
  */
 export const A4_APIgetInfo = (id: number) => {
   return http.get(`cms/relic/detail/${id}`)

+ 1 - 1
后台管理/src/store/reducer/A1record.ts

@@ -7,7 +7,7 @@ const initState = {
     list: [] as A1ListType[],
     total: 0
   },
-  // 番号列表数据
+  // 牺牲时所在单位列表数据
   numList: [] as NumListType[]
 }
 

+ 3 - 3
后台管理/src/utils/tableData.ts

@@ -44,9 +44,9 @@ export const A3tableC = [
 ]
 
 export const A4tableC = [
-  ['txt', '文名称', 'name'],
-  ['img', '文图片', 'thumb'],
-  ['text', '文介绍', 'intro', 80],
+  ['txt', '文名称', 'name'],
+  ['img', '文图片', 'thumb'],
+  ['text', '文介绍', 'intro', 80],
   ['txt', '相关烈士', 'martyrName']
 ]