|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <SearchBoxVue :data="searchData" @search="handleSearch" />
|
|
|
|
|
|
+ <SearchBoxVue :data="searchData" @search="handleSearch" @reset="handleReset" />
|
|
<TableBoxVue :loading="loading" :data="tableData" style="margin-top: -40px;" @refresh="handleRefresh" />
|
|
<TableBoxVue :loading="loading" :data="tableData" style="margin-top: -40px;" @refresh="handleRefresh" />
|
|
<pagination
|
|
<pagination
|
|
:auto-scroll="false"
|
|
:auto-scroll="false"
|
|
@@ -15,7 +15,7 @@
|
|
<script>
|
|
<script>
|
|
import SearchBoxVue from './components/SearchBox.vue'
|
|
import SearchBoxVue from './components/SearchBox.vue'
|
|
import TableBoxVue from './components/TableBox.vue'
|
|
import TableBoxVue from './components/TableBox.vue'
|
|
-import { getSsczysList } from '@/api/dict'
|
|
|
|
|
|
+import { get_dict_list } from '@/api/dict'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -26,14 +26,33 @@ export default {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
searchData: {
|
|
searchData: {
|
|
- ssbm: '',
|
|
|
|
- ssmc: '',
|
|
|
|
- ssysbm: '',
|
|
|
|
- ssysmc: '',
|
|
|
|
- sslb: '',
|
|
|
|
- ssnm: ''
|
|
|
|
|
|
+ table: '',
|
|
|
|
+ field: '',
|
|
|
|
+ field_name: '',
|
|
|
|
+ dict: ''
|
|
},
|
|
},
|
|
- tableData: [],
|
|
|
|
|
|
+ tableData: [
|
|
|
|
+ {
|
|
|
|
+ 'id': 44,
|
|
|
|
+ 'parent_field': 'attending_group',
|
|
|
|
+ 'field': 'id',
|
|
|
|
+ 'field_name': '',
|
|
|
|
+ 'status': 1,
|
|
|
|
+ 'type': 0,
|
|
|
|
+ 'remark': '',
|
|
|
|
+ 'parent_fildname': '病案首页主诊组'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ 'id': 62,
|
|
|
|
+ 'parent_field': 'attending_group_data',
|
|
|
|
+ 'field': 'standard_error_medical',
|
|
|
|
+ 'field_name': '规范性有问题病案数',
|
|
|
|
+ 'status': 1,
|
|
|
|
+ 'type': 0,
|
|
|
|
+ 'remark': '',
|
|
|
|
+ 'parent_fildname': '病案首页统计表'
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
paginationData: {
|
|
paginationData: {
|
|
total: 0,
|
|
total: 0,
|
|
page: 1,
|
|
page: 1,
|
|
@@ -42,27 +61,35 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.getList()
|
|
|
|
|
|
+ // this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleReset() {
|
|
|
|
+ this.searchData = {
|
|
|
|
+ table: '',
|
|
|
|
+ field: '',
|
|
|
|
+ field_name: '',
|
|
|
|
+ dict: ''
|
|
|
|
+ }
|
|
|
|
+ this.paginationData.page = 1
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
handleRefresh() {
|
|
handleRefresh() {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
- const { ssbm, ssmc, ssysbm, ssysmc, sslb, ssnm } = this.searchData
|
|
|
|
|
|
+ const { table, field, field_name, dict } = this.searchData
|
|
const { page, limit } = this.paginationData
|
|
const { page, limit } = this.paginationData
|
|
const params = {
|
|
const params = {
|
|
- ssbm,
|
|
|
|
- ssmc,
|
|
|
|
- ssysbm,
|
|
|
|
- ssysmc,
|
|
|
|
- sslb,
|
|
|
|
- ssnm,
|
|
|
|
|
|
+ table,
|
|
|
|
+ field,
|
|
|
|
+ field_name,
|
|
|
|
+ dict,
|
|
page,
|
|
page,
|
|
page_size: limit
|
|
page_size: limit
|
|
}
|
|
}
|
|
this.loading = true
|
|
this.loading = true
|
|
- getSsczysList(params).then(res => {
|
|
|
|
|
|
+ get_dict_list(params).then(res => {
|
|
const { p } = res
|
|
const { p } = res
|
|
this.paginationData.total = p.count
|
|
this.paginationData.total = p.count
|
|
this.tableData = p.list
|
|
this.tableData = p.list
|