筛查分析
This commit is contained in:
parent
1ac46b8b81
commit
d18bfc2075
18
src/api/system/healthmanage.js
Normal file
18
src/api/system/healthmanage.js
Normal file
@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// // 查询商品订单列表
|
||||
// export function listGoodsOrder(query) {
|
||||
// return request({
|
||||
// url: '/system/goodsOrder/list',
|
||||
// method: 'get',
|
||||
// params: query
|
||||
// })
|
||||
// }
|
||||
|
||||
// 查询
|
||||
export function listHospital(age,sex) {
|
||||
return request({
|
||||
url: `/system/evaluateResult/list/${age}/${sex}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
248
src/views/system/healthmanage/index.vue
Normal file
248
src/views/system/healthmanage/index.vue
Normal file
@ -0,0 +1,248 @@
|
||||
<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="age">
|
||||
<el-select v-model="queryParams.age" placeholder="请选择年龄段">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="性别" prop="sex">
|
||||
<el-select v-model="queryParams.sex" placeholder="请选择性别">
|
||||
<el-option
|
||||
v-for="item in option"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<!-- <el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:hospital:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:hospital:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:hospital:remove']"
|
||||
>删除</el-button>
|
||||
</el-col> -->
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:hospital:export']"
|
||||
>导出</el-button>
|
||||
</el-col>-->
|
||||
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row> -->
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="hospitalList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="年龄段" align="center" prop="">
|
||||
<template>
|
||||
{{ name }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="人数" align="center" prop="count" />
|
||||
<el-table-column label="评估结果" align="center" prop="evaluateResult" />
|
||||
</el-table>
|
||||
|
||||
<!-- <pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listHospital } from "@/api/system/healthmanage";
|
||||
|
||||
export default {
|
||||
name: "Hospital",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: false,
|
||||
name: "",
|
||||
options: [
|
||||
{
|
||||
value: "0-35",
|
||||
label: "0-35",
|
||||
},
|
||||
{
|
||||
value: "35-60",
|
||||
label: "35-60",
|
||||
},
|
||||
{
|
||||
value: "60-80",
|
||||
label: "60-80",
|
||||
},
|
||||
{
|
||||
value: "80-100",
|
||||
label: "80-100",
|
||||
},
|
||||
],
|
||||
option: [
|
||||
{
|
||||
value: "MALE",
|
||||
label: "男",
|
||||
},
|
||||
{
|
||||
value: "FEMALE",
|
||||
label: "女",
|
||||
},
|
||||
],
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 医院信息管理表格数据
|
||||
hospitalList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
// pageNum: 1,
|
||||
// pageSize: 10,
|
||||
sex: null,
|
||||
age: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
if (!this.queryParams.sex && !this.queryParams.age) {
|
||||
this.$message.error("请先选择年龄段和性别");
|
||||
} else if (this.queryParams.sex && this.queryParams.age) {
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 查询医院信息管理列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.name = this.queryParams.age;
|
||||
listHospital(this.queryParams.age, this.queryParams.sex).then(
|
||||
(response) => {
|
||||
this.hospitalList = response.data;
|
||||
console.log(this.hospitalList, "56");
|
||||
// this.total = response.total;
|
||||
this.loading = false;
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
hospitalName: null,
|
||||
hospitalCode: null,
|
||||
hospitalAddress: null,
|
||||
phone: null,
|
||||
hospitalIntroduce: null,
|
||||
hospitalSort: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
// this.queryParams.pageNum = 1;
|
||||
if (this.queryParams.age == null) {
|
||||
this.$message.error("请先选择年龄段");
|
||||
} else if (this.queryParams.sex == null) {
|
||||
this.$message.error("请先选择性别");
|
||||
} else if (this.queryParams.sex == null && this.queryParams.age == null) {
|
||||
this.$message.error("请先选择性别和年龄");
|
||||
} else {
|
||||
this.getList();
|
||||
}
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user