|
@@ -15,7 +15,7 @@
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 主任 </van-divider>
|
|
|
<director-1 :info="info"></director-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 学术委员会 </van-divider>
|
|
|
- <learning-1 :list="learningList"></learning-1>
|
|
|
+ <learning-1 :list="learningList" :directionL="directionL"></learning-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 联系人 </van-divider>
|
|
|
<contacts-1 :info="info"></contacts-1>
|
|
|
</van-col>
|
|
@@ -23,7 +23,7 @@
|
|
|
<van-tab name="1" title="实力">
|
|
|
<van-col span="24" class="tabs_1" :style="{ height: client.height - 240 + 'px' }" style="overflow-y: auto">
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 主要研究方向 </van-divider>
|
|
|
- <direction-1 :list="directionList" :personnelList="personnelList"></direction-1>
|
|
|
+ <direction-1 :list="directionList" :personnelList="personnelList" :userL="userL"></direction-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 承担科研项目 </van-divider>
|
|
|
<task-1 :list="taskList"></task-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 核心成员(固定人员) </van-divider>
|
|
@@ -35,11 +35,11 @@
|
|
|
<van-tab name="2" title="成果">
|
|
|
<van-col span="24" class="tabs_1" :style="{ height: client.height - 240 + 'px' }" style="overflow-y: auto">
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 制定标准明细 </van-divider>
|
|
|
- <award-1 :list="awardList" :directionList="directionList"></award-1>
|
|
|
+ <award-1 :list="awardList" :directionList="directionList" :directionL="directionL"></award-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 论文 </van-divider>
|
|
|
- <paper-1 :list="paperList" :personnelList="personnelList"></paper-1>
|
|
|
+ <paper-1 :list="paperList" :personnelList="personnelList" :userL="userL"></paper-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 奖励 </van-divider>
|
|
|
- <patent-1 :list="patentList" :directionList="directionList"></patent-1>
|
|
|
+ <patent-1 :list="patentList" :directionList="directionList" :directionL="directionL"></patent-1>
|
|
|
<van-divider :style="{ color: '#1989fa', borderColor: '#1989fa', padding: '0 10px' }"> 重大成果 </van-divider>
|
|
|
<outcome-1 :list="outcomeList"></outcome-1>
|
|
|
</van-col>
|
|
@@ -66,7 +66,16 @@ import patent1 from '@/layout/scientific/laboratory/patent-1.vue';
|
|
|
import outcome1 from '@/layout/scientific/laboratory/outcome-1.vue';
|
|
|
import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions } = createNamespacedHelpers('usual');
|
|
|
+const { mapActions } = createNamespacedHelpers('basic');
|
|
|
+const { mapActions: committee } = createNamespacedHelpers('committee');
|
|
|
+const { mapActions: direction } = createNamespacedHelpers('direction');
|
|
|
+const { mapActions: science } = createNamespacedHelpers('science');
|
|
|
+const { mapActions: fixedpersonnel } = createNamespacedHelpers('fixedpersonnel');
|
|
|
+const { mapActions: equipment } = createNamespacedHelpers('equipment');
|
|
|
+const { mapActions: tecAward } = createNamespacedHelpers('tecAward');
|
|
|
+const { mapActions: paper } = createNamespacedHelpers('paper');
|
|
|
+const { mapActions: award } = createNamespacedHelpers('award');
|
|
|
+const { mapActions: outcome } = createNamespacedHelpers('outcome');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -102,48 +111,68 @@ export default {
|
|
|
paperList: [],
|
|
|
patentList: [],
|
|
|
outcomeList: [],
|
|
|
+ // 研究方向
|
|
|
+ directionL: [],
|
|
|
+ //固定人员
|
|
|
+ userL: [],
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
|
+ await this.searchOther();
|
|
|
if (this.id) await this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['query', 'fetch']),
|
|
|
+ ...committee({ cquery: 'query' }),
|
|
|
+ ...direction({ dquery: 'query' }),
|
|
|
+ ...science({ squery: 'query' }),
|
|
|
+ ...fixedpersonnel({ fquery: 'query' }),
|
|
|
+ ...equipment({ equery: 'query' }),
|
|
|
+ ...tecAward({ tquery: 'query' }),
|
|
|
+ ...paper({ pquery: 'query' }),
|
|
|
+ ...award({ aquery: 'query' }),
|
|
|
+ ...outcome({ oquery: 'query' }),
|
|
|
async search() {
|
|
|
- let res = await this.fetch({ table: 'BasicInformation', id: this.id });
|
|
|
+ let res = await this.fetch(this.id);
|
|
|
if (res.errcode == '0') this.$set(this, `info`, res.data);
|
|
|
// 学术委员会
|
|
|
- res = await this.query({ table: 'Committee', create_by: this.id });
|
|
|
+ res = await this.cquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `learningList`, res.data);
|
|
|
// 主要研究方向
|
|
|
- res = await this.query({ table: 'ResearchDirection', create_by: this.id });
|
|
|
+ res = await this.dquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `directionList`, res.data);
|
|
|
// 承担科研项目
|
|
|
- res = await this.query({ table: 'BearScience', create_by: this.id });
|
|
|
+ res = await this.squery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `taskList`, res.data);
|
|
|
// 核心成员(固定人员)
|
|
|
- res = await this.query({ table: 'FixedPersonnel', create_by: this.id });
|
|
|
+ res = await this.fquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `personnelList`, res.data);
|
|
|
// 仪器设备
|
|
|
- res = await this.query({ table: 'Equipment', create_by: this.id });
|
|
|
+ res = await this.equery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `equipmentList`, res.data);
|
|
|
// 制定标准明细
|
|
|
- res = await this.query({ table: 'Soa', create_by: this.id });
|
|
|
+ res = await this.tquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `awardList`, res.data);
|
|
|
// 论文
|
|
|
- res = await this.query({ table: 'Sopaper', create_by: this.id });
|
|
|
+ res = await this.pquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `paperList`, res.data);
|
|
|
// 奖励
|
|
|
- res = await this.query({ table: 'Sopatent', create_by: this.id });
|
|
|
+ res = await this.aquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `patentList`, res.data);
|
|
|
- // 重大成果
|
|
|
- res = await this.query({ table: 'Outcome', create_by: this.id });
|
|
|
+ //重大成果
|
|
|
+ res = await this.oquery({ lab_id: this.id });
|
|
|
if (res.errcode == '0') this.$set(this, `outcomeList`, res.data);
|
|
|
},
|
|
|
// 返回
|
|
|
back() {
|
|
|
this.$router.push({ path: '/scientific/laboratory/index' });
|
|
|
},
|
|
|
+ async searchOther() {
|
|
|
+ let res = await this.dquery();
|
|
|
+ if (res.errcode == '0') this.$set(this, `directionL`, res.data);
|
|
|
+ res = await this.fquery();
|
|
|
+ if (res.errcode == '0') this.$set(this, `userL`, res.data);
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|