feat: 拉取代码

This commit is contained in:
duan
2025-02-18 18:47:15 +08:00
parent c9a88abade
commit dea89010e9
26 changed files with 1429 additions and 162 deletions

View File

@@ -17,27 +17,22 @@ const searchConfig: ISearchConfig = {
},
},
{
type: "tree-select",
label: "设备类型",
prop: "deptId",
type: "select",
label: "状态",
prop: "status",
attrs: {
placeholder: "请选择设备类型",
data: [],
filterable: true,
"check-strictly": true,
"render-after-expand": false,
placeholder: "全部",
clearable: true,
style: {
width: "150px",
width: "100px",
},
},
async initFn(formItem) {
formItem.attrs.data = await DeptAPI.getOptions();
// 注意:如果initFn函数不是箭头函数,this会指向此配置项对象,那么也就可以用this来替代形参formItem
// this.attrs!.data = await DeptAPI.getOptions();
},
options: [
{ label: "启用", value: 1 },
{ label: "禁用", value: 0 },
],
},
],
};