Jelajahi Sumber

图表分析添加一键导出报告以及专利检索默认检索栏位

zhuliu 1 tahun lalu
induk
melakukan
a987351e47

+ 8 - 0
src/views/analyse/custom/components/Tabs/Item.vue

@@ -4,6 +4,7 @@
     <el-container>
       <el-header>
         <div class="head">
+          <el-button size="small" type="primary" @click="exportReport">一键导出报告</el-button>
           <el-button size="small" type="primary" @click="handleAdd3">添加组</el-button>
         </div>
       </el-header>
@@ -62,6 +63,13 @@ export default {
     handleAdd3(){
       this.$emit('handleAdd3')
     },
+    exportReport(){
+      this.$alert('正在开发中...', '提示', {
+          confirmButtonText: '确定',
+          callback: action => {
+          }
+        });
+    },
   }
 }
 </script>

+ 6 - 1
src/views/report/components/patentList/components/searchPatent.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="searchPatent">
     <div style="display: flex;align-items: center;">
-      <el-cascader :options="options" @change="cascaderChange" :show-all-levels="false" size="small"
+      <el-cascader :options="options" @change="cascaderChange" v-model="value" :show-all-levels="false" size="small"
         style="width: 150px;"></el-cascader>
 
       <div style="margin: 0px 10px 0px 10px;">
@@ -77,6 +77,7 @@ export default {
     return {
       // 级联面板数据源
       options: [],
+      value:['text', 'AB'],
       // 存储条件
       searchStorage: [],
       searchStorageText: [],
@@ -438,6 +439,10 @@ export default {
         }
       }
       this.options = Object.values(filedObj)
+      if(this.options.length>0){
+        this.cascaderChange(this.value)
+      }
+      
     },
   },
 }