订单列表页面接入,修改crud搜索支持radio-button类型

This commit is contained in:
2025-02-14 15:44:42 +08:00
parent 3cd59b4cd7
commit 9dc8e6b866
15 changed files with 856 additions and 8 deletions

View File

@@ -0,0 +1,59 @@
import OrderApi from "@/api/system/order";
import type { editRequest } from "@/api/system/version";
import type { IContentConfig } from "@/components/CURD/types";
const contentConfig: IContentConfig = {
pageName: "sys:user",
table: {
border: true,
highlightCurrentRow: true,
},
pagination: {
background: true,
layout: "prev,pager,next,jumper,total,sizes",
pageSize: 20,
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
return OrderApi.getList(params);
},
// deleteAction: OrderApi.delete,
// modifyAction: function (data) {
// // return OrderApi.edit(data);
// },
pk: "id",
toolbar: ["add"],
defaultToolbar: ["refresh", "filter", "search"],
cols: [
{ type: "selection", width: 50, align: "center" },
// { label: "id", align: "center", prop: "id", width: 100, show: true },
{
label: "订单号信息",
align: "center",
prop: "orderNo",
width: 120,
},
{
label: "操作",
align: "center",
fixed: "right",
width: 280,
templet: "tool",
operat: [
{
icon: "Document",
name: "detail",
text: "详情",
},
{
icon: "Printer",
name: "printer",
text: "开票",
},
],
},
],
};
export default contentConfig;