|
|
|
@ -73,7 +73,7 @@
|
|
|
|
|
<div class="page-container-wrap">
|
|
|
|
|
<div class="page-container">
|
|
|
|
|
<div class="aside-content" v-if="showAside">
|
|
|
|
|
<myAside @selectSort="selectSort" @selectArticle="selectArticle"></myAside>
|
|
|
|
|
<myAside ref="myAsideRef" @selectSort="selectSort" @selectArticle="selectArticle"></myAside>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="recent-posts">
|
|
|
|
|
<div class="announcement background-opacity">
|
|
|
|
@ -88,13 +88,11 @@
|
|
|
|
|
<articleList :articleList="articles"></articleList>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class=" pagination-wrap">
|
|
|
|
|
<div class="shadow-box pagination-wrap background-opacity">
|
|
|
|
|
<el-table :data="table1List">
|
|
|
|
|
<!-- <el-table-column prop="drug1" label="药品A"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column prop="drug2" label="药品B"></el-table-column>-->
|
|
|
|
|
<el-table-column label="药品A">
|
|
|
|
|
<template slot-scope="{ row }">
|
|
|
|
|
<span @click="selectDrugDetails(row.drug1)">{{ row.drug1 }}</span>
|
|
|
|
|
<span @click="selectDrugDetails(row.drug1)">{{ row.drug1 }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="药品B">
|
|
|
|
@ -102,25 +100,12 @@
|
|
|
|
|
<span @click="selectDrugDetails(row.drug2)">{{ row.drug2 }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="reaction" label="相互作用效果"></el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<!-- <div @click="pageArticles()" class="pagination" v-if="pagination.total !== articles.length">-->
|
|
|
|
|
<!-- 下一页-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <pagination-->
|
|
|
|
|
<!-- v-show="total>0"-->
|
|
|
|
|
<!-- :total="total"-->
|
|
|
|
|
<!-- :page.sync="queryParams.pageNum"-->
|
|
|
|
|
<!-- :limit.sync="queryParams.pageSize"-->
|
|
|
|
|
<!-- @pagination="getList"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--分页组件-->
|
|
|
|
|
<div class="block">
|
|
|
|
|
<div class="block background-opacity">
|
|
|
|
|
<el-pagination
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
@ -211,6 +196,9 @@ import {listTable1, listTotal, selectDetails} from "@/utils/table1";
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
selectDrugDetails(drugName) {
|
|
|
|
|
this.$refs.myAsideRef.updateDrugName(drugName);
|
|
|
|
|
},
|
|
|
|
|
/** 查询药品作用列表条数 */
|
|
|
|
|
getTotal() {
|
|
|
|
|
listTotal(this.queryParams).then(response => {
|
|
|
|
|