feat: 完善任务包和查重任务创建逻辑

pull/1/head
lizijiee 1 year ago
parent e54b709692
commit 3d146eb543

8
components.d.ts vendored

@ -17,18 +17,14 @@ declare module 'vue' {
NCollapse: typeof import('naive-ui')['NCollapse'] NCollapse: typeof import('naive-ui')['NCollapse']
NCollapseItem: typeof import('naive-ui')['NCollapseItem'] NCollapseItem: typeof import('naive-ui')['NCollapseItem']
NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDataTable: typeof import('naive-ui')['NDataTable']
NDatePicker: typeof import('naive-ui')['NDatePicker'] NDatePicker: typeof import('naive-ui')['NDatePicker']
NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider']
NDivider: typeof import('naive-ui')['NDivider'] NDivider: typeof import('naive-ui')['NDivider']
NDropdown: typeof import('naive-ui')['NDropdown'] NDropdown: typeof import('naive-ui')['NDropdown']
NEmpty: typeof import('naive-ui')['NEmpty']
NForm: typeof import('naive-ui')['NForm'] NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem'] NFormItem: typeof import('naive-ui')['NFormItem']
NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid'] NGrid: typeof import('naive-ui')['NGrid']
NGridItem: typeof import('naive-ui')['NGridItem'] NGridItem: typeof import('naive-ui')['NGridItem']
NIcon: typeof import('naive-ui')['NIcon']
NImage: typeof import('naive-ui')['NImage'] NImage: typeof import('naive-ui')['NImage']
NInput: typeof import('naive-ui')['NInput'] NInput: typeof import('naive-ui')['NInput']
NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NMessageProvider: typeof import('naive-ui')['NMessageProvider']
@ -43,11 +39,7 @@ declare module 'vue' {
NSpace: typeof import('naive-ui')['NSpace'] NSpace: typeof import('naive-ui')['NSpace']
NSpin: typeof import('naive-ui')['NSpin'] NSpin: typeof import('naive-ui')['NSpin']
NSwitch: typeof import('naive-ui')['NSwitch'] NSwitch: typeof import('naive-ui')['NSwitch']
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag'] NTag: typeof import('naive-ui')['NTag']
NTimeline: typeof import('naive-ui')['NTimeline']
NTimelineItem: typeof import('naive-ui')['NTimelineItem']
NTooltip: typeof import('naive-ui')['NTooltip'] NTooltip: typeof import('naive-ui')['NTooltip']
NUpload: typeof import('naive-ui')['NUpload'] NUpload: typeof import('naive-ui')['NUpload']
NUploadDragger: typeof import('naive-ui')['NUploadDragger'] NUploadDragger: typeof import('naive-ui')['NUploadDragger']

@ -213,12 +213,14 @@ async function oneCheck() {
reset() reset()
loadMore() loadMore()
} else if (checkTaskStatus.value === 1) { } else if (checkTaskStatus.value === 1) {
message.success("请等待,查重任务正在创建中...");
return return
} }
} }
}) })
return return
} }
message.success("请等待,查重任务正在创建中...");
oneClickCheckTaskPackage(asideVal).then((res) => { oneClickCheckTaskPackage(asideVal).then((res) => {
if (res.code === "OK") { if (res.code === "OK") {
checkDuplicateNo.value = res.data.checkDuplicateNo checkDuplicateNo.value = res.data.checkDuplicateNo
@ -234,32 +236,23 @@ async function showLoginSuccessModal() {
} }
async function commitHandler(settingParam) { async function commitHandler(settingParam) {
// comparehistory: false
// mark: false //
// packagename: "22222"
const params = { const params = {
name: settingParam.packagename, name: settingParam.packagename,
checkDuplicateNo: checkDuplicateNo.value, checkDuplicateNo: checkDuplicateNo.value
// mark: settingParam.mark
} }
const modal = generateModalRef.value as any
modal.showModal()
createPackage(params).then((res) => { createPackage(params).then((res) => {
if (res.code === "OK") { if (res.code === "OK") {
message.success(res.data); message.success(res.data);
modal.closeModal()
} }
}) })
// const asideVal = configStore.getAsideValue const asideVal = configStore.getAsideValue
// const finalParam = { ...contentParams, ...asideVal } const finalParam = { ...asideVal }
// finalParam.buessinessno = settingParam.packagename finalParam.buessinessno = settingParam.packagename
// finalParam.search_history = settingParam.comparehistory ? 1 : 0 finalParam.search_history = settingParam.comparehistory ? 1 : 0
// const modal = generateModalRef.value as any
// modal.showModal()
// oneClickCheck(finalParam).then(() => {
// modal.closeModal()
// }, () => {
// modal.closeModal()
// })
} }
onMounted(() => { onMounted(() => {

Loading…
Cancel
Save