frontend-vue 退役:删新版/旧版选项控件与删除品牌/巡店删除入口,用例族随实况收敛
- 删 ZiniaoVersionSetting.vue / ziniao-version.ts;9 个 Tab 摘 ziniao_version 载荷 - 删 BrandDeleteBrandTab.vue / BrandPatrolDeleteTab.vue 与 delete-brand 类型模块; 路由、工具目录(20→18)、端点表、progress-light 模块(12→10)、withdraw.ts 巡店段、 java-modules re-export 同步摘除 - 测试面:node --test 17 处红按实况收敛(端点冻结快照摘两组、适配器 16→14、窄集合台账 摘两页、六页→五页、reexport/快照随实况),modules-delete-brand.test.ts 整文件删 - vue-tsc+vite build 通过;node --test 837/837 绿
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
<p class="country-hint">发布国家会从同步国家中自动排除。</p>
|
||||
</div>
|
||||
|
||||
<ZiniaoVersionSetting v-model="ziniaoVersion" />
|
||||
|
||||
<div class="run-row">
|
||||
<button
|
||||
@@ -182,7 +181,6 @@ import FileUploadZone from '@/shared/components/FileUploadZone.vue'
|
||||
import ModuleTemplateDownload from '@/shared/components/ModuleTemplateDownload.vue'
|
||||
import TaskCenterPanel from '@/shared/components/tasks/TaskCenterPanel.vue'
|
||||
import type { TaskItemView, TaskStatCard } from '@/shared/components/tasks/types'
|
||||
import ZiniaoVersionSetting from '@/shared/components/ZiniaoVersionSetting.vue'
|
||||
import {
|
||||
activatePublishFile,
|
||||
activatePublishTask,
|
||||
@@ -211,7 +209,6 @@ import {
|
||||
guardBlocked,
|
||||
} from '@/shared/dispatch-guard'
|
||||
import { passGuard } from '@/shared/dispatch-guard-ui'
|
||||
import { useZiniaoVersion, type ZiniaoVersion } from '@/shared/utils/ziniao-version'
|
||||
import { runBatchDelete } from '@/shared/utils/batch-delete'
|
||||
|
||||
const COUNTRY_OPTIONS = [
|
||||
@@ -225,7 +222,6 @@ const COUNTRY_OPTIONS = [
|
||||
interface PublishDispatchOptions {
|
||||
publishCountry: string
|
||||
syncCountries: string[]
|
||||
ziniaoVersion: ZiniaoVersion
|
||||
}
|
||||
|
||||
interface PublishQueueBatch {
|
||||
@@ -263,7 +259,6 @@ const queueWorkerRunning = ref(false)
|
||||
const queueMessage = ref('')
|
||||
const publishCountry = ref<string>('DE')
|
||||
const syncCountries = ref<string[]>(['UK', 'FR', 'IT', 'ES'])
|
||||
const ziniaoVersion = useZiniaoVersion()
|
||||
const currentTaskId = ref<number | null>(null)
|
||||
const currentFiles = ref<PublishFileItem[]>([])
|
||||
const pendingFileIds = ref<number[]>([])
|
||||
@@ -541,7 +536,6 @@ async function submitRun() {
|
||||
const options: PublishDispatchOptions = {
|
||||
publishCountry: publishCountry.value,
|
||||
syncCountries: syncCountries.value.filter((country) => country !== publishCountry.value),
|
||||
ziniaoVersion: ziniaoVersion.value,
|
||||
}
|
||||
const files = parsed.files || []
|
||||
applyTaskSnapshot(parsed.taskId, {
|
||||
@@ -634,7 +628,6 @@ function setActiveBatch(batch: PublishQueueBatch, restoreForm = false) {
|
||||
if (restoreForm) {
|
||||
publishCountry.value = batch.options.publishCountry
|
||||
syncCountries.value = [...batch.options.syncCountries]
|
||||
ziniaoVersion.value = batch.options.ziniaoVersion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -737,7 +730,6 @@ function buildQueuePayload(taskId: number, file: PublishFileItem) {
|
||||
matched: isMatchedFile(file),
|
||||
matchStatus: file.matchStatus || '',
|
||||
matchMessage: file.matchMessage || '',
|
||||
ziniao_version: options.ziniaoVersion,
|
||||
publish_country: options.publishCountry,
|
||||
sync_countries: options.syncCountries,
|
||||
paginationUrl,
|
||||
|
||||
Reference in New Issue
Block a user