|
@@ -1,7 +1,6 @@
|
|
|
<template>
|
|
|
<div class="workspace height_100">
|
|
|
- <div shadow="never" class="workspace-card nopadding height_100">
|
|
|
- <div class="query-top" v-if="[2].indexOf(isOperate) == -1">
|
|
|
+ <!-- <div class="query-top" v-if="[2].indexOf(isOperate) == -1">
|
|
|
<el-collapse>
|
|
|
<el-collapse-item title="图表预览" name="1">
|
|
|
<div class="chart-box">
|
|
@@ -9,7 +8,7 @@
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="height_100">
|
|
|
<el-container v-if="showView">
|
|
|
<el-header>
|
|
@@ -27,6 +26,8 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<el-button-group class="margin-left_10" id="step3" v-if="[2].indexOf(isOperate) == -1">
|
|
|
+ <el-button :type="queryShowType === '2' ? 'primary' : ''" @click="onChange2('2')"
|
|
|
+ size="small">可视化</el-button>
|
|
|
<el-button :type="queryShowType === '0' ? 'primary' : ''" @click="onChange2('0')"
|
|
|
size="small">列表</el-button>
|
|
|
<el-button :type="queryShowType === '1' ? 'primary' : ''" @click="onChange2('1')"
|
|
@@ -43,20 +44,14 @@
|
|
|
</el-dropdown>
|
|
|
</div>
|
|
|
</el-header>
|
|
|
- <el-main class="workspace-main">
|
|
|
- <div v-loading="loading">
|
|
|
+ <el-main class="workspace-main height_100">
|
|
|
+ <div v-loading="loading" class="height_100">
|
|
|
<component v-if="showView" :is="viewType" v-bind="$attrs" v-on="$listeners" :isOperate="isOperate"
|
|
|
- :tableData="dataList" :groupBy="group" :groupingOption="groupingOption" :searchOption="searchOption"
|
|
|
+ :tableData="dataList" :groupBy="group" :groupingOption="groupingOption" :searchOption="searchOption" :scenario="commonData" :matter="matter"
|
|
|
:queryParams="queryParams" :column="fieldList" @option="handleOption" @on-sort="handleSort" :handleMessage="handleMessage"></component>
|
|
|
</div>
|
|
|
- <div class="pagination" v-if="[2].indexOf(isOperate) == -1">
|
|
|
- <el-pagination background layout="total, prev, pager, next, jumper"
|
|
|
- :current-page.sync="queryParams.current" :page-size.sync="queryParams.size"
|
|
|
- @current-change="handleCurrentChange" :total="total">
|
|
|
- </el-pagination>
|
|
|
- </div>
|
|
|
</el-main>
|
|
|
- <el-footer class="pagination" v-if="[2].indexOf(isOperate) != -1">
|
|
|
+ <el-footer class="pagination" v-if="[2].indexOf(isOperate) == -1 && this.queryShowType != '2'">
|
|
|
<el-pagination backgroundx layout="total, prev, pager, next, jumper" :current-page.sync="queryParams.current"
|
|
|
:page-size.sync="queryParams.size" @current-change="handleCurrentChange" :total="total">
|
|
|
</el-pagination>
|
|
@@ -64,7 +59,6 @@
|
|
|
</el-container>
|
|
|
</div>
|
|
|
|
|
|
- </div>
|
|
|
<project-form-drawer @submit="getMessage" :common-data="commonData" ref="projectFormDrawer" />
|
|
|
<field ref="field" type="patentProject" @getFieldList="getFieldList"></field>
|
|
|
|
|
@@ -98,7 +92,8 @@ export default {
|
|
|
props: {
|
|
|
isOperate: '',
|
|
|
matterId:{},
|
|
|
- scenarioId:{}
|
|
|
+ scenarioId:{},
|
|
|
+ eventName:''
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -108,7 +103,8 @@ export default {
|
|
|
searchOption: {
|
|
|
scenarioNames:this.scenarioId,
|
|
|
matterNames:this.matterId,
|
|
|
- name:localStorage.searchContent
|
|
|
+ name:localStorage.searchContent,
|
|
|
+ eventNames:this.eventName
|
|
|
},
|
|
|
//专利数据库数据总数
|
|
|
total: 0,
|
|
@@ -179,11 +175,6 @@ export default {
|
|
|
this.fieldList = await this.$commonJS.getCustomField('patentProject')
|
|
|
//获取检索字段和分组字段
|
|
|
await this.getColumn()
|
|
|
- //获取应用场景统计
|
|
|
- // if ([2].indexOf(this.isOperate) == -1) {
|
|
|
- // this.getScenarioAndTypeTotal();
|
|
|
- // }
|
|
|
-
|
|
|
//获取专利数据库列表
|
|
|
this.getList()
|
|
|
this.showViews()
|
|
@@ -240,13 +231,7 @@ export default {
|
|
|
})
|
|
|
this.showViews()
|
|
|
},
|
|
|
- //获取应用场景统计
|
|
|
- getScenarioAndTypeTotal() {
|
|
|
- this.$api.getScenarioAndTypeTotal().then((response) => {
|
|
|
- this.queryTotal = response.data;
|
|
|
- this.$refs.totalChart.initData(response.data);
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
//检索
|
|
|
search(val) {
|
|
|
let params = {}
|
|
@@ -347,13 +332,17 @@ export default {
|
|
|
},
|
|
|
//切换table、卡片视图
|
|
|
onChange2(type) {
|
|
|
- this.group = ''
|
|
|
- if (type == '0') {//type为0时是table页面
|
|
|
- this.viewType = 'Table'
|
|
|
- } else {//type为1时是卡片页面
|
|
|
- this.viewType = 'Card'
|
|
|
+ var viewTypes = {
|
|
|
+ '0':'Table',
|
|
|
+ '1':'Card',
|
|
|
+ '2':'TotalChart'
|
|
|
}
|
|
|
+ this.group = ''
|
|
|
this.queryShowType = type
|
|
|
+ this.viewType = viewTypes[type]
|
|
|
+ if(type == 2){
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.queryParams.current = 1
|
|
|
this.getList()
|
|
|
// this.onChange()
|