Browse Source

feat(core): change api

gemercheung 3 years ago
parent
commit
e5ea6bb89f

+ 1 - 1
src/views/corporation/AddModal.vue

@@ -19,7 +19,7 @@
   import { checkUserAddAble } from '/@/api/corporation/modal';
   import { checkUserAddAble } from '/@/api/corporation/modal';
   const schemas: FormSchema[] = [
   const schemas: FormSchema[] = [
     {
     {
-      field: 'memoName',
+      field: 'userName',
       component: 'Input',
       component: 'Input',
       label: '姓名',
       label: '姓名',
       colProps: {
       colProps: {

+ 3 - 3
src/views/corporation/SubaccountModal.vue

@@ -122,7 +122,7 @@
       const columns: BasicColumn[] = [
       const columns: BasicColumn[] = [
         {
         {
           title: '姓名',
           title: '姓名',
-          dataIndex: 'memoName',
+          dataIndex: 'userName',
           edit: true,
           edit: true,
           editRule: true,
           editRule: true,
           width: 200,
           width: 200,
@@ -143,14 +143,14 @@
       ];
       ];
       const schemas: FormSchema[] = [
       const schemas: FormSchema[] = [
         {
         {
-          field: 'userName',
+          field: 'managerPhone',
           component: 'Input',
           component: 'Input',
           label: t('routes.corporation.rechargeId'),
           label: t('routes.corporation.rechargeId'),
           slot: 'userName',
           slot: 'userName',
           labelWidth: 200,
           labelWidth: 200,
         },
         },
         {
         {
-          field: 'name',
+          field: 'companyName',
           label: t('routes.corporation.enterpriseId'),
           label: t('routes.corporation.enterpriseId'),
           slot: 'name',
           slot: 'name',
           component: 'Input',
           component: 'Input',

+ 3 - 3
src/views/corporation/deviceModal.vue

@@ -71,19 +71,19 @@
       };
       };
       const schemas: FormSchema[] = [
       const schemas: FormSchema[] = [
         {
         {
-          field: 'userName',
+          field: 'companyName',
           label: t('routes.corporation.enterpriseName'),
           label: t('routes.corporation.enterpriseName'),
           slot: 'userName',
           slot: 'userName',
           component: 'Input',
           component: 'Input',
         },
         },
         {
         {
-          field: 'name',
+          field: 'managerPhone',
           label: t('routes.corporation.enterpriseId'),
           label: t('routes.corporation.enterpriseId'),
           slot: 'name',
           slot: 'name',
           component: 'Input',
           component: 'Input',
         },
         },
         {
         {
-          field: 'num',
+          field: 'subNum',
           component: 'InputNumber',
           component: 'InputNumber',
           label: t('routes.corporation.cameraNum'),
           label: t('routes.corporation.cameraNum'),
           colProps: {
           colProps: {