mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-18 23:30:25 +08:00
fix: 前端界面小问题修复
This commit is contained in:
@@ -360,6 +360,7 @@ const reset = () => {
|
|||||||
for (let qi of props.query) {
|
for (let qi of props.query) {
|
||||||
state.queryForm[qi.prop] = null;
|
state.queryForm[qi.prop] = null;
|
||||||
}
|
}
|
||||||
|
console.log(state.queryForm);
|
||||||
changePageNum(1);
|
changePageNum(1);
|
||||||
emit('update:queryForm', state.queryForm);
|
emit('update:queryForm', state.queryForm);
|
||||||
execQuery();
|
execQuery();
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ watch(props, async (newValue: any) => {
|
|||||||
state.form = { ...newValue.data };
|
state.form = { ...newValue.data };
|
||||||
state.form.machineIds = await cronJobApi.relateMachineIds.request({ cronJobId: state.form.id });
|
state.form.machineIds = await cronJobApi.relateMachineIds.request({ cronJobId: state.form.id });
|
||||||
} else {
|
} else {
|
||||||
state.form = {} as any;
|
state.form = { script: '', status: 1 } as any;
|
||||||
state.chooseMachines = [];
|
state.chooseMachines = [];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const props = defineProps({
|
|||||||
const emit = defineEmits(['update:visible', 'update:data', 'cancel']);
|
const emit = defineEmits(['update:visible', 'update:data', 'cancel']);
|
||||||
|
|
||||||
const queryConfig = [
|
const queryConfig = [
|
||||||
TableQuery.slot('machineSelect', '机器', 'machineSelect'),
|
TableQuery.slot('machineId', '机器', 'machineSelect'),
|
||||||
TableQuery.select('status', '状态').setOptions(Object.values(CronJobExecStatusEnum)),
|
TableQuery.select('status', '状态').setOptions(Object.values(CronJobExecStatusEnum)),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ watch(props, async (newValue: any) => {
|
|||||||
convertDb(state.form.db);
|
convertDb(state.form.db);
|
||||||
} else {
|
} else {
|
||||||
state.form = { db: '0' } as any;
|
state.form = { db: '0' } as any;
|
||||||
state.dbList = [];
|
state.dbList = [0];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #queryRight>
|
<template #queryRight>
|
||||||
<el-button type="primary" icon="plus" @click="editRedis(true)" plain>添加</el-button>
|
<el-button type="primary" icon="plus" @click="editRedis(false)" plain>添加</el-button>
|
||||||
<el-button type="danger" icon="delete" :disabled="selectionData.length < 1" @click="deleteRedis" plain>删除 </el-button>
|
<el-button type="danger" icon="delete" :disabled="selectionData.length < 1" @click="deleteRedis" plain>删除 </el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user