浏览代码

fix(bugs): 修改企业账户

tangning 3 年之前
父节点
当前提交
03fa9652ab
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/views/corporation/SubaccountModal.vue

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

@@ -154,18 +154,18 @@
             }
             return '';
           },
-          width: 200,
+          width: 160,
         },
         {
           title: t('common.mobile'),
           edit: true,
           editRule: true,
-          width: 200,
+          width: 160,
           dataIndex: 'userName',
         },
         {
           title: '角色',
-          width: 150,
+          width: 100,
           dataIndex: 'roleName',
         },
         {
@@ -303,13 +303,13 @@
       async function onDataReceive(data) {
         console.log('Data Received', data.record);
         // 方式1;
-        const { id, subNum } = data.record;
+        const { id, lookNum = 0, shotNum = 0 } = data.record;
         resetFields();
         setFieldsValue({
           ...data.record,
         });
         modelRef.id = id;
-        modelRef.subNum = subNum;
+        modelRef.subNum = lookNum + shotNum;
 
         searchInfo.id = id;
         await reloadSubtable();