Преглед на файлове

Merge branch 'feature/Feature_loginPage' into develop

莫绍宝 преди 3 години
родител
ревизия
2dab02393a
променени са 2 файла, в които са добавени 21 реда и са изтрити 5 реда
  1. 9 0
      src/api/policy_list.js
  2. 12 5
      src/views/pset/login_setting.vue

+ 9 - 0
src/api/policy_list.js

@@ -326,3 +326,12 @@ export function addCompany(params) {
     data: params
   })
 }
+
+//获取公司数据
+export function getCompanyList(params) {
+  return request({
+    url: '/record/company/list',
+    method: 'get',
+    params
+  })
+}

+ 12 - 5
src/views/pset/login_setting.vue

@@ -208,6 +208,7 @@
         delImgData,
         addCompany,
         editImgCarousel,
+        getCompanyList,
     } from "@/api/policy_list";
 
     export default {
@@ -306,11 +307,17 @@
                     mainId: "",
                     status: this.screenForm.status,
                 };
-                // getTypeList(params).then((res) => {
-                //   this.dataList = res.data.records;
-                //   this.listTotal = res.data.total;
-                //   this.listLoading = false;
-                // });
+                getCompanyList().then((res) => {
+                    if(res.data){
+                          this.comPanyDialogForm.id = res.data[0].id,
+                            this.comPanyDialogForm.icpRecord = res.data[0].icpRecord,
+                            this.comPanyDialogForm.icpRecordLink= res.data[0].icpRecordLink,
+                            this.comPanyDialogForm.pubSecurityRecord= res.data[0].pubSecurityRecord,
+                            this.comPanyDialogForm.pubSecurityRecordLink = res.data[0].pubSecurityRecordLink,
+                            this.comPanyDialogForm.companyName = res.data[0].companyName
+                    }
+                });
+
                 getImgCarouseList(params).then((res) => {
                     this.dataList = res.data;
                     this.listLoading = false;