Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
zhaoxuebing 3 weeks ago
parent
commit
82f7bf3e76
  1. 5
      src/api/wms/issueJobMain/index.ts
  2. 13
      src/views/wms/issueManage/issue/issueJobMain/index.vue

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

@ -107,4 +107,7 @@ export const executeIssueMain = async (data) => {
return await request.put({ url: `/wms/issue-job-main/execute`, data})
}
// 更新任务配置
export const updateIssueJobConfig = () => {
return request.put({ url: '/wms/issue-job-main/updateIssueJobConfig'})
}

13
src/views/wms/issueManage/issue/issueJobMain/index.vue

@ -126,6 +126,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:issue-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -143,6 +144,18 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
}else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
IssueJobMainApi.updateIssueJobConfig()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
} catch {
} finally {
loadDone()
}
} else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({

Loading…
Cancel
Save