Browse Source

fix(bugs): 修改调试

tangning 3 years ago
parent
commit
b51cf28250
2 changed files with 12 additions and 8 deletions
  1. 3 3
      src/views/corporation/index.vue
  2. 9 5
      src/views/scenes/roomDeital.vue

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

@@ -184,7 +184,7 @@
           width: 190,
         },
         {
-          title: t('routes.corporation.cameraNum'),
+          title: '设备信息',
           dataIndex: 'cameraNum',
           slots: { customRender: 'cameraNum' },
           width: 80,
@@ -202,8 +202,8 @@
           width: 80,
         },
         {
-          title: '设备信息',
-          dataIndex: 'cameraNum',
+          title: '带看套餐',
+          dataIndex: 'liveRoomCapacities',
           slots: { customRender: 'setMeal' },
           width: 80,
         },

+ 9 - 5
src/views/scenes/roomDeital.vue

@@ -269,7 +269,6 @@
         isPropsData.isSetData = data.isSetData || false;
         modalTitle.value = data.isSetData ? '查看' : data.isUpdate ? '编辑' : '新增';
         // const  = ref('编辑');
-
         isPropsData.record = data.record || {};
         if (data.isUpdate) {
           //编辑
@@ -291,6 +290,9 @@
           if (data.record && data.record.brandId) {
             brandIdChange(data.record.brandId);
           }
+          if (data.record && data.record.anchorUserId) {
+            UserIdChange(data.record.anchorUserId);
+          }
         } else if (data.isSetData) {
           //查看
           let setSchemas = [];
@@ -386,10 +388,12 @@
         });
       }
       function UserIdChange(data) {
-        console.log('UserIdChange,', userinfo.value.id);
-        setFieldsValue({
-          assistantUserId: '',
-        });
+        console.log('UserIdChange,', data, userinfo.value.id, isPropsData.isUpdate);
+        if (!isPropsData.isUpdate) {
+          setFieldsValue({
+            assistantUserId: '',
+          });
+        }
         updateSchema({
           field: 'assistantUserId',
           componentProps: {