mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	fix: 前端界面小问题修复
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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 = [];
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
@@ -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)),
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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];
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user