From 887851419d98568a815de95a6a96fbdfb3dfcf38 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 26 六月 2025 15:21:22 +0800 Subject: [PATCH] qx --- src/views/system/tongbuDict/index.vue | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/src/views/system/tongbuDict/index.vue b/src/views/system/tongbuDict/index.vue new file mode 100644 index 0000000..9bc9412 --- /dev/null +++ b/src/views/system/tongbuDict/index.vue @@ -0,0 +1,57 @@ +<template> + <div class="app-container"> + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> + <el-form-item label="閫夋嫨闄㈠尯" prop="status"> + <el-select v-model="queryParams.status" clearable style="width: 240px"> + <el-option v-for="area in hospitalAreas" :key="area.hospAreaId" :label="area.hospAreaName" + :value="area.hospAreaId" /> + </el-select> + </el-form-item> + <el-form-item> + <el-button type="primary" size="mini" @click="tongbu(true)">鍚屾瀛楀吀</el-button> + <el-button type="primary" size="mini" @click="tongbu(false)">鍙皟鐢ㄥ瓨鍌ㄨ繃绋�</el-button> + </el-form-item> + </el-form> + </div> +</template> +<script> +import { yuanqu, tongbuzidian } from "@/api/system/dict/type"; +export default { + name: "Dict", + data() { + return { + + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 瀛楀吀琛ㄦ牸鏁版嵁 + typeList: [], + // 闄㈠尯鏁版嵁 + hospitalAreas: [], + // 鏌ヨ鍙傛暟 + queryParams: { + status: undefined + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + }; + }, + created() { + yuanqu().then((res) => { + this.hospitalAreas = res.data || []; + console.log(res); + }); + this.getList(); + }, + methods: { + tongbu(t) { + tongbuzidian(t).then((res) => { + console.log(res); + }) + }, + getAreaName(status) { + const area = this.hospitalAreas.find(area => area.hospAreaId === status); + return area ? area.hospAreaName : status; + } + } +}; +</script> -- Gitblit v1.8.0