This commit is contained in:
2023-07-25 20:03:06 +08:00
parent b3d67fb0e8
commit 3a424b4719
14 changed files with 39 additions and 21 deletions

View File

@@ -149,8 +149,8 @@ const crudRef = ref()
const crudOptions = reactive({
// 顶部每行显示列数
searchColNumber: 3,
// 开启分页
tablePagination: true,
// 开启table的分页但开启我们自己的分页器
tablePagination: false,
// 是否显示索引列
showIndex: false,
// 行选择器
@@ -222,7 +222,6 @@ const crudColumns = reactive([
title: "邮箱",
align: "center",
dataIndex: "email",
search: true,
width: 100,
commonRules: [{ type: "email", message: "请输入正确的邮箱" }]
},

View File

@@ -34,7 +34,7 @@ const crudOptions = ref({
edit: { show: true },
delete: { show: true },
searchColNumber: 3,
tablePagination: true,
tablePagination: false,
operationColumn: true,
scroll: { x: "100%", y: "100%" },
formOption: {

View File

@@ -32,7 +32,7 @@ const crudOptions = ref({
edit: { show: true, api: testDemandApi.editTestDemand },
delete: { show: true },
searchColNumber: 3,
tablePagination: true,
tablePagination: false,
operationColumn: true,
formOption: {
width: 1200

View File

@@ -29,7 +29,7 @@ const crudOptions = ref({
edit: { show: true, api: designDemandApi.editDesignDemand },
delete: { show: true },
searchColNumber: 3,
tablePagination: true,
tablePagination: false,
operationColumn: true,
operationColumnAlign:'center',
formOption: {
@@ -42,7 +42,6 @@ const crudColumns = ref([
align:'center',
width: 50,
dataIndex: "id",
search: true,
commonRules: [{ required: true, message: "标识是必填" }],
validateTrigger: "blur"
},

View File

@@ -62,7 +62,7 @@ const crudOptions = ref({
edit: { show: true },
delete: { show: true },
searchColNumber: 3,
tablePagination: true,
tablePagination: false,
operationColumn: true,
operationColumnAlign: "center",
formOption: {
@@ -83,7 +83,6 @@ const crudColumns = ref([
width: 50,
align: "center",
dataIndex: "id",
search: true,
commonRules: [{ required: true, message: "ID是必填" }],
validateTrigger: "blur"
},

View File

@@ -33,7 +33,7 @@ const crudOptions = ref({
edit: { show: true },
delete: { show: true },
searchColNumber: 3,
tablePagination: true,
tablePagination: false,
operationColumn: true,
formOption: {
width: 1200,

View File

@@ -27,7 +27,7 @@ const crudOptions = ref({
edit: { show: true,api: projectApi.update},
delete: { show: true ,api:projectApi.delete},
searchColNumber: 3,
tablePagination: true,
tablePagination: false,
operationColumn: true,
operationWidth: 500,
showIndex: false,
@@ -193,7 +193,7 @@ const crudColumns = ref([
search: true,
commonRules: [{ required: true, message: "责任人必选" }],
formType: "select",
dict: { url: "system/user/index", props: { label: "name", value: "name" }, translation: true }
dict: { url: "system/user/list", props: { label: "name", value: "name" }, translation: true }
},
{
title: "成员",
@@ -202,7 +202,7 @@ const crudColumns = ref([
search: true,
formType: "select",
multiple: true,
dict: { url: "system/user/index", props: { label: "name", value: "name" }, translation: true },
dict: { url: "system/user/list", props: { label: "name", value: "name" }, translation: true },
commonRules: [{ required: true, message: "成员至少选择一个" }]
},
{