60 lines
1.3 KiB
TypeScript
60 lines
1.3 KiB
TypeScript
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;
|