zhangli 1 rok temu
rodzic
commit
845586959c

BIN
src/image/map/list_bg_over.png


BIN
src/image/map/list_bg_over_b.png


+ 1 - 1
src/permission.js

@@ -14,7 +14,7 @@ router.beforeEach((to, from, next) => {
             module:to.meta.module,
             subModule:to.meta.subModule,
             userId:store.state.appSetting.user.userId,
-            companyId:store.state.appSetting.user.companyId,
+            companyId:store.state.appSetting.user.deptId,
             page:to.path,
             platform:'知识管理平台',
         }

+ 64 - 13
src/views/modules/knowledge/album/detail.vue

@@ -38,7 +38,7 @@
       </div>
       <div class="userEnd">
         <div class="albumPhoto">
-          <img :src="imgUrl"/>
+          <img :src="imgUrl" @click="openPreview(detailDataBase.cover)"/>
           <div>{{detailDataBase.createTime}}</div>
         </div>
       </div>
@@ -134,7 +134,7 @@
                 </div>
               </div>
             </div>
-            <div class="albumList" v-else>
+            <div class="albumList" style="margin-top:0;" v-else>
               <div :key="index" @click="changeCatalogue(index)" :class="albumPkId==item.pkId?'albumitem actionAlbum':'albumitem'" v-for="(item, index) in albumArr">
                 <div class="leftPoint0"></div>
                 <div class="pointText">{{item.name}}</div>
@@ -147,7 +147,7 @@
               <p class="noDataText">暂无内容</p>
             </div>
             <div v-else class="listBoxItemContent listItemClass" v-for="(item, index) in dataList" :key="index">
-              <pageList :item="item" @delRefresh="delList(index)" :showDelete="showDelete"></pageList>
+              <pageList :item="item" @delRefresh="delList(index)" :showDelete="showDelete&&isAdd"></pageList>
             </div>
           </div>
         </div>
@@ -283,6 +283,7 @@
         </div>
       </div>
     </a-modal>
+    <previewVisible ref="previewVisible"></previewVisible>
   </div>
 </template>
 
@@ -294,13 +295,15 @@ import album from '@/api/knowledge/album'
 import api from '@/api/knowledge/warehouseIndex'
 import pageList from '../components/pageListAlbum'
 import albumList from '../components/albumList'
+import previewVisible from '../components/previewVisible'
 import { ACCESS_TOKEN } from '@/store/mutation-types';
 import {mapState} from "vuex";
 export default {
   name: 'contentData',
   components: {
     pageList,
-    albumList
+    albumList,
+    previewVisible
   },
   computed: {
     ...mapState({
@@ -414,7 +417,6 @@ export default {
     }
   },
   beforeRouteLeave(to, from, next) {
-    console.log(from)
     if(to.name == 'albumIndex') {
       to.query.scope = this.scope
     }
@@ -465,6 +467,9 @@ export default {
     this.init()
   },
   methods: {
+    openPreview(src){
+      this.$refs.previewVisible.openBig(src)
+    },
     //点击加载更多评论
     getMoreList(){
       this.yelpPageNum = this.yelpPageNum+1
@@ -615,6 +620,14 @@ export default {
       //const hide = this.$message.loading('验证码发送中..', 0)
       //setTimeout(hide, 5000);
       //return false;
+      if(this.knowledgeForm.categoryId.length==0){
+        this.$message.error('请选择分类');
+        return false
+      }
+      if(this.knowledgeForm.name==''){
+        this.$message.error('请输入专题标题');
+        return false
+      }
       if(this.knowledgeForm.cover==''&&this.isAdd){
         this.$message.error('请上传缩略图');
         return false
@@ -777,14 +790,18 @@ export default {
       // let innerWidth = window.innerWidth
 
       // this.widthVar = innerWidth/30
-
-      setInterval(() => {
+      document.onclick=function(element){
+        if(element.target.className.indexOf('ant-cascader-menu-item')>-1){
+          document.querySelector('.ant-cascader-menus').scrollLeft = 20480
+        }
+      }
+      /*setInterval(() => {
         document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
           el.onclick = function() {
             document.querySelector('.ant-cascader-menus').scrollLeft = 2048
           }
         })
-      }, 1000)
+      }, 1000)*/
     },
     //增加知识
     handleOkAdd(){
@@ -844,6 +861,16 @@ export default {
    },
    changeAction(num){
     this.tapAction = num
+    if(this.$route.query.pkId) {
+      if(this.tapAction==1||this.tapAction==3){
+        this.getApprovals()
+      }
+      if(this.tapAction==2){
+        this.yelpDataList=[]
+        this.yelpPageNum=1
+        this.getYelp()
+      }
+    }
    },
    //初始化
    async init() {
@@ -875,6 +902,12 @@ export default {
   }
 }
 </script>
+<style>
+.titleRight .ant-radio-button-wrapper:not(:first-child):before{
+  display: none;
+  background: #000;
+}
+</style>
 <style lang="less" scoped>
 .categoryBox{
   display: inline-block;
@@ -968,29 +1001,47 @@ export default {
 }
 .titleRight{
   margin-left: auto;
-  border: 1px solid #EEEEEE;
-  border-radius: 0.416666vw;
+  border: 2px solid #EEEEEE;
+  border-radius: 6px;
   color: #202124;
   font-size: 0.73vw;
   height: 1.875vw;
+  overflow: hidden;
+  background: #EEEEEE;
 }
 .titleRight /deep/.ant-radio-button-wrapper{
+  border-radius: 0vw;
   background: #eee;
   font-weight: 400;
-  border-color: #EEEEEE;
-  height: 1.875vw;
-  line-height: 1.8vw;
+  border-color: #eeeeee00;
+  height: calc(1.875vw - 4px);
+  line-height: calc(1.875vw - 4px);
+  box-shadow: none!important;
+}
+.titleRight /deep/.ant-radio-button-wrapper:focus{
+  box-shadow: none!important;
 }
 .titleRight /deep/.ant-radio-button-wrapper:hover{
   color: #202124;
 }
+.titleRight /deep/.ant-radio-button-wrapper:before{
+  background-color: #d9d9d900;
+}
 .titleRight /deep/.ant-radio-button-wrapper-checked{
+  border-radius: 6px;
+  box-shadow: none!important;
   background: #fff;
   font-weight: 400;
   border-color: #EEEEEE;
   color: #202124;
   box-shadow:none;
 }
+.titleRight /deep/.ant-radio-button{
+  display: none;
+}
+.titleRight /deep/.ant-radio-button-wrapper-checked:focus{
+  box-shadow: none!important;
+}
 .titleRight /deep/.ant-radio-button-wrapper-checked:hover{
   background: #fff;
   border-color: #EEEEEE;

+ 33 - 0
src/views/modules/knowledge/album/index.vue

@@ -60,6 +60,12 @@
             <albumBox :item="item" :scope="scope" @del='del' class="listBoxitem"></albumBox>
           </div>
         </div>
+        <div class="loadingPage" v-show="showLoading">
+          <div class="loadingPageShow">
+            <a-icon type="loading" style="margin-right:10px"/>
+            加载中
+          </div>
+        </div>
       </div>
     </div>
     <pageBar style="padding-bottom: 1.4125vw;" ref="pageBarref" @pageChange="pageChange" :total="total" :pageSize="pageSize"></pageBar>
@@ -105,6 +111,7 @@ export default {
   },
   data() {
     return {
+      showLoading:false,
       delId:'',
       delVisible:false,
       scope:2,//1-我的专辑  2-全部专辑  3-我的点评
@@ -143,6 +150,7 @@ export default {
   methods: {
     //搜索
     searchResult(data){
+      this.pageNum = 1
       this.searchName = decodeURI(data.keyword)
       this.getData()
     },
@@ -186,7 +194,9 @@ export default {
       if(this.searchName!=''){
         postData.params.name = this.searchName
       }
+      this.showLoading=true
       album.query(postData).then((res) => {
+        this.showLoading=false
         this.dataList = res.result.data
         this.total = res.result.totalCount
         this.$refs.pageBarref.setPageNum(this.pageNum)
@@ -326,6 +336,9 @@ export default {
   height: 3vw;
   font-weight: 550;
 }
+.level1Title :hover{
+  color: #406CC4;
+}
 .level1Title div{
   text-overflow:ellipsis;
   overflow: hidden;
@@ -343,6 +356,9 @@ export default {
   overflow: hidden;
   white-space:nowrap;
 }
+.level2:hover{
+  color: #406CC4;
+}
 .userHead{
   margin-right: 1.09375vw;
   text-align: center;
@@ -410,4 +426,21 @@ export default {
   width: 70%;
   margin-top: 4px;
 }
+.loadingPage{
+  width: 59.22vw;
+  height: 40vw;
+  /*background: #0000007a;*/
+  background: none;
+  z-index: 8;
+  display: block;
+  position: absolute;
+}
+.loadingPage div{
+  font-size: 1.2vw;
+  color: #202124;
+  height: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
 </style>

+ 48 - 10
src/views/modules/knowledge/analysis/index.vue

@@ -29,7 +29,7 @@
           <div>搜索访问量分布(pv)</div>
           <div>{{format_number(barTotalNum)}}
           </div>
-          <div>
+          <div style="display:none">
             <div class="barNameBox" v-for="(item, index) in NameArr" :key="index">
               <div :style="{'background':colorbarArr[index]}"></div>
               <div>{{ item }}</div>
@@ -143,7 +143,9 @@ export default {
                 type: 'bar',
                 barGap:'0%',
                 barCategoryGap:'40%',
-                stack: 'Ad',
+                stack: 'AllData',
+                dataGroupId:11,
+                stackStrategy:'all',
                 emphasis: {
                   focus: 'series'
                 },
@@ -174,17 +176,53 @@ export default {
             }
           }
         }
-        console.log(seriesData)
         let offsetX = window.innerWidth/150
+        let fontSize = 19.2*window.innerWidth/1920
+        let boxSize = 14*window.innerWidth/1920
+        let paddingSize = 8*window.innerWidth/1920
         var option0 = {
           legend:{
-            show:false
+            show:true,
+            itemWidth:boxSize,
+            itemHeight:boxSize,
+            itemGap:fontSize,
+            textStyle:{
+              color:'#202124',
+              fontSize:fontSize+'px',
+              padding:[0,fontSize,0,paddingSize]
+            }
           },
           tooltip: {
+            backgroundColor:'#999999',
+            borderColor:'rgba(0,0,0,0.0)',
+            textStyle:{
+              'color':'#FAFAFB',
+              'lineHeight': 14,
+              'fontSize':14
+            },
+            position: 'top',
+            formatter: params => {
+              let dataIndex = params.dataIndex
+              let resStr = ''
+              for (let i=0;i<seriesData.length;i++) {
+                if(i==0){
+                  resStr=resStr+"<div class='tooltipBox' style='margin-top:0px'><div class='tooltipLeft' style='background:"+that.colorbarArr[i]+"'></div>&nbsp;&nbsp;&nbsp;&nbsp;"+that.format_number(seriesData[i].data[dataIndex].value)+"&nbsp;&nbsp;&nbsp;&nbsp;"+seriesData[i].percentage[dataIndex]*100+"%</div>"
+                }else{
+                  resStr=resStr+"<div class='tooltipBox'><div class='tooltipLeft' style='background:"+that.colorbarArr[i]+"'></div>&nbsp;&nbsp;&nbsp;&nbsp;"+that.format_number(seriesData[i].data[dataIndex].value)+"&nbsp;&nbsp;&nbsp;&nbsp;"+seriesData[i].percentage[dataIndex]*100+"%</div>"
+                }
+              }
+              //const { name, value } = params
+              return resStr
+            }
+          },
+         /* tooltip: {
             position: function (point, params, dom, rect, size) {
-              console.log(params)
+              console.log(dom.clientWidth)
               let dataIndex = params[0].dataIndex
-              return {left: 56+113*dataIndex, top: point[1]};
+              let basNum = window.innerWidth/1920
+              //let marginNum = (dom.clientWidth-126-basNum*100)/2
+              let marginNum = 0
+              return {left: 10+(70+110*dataIndex)*basNum-marginNum, top: point[1]};
              // return {left: 1300, top: point[1]};
             },
             backgroundColor:'rgba(0,0,0,0.5)',
@@ -211,7 +249,7 @@ export default {
               //const { name, value } = params
               return resStr
             }
-          },
+          },*/
           /*tooltip: {
             position: function (point, params, dom, rect, size) {
                 // 固定在顶部
@@ -224,7 +262,7 @@ export default {
             }
           },*/
           grid: {
-            top:'10%',
+            top:'20%',
             left: '2%',
             right: '4%',
             bottom: '3%',
@@ -603,8 +641,8 @@ export default {
   margin-top: -1.8vw;
 }
 .barBox{
-  height: 70%;
-  margin-top: 6vw;
+  height: 80%;
+  margin-top: 3.6vw;
 }
 .wordCloudBox{
   height: 73%;

+ 32 - 4
src/views/modules/knowledge/components/albumList.vue

@@ -4,19 +4,21 @@
       <div slot="actions" key="comment-nested-reply-to" >
         <div class="actionBox">
           {{item.createTime}}
-          <div class="albumCallback" @click="showSubmitBox(item.pkId)" v-if="item.state==1">
+          <div class="albumCallback" @click="showSubmitBox(item.pkId,0)" v-if="item.state==1">
             <img src="../../../../image/reply.png" class="btnsty"/>
             回复
           </div>
         </div>
         <div class="submitBoxAlbum" v-show="replyPkid==item.pkId">
           <a-input-search
+            :ref="item.pkId"
             v-model="item.replyComment"
             class="commentAdd"
             placeholder="我也说一句"
             enter-button="提交"
             size="large"
             maxLength="100"
+            @blur="hideReply()"
             @search="reply(-1)"
           />
         </div>
@@ -39,19 +41,22 @@
           <div slot="actions" key="comment-nested-reply-to">
             <div class="actionBox">
               {{item0.createTime}}
-              <div class="albumCallback" @click="showSubmitBox(item0.pkId)"  v-if="item0.state==1">
+              <div class="albumCallback" @click="showSubmitBox(item0.pkId,1)"  v-if="item0.state==1">
                 <img src="../../../../image/reply.png" class="btnsty"/>
                 回复
               </div>
             </div>
             <div class="submitBoxAlbum" v-show="replyPkid==item0.pkId">
+              {{item0.pkId}}
               <a-input-search
+                :ref="item0.pkId"
                 v-model="item0.replyComment"
                 class="commentAdd commentAddlevel2"
                 placeholder="我也说一句"
                 enter-button="提交"
                 size="large"
                 maxLength="100"
+                @blur="hideReply()"
                 @search="reply(index0)"
               >
               <div slot="prefix" style="font-size: 1.14583vw;">{{item0.replyLeft}}</div>
@@ -84,6 +89,7 @@ import header1 from '../../../../image/header1.png'
 import home from '@/api/knowledge/home'
 import contentData from '@/api/knowledge/contentData'
 import {mapState} from "vuex";
+import { toString } from 'lodash';
 import analysis from '@/api/knowledge/analysis'
 export default {
   props: {
@@ -110,15 +116,32 @@ export default {
   created() {
   },
   methods: {
+    hideReply(){
+      let that = this
+      setTimeout(function(){
+        that.replyPkid = ''
+      },200)
+    },
     showMoreData(){
       this.showAll = true
     },
-    showSubmitBox(pkId){
+    showSubmitBox(pkId,type){
       if(this.replyPkid==pkId){
         this.replyPkid = ''
       }else{
         this.replyPkid = pkId
       }
+      let that = this
+      setTimeout(function(){
+        let pkIdStr = pkId.toString()
+        if(type==0){
+          that.$refs[pkIdStr].focus()
+        }else{
+          that.$refs[pkIdStr][0].focus()
+        }
+      },300)
+      //let inputEle = document.getElementById(pkId);
+      //inputEle.focus();
     },
     lookDetail(data){
       if(this.type=='list0'||this.type=='list1'){
@@ -144,6 +167,10 @@ export default {
           secretType:data.secretType
         }
         home.viewApi(getData).then((res) => {
+          if(res.data==null||res.data==''){
+            this.$message.error('业务系统未提供详情地址信息')
+            return false
+          }
           let datares = res.data
           if(this.item.documentPath.indexOf('dcc系统')==0){
             var encrypts = encrypt(this.user.userId);
@@ -155,7 +182,8 @@ export default {
             module:'搜索服务',
             subModule:'详情',
             userId:this.user.userId,
-            companyId:this.user.companyId,
+            //companyId:this.user.companyId,
+            companyId:this.user.deptId,
             page:datares.url,
             platform:datares.systemName,
           }

+ 21 - 5
src/views/modules/knowledge/components/pageList.vue

@@ -51,7 +51,11 @@
     </div>
     <div class="listItem listContent" style="display:flex" v-if="type=='home'&&item.documentRemark!=''&&item.documentRemark!=null">
       <div style="white-space: nowrap;">摘要:</div>
-      <div class="documentRemarkBox" v-html="item.documentRemark!=null?item.documentRemark.replaceAll('\n\r','</br>').replaceAll('\r\n','</br>').replaceAll('\n','</br>').replaceAll('\r','</br>'):''"></div>
+      <div class="documentRemarkBox" v-html="item.documentRemark!=null?item.documentRemark.replaceAll('\n\r','&nbsp;&nbsp;&nbsp;&nbsp;').replaceAll('\r\n','&nbsp;&nbsp;&nbsp;&nbsp;').replaceAll('\n','&nbsp;&nbsp;&nbsp;&nbsp;').replaceAll('\r','&nbsp;&nbsp;&nbsp;&nbsp;'):''"></div>
+    </div>
+    <div class="listItem listContent" style="display:flex" v-if="type=='home'&&item.documentContent!=''&&item.documentContent!=null">
+      <div style="white-space: nowrap;">附件:</div>
+      <div class="documentRemarkBox" v-html="item.documentContent!=null?item.documentContent.replaceAll('\n\r','&nbsp;&nbsp;&nbsp;&nbsp;').replaceAll('\r\n','&nbsp;&nbsp;&nbsp;&nbsp;').replaceAll('\n','&nbsp;&nbsp;&nbsp;&nbsp;').replaceAll('\r','&nbsp;&nbsp;&nbsp;&nbsp;'):''"></div>
     </div>
     <div class="listItem listContent"  v-if="type=='home'">
       位于:{{item.documentPath}}
@@ -62,9 +66,12 @@
       <img v-else-if="item.documentType==3" src="../../../../image/fileType3.png"/>
       <img v-else-if="item.documentType==4" src="../../../../image/fileType4.png"/>
       <img v-else src="../../../../image/fileType0.png"/>
-      <span v-if="item.documentType<5">{{typeArr[(item.documentType-1)]}}</span>
-      <span v-else>{{typeArr[4]}}</span>
-      <span class="listTime">{{item.uploadTime}}</span>
+      <span v-if="item.documentType<5" class="bottomText">{{typeArr[(item.documentType-1)]}}</span>
+      <span v-else class="bottomText">{{typeArr[4]}}</span>
+      <span style="float:left;font-size: 0.2vw;">|</span>
+      <img src="../../../../image/lookTime.png" style="margin-left: 0.52vw;"/>
+      <span class="bottomText">{{item.viewNum}}</span>
+      <span class="listTime bottomText">{{item.uploadTime}}</span>
     </div>
     <div class="listItem listBottom1" v-if="type=='list1'">
       <div v-for="(item0, index) in item.categoryArr" :key="index">
@@ -191,6 +198,10 @@ export default {
           secretType:data.secretType
         }
         home.viewApi(getData).then((res) => {
+          if(res.data==null||res.data==''){
+            this.$message.error('业务系统未提供详情地址信息')
+            return false
+          }
           let datares = res.data
           if(this.item.documentPath.indexOf('dcc系统')==0){
             var encrypts = encrypt(this.user.userId);
@@ -202,7 +213,8 @@ export default {
             module:'搜索服务',
             subModule:'详情',
             userId:this.user.userId,
-            companyId:this.user.companyId,
+            //companyId:this.user.companyId,
+            companyId:this.user.deptId,
             page:datares.url,
             platform:datares.systemName,
           }
@@ -397,4 +409,8 @@ export default {
   -webkit-line-clamp: 4;
   overflow: hidden;
 }
+.bottomText{
+  margin-top: -0.1vw;
+  float: left;
+}
 </style>

+ 41 - 0
src/views/modules/knowledge/components/previewVisible.vue

@@ -0,0 +1,41 @@
+<template>
+  <div>
+    <a-modal :closable="false" class="previewImg" width="50%" :visible="previewVisible" :footer="null" @cancel="handleCancel">
+      <img alt="example" style="width: 100%;margin-top: -1vw;" :src="'/api/api-system/system/core/sysFile/previewFile?fileId='+imgStr"/>
+    </a-modal>
+  </div>
+</template>
+
+<script>
+export default {
+  props: {
+  },
+  data() {
+    return {
+      previewVisible: false,
+      imgStr: ''
+    }
+  },
+  mounted() {
+
+  },
+  methods: {
+    //打开大图
+    openBig(data){
+      this.imgStr=data
+      this.previewVisible = true
+    },
+    //关闭大图
+    handleCancel(){
+      this.previewVisible = false
+    },
+  }
+}
+</script>
+
+<style scoped>
+.previewImg /deep/.ant-modal-content{
+  background: none;
+  box-shadow: none;
+}
+</style>

+ 9 - 3
src/views/modules/knowledge/map/index.vue

@@ -31,7 +31,7 @@
         </div>
         <div v-if="showBoxArr.indexOf(index)>-1">
           <img v-if="overArr.indexOf(index)>-1" src="../../../../image/map/list_bg_over.png" class="pointTextBg"/>
-          <img v-else-if="pointNum==index" src="../../../../image/map/list_bg_over.png" class="pointTextBg"/>
+          <img v-else-if="pointNum==index" src="../../../../image/map/list_bg_over_b.png" class="pointTextBg"/>
           <img v-else src="../../../../image/map/list_bg.png" class="pointTextBg"/>
         </div>
         <img v-if="showBoxArr.indexOf(index)>-1" :src="imgArr[item.imgNum]" class="pointBlock"/>
@@ -261,8 +261,14 @@ export default {
       map.routes(getData).then((res) => {
         if(res.code == 200) {
           this.menuDataArr = res.data
-          this.menuIndex = 0
-          this.getContentTops(this.menuDataArr[this.menuIndex].pkId)
+          if(this.menuDataArr.length==0){
+            this.dataArr=[]
+            this.showData()
+            this.showLoading = false
+          }else{
+            this.menuIndex = 0
+            this.getContentTops(this.menuDataArr[this.menuIndex].pkId)
+          }
         }
       })
     },

+ 7 - 3
src/views/modules/knowledge/warehouse/contentData.vue

@@ -188,14 +188,18 @@ export default {
       let offsetWidth = document.querySelector('.scroll-ckunk').getBoundingClientRect().left
       this.widthVar = innerWidth - offsetWidth - 40
     }, 1000);
-    
-    setInterval(() => {
+    document.onclick=function(element){
+        if(element.target.className.indexOf('ant-cascader-menu-item')>-1){
+          document.querySelector('.ant-cascader-menus').scrollLeft = 20480
+        }
+      }
+    /*setInterval(() => {
       document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
         el.onclick = function() {
           document.querySelector('.ant-cascader-menus').scrollLeft = 2048
         }
       })
-    }, 1000)
+    }, 1000)*/
    
   },
   methods: {

+ 7 - 3
src/views/modules/knowledge/warehouse/knowledgeAddUpdate.vue

@@ -303,14 +303,18 @@ export default {
       let offsetWidth = document.querySelector('.scroll-ckunk').getBoundingClientRect().left
       this.widthVar = innerWidth - offsetWidth - 40
     }, 1000);
-    
-    setInterval(() => {
+    document.onclick=function(element){
+        if(element.target.className.indexOf('ant-cascader-menu-item')>-1){
+          document.querySelector('.ant-cascader-menus').scrollLeft = 20480
+        }
+      }
+    /*setInterval(() => {
       document.querySelectorAll('.ant-cascader-menu-item').forEach(el => {
         el.onclick = function() {
           document.querySelector('.ant-cascader-menus').scrollLeft = 2048
         }
       })
-    }, 1000)
+    }, 1000)*/
    
   },
   methods: {

+ 4 - 2
src/views/modules/knowledge/warehouse/knowledgeContentInfo.vue

@@ -60,7 +60,8 @@ export default {
         fileType: '',
         title: '',
         lang: '',
-        isPrint: ''
+        isPrint: '',
+        user: { id:null,name:''}
       },
     }
   },
@@ -90,7 +91,8 @@ export default {
             module:'知识仓库',
             subModule:'详情',
             userId:this.user.userId,
-            companyId:this.user.companyId,
+           // companyId:this.user.companyId,
+            companyId:this.user.deptId,
             page:'/knowledgePage/knowledgeContentInfo',
             platform:'知识管理平台',
             ussd:'{"id":"'+this.detailData.pkId+'","type":"'+this.detailData.type+'"}'

+ 4 - 0
src/views/modules/knowledge/warehouse/searchData.vue

@@ -195,6 +195,10 @@ export default {
    },
    // 搜索数据
    searchResult(data){
+    let postData={
+      keyword:decodeURI(data.keyword)
+    }
+    home.searchKeywordTrack(postData).then(() => {})
     this.searchData=data
     this.getDataAll(0)
    }