feat: 修改商品分类排序功能
This commit is contained in:
@@ -45,6 +45,15 @@ const modalConfig: IModalConfig<UserForm> = {
|
||||
},
|
||||
initialValue: 1,
|
||||
},
|
||||
{
|
||||
label: "排序",
|
||||
prop: "sort",
|
||||
type: "input-number",
|
||||
attrs: {
|
||||
placeholder: "请输入排序",
|
||||
},
|
||||
initialValue: 1,
|
||||
}
|
||||
],
|
||||
};
|
||||
export interface UserForm { }
|
||||
|
||||
@@ -15,7 +15,7 @@ const modalConfig: IModalConfig<UserForm> = {
|
||||
|
||||
pk: "id",
|
||||
formAction: function (data) {
|
||||
return UserAPI.update({ ...data, sort: '1' });
|
||||
return UserAPI.update({ ...data });
|
||||
},
|
||||
beforeSubmit(data) {
|
||||
console.log("提交之前处理", data);
|
||||
@@ -49,6 +49,15 @@ const modalConfig: IModalConfig<UserForm> = {
|
||||
},
|
||||
initialValue: 1,
|
||||
},
|
||||
{
|
||||
label: "排序",
|
||||
prop: "sort",
|
||||
type: "input-number",
|
||||
attrs: {
|
||||
placeholder: "请输入排序",
|
||||
},
|
||||
initialValue: 1,
|
||||
}
|
||||
],
|
||||
};
|
||||
/** 用户表单类型 */
|
||||
|
||||
Reference in New Issue
Block a user