refactor(phase-6): 拆分交付工作区与任务中心,五支队列 Tab 收敛到共享匹配表
- DeliveryVideoWorkspace 2690→2176 行,弹窗与结果面板下沉为 4 个子组件,类型抽到共享模块 - TaskCenterBoardPage 1017→834 行,任务表/变体表下沉,失败条与轮询入口留在页面 - 巡店删除/取款/查 ASIN/跟价/商品风险五支 Tab 共用 BrandShopMatchTable,纯逻辑收敛到 brand-shop-match-shared - admin manualChunks 增加 element-plus 分组(915KB 独立 chunk) - 源码钉按新落点更新:分页与表格断言读子组件,页面接线断言保留
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<script setup lang="ts">
|
||||
import type { SecretForm, SecretStatus } from '@/pages/image-video/delivery-video-workspace-types'
|
||||
|
||||
const visible = defineModel<boolean>('visible', { required: true })
|
||||
|
||||
defineProps<{
|
||||
status: SecretStatus | null
|
||||
statusText: string
|
||||
expireText: string
|
||||
saving: boolean
|
||||
form: SecretForm
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
save: []
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-dialog v-model="visible" title="视频密钥设置" width="560px" class="image-video-secret-dialog"
|
||||
append-to-body destroy-on-close>
|
||||
<div class="secret-status" :class="{ 'secret-status--valid': status?.valid }">
|
||||
<span>{{ statusText }}</span>
|
||||
<span v-if="expireText">{{ expireText }}</span>
|
||||
</div>
|
||||
|
||||
<el-form label-position="top" class="secret-form">
|
||||
<el-form-item label="爬虫密钥">
|
||||
<el-input v-model="form.copyApiKey" type="password" show-password placeholder="不填写则保留当前有效值" />
|
||||
<div v-if="status?.copyApiKeyMasked" class="secret-form__hint">当前:{{ status.copyApiKeyMasked }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="T8密钥(海外)">
|
||||
<el-input v-model="form.t8Key" type="password" show-password placeholder="不填写则保留当前有效值" />
|
||||
<div v-if="status?.t8KeyMasked" class="secret-form__hint">当前:{{ status.t8KeyMasked }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="T8密钥(国内)">
|
||||
<el-input v-model="form.t8VideoKey" type="password" show-password placeholder="不填写则保留当前有效值" />
|
||||
<div v-if="status?.t8VideoKeyMasked" class="secret-form__hint">当前:{{ status.t8VideoKeyMasked }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="音频密钥">
|
||||
<el-input v-model="form.voiceApiKey" type="password" show-password placeholder="不填写则保留当前有效值" />
|
||||
<div v-if="status?.voiceApiKeyMasked" class="secret-form__hint">当前:{{ status.voiceApiKeyMasked }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="音频团队ID">
|
||||
<el-input v-model="form.voiceGroupId" type="password" show-password placeholder="不填写则保留当前有效值" />
|
||||
<div v-if="status?.voiceGroupIdMasked" class="secret-form__hint">当前:{{ status.voiceGroupIdMasked }}</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="有效期">
|
||||
<el-select v-model="form.expireDays" class="delivery-select">
|
||||
<el-option label="1 天" :value="1" />
|
||||
<el-option label="7 天" :value="7" />
|
||||
<el-option label="30 天" :value="30" />
|
||||
<el-option label="永久" :value="0" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<template #footer>
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="saving" @click="emit('save')">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.secret-status {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #4a3620;
|
||||
border-radius: 8px;
|
||||
background: rgba(181, 140, 81, 0.12);
|
||||
color: #f4d392;
|
||||
font-size: 13px;
|
||||
}
|
||||
.secret-status--valid {
|
||||
border-color: rgba(74, 170, 118, 0.45);
|
||||
background: rgba(74, 170, 118, 0.12);
|
||||
color: #b8f0cf;
|
||||
}
|
||||
.secret-form {
|
||||
max-height: 56vh;
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
}
|
||||
.secret-form__hint {
|
||||
margin-top: 6px;
|
||||
color: #a8a8a8;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user