添加为查找到提示
This commit is contained in:
parent
2a5888912b
commit
0d64cc8185
@ -236,7 +236,9 @@ import { SectionDraw } from 'src/graphics/section/SectionDrawAssistant';
|
|||||||
import { Section } from 'src/graphics/section/Section';
|
import { Section } from 'src/graphics/section/Section';
|
||||||
import { LogicSection } from 'src/graphics/logicSection/LogicSection';
|
import { LogicSection } from 'src/graphics/logicSection/LogicSection';
|
||||||
import { LogicSectionDraw } from 'src/graphics/logicSection/LogicSectionDrawAssistant';
|
import { LogicSectionDraw } from 'src/graphics/logicSection/LogicSectionDrawAssistant';
|
||||||
|
import { useQuasar } from 'quasar';
|
||||||
|
|
||||||
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const searchId = ref('');
|
const searchId = ref('');
|
||||||
@ -254,14 +256,19 @@ watch(
|
|||||||
watch(
|
watch(
|
||||||
() => searchId.value,
|
() => searchId.value,
|
||||||
() => {
|
() => {
|
||||||
if (searchId.value) {
|
try {
|
||||||
const device = drawStore
|
if (searchId.value) {
|
||||||
.getDrawApp()
|
const device = drawStore
|
||||||
.queryStore.queryById(searchId.value);
|
.getDrawApp()
|
||||||
if (device) {
|
.queryStore.queryById(searchId.value);
|
||||||
drawStore.getDrawApp().makeGraphicCenterShow(device);
|
drawStore.getDrawApp().makeGraphicCenterShow(device);
|
||||||
drawStore.getDrawApp().updateSelected(device);
|
drawStore.getDrawApp().updateSelected(device);
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
$q.notify({
|
||||||
|
type: 'negative',
|
||||||
|
message: `未查找到id为【${searchId.value}】的设备`,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user