mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 05:32:00 +08:00
Compare commits
4 Commits
04d000b072
...
07ebd78cdd
Author | SHA1 | Date | |
---|---|---|---|
07ebd78cdd | |||
8fa93b6a53 | |||
017cef3048 | |||
309fd4f2fb |
@ -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()
|
||||
|
@ -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">
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user