fix: 修改新增用户商品的配置项逻辑
Build and Deploy Vue3 / build (push) Successful in 4m9s
Build and Deploy Vue3 / deploy (push) Successful in 1m3s

This commit is contained in:
2026-04-06 18:44:11 +08:00
parent c07e09c151
commit f0e89695f4
36 changed files with 2078 additions and 190 deletions
+14 -14
View File
@@ -1113,7 +1113,7 @@ const viewMode = ref('tree')
// 查询参数
const queryParams = reactive({
page: 1,
count: 100,
count: 10,
tag: undefined,
level: undefined,
disable: undefined,
@@ -1328,7 +1328,7 @@ const loadProductsForGroup = async (groupId) => {
const res = await getProductList({
good_group_id: groupId,
page: 1,
count: 100,
count: 10,
delete: false
})
@@ -1410,7 +1410,7 @@ const toggleExpand = async (row) => {
const res = await getProductGroupList({
parent_id: group.id,
level: childLevel,
count: 100
count: 10
})
if (res.data.code === 200) {
const children = res.data.data.data || []
@@ -1540,7 +1540,7 @@ const selectedTagName = computed(() => {
const fetchTagOptionsForSelector = async () => {
tagSelectorLoading.value = true
try {
const params = { page: 1, count: 100 }
const params = { page: 1, count: 10 }
if (tagSelectorSearch.value) {
params.key = tagSelectorSearch.value
}
@@ -1571,7 +1571,7 @@ const fetchTagOptionsForSelector = async () => {
// 初始化获取所有标签
const fetchAllTagOptions = async () => {
try {
const res = await getProductGroupTagList({ page: 1, count: 100 })
const res = await getProductGroupTagList({ page: 1, count: 10 })
if (res.data.code === 200) {
const data = res.data.data
if (Array.isArray(data)) {
@@ -1920,10 +1920,10 @@ const handleEditProduct = (product, parentGroupId) => {
Object.assign(productForm, {
id: product.id,
name: product.name,
table: product.table,
tag: product.tag,
content: product.content,
name: product.name || '',
table: product.table || '',
tag: typeof product.tag === 'string' ? product.tag : '',
content: product.content || '',
cover_id: product.coverId,
good_group_id: groupId,
inventory_control: product.inventoryControl,
@@ -1945,10 +1945,10 @@ const submitProductForm = () => {
if (valid) {
try {
const submitData = {
name: productForm.name.trim(),
table: productForm.table.trim(),
tag: productForm.tag.trim(),
content: productForm.content.trim(),
name: (productForm.name || '').trim(),
table: (productForm.table || '').trim(),
tag: (typeof productForm.tag === 'string' ? productForm.tag : '').trim(),
content: (productForm.content || '').trim(),
cover_id: productForm.cover_id,
good_group_id: productForm.good_group_id,
inventory_control: productForm.inventory_control,
@@ -2153,7 +2153,7 @@ const submitForm = () => {
// ==================== 分组标签管理 ====================
const tagQueryParams = reactive({
page: 1,
count: 100,
count: 10,
key: ''
})