| | |
| | | class="input-with-select" |
| | | > |
| | | <template #append> |
| | | <el-button :icon="Search"/> |
| | | <el-button :icon="Search" @click="openUser"/> |
| | | </template> |
| | | </el-input> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | <AddEmergencyPersonnel ref="addRef" /> |
| | | <UserSelections ref="userRef"/> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | Search |
| | | } from '@element-plus/icons-vue' |
| | | import AddEmergencyPersonnel from "/@/views/contingencyManagement/contingency/component/addEmergencyPersonnel.vue"; |
| | | import UserSelections from "/@/components/userSelections/index.vue" |
| | | // 定义表格数据类型 |
| | | interface User { |
| | | personnelName: string |
| | |
| | | export default defineComponent({ |
| | | name: 'openAdd', |
| | | components: { |
| | | AddEmergencyPersonnel |
| | | AddEmergencyPersonnel, |
| | | UserSelections, |
| | | }, |
| | | setup() { |
| | | const isShowDialog = ref(false) |
| | |
| | | ], |
| | | }, |
| | | ] |
| | | // 打开用户选择弹窗 |
| | | const userRef = ref(); |
| | | const openUser = () => { |
| | | userRef.value.openDialog(); |
| | | }; |
| | | //定义tabs切换 |
| | | const activeName = ref('first') |
| | | |
| | |
| | | submitForm, |
| | | rules, |
| | | addRef, |
| | | userRef, |
| | | openUser, |
| | | onAddEmergencyPersonnel, |
| | | }; |
| | | }, |