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