停机记录新增,设备管理查询条件完善

This commit is contained in:
2026-06-02 14:11:35 +08:00
parent 3586f86ea6
commit 3f2c486f04
41 changed files with 2782 additions and 213 deletions

View File

@@ -0,0 +1,18 @@
<template>
<a-input-group compact style="display: flex; width: 100%">
<a-input v-model:value="model[field]" read-only :placeholder="placeholder" style="flex: 1" />
<a-button type="primary" @click="emit('open')">选择</a-button>
<a-button v-if="showClear" @click="emit('clear')">清除</a-button>
</a-input-group>
</template>
<script lang="ts" setup>
defineProps<{
model: Recordable;
field: string;
placeholder?: string;
showClear?: boolean;
}>();
const emit = defineEmits<{ (e: 'open'): void; (e: 'clear'): void }>();
</script>