Explorar el Código

fix:代码优化

cmy hace 1 semana
padre
commit
dc94facbc8
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/views/marketing/apps/components/statistical.vue

+ 4 - 2
src/views/marketing/apps/components/statistical.vue

@@ -34,8 +34,9 @@
                     <!-- <el-table-column :label="t('marketingApps.ip')" prop="ip" show-overflow-tooltip></el-table-column> -->
                     <el-table-column :label="t('marketingApps.fingerprint')" prop="fingerprint" show-overflow-tooltip></el-table-column>
                     <el-table-column :label="t('marketingApps.device')" prop="device" show-overflow-tooltip>
-                      <template>
-                        {{ row.osType + " " + row.osVersion }}
+                      <template #default="{ row }">
+                        系统类型:{{ row.osType == 'Unknown' ? '--' : row.osType }} <br>
+                        系统版本:{{ row.osVersion == 'Unknown' ? '--' : row.osVersion }}
                       </template>
                     </el-table-column>
                     <el-table-column :label="t('marketingApps.firstAccessTime')" prop="firstTime" show-overflow-tooltip></el-table-column>
@@ -131,6 +132,7 @@ const openDialog = async (_row: any) => {
   await getTimeRangeList();
   visible.value = true;
   state.queryForm.appId = _row.appId;
+  expandedRowKeys.value = [];
   getDataList();
 };