|
@@ -18,6 +18,8 @@ import info1 from '@/layout/personnel/director/info-1.vue';
|
|
|
import search1 from '@/layout/personnel/director/search-1.vue';
|
|
|
import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions } = createNamespacedHelpers('assistant');
|
|
|
+
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -29,37 +31,7 @@ export default {
|
|
|
},
|
|
|
data: function () {
|
|
|
return {
|
|
|
- list: [
|
|
|
- {
|
|
|
- assistantArea: null,
|
|
|
- assistantCardtime: null,
|
|
|
- assistantJob: '',
|
|
|
- assistantJobtime: null,
|
|
|
- assistantName: '',
|
|
|
- assistantPosition: null,
|
|
|
- committeeArea: '脑功能和脑疾病机制及其神经调控',
|
|
|
- committeeCardtime: '2021-10-07',
|
|
|
- committeeJob: null,
|
|
|
- committeeJobtime: null,
|
|
|
- committeeName: '舒友生',
|
|
|
- committeePosition: '副院长',
|
|
|
- createBy: '1',
|
|
|
- createTime: '1900-01-20 00:05:43',
|
|
|
- delFlag: '0',
|
|
|
- id: '1',
|
|
|
- labArea: '癫痫及小儿神经系统疾病基础与临床',
|
|
|
- labCardtime: '2021-09-23',
|
|
|
- labJob: null,
|
|
|
- labJobtime: null,
|
|
|
- labName: '梁建民',
|
|
|
- labPosition: '科主任',
|
|
|
- params: {},
|
|
|
- remark: null,
|
|
|
- searchValue: null,
|
|
|
- updateBy: null,
|
|
|
- updateTime: '2021-09-23 13:17:54',
|
|
|
- },
|
|
|
- ],
|
|
|
+ list: [],
|
|
|
total: 0,
|
|
|
limit: 5,
|
|
|
// 查询
|
|
@@ -74,9 +46,13 @@ export default {
|
|
|
await this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
|
|
|
- if (searchName) info.name = searchName;
|
|
|
- console.log(this.searhForm);
|
|
|
+ ...mapActions(['query', 'fetch']),
|
|
|
+ async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
|
+ 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) {
|