fix: 去掉通知的权限
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m51s

This commit is contained in:
luo
2026-07-28 16:08:34 +08:00
parent 261f5f2853
commit b51a3f5537
6 changed files with 50 additions and 43 deletions

View File

@@ -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;
}

View File

@@ -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) => {