Browse Source

feat(api): 分流接入API

tangning 3 years ago
parent
commit
a150b9c11a
2 changed files with 14 additions and 2 deletions
  1. 2 1
      .env.production
  2. 12 1
      src/views/dashboard/corporation/SubaccountModal.vue

+ 2 - 1
.env.production

@@ -16,7 +16,8 @@ VITE_BUILD_COMPRESS = 'none'
 VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
 
 # Basic interface address SPA
-VITE_GLOB_API_URL=/basic-api
+# VITE_GLOB_API_URL=/basic-api
+VITE_GLOB_API_URL=
 
 # File upload address, optional
 # It can be forwarded by nginx or write the actual address directly

+ 12 - 1
src/views/dashboard/corporation/SubaccountModal.vue

@@ -19,7 +19,7 @@
         </template>
       </BasicForm>
       <div class="table_list">
-        <BasicTable @register="registerTable">
+        <BasicTable @register="registerTable" :canResize="true">
           <template #action="{ record }">
             <TableAction
               :actions="[
@@ -58,6 +58,9 @@
     setup(props) {
       const { createConfirm } = useMessage();
       const modelRef = ref({});
+      // const editList = ref({
+      //   list:[]
+      // })
       const columns: BasicColumn[] = [
         {
           title: '姓名',
@@ -73,6 +76,7 @@
       const [registerTable, { setProps, reload }] = useTable({
         title: '子账户列表',
         api: selectUserList,
+        pagination: false,
         columns: columns,
         rowKey: 'id',
         fetchSetting: {
@@ -81,6 +85,10 @@
           listField: 'list',
           totalField: 'total',
         },
+        afterFetch: (T) => {
+          console.log('afterFetch', T);
+          return T;
+        },
         actionColumn: {
           width: 160,
           title: '操作',
@@ -180,6 +188,9 @@
             iconType: 'warning',
             title: '提示',
             content: '确定要解绑该子账号?',
+            onOk: async () => {
+              // await this.logout(true);
+            },
           });
           console.log('confirm', confirm);
         }