fix: 前端界面小问题修复

This commit is contained in:
meilin.huang
2023-07-21 21:01:25 +08:00
parent 7f9e972828
commit b7450f8869
5 changed files with 5 additions and 4 deletions

View File

@@ -360,6 +360,7 @@ const reset = () => {
for (let qi of props.query) {
state.queryForm[qi.prop] = null;
}
console.log(state.queryForm);
changePageNum(1);
emit('update:queryForm', state.queryForm);
execQuery();

View File

@@ -154,7 +154,7 @@ watch(props, async (newValue: any) => {
state.form = { ...newValue.data };
state.form.machineIds = await cronJobApi.relateMachineIds.request({ cronJobId: state.form.id });
} else {
state.form = {} as any;
state.form = { script: '', status: 1 } as any;
state.chooseMachines = [];
}
});

View File

@@ -56,7 +56,7 @@ const props = defineProps({
const emit = defineEmits(['update:visible', 'update:data', 'cancel']);
const queryConfig = [
TableQuery.slot('machineSelect', '机器', 'machineSelect'),
TableQuery.slot('machineId', '机器', 'machineSelect'),
TableQuery.select('status', '状态').setOptions(Object.values(CronJobExecStatusEnum)),
];

View File

@@ -176,7 +176,7 @@ watch(props, async (newValue: any) => {
convertDb(state.form.db);
} else {
state.form = { db: '0' } as any;
state.dbList = [];
state.dbList = [0];
}
});

View File

@@ -20,7 +20,7 @@
</template>
<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>
</template>