提交 4fea8443 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 01f82f6e
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"echarts-wordcloud": "^2.1.0", "echarts-wordcloud": "^2.1.0",
"element-plus": "^2.11.8", "element-plus": "^2.11.9",
"eventsource-parser": "^3.0.2", "eventsource-parser": "^3.0.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"file-type": "^21.1.0", "file-type": "^21.1.0",
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
"pinia": "^2.2.6", "pinia": "^2.2.6",
"scroll-into-view-if-needed": "^3.1.0", "scroll-into-view-if-needed": "^3.1.0",
"uuid": "^11.1.0", "uuid": "^11.1.0",
"vue": "^3.5.16", "vue": "^3.5.25",
"vue-echarts": "^6.6.9", "vue-echarts": "^6.6.9",
"vue-markdown-render": "^2.2.1", "vue-markdown-render": "^2.2.1",
"vue-router": "^4.5.1", "vue-router": "^4.5.1",
......
...@@ -227,7 +227,7 @@ function batchSetReferencePrice() { ...@@ -227,7 +227,7 @@ function batchSetReferencePrice() {
<div class="spec-item-header"> <div class="spec-item-header">
<el-input <el-input
v-model="spec.name" v-model="spec.name"
placeholder="请输入规格名称(如:颜色、尺寸)" placeholder="请输入规格名称(如:重量、颜色、尺寸)"
style="flex: 1" style="flex: 1"
@blur="generateSkuList"> @blur="generateSkuList">
</el-input> </el-input>
...@@ -294,7 +294,7 @@ function batchSetReferencePrice() { ...@@ -294,7 +294,7 @@ function batchSetReferencePrice() {
<div class="batch-set-container" v-if="form.info.sku && form.info.sku.length > 0" v-show="false"> <div class="batch-set-container" v-if="form.info.sku && form.info.sku.length > 0" v-show="false">
<div class="batch-set-item"> <div class="batch-set-item">
<el-input v-model="batchPrice" placeholder="批量设置价格" type="number" style="width: 200px"> <el-input v-model="batchPrice" placeholder="批量设置价格" type="number" style="width: 200px">
<template #prefix>¥</template> <template #suffix>¥</template>
</el-input> </el-input>
<el-button type="primary" plain @click="batchSetPrice" style="margin-left: 8px"> 批量设置价格 </el-button> <el-button type="primary" plain @click="batchSetPrice" style="margin-left: 8px"> 批量设置价格 </el-button>
</div> </div>
...@@ -306,7 +306,7 @@ function batchSetReferencePrice() { ...@@ -306,7 +306,7 @@ function batchSetReferencePrice() {
</div> </div>
<div class="batch-set-item"> <div class="batch-set-item">
<el-input v-model="batchReferencePrice" placeholder="批量设置参考价" type="number" style="width: 200px"> <el-input v-model="batchReferencePrice" placeholder="批量设置参考价" type="number" style="width: 200px">
<template #prefix>¥</template> <template #suffix>¥</template>
</el-input> </el-input>
<el-button type="primary" plain @click="batchSetReferencePrice" style="margin-left: 8px"> <el-button type="primary" plain @click="batchSetReferencePrice" style="margin-left: 8px">
批量设置参考价 批量设置参考价
...@@ -322,14 +322,14 @@ function batchSetReferencePrice() { ...@@ -322,14 +322,14 @@ function batchSetReferencePrice() {
<el-table-column prop="price" label="价格" align="center"> <el-table-column prop="price" label="价格" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-input v-model="row.price" placeholder="请输入价格" type="number"> <el-input v-model="row.price" placeholder="请输入价格" type="number">
<template #prefix>¥</template> <template #suffix>¥</template>
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="reference_price" label="参考价" align="center"> <el-table-column prop="reference_price" label="参考价" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-input v-model="row.reference_price" placeholder="请输入参考价" type="number"> <el-input v-model="row.reference_price" placeholder="请输入参考价" type="number">
<template #prefix>¥</template> <template #suffix>¥</template>
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -105,7 +105,7 @@ useIntervalFn(() => { ...@@ -105,7 +105,7 @@ useIntervalFn(() => {
</template> </template>
<template #table-x="{ row }"> <template #table-x="{ row }">
<el-button text type="primary" v-if="row.check_status != '1'"> <el-button text type="primary" v-if="row.check_status != '1'">
<router-link :to="{ path: '/live/score/view', query: { ...$route.query, id: row.id } }">评分</router-link> <router-link :to="{ path: 'score/view', query: { ...$route.query, id: row.id } }">评分</router-link>
</el-button> </el-button>
<el-button text type="primary" @click="() => handleResetScoreStatus(row.id)" v-if="userStore.isAdmin" <el-button text type="primary" @click="() => handleResetScoreStatus(row.id)" v-if="userStore.isAdmin"
>重置</el-button >重置</el-button
......
...@@ -6,6 +6,8 @@ import { generatePrompt } from '../prompt' ...@@ -6,6 +6,8 @@ import { generatePrompt } from '../prompt'
import { generatePrompt as generatePrompt2 } from '../prompt2' import { generatePrompt as generatePrompt2 } from '../prompt2'
import { cloneDeep } from 'lodash-es' import { cloneDeep } from 'lodash-es'
import { useUserStore } from '@/stores/user' import { useUserStore } from '@/stores/user'
const router = useRouter()
const userStore = useUserStore() const userStore = useUserStore()
const CompetitionLive = defineAsyncComponent(() => import('../components/CompetitionLive.vue')) const CompetitionLive = defineAsyncComponent(() => import('../components/CompetitionLive.vue'))
...@@ -113,6 +115,7 @@ const commitScore = (status = 1, isAI = false) => { ...@@ -113,6 +115,7 @@ const commitScore = (status = 1, isAI = false) => {
const handlePublishScore = async () => { const handlePublishScore = async () => {
await commitScore(2) await commitScore(2)
ElMessage.success('提交成绩成功') ElMessage.success('提交成绩成功')
router.push('../score')
} }
onMounted(() => { onMounted(() => {
......
...@@ -242,6 +242,8 @@ export const shippingTemplate = [ ...@@ -242,6 +242,8 @@ export const shippingTemplate = [
{ label: '指定地区禁止下单', value: '9' }, { label: '指定地区禁止下单', value: '9' },
{ label: '全国包邮模板', value: '10' }, { label: '全国包邮模板', value: '10' },
{ label: '自选快递运费模板', value: '11' }, { label: '自选快递运费模板', value: '11' },
{ label: '满99元包邮', value: '12' },
{ label: '全国包邮(偏远地区除外)', value: '13' },
] ]
// 售后政策 // 售后政策
...@@ -254,4 +256,5 @@ export const afterSalesPolicy = [ ...@@ -254,4 +256,5 @@ export const afterSalesPolicy = [
{ label: '无忧退换货', value: '6' }, { label: '无忧退换货', value: '6' },
{ label: '闪电退货', value: '7' }, { label: '闪电退货', value: '7' },
{ label: '售后补寄', value: '8' }, { label: '售后补寄', value: '8' },
{ label: '坏果包赔', value: '9' },
] ]
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论