This commit is contained in:
2026-10-08 18:19:39 +08:00
parent 25b8d0104f
commit 75527ae81d
425 changed files with 53925 additions and 2645 deletions
+59
View File
@@ -188,6 +188,65 @@
// children: "children"
// },
// },
{
key: "ad", title: "广告位", type: "array<object>", itemWidth: 260,
showAdd: true,
showClear: true,
// 新增一行时,该行的默认值
defaultValue: {
pos: null
},
rightBtns: ['delete'],
// 每行每个字段对应的渲染规则
columns: [
{
key: "adKey",
title: "广告位",
type: "select",
placeholder: "请选择广告位",
data: [
{value: 27, label: "特产商城广告位1"},
{value: 28, label: "特产商城广告位2"},
{value: 29, label: "特产商城广告位3"},
{value: 30, label: "特产商城广告位4"},
{value: 31, label: "特产商城广告位5"},
]
},
{
key: "swiper", title: "图片", type: "image", limit: 1,
rules: [
{required: true, message: "请上传轮播图", trigger: ["change", "blur"]},
]
},
{
key: "companyId",
title: "指定公司",
type: "remote-select",
showAll: true,
placeholder: "请选择指定公司",
action: "admin/system/user/sys/getList",
actionData: {
pageIndex: 1,
pageSize: 500,
type: 2
},
props: {
list: "rows",
value: "_id",
label: "name",
},
dataPreprocess: (list) => {
list = list.filter(item => (item.company && item.company.companyName && item.company.companyName !== ''))
list.map((item, index) => {
item.name = `${item.company.companyName}(${item.mobile})`
return item
});
return list;
}
},
]
},
{
key: "remark",
title: "备注",