Jelajahi Sumber

Merge branch 'ETA_needs_23'

hbchen 9 bulan lalu
induk
melakukan
4f3b5ae2cc

+ 7 - 0
src/api/modules/setApi.js

@@ -337,6 +337,13 @@ const departInterence = {
 	 */
 	getPhoneAreaCode:params=>{
 		return http.get('/user_login/area_code/list',params)
+	},
+	/**
+	 * 获取备案信息
+	 * @returns 
+	*/
+	getICPLicense:params=>{
+		return http.get('/user_login/icp_license',params)
 	}
 
 }

TEMPAT SAMPAH
src/assets/img/eta_base_config/record_information.jpg


+ 26 - 4
src/views/Login.vue

@@ -134,6 +134,9 @@
                 </div>
 			</div>
 		</div>
+        <div class="record-info">
+            <span v-for="(item,index) in recordInformation" :key="index">{{ item }}</span>
+        </div>
 		<!-- 验证弹窗 -->
 		<el-dialog
 			class="check-dialog"
@@ -288,14 +291,14 @@ export default {
                         </filter>
                         </defs></svg>`
                 },
-            ]
-
-        
+            ],
+            recordInformation:[]
         };
     },
     created() {
         this.keyupSubmit(); //回车登录
         this.getPhoneCode();//获取手机号区号
+        this.getRecordInfo();//获取备案信息
     },
     mounted(){
         this.getRememberedInfo()
@@ -402,6 +405,13 @@ export default {
                 this.areaCode = res.Data||[]
             })
         },
+        getRecordInfo(){
+            departInterence.getICPLicense().then(res=>{
+                if(res.Ret == 200){
+                    this.recordInformation = res.Data.ConfVal.split(/\s{2,}/)
+                }
+            })
+        },
         handleClick(tab) {
             //调用对应model的init方法
             this.$refs[tab.name]&&this.$refs[tab.name].modelInit()
@@ -651,7 +661,7 @@ export default {
 	// overflow: hidden;
 	#login_wrapper {
 		width: 100%;
-		height: 100%;
+		height: calc(100% - 36px);
 		background-color: #fff;
 		position: relative;
 
@@ -810,6 +820,18 @@ export default {
 			}
 		}
 	}
+    .record-info{
+        display: flex;
+        flex-wrap: wrap;
+        justify-content: center;
+        width: 100%;
+        font-size: 15px;
+        color: #C0C4CC;
+        text-align: center;
+        span{
+            margin: 0 6px;
+        }
+    }
 	.remember-cont {
 		position: relative;
 		margin-bottom: 35px;

+ 8 - 1
src/views/system_manage/etaBaseConfig.vue

@@ -76,6 +76,12 @@
                         <ConfigAnnotation picName="emailContentTemplate" @showImage="previewImage" picHintText=""/>
                     </el-form-item>
                 </div>
+                <div class="side">
+                    <el-form-item label="备案信息" prop="ICPLicense">
+                        <el-input type="text" v-model="formData.ICPLicense" placeholder="文本中输入≥2个空格表示文本分段,小屏时换行展示" />
+                        <ConfigAnnotation picHintText="" picName="ICPLicense" @showImage="previewImage"/>
+                    </el-form-item>
+                </div>
             </div>
             <!-- 研报设置 -->
             <div class="part" v-show="partType===2">
@@ -372,7 +378,7 @@ export default {
 
                 IsReportApprove:false,//是否开启研报审批
                 ReportApproveType:'eta',//研报审批选项
-
+                ICPLicense:'', //备案信息
             },//表单预设值
             rules: {
                 Disclaimer:[{ required: true, message: '请输入免责声明', trigger: 'blur' }],
@@ -453,6 +459,7 @@ export default {
                 'pptBgPic':[require('@/assets/img/eta_base_config/ppt_bgpic.jpg')],
                 'pptBackPic':[require('@/assets/img/eta_base_config/ppt_back.jpg')],
                 'emailContentTemplate':[require('@/assets/img/eta_base_config/email_content_template.png')],
+                'ICPLicense':[require('@/assets/img/eta_base_config/record_information.jpg')]
             },
             /* loading */
             configLoading:null,