fix: 修改新增用户商品的配置项逻辑
This commit is contained in:
@@ -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: ''
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user