feat: 拉取代码
This commit is contained in:
@@ -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 },
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user