feat(GoodMusic): 替换模拟API为真实语音转文本API调用
refactor(DetailedDataTable): 简化选中人员判断逻辑 feat(RankingList): 将排行榜数据获取逻辑移至组件内部 refactor(topone): 移除冗余代码并优化排行榜数据流 chore: 删除不再使用的DataTable组件
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(person, index) in displayTableData" :key="index" @click="$emit('update:selectedPerson', person)" @dblclick="handlePersonDoubleClick(person)" :class="{ selected: selectedPerson && (selectedPerson.sale_name === person.sale_name || selectedPerson.leader_name === person.leader_name) }">
|
||||
<tr v-for="(person, index) in displayTableData" :key="index" @click="$emit('update:selectedPerson', person)" @dblclick="handlePersonDoubleClick(person)" :class="{ selected: selectedPerson === person }">
|
||||
<td>
|
||||
<div class="person-info">
|
||||
<div class="person-avatar">{{ (person.sale_name || person.leader_name).charAt(0) }}</div>
|
||||
@@ -202,7 +202,6 @@ const handlePersonDoubleClick = (person) => {
|
||||
default:
|
||||
targetPath = '/second-top';
|
||||
}
|
||||
|
||||
// 路由跳转
|
||||
router.push({
|
||||
path: targetPath,
|
||||
@@ -212,8 +211,6 @@ const handlePersonDoubleClick = (person) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 移除formatDuration函数,不再需要
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user