|
@@ -16,6 +16,7 @@ import list1 from '@/layout/infoview/laboratory/list-1.vue';
|
|
import info1 from '@/layout/infoview/laboratory/info-1.vue';
|
|
import info1 from '@/layout/infoview/laboratory/info-1.vue';
|
|
import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
|
|
import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions } = createNamespacedHelpers('laboratory');
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
@@ -39,35 +40,14 @@ export default {
|
|
await this.search();
|
|
await this.search();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ ...mapActions(['query']),
|
|
async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
|
|
async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
|
|
if (searchName) info.name = searchName;
|
|
if (searchName) info.name = searchName;
|
|
- let data = [
|
|
|
|
- {
|
|
|
|
- buildTime: null,
|
|
|
|
- chiefName: '梁建民',
|
|
|
|
- createBy: '1',
|
|
|
|
- createTime: '2021-09-16 00:00:00',
|
|
|
|
- delFlag: '0',
|
|
|
|
- englishName: '',
|
|
|
|
- id: '1',
|
|
|
|
- labAcreage: '',
|
|
|
|
- labAddress: '',
|
|
|
|
- labEmail: 'jackyliangjm@163.com',
|
|
|
|
- labPerson: '梁建民',
|
|
|
|
- labPhone: '13578652528',
|
|
|
|
- name: '儿科神经吉林省重点实验室',
|
|
|
|
- numb: '0',
|
|
|
|
- params: {},
|
|
|
|
- remark: null,
|
|
|
|
- searchValue: null,
|
|
|
|
- unitName: '吉林大学白求恩第一医院',
|
|
|
|
- unitPerson: '孙宇飞 ',
|
|
|
|
- unitPhone: '13944843792',
|
|
|
|
- updateBy: 'userid001',
|
|
|
|
- updateTime: '2021-09-30 14:09:43',
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
- this.$set(this, `list`, data);
|
|
|
|
|
|
+ const res = await this.query({ skip, limit, ...info });
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$set(this, `list`, res.rows);
|
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 查看信息
|
|
// 查看信息
|
|
async toView(data) {
|
|
async toView(data) {
|