diff --git a/src/views/eam/item/countRecord/countRecord.data.ts b/src/views/eam/item/countRecord/countRecord.data.ts index c6d5c31..5feb17a 100644 --- a/src/views/eam/item/countRecord/countRecord.data.ts +++ b/src/views/eam/item/countRecord/countRecord.data.ts @@ -74,6 +74,9 @@ export const CountRecordMain = useCrudSchemas(reactive([ } }, isForm: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, { label: '操作', diff --git a/src/views/eam/item/transaction/index.vue b/src/views/eam/item/transaction/index.vue index 27e45cc..ca18167 100644 --- a/src/views/eam/item/transaction/index.vue +++ b/src/views/eam/item/transaction/index.vue @@ -97,7 +97,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'item:transaction:create'}), // 新增 + // defaultButtons.defaultAddBtn({hasPermi:'item:transaction:create'}), // 新增 defaultButtons.defaultImportBtn({hasPermi:'item:transaction:import'}), // 导入 defaultButtons.defaultExportBtn({hasPermi:'item:transaction:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 @@ -131,8 +131,8 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'item:transaction:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'item:transaction:delete'}), // 删除 + // defaultButtons.mainListEditBtn({hasPermi:'item:transaction:update'}), // 编辑 + // defaultButtons.mainListDeleteBtn({hasPermi:'item:transaction:delete'}), // 删除 ] // 列表-操作按钮事件 @@ -151,8 +151,9 @@ const openForm = (type: string, row?: any) => { } // form表单提交 -const formsSuccess = async (formType,data) => { - var isHave =Transaction.allSchemas.formSchema.some(function (item) { +const formsSuccess = async (formType, data) => { + try { + var isHave =Transaction.allSchemas.formSchema.some(function (item) { return item.field === 'activeTime' || item.field === 'expireTime'; }); if(isHave){ @@ -172,6 +173,10 @@ const formsSuccess = async (formType,data) => { } basicFormRef.value.dialogVisible = false getList() + } finally { + basicFormRef.value.formLoading = false + } + } /** 详情操作 */ diff --git a/src/views/eam/item/transaction/transaction.data.ts b/src/views/eam/item/transaction/transaction.data.ts index 0f456d1..fe59584 100644 --- a/src/views/eam/item/transaction/transaction.data.ts +++ b/src/views/eam/item/transaction/transaction.data.ts @@ -83,13 +83,13 @@ export const Transaction = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } - } + // { + // label: '操作', + // field: 'action', + // isForm: false, + // table: { + // width: 150, + // fixed: 'right' + // } + // } ]))