取消勾选后重置
This commit is contained in:
@@ -133,6 +133,10 @@ async function handleBatchDelete() {
|
||||
const { error } = await doDeleteLog(checkedRowKeys.value);
|
||||
if (!error) {
|
||||
onBatchDeleted();
|
||||
// 取消勾选
|
||||
if (checkedRowKeys.value.length > 0) {
|
||||
checkedRowKeys.value = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -183,6 +183,10 @@ async function handleBatchDelete() {
|
||||
const { error } = await doDeleteLog(checkedRowKeys.value);
|
||||
if (!error) {
|
||||
onBatchDeleted();
|
||||
// 取消勾选
|
||||
if (checkedRowKeys.value.length > 0) {
|
||||
checkedRowKeys.value = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -327,7 +331,6 @@ function fnRunTask(jobId: any) {
|
||||
|
||||
/**跳转任务日志页面 */
|
||||
function fnJobLogView(jobId: string | number = '0') {
|
||||
console.log(`${routePath}/log/${jobId}`)
|
||||
router.push(`${routePath}/log?jobId=${jobId}`);
|
||||
}
|
||||
|
||||
@@ -336,9 +339,6 @@ function fnJobLogView(jobId: string | number = '0') {
|
||||
* @param row 任务信息对象
|
||||
*/
|
||||
function fnRecordStatus(row: Record<string, string>) {
|
||||
doGetType(row.jobId).then((res: any) => {
|
||||
console.log(res);
|
||||
})
|
||||
const sysJobStatus = [
|
||||
{
|
||||
"label": t('common.normal'),
|
||||
|
||||
@@ -158,6 +158,10 @@ async function handleBatchDelete() {
|
||||
const { error } = await doDeleteJobLog(checkedRowKeys.value);
|
||||
if (!error) {
|
||||
onDeleted();
|
||||
// 取消勾选
|
||||
if (checkedRowKeys.value.length > 0) {
|
||||
checkedRowKeys.value = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user