Browse Source

重新执行

hella_online_20250313
王宇飞 4 weeks ago
parent
commit
e99b596cd5
  1. 5
      src/api/wms/interfaceInfo/index.ts
  2. 26
      src/views/wms/agvManage/interfaceInfo/index.vue

5
src/api/wms/interfaceInfo/index.ts

@ -54,4 +54,9 @@ export const exportInterfaceInfo = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/interface-info/get-import-template' })
}
// 修改接口调用信息
export const replayInterfaceInfo = async () => {
return await request.put({ url: `/wms/interface-info/replay` })
}

26
src/views/wms/agvManage/interfaceInfo/index.vue

@ -1,7 +1,15 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="InterfaceInfo.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
<Search :schema="InterfaceInfo.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams">
<template #actionMore>
<el-button type="primary" class="updateBtn" @click="replayInterfaceClick">
<Icon class="mr-5px" icon="ep:" />
重新执行
<Icon class="ml-5px" icon="ep:" />
</el-button>
</template>
</Search>
</ContentWrap>
<!-- 列表头部 -->
@ -162,7 +170,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -272,6 +286,14 @@ const searchFormClick = (searchData) => {
getList() //
}
const replayInterfaceClick = async ()=>{
await InterfaceInfoApi.replayInterfaceInfo()
message.success('执行成功')
buttonBaseClick('refresh',null)
}
/** 初始化 **/
onMounted(async () => {
getList()

Loading…
Cancel
Save