Compare commits

...

4 Commits

3 changed files with 3 additions and 4 deletions

View File

@ -482,7 +482,6 @@ func UpdatePriceStatus(c *gin.Context) {
updateMap["temp_input_image_tokens"] = nil
updateMap["temp_output_image_tokens"] = nil
updateMap["temp_price_source"] = nil
updateMap["updated_by"] = nil
if err := tx.Model(&price).Updates(updateMap).Error; err != nil {
tx.Rollback()
@ -744,7 +743,6 @@ func ApproveAllPrices(c *gin.Context) {
updateMap["temp_input_image_tokens"] = nil
updateMap["temp_output_image_tokens"] = nil
updateMap["temp_price_source"] = nil
updateMap["updated_by"] = nil
if err := tx.Model(&price).Updates(updateMap).Error; err != nil {
tx.Rollback()

View File

@ -10,6 +10,7 @@
<el-button @click="$router.push('/prices')" :type="$route.path === '/prices' ? 'primary' : ''">价格列表</el-button>
<el-button @click="$router.push('/providers')" :type="$route.path === '/providers' ? 'primary' : ''">模型厂商</el-button>
<el-button @click="$router.push('/model-types')" :type="$route.path === '/model-types' ? 'primary' : ''">模型类别</el-button>
<el-button @click="() => window.open('https://www.sunai.net/t/topic/937', '_blank')">论坛反馈</el-button>
</div>
</div>
<div class="auth-buttons">

View File

@ -222,7 +222,7 @@
<div class="price-card-footer">
<div class="meta-info">
<span class="created-by"><el-icon><User /></el-icon> {{ price.created_by }}</span>
<span class="updated-by"><el-icon><User /></el-icon> {{ price.updated_by || price.created_by }}</span>
<span class="updated-at"><el-icon><Timer /></el-icon> {{ new Date(price.updated_at).toLocaleString() }}</span>
<div v-if="price.price_source" class="price-source">
<span class="source-label"><el-icon><InfoFilled /></el-icon></span>
@ -2075,7 +2075,7 @@ onMounted(() => {
font-size: 0.8rem; /* 减小图标 */
}
.created-by {
.updated-by {
font-weight: normal; /* 使用正常字重 */
display: flex;
align-items: center;