|
|
@ -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,7 +151,8 @@ const openForm = (type: string, row?: any) => { |
|
|
|
} |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType,data) => { |
|
|
|
const formsSuccess = async (formType, data) => { |
|
|
|
try { |
|
|
|
var isHave =Transaction.allSchemas.formSchema.some(function (item) { |
|
|
|
return item.field === 'activeTime' || item.field === 'expireTime'; |
|
|
|
}); |
|
|
@ -172,6 +173,10 @@ const formsSuccess = async (formType,data) => { |
|
|
|
} |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
getList() |
|
|
|
} finally { |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|