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

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

Loading…
Cancel
Save