|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-dialog v-model="dialog" title="搜索医嘱" width="95%" @close="emit('close')">
|
|
|
- <el-input ref="searchInput" v-model="orderName" clearable style="width: 220px"
|
|
|
- @keyup.enter="dianJiChaXunYiZhu"></el-input>
|
|
|
+ <el-input ref="searchInput" v-model="orderName" autofocus clearable
|
|
|
+ style="width: 220px" @keyup.enter="dianJiChaXunYiZhu"></el-input>
|
|
|
<el-button icon="el-icon-search" type="primary" @click="dianJiChaXunYiZhu">搜索</el-button>
|
|
|
<el-table
|
|
|
:data="orderData.data.slice((orderData.currentPage - 1) * orderData.pageSize, orderData.currentPage * orderData.pageSize)"
|
|
|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
<script name="SouSuoYiZhu" setup>
|
|
|
import {huoQuXiangMu} from "@/api/zhu-yuan-yi-sheng/yi-zhu-lu-ru";
|
|
|
-import {computed, onMounted, ref} from "vue";
|
|
|
+import {computed, ref} from "vue";
|
|
|
import store from "@/store";
|
|
|
import YaoPingXiangQing from "@/components/zhu-yuan-yi-sheng/he-li-yong-yao/YaoPingXiangQing.vue";
|
|
|
|
|
|
@@ -81,12 +81,6 @@ const yaoPinXiangQing = $ref({
|
|
|
code: '',
|
|
|
})
|
|
|
|
|
|
-onMounted(() => {
|
|
|
- setTimeout(() => {
|
|
|
- searchInput.value.focus()
|
|
|
- }, 200)
|
|
|
-})
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|