diff --git a/frontend/src/views/Prices.vue b/frontend/src/views/Prices.vue
index bef6aa6..2aa6638 100644
--- a/frontend/src/views/Prices.vue
+++ b/frontend/src/views/Prices.vue
@@ -101,7 +101,10 @@
- {{ price.model }}
+
+ {{ price.model }}
+
+
待审核: {{ price.temp_model }}
@@ -645,6 +648,22 @@ const billingTypeMap = {
const getStatus = (status) => statusMap[status] || status
const getBillingType = (type) => billingTypeMap[type] || type
+// 复制模型名称到剪贴板
+const copyModelName = (modelName) => {
+ navigator.clipboard.writeText(modelName)
+ .then(() => {
+ ElMessage({
+ message: `已复制模型名称: ${modelName}`,
+ type: 'success',
+ duration: 2000
+ })
+ })
+ .catch(err => {
+ console.error('复制失败:', err)
+ ElMessage.error('复制失败')
+ })
+}
+
// 添加getModelType函数
const getModelType = (type) => {
if (!type) return ''
@@ -1828,6 +1847,33 @@ onMounted(() => {
line-height: 1.2;
}
+.copyable-model-name {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ cursor: pointer;
+ position: relative;
+ padding-right: 24px;
+ transition: color 0.2s ease;
+}
+
+.copyable-model-name:hover {
+ color: #409EFF;
+}
+
+.copy-icon {
+ font-size: 14px;
+ opacity: 0.6;
+ position: absolute;
+ right: 0;
+ transition: all 0.2s ease;
+}
+
+.copyable-model-name:hover .copy-icon {
+ opacity: 1;
+ color: #409EFF;
+}
+
.model-meta {
display: flex;
gap: 0.5rem;