up
This commit is contained in:
@ -1,3 +1,134 @@
|
||||
<template>
|
||||
<div>achievement</div>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
v-if="is_super"
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
label-width="85px"
|
||||
@submit.prevent
|
||||
>
|
||||
<el-form-item label="所属站点" prop="tenant_id">
|
||||
<SiteOptions v-model="queryParams" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
<el-tab-pane label="待审核" name="1"></el-tab-pane>
|
||||
<el-tab-pane label="已驳回" name="3"></el-tab-pane>
|
||||
<el-tab-pane label="已通过" name="2"></el-tab-pane>
|
||||
</el-tabs>
|
||||
<el-table v-loading="loading" :data="dataList" ref="tableRef">
|
||||
<el-table-column label="数据编号" align="center" prop="id" />
|
||||
<el-table-column label="成果名称" align="center" prop="name" />
|
||||
<el-table-column label="成果领域" align="center" prop="research_name" />
|
||||
<el-table-column label="所属专家" align="center" prop="laboratory_name" />
|
||||
<el-table-column label="研究机构" align="center" prop="area" />
|
||||
<el-table-column
|
||||
v-if="activeName == 2"
|
||||
label="浏览量"
|
||||
align="center"
|
||||
prop="area"
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="activeName == 2"
|
||||
label="收藏量"
|
||||
align="center"
|
||||
prop="area"
|
||||
/>
|
||||
<el-table-column label="站点" align="center" prop="address" />
|
||||
<el-table-column label="申请时间" align="center" prop="address" />
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleEdit(scope.row.id)"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-plus"
|
||||
@click="handleClaim(scope.row.id)"
|
||||
>认领专利</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.page_num"
|
||||
:limit.sync="queryParams.page_size"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
is_super: this.$store.getters.is_super,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 实验室表格数据
|
||||
dataList: null,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
page_num: 1,
|
||||
page_size: 10,
|
||||
activeName: "1",
|
||||
},
|
||||
activeName: "1",
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
/** 查询机构列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.dataList = [1];
|
||||
this.total = 15;
|
||||
this.loading = false;
|
||||
// expertList(this.queryParams).then((response) => {
|
||||
// this.dataList = response.data.data;
|
||||
// this.total = response.data.count;
|
||||
// this.loading = false;
|
||||
// });
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.page_num = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
handleClick() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs["tableRef"].doLayout();
|
||||
});
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
};
|
||||
</script>
|
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
v-show="showSearch"
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
|
Reference in New Issue
Block a user