This commit is contained in:
@@ -54,7 +54,24 @@
|
||||
>
|
||||
<span class="package-option">{{ pkg.package_name }}</span>
|
||||
</ElOption>
|
||||
<template #empty>
|
||||
<div class="package-empty">
|
||||
{{
|
||||
packageLoading
|
||||
? '正在加载套餐...'
|
||||
: form.series_id
|
||||
? '该套餐系列下暂无可用套餐'
|
||||
: '请先选择套餐系列'
|
||||
}}
|
||||
</div>
|
||||
</template>
|
||||
</ElSelect>
|
||||
<div
|
||||
v-if="form.series_id && !packageLoading && packageOptions.length === 0"
|
||||
class="package-empty-tip"
|
||||
>
|
||||
该套餐系列下暂无可用套餐
|
||||
</div>
|
||||
</ElFormItem>
|
||||
|
||||
<ElFormItem label="支付方式" prop="payment_method">
|
||||
@@ -547,6 +564,19 @@
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.package-empty {
|
||||
padding: 8px 0;
|
||||
color: var(--el-color-danger);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.package-empty-tip {
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.create-form {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</ElSelect>
|
||||
</ElFormItem>
|
||||
|
||||
<ElFormItem v-if="requiresTargetId" label="目标 ID" prop="target_id">
|
||||
<ElFormItem v-if="requiresTargetId" :label="targetLabel" prop="target_id">
|
||||
<ElSelect
|
||||
v-model="form.target_id"
|
||||
filterable
|
||||
@@ -284,6 +284,9 @@
|
||||
const targetPlaceholder = computed(() =>
|
||||
form.operation_type === 'assign_shop' ? '请选择启用的目标店铺' : '请选择启用的套餐系列'
|
||||
)
|
||||
const targetLabel = computed(() =>
|
||||
form.operation_type === 'assign_shop' ? '选择店铺' : '选择套餐系列'
|
||||
)
|
||||
const createDrawerBusy = computed(() => submitting.value || fileUploading.value)
|
||||
|
||||
const getOperationLabel = (operationType: DeviceImportTaskOperationType) => {
|
||||
|
||||
Reference in New Issue
Block a user