|
@@ -1,8 +1,36 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<div class="btn-box">
|
|
|
- <el-button type="primary" icon="el-icon-search" style="float: left;" @click="show = !show">筛选</el-button>
|
|
|
- <el-button type="primary" icon="el-icon-download" style="float: right;" @click="onExcelDownload">导出</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-s-data" style="float: left;" @click="show = !show">筛选</el-button>
|
|
|
+ <div style="float: right;">
|
|
|
+ <el-button type="primary" icon="el-icon-plus" style="margin-right: 10px;">新增</el-button>
|
|
|
+ <el-popover
|
|
|
+ placement="bottom-end"
|
|
|
+ title=""
|
|
|
+ trigger="click"
|
|
|
+ popper-class="table_code_popper"
|
|
|
+ >
|
|
|
+ <el-checkbox-group v-model="showCodes" @change="handleChange">
|
|
|
+ <el-checkbox label="FLAG">序号</el-checkbox>
|
|
|
+ <el-checkbox label="KSMC">科室</el-checkbox>
|
|
|
+ <el-checkbox label="JBMC">疾病名称</el-checkbox>
|
|
|
+ <el-checkbox label="BM">疾病别名</el-checkbox>
|
|
|
+ <el-checkbox label="JBBM">疾病编码</el-checkbox>
|
|
|
+ <el-checkbox label="JBZD">鉴别诊断</el-checkbox>
|
|
|
+ <el-checkbox label="ZZ">症状</el-checkbox>
|
|
|
+ <el-checkbox label="TZ">体征</el-checkbox>
|
|
|
+ <el-checkbox label="YP">药品</el-checkbox>
|
|
|
+ <el-checkbox label="ZL">治疗</el-checkbox>
|
|
|
+ <el-checkbox label="JC">检查</el-checkbox>
|
|
|
+ <el-checkbox label="JJ">检验</el-checkbox>
|
|
|
+ <el-checkbox label="BFZ">并发症</el-checkbox>
|
|
|
+ <el-checkbox label="CKWX">参考文献</el-checkbox>
|
|
|
+ <el-checkbox label="created_at">创建时间</el-checkbox>
|
|
|
+ <el-checkbox label="updated_at">更新时间</el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ <el-button slot="reference" icon="el-icon-setting">设置</el-button>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-collapse-transition>
|
|
|
<div v-if="show" style="margin-bottom: 16px;">
|
|
@@ -84,7 +112,10 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="onSubmit">查询</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="onSubmit">搜索</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -117,11 +148,15 @@ export default {
|
|
|
createStartTime: '',
|
|
|
createEndTime: '',
|
|
|
updateStartTime: '',
|
|
|
- updateEndTime: '',
|
|
|
- SSMC: '',
|
|
|
- SSBM: ''
|
|
|
+ updateEndTime: ''
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ codes: {
|
|
|
+ type: Array,
|
|
|
+ default() {
|
|
|
+ return []
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -163,15 +198,25 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
deportments: [],
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
+ showCodes: []
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getDeportmentList()
|
|
|
+ this.showCodes = JSON.parse(JSON.stringify(this.codes))
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 展示字段发生变化
|
|
|
+ handleChange(val) {
|
|
|
+ this.$emit('codesChange', val)
|
|
|
+ },
|
|
|
+ // 重置
|
|
|
+ onReset() {
|
|
|
+ this.$emit('reset')
|
|
|
+ },
|
|
|
+ // 提交
|
|
|
onSubmit() {
|
|
|
- console.log(this.data, 'this.data')
|
|
|
this.$emit('search')
|
|
|
},
|
|
|
getDeportmentList() {
|
|
@@ -201,3 +246,11 @@ export default {
|
|
|
margin-bottom: 15px;
|
|
|
}
|
|
|
</style>
|
|
|
+<style lang="scss">
|
|
|
+.table_code_popper {
|
|
|
+ .el-checkbox {
|
|
|
+ display: block;
|
|
|
+ line-height: 26px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|