zhangli il y a 1 an
Parent
commit
0718eaecf8

+ 2 - 1
src/api/knowledge/warehouseIndex.js

@@ -4,7 +4,8 @@ import rxAjax from '@/assets/js/ajax.js';
 export const returnData = {};
 
 returnData.baseUrl= '/api-knowledge/knowledge/';
-
+returnData.url0= 'http://www.hkcqjy.com.cn:8088';
+returnData.url1= 'http://10.5.100.101';
 //  知识分类
 returnData.findAllKnowledgeCategory=function (parameter) {
   var url= returnData.baseUrl + 'knowledgeCategory/findAllKnowledgeCategory';

BIN
src/image/rightIcon.png


+ 2 - 1
src/layouts/MainHead.vue

@@ -186,7 +186,8 @@ export default {
     },
     handClick(value, head) {
       if(value.key==5){
-        location.href=value.component
+        window.open(value.component)
+        //location.href=value.component
         return false;
       }
       this.$emit('handClick', value)

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

@@ -152,6 +152,10 @@ export default {
     searchResult(data){
       this.pageNum = 1
       this.searchName = decodeURI(data.keyword)
+      if(this.searchName==''){
+        this.$message.error("请输入专辑名称!");
+        return false
+      }
       this.getData()
     },
     //删除start

+ 191 - 0
src/views/modules/knowledge/components/classMenu.vue

@@ -0,0 +1,191 @@
+<template>
+  <div class="treeBox">
+    <tree-comp :treeData="options" @handleClick="handleClick"></tree-comp>
+  </div>
+</template>
+<script>
+export default {
+  props: {
+    options: {
+      type: Object,
+      default: []
+    },
+    categoryValue: {
+      type: Object,
+      default: []
+    },
+  },
+  name: 'classMenu',
+  data () {
+    return {
+      checkArr:[],
+      checkId:null
+    }
+  },
+  components:{
+    
+  },
+  mounted(){
+    this.checkArr=this.categoryValue
+    if(this.categoryValue.length!=0){
+      this.checkId=this.categoryValue[(this.categoryValue.length-1)]
+    }
+    this.checkArr.push('000')
+    this.init()
+  },
+  methods:{
+    init(){
+      let that=this
+      Vue.component('treeComp', {
+        functional: true,
+        props: {treeData: Object},
+        render(h, {props: {treeData = {}}}) {
+          const creatNode = (node,num,pId)=>{
+            node.pId=pId
+            if(num==1){
+              node.parent='000'
+            }
+            if(node.children && node.children.length > 0){
+              let hArr = node.children.map(item=>{
+                let nowPid = pId+','+item.pkId
+                return creatNode(item,num+1,nowPid)
+              })
+              if(num==0){
+                return h('div', {class:{'demoShow':true}}, 
+                [h('div',{class:{'demoText':true,'demoTextSelect':that.checkId==node.pkId},style:'padding-Left:'+(2+num*0.5)+'vw',
+                on:{click:function (event){
+                  event.stopPropagation();
+                  event.preventDefault();
+                  that.handleClick(node,this);
+                  } }},[
+                  h('div',{class:{'classifyRightAction':that.checkArr.indexOf(node.pkId)>-1,'classifyRight':true},
+                    on:{click:function (event){
+                    event.stopPropagation();
+                    event.preventDefault();
+                    that.handleOpenClick(node);
+                    } }},['']),
+                  node.name]), hArr])
+              }else{
+                return h('div', {class:{'demo':!(that.checkArr.indexOf(node.parent)>-1),'demoShow':(that.checkArr.indexOf(node.parent)>-1)}}, [h('div',{class:{'demoText':true,'demoTextSelect':that.checkId==node.pkId},style:'padding-Left:'+(2+num*0.5)+'vw',
+                on:{click:function (event){
+                event.stopPropagation();
+                event.preventDefault();
+                that.handleClick(node,this);
+                } }},[
+                  h('div',{class:{'classifyRightAction':that.checkArr.indexOf(node.pkId)>-1,'classifyRight':true},
+                    on:{click:function (event){
+                    event.stopPropagation();
+                    event.preventDefault();
+                    that.handleOpenClick(node);
+                    } }},['']),
+                  node.name]), hArr])
+              }
+            }else{
+              return h('div', {class:{'demo':!(that.checkArr.indexOf(node.parent)>-1),'demoShow':(that.checkArr.indexOf(node.parent)>-1)}}, [h('div',{class:{'demoText':true,'demoTextSelect':that.checkId==node.pkId},style:'padding-Left:'+(3.2+num*0.5)+'vw',
+              on:{click: function(event){
+                event.stopPropagation();
+                event.preventDefault();
+                that.handleClick(node,this);
+              }}},[
+                node.name])])
+            }          
+          }
+          return creatNode(treeData,0,'')
+        }
+      })
+    },
+    handleOpenClick(node){
+      //node.openData=!node.openData
+      let indexNum=this.checkArr.indexOf(node.pkId)
+      if(indexNum>-1){
+        this.checkArr.splice(indexNum, 1)
+      }else{
+        this.checkArr.push(node.pkId)
+      }
+    },
+    handleClick(node,ele){
+      this.checkId = node.pkId;
+      let dataArr=node.pId.split(",")
+      dataArr.shift()
+      
+      let data={
+        categoryId:node.pkId,
+        categoryName:node.name,
+        categoryValue:dataArr
+      }
+      this.$emit('changeClass',data);
+    }
+  }
+}
+</script>
+<style lang="less" scoped>
+  .demoShow{
+    min-width: 11.71875vw;
+    width: max-content;
+    text-align: left;
+    font-size:0.9375vw;
+    display: flex;
+    flex-direction: column;
+    color: #202124;
+    &:before{
+      content:'  ';
+      display: inline-block;
+    }
+  }
+  .demo{
+    min-width: 11.71875vw;
+    width: max-content;
+    display: none;
+    text-align: left;
+    font-size:0.9375vw;
+    flex-direction: column;
+    color: #202124;
+    &:before{
+      content:'  ';
+      display: inline-block;
+    }
+  }
+  .demoText{
+    padding-right:2vw;
+    font-weight: 500;
+    min-width: 11.71875vw;
+    height: 2.91vw;
+    display: inline-block;
+    line-height: 2.91vw;
+    cursor: pointer;
+    color: #202124;
+  }
+  .demoTextSelect{
+    background: #ECF3FF;
+  }
+  .classifyRight{
+    background: url('../../../../image/rightIcon.png');
+    background-size: 100% 100%;
+    width:0.6vw;
+    height: 0.6vw;
+    color: #CBCCCC;
+    display: inline-block;
+    margin-left: auto;
+    transform-origin: 150% 60%;
+    margin-right: 0.6vw;
+    -moz-user-select:none;/*火狐*/
+    -webkit-user-select:none;/*webkit浏览器*/
+    -ms-user-select:none;/*IE10*/
+    -khtml-user-select:none;/*早期浏览器*/
+    user-select:none;
+  }
+  .classifyRightAction{
+    transform: rotate(90deg);
+    transform-origin: 75% 50%;
+  }
+  .treeBox{
+    overflow-x: scroll;
+    height: calc(100% - 3.5vw);
+  }
+  .treeBox::-webkit-scrollbar{
+    width:16px;
+    height:16px;
+    background-color:#fff;
+    display:block;
+  }
+</style>

+ 3 - 3
src/views/modules/knowledge/components/onlyOffice.vue

@@ -1,12 +1,12 @@
 <template>
   <div style="height: 100%;overflow: hidden;">
-    <div class="loadingPage" v-show="showLoading">
+    <!--<div class="loadingPage" v-show="showLoading">
       <div class="loadingPageShow">
         <a-icon type="loading" style="margin-right:10px"/>
         加载中
       </div>
-    </div>
-    <div class="hideLogo" v-show="!showLoading"></div>
+    </div>-->
+    <div class="hideLogo"></div>
     <div id='vabOnlyOffice' v-show="!showLoading"></div>
   </div>
 </template>

+ 5 - 5
src/views/modules/knowledge/components/search.vue

@@ -3,7 +3,7 @@
     <div>
       <a-dropdown :trigger="['click']" v-show="!hideSelect">
         <a class="ant-dropdown-link" @click="e => e.preventDefault()">
-          <span>{{selectVal==0?'全部类型':menuData.filter(item=>{return item.key==selectVal})[0]['name']}}</span> 
+          <span>{{selectVal==0?'类型':menuData.filter(item=>{return item.key==selectVal})[0]['name']}}</span> 
           <a-icon type="caret-down" style="font-size: 0.7vw;color:#000;transform:translateX(0.80vw);" />
         </a>
         <a-menu slot="overlay">
@@ -14,7 +14,7 @@
       </a-dropdown>
       <a-input :class="hideSelect?'hideSelect':''" v-model="content" @pressEnter="handleSearchClick" placeholder="请输入您要搜索的文字" />
     </div>
-    <div @click="handleSearchClick">搜索</div>
+    <div @click="handleSearchClick" :style="{'width':typeStr=='content'?'7.1875vw':'13.28%'}">搜索</div>
   </div>
 </template>
 
@@ -58,10 +58,10 @@ export default {
           key:0
         },
         {
-          name:'文档知识',
+          name:'文档',
           key:1
         },{
-          name:'维基知识',
+          name:'维基',
           key:2
         }
       ]
@@ -118,7 +118,7 @@ export default {
     height:100%;
 
     a {
-      width: 8.2vw;
+      width: 6.25vw;
       text-align: center;
       background:@white;
       border-radius: 0.52vw 0 0 0.52vw;

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

@@ -319,6 +319,9 @@ export default {
       this.pointNum = -1
     },
     changeType(num){
+      if(this.titleArr[this.titleIndex].name=="暂无地图"){
+        return false
+      }
       this.showLoading = true
       this.titleIndex = num
       this.getRoutes(this.titleArr[this.titleIndex].pkId)

+ 227 - 79
src/views/modules/knowledge/warehouse/contentData.vue

@@ -1,86 +1,110 @@
 <template>
   <div class="contentDataMain">
-    <div class="userTop">
-      <div class="userHead">
-        <img :src="imgUrl"/>
+    <div class="leftBox">
+      <div class="classTop">
+        知识分类
       </div>
-      <div class="userMidle">
-        <p class="userMidleName">Hi.</p>
-        <p class="userMidleName">{{user.fullName}},祝你开心每一天!</p>
-        <p class="userMidleNum">上传文件数量<span>{{myuploadNum}}</span></p>
-      </div>
-      <div class="userEnd">
-        <a-cascader
-          :popupStyle="{
-            maxWidth: widthVar + 'px',
-            'overflow-x': 'auto'
-          }"
-          :getPopupContainer="triggerNode => { return triggerNode.parentNode }"
-          :options="options"
-          :show-search="{ filter }"
-          change-on-select
-          :default-value="defaultCascader"
-          placeholder="请选择分类"
-          @change="onChange"
-          @popupVisibleChange="popupVisibleChange"
-          class="cascaderBox scroll-ckunk"
-        />
-      </div>
-    </div>
-    <div class="searchBoxTop">
-      <search typeStr="content" searchWidth="auto" @searchResult="searchResult"></search>
+      <classMenu :categoryValue="categoryValue" :options="options" @changeClass="changeClass"></classMenu>
     </div>
-    <div class="tabBoxContent">
-      <div v-if="index==0||(index==1&&number1Bas!=0)||(index==2&&number2Bas!=0)" v-for="(item, index) in tapArr" :key="index" @click="changeAction(index)">
-        <span>{{index==0?categoryName:item}}({{index==0?number0:index==1?number1:number2}})</span>
-        <img v-if="tapAction==index" src="../../../../image/tabAction.png"/>
+    <div class="rightBox">
+      <div class="userTop">
+        <div class="userHead">
+          <img :src="imgUrl"/>
+        </div>
+        <div class="userMidle">
+          <p class="userMidleName">Hi.</p>
+          <p class="userMidleName">{{user.fullName}},祝你开心每一天!</p>
+          <p class="userMidleNum">上传文件数量<span>{{myuploadNum}}</span></p>
+        </div>
+        <div class="userEnd">
+          <search typeStr="content" searchWidth="100%" @searchResult="searchResult"></search>
+          <!--<a-cascader
+            :popupStyle="{
+              maxWidth: widthVar + 'px',
+              'overflow-x': 'auto'
+            }"
+            :getPopupContainer="triggerNode => { return triggerNode.parentNode }"
+            :options="options"
+            :show-search="{ filter }"
+            change-on-select
+            :default-value="defaultCascader"
+            placeholder="请选择分类"
+            @change="onChange"
+            @popupVisibleChange="popupVisibleChange"
+            class="cascaderBox scroll-ckunk"
+          />-->
+        </div>
       </div>
-      <div class="btnAddData" @click="addData">新增知识</div>
-    </div>
-    <div class="searchBoxContent" v-show="(tapAction==0)">
-      <div class="noDataBox" v-if="dataList.length==0">
-        <img src="../../../../image/noDataNew.png" class="noData"/>
-        <p class="noDataText">暂无搜索结果</p>
+      <div class="searchBoxTop">
+        <search typeStr="content" searchWidth="auto" @searchResult="searchResult"></search>
       </div>
-      <div v-else class="DataBoxContent">
-        <div class="listBox">
-          <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList" :key="index">
-            <pageList :showJurisdiction="true" :item="item" type="list0" v-if="type==3||type==4"></pageList>
-            <pageList :showJurisdiction="true" v-else :item="item" :type="type!=null||categoryName=='全部分类'?'list1':'list0'"></pageList>
-            <a-divider class="bottomBorder" v-if="(index!=dataList.length-1)"/>
-          </div>
+      <div class="tabBoxContent">
+        <div v-if="index==0||(index==1&&number1Bas!=0)||(index==2&&number2Bas!=0)||(index==3&&number3Bas!=0)" v-for="(item, index) in tapArr" :key="index" @click="changeAction(index)">
+          <span>{{index==0?categoryName:item}}({{index==0?number0:index==1?number1:index==2?number2:number3}})</span>
+          <img v-if="tapAction==index" src="../../../../image/tabAction.png"/>
         </div>
-        <pageBar ref="pageBarref0" @pageChange="pageChange0" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
+        <div class="btnAddData" @click="addData">新增知识</div>
       </div>
-    </div>
-    <div class="searchBoxContent" v-show="(tapAction==1)">
-      <div class="noDataBox" v-if="dataList1.length==0">
-        <img src="../../../../image/noDataNew.png" class="noData"/>
-        <p class="noDataText">暂无搜索结果</p>
+      <div class="searchBoxContent" v-show="(tapAction==0)">
+        <div class="noDataBox" v-if="dataList.length==0">
+          <img src="../../../../image/noDataNew.png" class="noData"/>
+          <p class="noDataText">暂无搜索结果</p>
+        </div>
+        <div v-else class="DataBoxContent">
+          <div class="listBox">
+            <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList" :key="index">
+              <pageList :showJurisdiction="true" :item="item" type="list0" v-if="type==3||type==4"></pageList>
+              <pageList :showJurisdiction="true" v-else :item="item" :type="type!=null||categoryName=='全部分类'?'list1':'list0'"></pageList>
+              <a-divider class="bottomBorder" v-if="(index!=dataList.length-1)"/>
+            </div>
+          </div>
+          <pageBar ref="pageBarref0" @pageChange="pageChange0" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
+        </div>
       </div>
-      <div v-else class="DataBoxContent">
-        <div class="listBox">
-          <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList1" :key="index">
-            <pageList :item="item" type="list1" :approval="true" @delRefresh="delRefresh"></pageList>
-            <a-divider class="bottomBorder" v-if="(index!=dataList1.length-1)"/>
+      <div class="searchBoxContent" v-show="(tapAction==1)">
+        <div class="noDataBox" v-if="dataList1.length==0">
+          <img src="../../../../image/noDataNew.png" class="noData"/>
+          <p class="noDataText">暂无搜索结果</p>
+        </div>
+        <div v-else class="DataBoxContent">
+          <div class="listBox">
+            <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList1" :key="index">
+              <pageList :item="item" type="list1" :approval="true" @delRefresh="delRefresh"></pageList>
+              <a-divider class="bottomBorder" v-if="(index!=dataList1.length-1)"/>
+            </div>
           </div>
+          <pageBar ref="pageBarref1" @pageChange="pageChange1" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
         </div>
-        <pageBar ref="pageBarref1" @pageChange="pageChange1" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
       </div>
-    </div>
-    <div class="searchBoxContent" v-show="(tapAction==2)">
-      <div class="noDataBox" v-if="dataList2.length==0">
-        <img src="../../../../image/noDataNew.png" class="noData"/>
-        <p class="noDataText">暂无搜索结果</p>
+      <div class="searchBoxContent" v-show="(tapAction==2)">
+        <div class="noDataBox" v-if="dataList2.length==0">
+          <img src="../../../../image/noDataNew.png" class="noData"/>
+          <p class="noDataText">暂无搜索结果</p>
+        </div>
+        <div v-else class="DataBoxContent">
+          <div class="listBox">
+            <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList2" :key="index">
+              <pageList :item="item" type="list1" :showEdit="true"></pageList>
+              <a-divider class="bottomBorder" v-if="(index!=dataList2.length-1)"/>
+            </div>
+          </div>
+          <pageBar ref="pageBarref2" @pageChange="pageChange2" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
+        </div>
       </div>
-      <div v-else class="DataBoxContent">
-        <div class="listBox">
-          <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList2" :key="index">
-            <pageList :item="item" type="list1"></pageList>
-            <a-divider class="bottomBorder" v-if="(index!=dataList2.length-1)"/>
+      <div class="searchBoxContent" v-show="(tapAction==3)">
+        <div class="noDataBox" v-if="dataList3.length==0">
+          <img src="../../../../image/noDataNew.png" class="noData"/>
+          <p class="noDataText">暂无搜索结果</p>
+        </div>
+        <div v-else class="DataBoxContent">
+          <div class="listBox">
+            <div class="listBoxItemContent listItemClass" v-for="(item, index) in dataList3" :key="index">
+              <pageList :item="item" type="list1" :showEdit="true" :hideLook="true"></pageList>
+              <a-divider class="bottomBorder" v-if="(index!=dataList3.length-1)"/>
+            </div>
           </div>
+          <pageBar ref="pageBarref3" @pageChange="pageChange3" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
         </div>
-        <pageBar ref="pageBarref2" @pageChange="pageChange2" :total="total" :pageSize="pageSize" class="pageBar"></pageBar>
       </div>
     </div>
   </div>
@@ -92,13 +116,15 @@ import api from '@/api/knowledge/warehouseIndex'
 import search from '../components/search'
 import pageBar from '../components/pageBar'
 import pageList from '../components/pageList'
+import classMenu from '../components/classMenu'
 import {mapState} from "vuex";
 export default {
   name: 'contentData',
   components: {
     search,
     pageBar,
-    pageList
+    pageList,
+    classMenu
   },
   computed: {
     ...mapState({
@@ -123,14 +149,17 @@ export default {
       pageNum0:1,
       pageNum1:1,
       pageNum2:1,
+      pageNum3:1,
       total:2,
       pageSize:10,
-      tapArr:['','我的审批','我的上传'],
+      tapArr:['','我的审批','我的上传','我的草稿'],
       number0:0,
       number1:0,
       number2:0,
+      number3:0,
       number1Bas:0,
       number2Bas:0,
+      number3Bas:0,
       myuploadNum:0,
       tapAction:0,
       dataList:[
@@ -139,6 +168,8 @@ export default {
       ],
       dataList2:[
       ],
+      dataList3:[
+      ],
       options: [],
       type:null,
       typeName:["最新知识","最热知识","文档排行","工作成果","经典案例","维基排行"],
@@ -146,6 +177,9 @@ export default {
     }
   },
   created() {
+    if(this.$route.query.showMy!=undefined){
+      this.changeAction(2)
+    }
     if(this.$route.query.type!=undefined){
       this.type=this.$route.query.type
       this.categoryName=this.typeName[this.type]
@@ -225,11 +259,26 @@ export default {
       this.getData(true);
     }
    },
+   //修改分类
+   changeClass(data){
+    if(data.categoryId=='000'){
+      this.categoryId = ''
+    }else{
+      this.categoryId = data.categoryId
+    }
+    this.categoryValue = data.categoryValue
+    this.categoryName = data.categoryName
+    this.type = null
+    this.getData(true);
+   },
    filter(inputValue, path) {
     return path.some(option => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
    },
    // 跳转添加
    addData(){
+    if(this.categoryValue.join(',')=='000'){
+      this.categoryValue=[]
+    }
     this.$router.push({
       name: "knowledgeAddUpdate",
       query: {
@@ -420,6 +469,40 @@ export default {
         })
       })
     }
+    /*if(this.tapAction==3||type){
+      let param0 = {
+        "pageNo": this.pageNum,
+        "pageSize": 10,
+        "sortField": "CREATE_TIME_",
+        "sortOrder": "desc",
+        params: {
+          "isDraft":0,
+          "createBy":this.user.userId,
+          "keyword":this.searchData.keyword
+        }
+      }
+      if(this.searchData.range!=0){
+        param0.params.type=this.searchData.range
+      }
+      contentData.findAllKnowledge(param0).then((res) => {
+        res.result.data.forEach(element => {
+          element.documentName = element.attachmentName
+          element.documentRemark = element.summary
+          element.viewNum = element.views
+          element.uploadTime = element.createTime
+          element.categoryArr = []
+          this.getType(element)
+          this.getCategory(element.categoryArr,element.knowledgeCategoryAdminVo)
+        });
+        this.number3 = res.result.totalCount
+        this.dataList3 = res.result.data
+        this.$nextTick(()=>{
+          if(Number(res.result.totalCount)!=0){
+            this.$refs.pageBarref3.setTotal(Number(res.result.totalCount))
+          }
+        })
+      })
+    }*/
    },
    // 删除刷新页面
    delRefresh(){
@@ -468,9 +551,8 @@ export default {
    getBaseData(){
     contentData.getAllKnowledgeCategory().then((res) =>{
       this.categoryData(res.data)
-      console.log(res.data)
       let allposition={
-        children: [],
+        children: res.data,
         isSys: 0,
         label: "全部分类",
         level: 1,
@@ -478,14 +560,14 @@ export default {
         operatorName: null,
         parent: "0",
         parents: null,
-        pkId: "",
+        pkId: "000",
         sort: 2,
         updateBy: "1",
         updateTime: "2022-12-27 17:00:30",
         value: ""
       }
-      res.data.unshift(allposition)
-      this.options=res.data
+     // res.data.unshift(allposition)
+      this.options=allposition
     })
     this.delRefresh()
     let param1 = {
@@ -518,6 +600,36 @@ export default {
         }
       })
     })
+    /*let param0 = {
+      "pageNo": this.pageNum,
+      "pageSize": 10,
+      "sortField": "CREATE_TIME_",
+      "sortOrder": "desc",
+      params: {
+        "isDraft":0,
+        "createBy":this.user.userId,
+        "keyword":this.searchData.keyword
+      }
+    }
+    contentData.findAllKnowledge(param0).then((res) => {
+      res.result.data.forEach(element => {
+        element.documentName = element.attachmentName
+        element.documentRemark = element.summary
+        element.viewNum = element.views
+        element.uploadTime = element.createTime
+        element.categoryArr = []
+        this.getType(element)
+        this.getCategory(element.categoryArr,element.knowledgeCategoryAdminVo)
+      });
+      this.number3 = res.result.totalCount
+      this.number3Bas = res.result.totalCount
+      this.dataList3 = res.result.data
+      this.$nextTick(()=>{
+        if(Number(res.result.totalCount)!=0){
+          this.$refs.pageBarref3.setTotal(Number(res.result.totalCount))
+        }
+      })
+    })*/
    },
    // 获取文件分类名
    getType(item){
@@ -539,6 +651,9 @@ export default {
    },
    // 处理分类
    getCategory(arr,data){
+    if(data==null){
+      return false
+    }
     arr.unshift(data.name)
     if(data.parents!=null){
       this.getCategory(arr,data.parents)
@@ -556,6 +671,9 @@ export default {
     if(this.tapAction==2){
       this.pageNum = this.pageNum2
     }
+    if(this.tapAction==3){
+      this.pageNum = this.pageNum3
+    }
    },
    // 页码处理
    pageChange0(num){
@@ -575,6 +693,13 @@ export default {
     this.pageNum2 = num
     this.getData(false)
    }
+   ,
+   // 页码处理
+   pageChange3(num){
+    this.pageNum = num
+    this.pageNum3 = num
+    this.getData(false)
+   }
   }
 }
 </script>
@@ -583,7 +708,9 @@ export default {
   position: absolute;
   background: #FAFAFA;
   height: 100%;
+  width: 100%;
   overflow: scroll;
+  display: flex;
 }
 .searchHead{
   background: #fff;
@@ -591,7 +718,7 @@ export default {
   width: 100%;
 }
 .searchBoxContent{
-  margin: 0px 10.94vw;
+  width: 78.125vw;
   border-bottom-left-radius: 10px;
   border-bottom-right-radius: 10px;
 }
@@ -601,6 +728,7 @@ export default {
   padding: 1.5625vw;
   margin-top: 1.25vw;
   border-radius: 10px;
+  display: none;
 }
 .noDataBox{
   width: 100%;
@@ -620,8 +748,7 @@ export default {
 }
 .tabBoxContent{
   display: flow-root;
-  width: 78.12vw;
-  margin: 0px 10.94vw;
+  width: 78.125vw;
   background: #fff;
   margin-top: 1.25vw;
   border-bottom: 1px solid #EEEEEE;
@@ -688,7 +815,7 @@ export default {
   margin-bottom: 0px;
 }
 .userTop{
-  margin: 0px 10.94vw;
+  width: 78.125vw;
   background: #fff;
   padding: 1.5625vw;
   margin-top: 1.5104vw;
@@ -723,6 +850,9 @@ export default {
 }
 .userEnd{
   margin-left: auto;
+  width: 47.34375vw;
+  display: flex;
+  align-items: center;
 }
 .cascaderBox{
   width: 20.625vw;
@@ -744,4 +874,22 @@ export default {
 /deep/ .ant-cascader-menu:last-child {
   margin-right: 0!important;
 }
+.leftBox{
+  margin-top: 1.5104vw;
+  width:11.71875vw;
+  margin-right:1.25vw;
+  background: #fff;
+  border-radius: 10px;
+  overflow-x: scroll;
+}
+.rightBox{
+  height: 100%;
+  overflow: scroll;
+}
+.classTop{
+  font-size: 1.04vw;
+  padding: 1.25vw 1.25vw 0.625vw;
+  color: #202124 ;
+  font-weight: 500;
+}
 </style>

+ 6 - 1
src/views/modules/knowledge/warehouse/knowledgeAddUpdate.vue

@@ -455,8 +455,13 @@ export default {
     handleShowClick() {
       this.option.isEdit = false
       this.option.lang = 'zh-CN'
+      let baseUrl = api.url0
+      if(location.href.indexOf('10.5.100.101')>-1){
+        baseUrl = api.url1
+      }
+      this.option.url = baseUrl+'/api/api-system/system/core/sysFile/previewFile?fileId='+this.knowledgeForm.attachment
       // this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
-      this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
+      //this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
       //this.option.url = 'http://www.hkcqjy.com.cn:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
       this.option.title = this.knowledgeForm.attachmentName
       this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]

+ 6 - 1
src/views/modules/knowledge/warehouse/knowledgeAuditInfo.vue

@@ -144,7 +144,12 @@ export default {
       this.option.canDownload = true
       this.option.canPrint = true
       this.option.lang = 'zh-CN'
-      this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
+      let baseUrl = api.url0
+      if(location.href.indexOf('10.5.100.101')>-1){
+        baseUrl = api.url1
+      }
+      this.option.url = baseUrl+'/api/api-system/system/core/sysFile/previewFile?fileId='+this.knowledgeForm.attachment
+      //this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
       //this.option.url = 'http://www.hkcqjy.com.cn:8088/api/api-system/system/core/sysFile/previewFile?fileId='+this.knowledgeForm.attachment
       this.option.title = this.knowledgeForm.attachmentName.split(".")[0]
       this.option.fileType = this.knowledgeForm.attachmentName.split(".").pop()

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

@@ -33,7 +33,7 @@
 import wordIcon from '@/assets/img/warehouse/wordIcon.png'
 import vabOnlyOffice  from '../components/onlyOffice.vue'
 import knowledgeContentInfo from '@/api/knowledge/knowledgeContentInfo'
-
+import api from '@/api/knowledge/warehouseIndex'
 export default {
   name: 'knowledgeContentInfo',
   components: {
@@ -89,7 +89,12 @@ export default {
       this.option.canDownload = true
       this.option.canPrint = true
       this.option.lang = 'zh-CN'
-      this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
+      let baseUrl = api.url0
+      if(location.href.indexOf('10.5.100.101')>-1){
+        baseUrl = api.url1
+      }
+      this.option.url = baseUrl+'/api/api-system/system/core/sysFile/previewFile?fileId='+this.detailData.attachment
+      //this.option.url = 'http://10.5.100.101/api/api-system/system/core/sysFile/previewFile?fileId='+ this.detailData.attachment,
       //this.option.url = 'http://www.hkcqjy.com.cn:8088/api/api-system/system/core/sysFile/previewFile?fileId='+this.detailData.attachment
       this.option.title = this.detailData.attachmentName.split(".")[0]
       this.option.fileType = this.detailData.attachmentName.split(".").pop()

+ 1 - 1
src/views/user/Login.vue

@@ -415,7 +415,7 @@ export default {
             if (res.code === 200) {
           /*      let url = '/portal'
                 window.open(url, "_self");*/
-                 this.$router.push({ name: 'home-index' }, () => {
+                 this.$router.push({ name: 'home' }, () => {
                     this.$notification.success({
                       message: '欢迎',
                       description: `${timeFix()},欢迎回来`

+ 2 - 2
vue.config.js

@@ -170,7 +170,7 @@ const vueConfig = {
             //target: 'http://10.5.100.230:9009',//服务器
            // target: 'http://10.5.100.64:5208',
             //target: 'http://192.168.0.205:7206',//柳哥
-            target: 'http://www.hkcqjy.com.cn:8088',
+            target: 'http://10.5.100.101/',
             //target: 'http://10.5.100.230:9009',//服务器
             // target: 'http://10.5.0.233:9900',
             // target: 'http://10.5.100.64:9900',
@@ -182,7 +182,7 @@ const vueConfig = {
         // target: 'http://localhost:9900',
         // target: 'http://10.5.0.233:9900',
         //target: 'http://10.5.100.64:9900',
-        target: 'http://www.hkcqjy.com.cn:8088',
+        target: 'http://10.5.100.101/',
         //target: 'http://10.5.100.64:5208',
         //target: 'http://192.168.0.176:7206',//柳哥
         //target: 'http://192.168.0.109:7206',//白哥