From bec839bcd25b3b5cb5d126724f07b116b55a7986 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Tue, 19 Dec 2023 15:46:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/detection/unqualified/index.vue | 37 +---------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/src/views/detection/unqualified/index.vue b/src/views/detection/unqualified/index.vue index c5533fa..618b5db 100644 --- a/src/views/detection/unqualified/index.vue +++ b/src/views/detection/unqualified/index.vue @@ -65,16 +65,6 @@ const updataTableColumns = (val) => { tableColumns.value = val } -// 查询列表页面参数设置 -const searchTableParams = ref([ -//{ -// formField: 'productItemCode', -// searchTableTitle: '物料信息', -// searchTableAllSchemas: Itembasic.allSchemas, -// searchTablePage: ItembasicApi.getItembasicPage -//} -]) - const { tableObject, tableMethods } = useTable({ getListApi: UnqualifiedApi.getRecordsDetailsPage // 分页接口 }) @@ -100,13 +90,7 @@ const HeadButttondata = [ const tableid=ref(); // 头部按钮事件 const buttonBaseClick = (val, item) => { - if (val == 'add') { // 新增 - openForm('create') - } else if (val == 'import') { // 导入 - handleImport() - } else if (val == 'export') { // 导出 - handleExport() - } else if (val == 'refresh') { // 刷新 + if (val == 'refresh') { // 刷新 getList() } else if (val == 'filtrate') { // 筛选 } else if(val == 'batch'){//批量删除 @@ -134,30 +118,12 @@ const butttondata = [ // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { - console.log("row",row) if (val == 'edit') { // 编辑 - openForm('update', row) } else if (val == 'delete') { // 删除 handleDelete(row.id) } } -/** 添加/修改操作 */ -const basicFormRef = ref() -const openForm = (type: string, row?: any) => { - basicFormRef.value.open(type, row) -} - -// 查询页面返回 -const searchTableSuccess = (formField, searchField, val, formRef) => { - nextTick(() => { - const setV = {} - setV[formField] = val[0][searchField] - formRef.setValues(setV) - }) -} - - /** 删除按钮操作 */ const handleDelete = async (id: number) => { try { @@ -197,7 +163,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { getList(); - //importTemplateData.templateUrl = await RecordsApi.importTemplate() })