qymljy 1 year ago
parent
commit
e75e45c19c

+ 1 - 1
src/HDrpManagement/contractManage/components/submitCheck.vue

@@ -1,6 +1,6 @@
 <template>
   <div >
-    <el-button  @click="submit" size="mini" slot="reference" type="primary" v-if="data.status=='新建' && tool.checkAuth($route.name,'submit') && !disabled && data.status">提 交</el-button>
+    <el-button  @click="submit" size="mini" slot="reference" type="primary" :disabled="data.status == '已过期'" v-if="data.status=='新建' && tool.checkAuth($route.name,'submit') && !disabled && data.status">提 交</el-button>
     <el-button @click="submit" size="mini" slot="reference" type="primary" v-if="data.status=='已提交' && tool.checkAuth($route.name,'check') && data.status">审 核</el-button>
   </div>
 </template>

+ 1 - 0
src/HDrpManagement/contractManage/index.vue

@@ -68,6 +68,7 @@
             <el-option label="审核" value="审核" ></el-option>
             <el-option label="已提交" value="已提交" ></el-option>
             <el-option label="已终止" value="已终止" ></el-option>
+            <el-option label="已过期" value="已过期" ></el-option>
           </el-select>
         </div>
         <div class="mt-10">

+ 30 - 0
src/HDrpManagement/contractManage/modules/detail.vue

@@ -351,6 +351,9 @@ export default {
                 case '审核':
                   style = {color:'#333333'}
                   break;
+              case '已过期':
+                style = {color:'#999999'}
+                break;
                 default:
                   break;
               }
@@ -426,6 +429,9 @@ export default {
                 case '审核':
                   style = {color:'#333333'}
                   break;
+                case '已过期':
+                  style = {color:'#999999'}
+                  break;
                 default:
                   break;
               }
@@ -507,6 +513,9 @@ export default {
                 case '审核':
                   style = {color:'#333333'}
                   break;
+                case '已过期':
+                  style = {color:'#999999'}
+                  break;
                 default:
                   break;
               }
@@ -596,6 +605,9 @@ export default {
                 case '审核':
                   style = {color:'#333333'}
                   break;
+              case '已过期':
+                style = {color:'#999999'}
+                break;
                 default:
                   break;
               }
@@ -676,6 +688,9 @@ export default {
                 case '审核':
                   style = {color:'#333333'}
                   break;
+                case '已过期':
+                  style = {color:'#999999'}
+                  break;
                 default:
                   break;
               }
@@ -801,6 +816,9 @@ export default {
                         case '审核':
                           style = {color:'#333333'}
                           break;
+                        case '已过期':
+                          style = {color:'#999999'}
+                          break;
                         default:
                           break;
                       }
@@ -908,6 +926,9 @@ export default {
                         case '审核':
                           style = {color:'#333333'}
                           break;
+                        case '已过期':
+                          style = {color:'#999999'}
+                          break;
                         default:
                           break;
                       }
@@ -1010,6 +1031,9 @@ export default {
                         case '审核':
                           style = {color:'#333333'}
                           break;
+                        case '已过期':
+                          style = {color:'#999999'}
+                          break;
                         default:
                           break;
                       }
@@ -1092,6 +1116,9 @@ export default {
                             case '审核':
                               style = {color:'#333333'}
                               break;
+                            case '已过期':
+                              style = {color:'#999999'}
+                              break;
                             default:
                               break;
                           }
@@ -1192,6 +1219,9 @@ export default {
                             case '审核':
                               style = {color:'#333333'}
                               break;
+                            case '已过期':
+                              style = {color:'#999999'}
+                              break;
                             default:
                               break;
                           }

+ 15 - 13
src/HDrpManagement/customerPortrait/index.vue

@@ -14,7 +14,7 @@
           </el-select>
         </div>
       </div>
-      <el-scrollbar >
+      <el-scrollbar>
       <div style="min-width: 1500px;padding: 10px 20px 5px 20px;height:calc(100vh - 300px)">
         <div style="width: 20%;float: left" >
           <el-table border :data="list" ref="table" highlight-current-row  @row-click="rowClick">
@@ -49,8 +49,8 @@
           </div>
 
         </div>
-        <div style="width: 79%;float: right;" v-if="flag">
-          <mindmap  ref="custom" class="inline-16" style="width:calc(150vh - 130px);height:calc(100vh - 300px) " :id="sa_customersid" ></mindmap>
+        <div style="width: 79.5%;height:100%;float: right;overflow: hidden" v-if="flag">
+          <mindmap :contentStyle="{height:'75vh',width:'66vw'}" :divStyle="{height:'76.5vh',width:'100%'}" ref="custom" class="inline-16" :id="sa_customersid" :show="show" :isList="1"></mindmap>
         </div>
       </div>
       </el-scrollbar>
@@ -70,6 +70,7 @@ export default {
       total:0,
       flag:false,
       sa_customersid:'',
+      show:'1',
       editableTabs:[
         {
           templetname:'我负责的',
@@ -111,28 +112,29 @@ export default {
       this.listData()
     },
     async listData(){
+      this.$store.dispatch('changeDetailDrawer',false)
       this.param.content.type = this.value
       const res = await this.$api.requested(this.param)
       this.list = res.data
       this.total = res.total
-      console.log(res.data,'客户')
+
       this.sa_customersid = res.data[0].sa_customersid
       this.flag = true
-      this.$nextTick(()=>{
+      this.$refs.table.setCurrentRow(this.list[0])
+    /*  this.$nextTick(()=>{
         this.$refs.custom.getData()
-        this.$refs.table.setCurrentRow(this.list[0])
-      })
+
+      })*/
 
     },
     rowClick(val){
       this.flag = false
       this.sa_customersid = val.sa_customersid
-      console.log(this.sa_customersid,'客户id')
-      setTimeout(function (){
-        let that= this
-        that.flag = true
-        that.$refs.custom.getData()
-      },500)
+      this.$nextTick(()=>{
+        this.flag = true
+
+      })
+     /* this.queryData()*/
     },
     handleSizeChange(val) {
       // console.log(`每页 ${val} 条`);

+ 2 - 2
src/HDrpManagement/projectChange/modules/detail.vue

@@ -244,7 +244,7 @@ export default {
       this.getProjectAddres()
       this.projectStage()
       this.tagData()
-      if (this.$route.query.portrait !== ''){
+      if (this.$route.query.portrait != ''){
         this.$refs.mindmap.onShow()
       }
     },
@@ -414,7 +414,7 @@ export default {
           {label:'最近编辑人',value:this.mainData.changeby ? this.mainData.changeby : '--'},
           {label:'最近编辑时间',value:this.mainData.changedate ? this.mainData.changedate : '--'},
           {label:'提交报备人',value:this.mainData.reportby?this.mainData.reportby:'--'},
-          {label:'提报备时间',value:this.mainData.reportdate?this.mainData.reportdate:'--'},
+          {label:'提报备时间',value:this.mainData.reportdate?this.mainData.reportdate:'--'},
           {label:'报备审核人',value:this.mainData.reportcheckby?this.mainData.reportcheckby:'--'},
           {label:'报备审核时间',value:this.mainData.reportcheckdate?this.mainData.reportcheckdate:'--'},
           /*{label:'锁定状态',value:this.mainData.locked == '0' ? '锁定' : '解锁'},*/

+ 9 - 6
src/HDrpManagement/projectPortrait/index.vue

@@ -54,8 +54,8 @@
           </div>
 
         </div>
-        <div style="width: 79%;float: right;">
-          <mindmap v-if="flag" ref="project" class="inline-16" style="width:calc(150vh - 130px);height:calc(100vh - 300px) " :id="sa_projectid" ></mindmap>
+        <div style="width: 79%;height:100%;float: right;" v-if="flag">
+          <mindmap :contentStyle="{height:'75vh',width:'66vw'}" :divStyle="{height:'76.5vh',width:'70.5vw'}" ref="project" class="inline-16" :id="sa_projectid" :show="show"></mindmap>
         </div>
       </div>
       </el-scrollbar>
@@ -74,6 +74,7 @@ export default {
       list:[],
       total:0,
       flag:false,
+      show:'1',
       sa_projectid:'',
       editableTabs:[
         {
@@ -115,23 +116,25 @@ export default {
       this.listData()
     },
     async listData(){
+      this.$store.dispatch('changeDetailDrawer',false)
       this.param.content.type = this.value
       const res = await this.$api.requested(this.param)
       this.list = res.data
       this.total = res.total
       this.sa_projectid = res.data[0].sa_projectid
       this.flag = true
-      this.$nextTick(()=>{
+      this.$refs.table.setCurrentRow(this.list[0])
+      /*this.$nextTick(()=>{
         this.$refs.project.getData()
         this.$refs.table.setCurrentRow(this.list[0])
-      })
+      })*/
     },
     rowClick(val){
-      console.log(val)
+      this.flag = false
       this.sa_projectid = val.sa_projectid
       this.$nextTick(()=>{
-        this.$refs.project.getData()
         this.flag = true
+
       })
 
     },

+ 11 - 11
src/HDrpManagement/salerPortrait/index.vue

@@ -4,7 +4,7 @@
       <div style="padding: 20px 20px 5px 20px;">
         <div class="mt-10">
           <label  class="search__label" >范围:</label>
-            <el-cascader  size="small" ref="selectdep" :options="deplist" :props="{emitPath:true,expandTrigger:'hover',checkStrictly:true,label:'label',value:'departmentid',children:'children'}"  @change="selectDep"  clearable></el-cascader>
+            <el-cascader v-model="cvalue"  size="small" ref="selectdep" :options="deplist" :props="{emitPath:true,expandTrigger:'hover',checkStrictly:true,label:'label',value:'departmentid',children:'children'}"  @change="selectDep"  clearable></el-cascader>
         </div>
       </div>
       <el-scrollbar >
@@ -22,7 +22,7 @@
                 width="180">
             </el-table-column>
             <el-table-column
-                prop="tradefield"
+                prop="area"
                 label="区域"
                 width="180">
             </el-table-column>
@@ -41,8 +41,8 @@
           </div>
 
         </div>
-        <div style="width: 79%;float: right;">
-          <mindmap v-if="flag" ref="saler" class="inline-16" style="width:calc(150vh - 130px);height:calc(100vh - 300px) " :id="hrid" ></mindmap>
+        <div style="width: 79%;height:100%;float: right;" v-if="flag">
+          <mindmap :contentStyle="{height:'75vh',width:'66vw'}" :divStyle="{height:'76.5vh',width:'70.5vw'}" ref="saler" class="inline-16" :id="hrid" :show="show"></mindmap>
         </div>
       </div>
       </el-scrollbar>
@@ -57,11 +57,12 @@ export default {
   components:{mindmap},
   data() {
     return {
-      value:[],
+      cvalue:[],
       list:[],
       total:0,
       flag:false,
       hrid:'',
+      show:'1',
       depmentParam:{
         "id": 20230620102004,
         "content": {
@@ -89,7 +90,7 @@ export default {
       this.deplist = this.createMenu(res.data.dep)
       console.log(this.deplist,'部门列表')
       this.personParam.content.departmentids = [this.deplist[0].departmentid]
-      this.value = this.deplist[0].label
+      this.cvalue = this.deplist[0].departmentid
       console.log(this.value,'项目选择')
       this.listData()
       /*this.range = JSON.parse(window.sessionStorage.getItem('active_account')).name*/
@@ -148,27 +149,26 @@ export default {
       return arr
     },
     selectDep(val) {
+      console.log(val)
       let dataDep = this.$refs.selectdep.getCheckedNodes(true)[0].data
       this.value = dataDep.label
       this.personParam.content.departmentids = [val[val.length-1]]
       this.listData()
     },
     async listData(){
+      this.$store.dispatch('changeDetailDrawer',false)
       const res = await this.$api.requested(this.personParam)
       this.list = res.data
       this.total = res.total
       this.hrid = res.data[0].hrid
       this.flag = true
-      this.$nextTick(()=>{
-        this.$refs.saler.getData()
-        this.$refs.table.setCurrentRow(this.list[0])
-      })
+      this.$refs.table.setCurrentRow(this.list[0])
     },
     rowClick(val){
       console.log(val)
+      this.flag = false
       this.hrid = val.hrid
       this.$nextTick(()=>{
-        this.$refs.saler.getData()
         this.flag = true
       })
 

+ 5 - 5
src/HManagement/siteManage/securityConfig/index.vue

@@ -7,9 +7,9 @@
     <basicInfo @onSuccess="infoData"></basicInfo>
     <!--消息提示设置-->
     <messageTips/>
-    
+
     <div class="container normal-panel" style="display:flex;justify-content:space-around;border-bottom:none">
-      <el-descriptions title="安全配置"></el-descriptions>
+      <el-descriptions title="规则设置"></el-descriptions>
     </div>
     <div class="panel">
       <div class="flex-align-center flex-between">
@@ -200,11 +200,11 @@ export default {
         "content": {}
       })
       console.log(1);
-      
+
     },
     /*安全配置信息*/
     async querySite_Parameter () {
-      
+
       const res = await this.$api.requested({
         "classname": "webmanage.site.site",
         "method": "querySite_Parameter",
@@ -306,4 +306,4 @@ export default {
 .color-yellow{
   color: #FA8C16;
 }
-</style>
+</style>

+ 1 - 1
src/SDrpManagement/salerPrivatecustomer/detail/customerDetail.vue

@@ -287,7 +287,7 @@ export default {
           value:this.mainData.agentname
         },
       ]
-      if (this.$route.query.portrait !== ''){
+      if (this.$route.query.portrait != ''){
         this.$refs.mindmap.onShow()
       }
     },

+ 20 - 12
src/components/mindmap/custom.vue

@@ -1,8 +1,8 @@
 <template>
-  <div style="background:#f1f2f3;" id="full" :style="contentStyle">
-    <img style="width: 25px; height: 25px;float: right" v-if="!fullscreen" @click="enterFullscreen" src="@/assets/icons/amplify.svg" title="全屏">
-    <img style="width: 25px; height: 25px;float: right" @click="backFullscreen" v-if="fullscreen" src="@/assets/icons/reduce.svg" title="还原">
-    <div  id="container">
+  <div style="background:#f1f2f3;overflow: auto;" id="full" :style="divStyle">
+    <img style="width: 25px; height: 25px;float: left" v-if="!fullscreen" @click="enterFullscreen" src="@/assets/icons/amplify.svg" title="全屏">
+    <img style="width: 25px; height: 25px;float: left" @click="backFullscreen" v-if="fullscreen" src="@/assets/icons/reduce.svg" title="还原">
+    <div  id="container" :style="contentStyle">
     </div>
     <el-drawer
         :visible.sync="drawer"
@@ -12,9 +12,10 @@
       <p style="padding: 10px 0px 0px 10px">{{title}}</p>
 <!--      <el-divider></el-divider>-->
       <contractInfo v-if="title == '合同列表'" :data="tableData"></contractInfo>
-      <projectInfo v-if="title == '项目列表'" :data="tableData"></projectInfo>
+      <projectInfo v-if="title == '项目列表'" :data="tableData" :isList="isList"></projectInfo>
       <orderInfo v-if="title == '订单列表'" :data="tableData"></orderInfo>
       <serviceInfo v-if="title == '服务列表'" :data="tableData"></serviceInfo>
+      <contactsInfo v-if="title == '联系人列表'" :data="tableData"></contactsInfo>
     </el-drawer>
   </div>
 </template>
@@ -25,6 +26,7 @@ import contractInfo from "@/components/mindmap/modules/contractInfo";
 import projectInfo from "@/components/mindmap/modules/projectInfo";
 import orderInfo from "@/components/mindmap/modules/orderInfo";
 import serviceInfo from "@/components/mindmap/modules/serviceInfo";
+import contactsInfo from "@/components/mindmap/modules/contactsInfo";
 import G6 from '@antv/g6';
 let graph;
 
@@ -377,7 +379,7 @@ G6.registerNode('card-node', {
   setState: nodeBasicMethod.setState,
 });
 export default {
-  props:['id','contentStyle'],
+  props:['id','contentStyle','show','divStyle','isList'],
   data () {
     return {
       fullscreen:false,
@@ -386,19 +388,24 @@ export default {
       tableData: []
     }
   },
-  components:{detailsInfo,contractInfo,projectInfo,orderInfo,serviceInfo},
+  components:{detailsInfo,contractInfo,projectInfo,orderInfo,serviceInfo,contactsInfo},
   mounted () {
     // this.getData()
+    if (this.show === '1'){
+      this.getData()
+    }
+
     document.addEventListener('fullscreenchange', this.handleFullscreenChange);
     document.addEventListener('mozfullscreenchange', this.handleFullscreenChange);
     document.addEventListener('webkitfullscreenchange', this.handleFullscreenChange);
     document.addEventListener('MSFullscreenChange',this.handleFullscreenChange)
+    console.log(this.id,'00000')
   },
   methods:{
     createMenu (array) {
       var that = this
       let arr = []
-      const HASLINKS = ['项目','合同','服务工单数','订单','服务']
+      const HASLINKS = ['项目','合同','服务工单数','订单','服务','联系人']
       function convertToElementTree(node) {
         // 新节点
         var elNode = {
@@ -427,10 +434,9 @@ export default {
       });
       return arr
     },
-    
+
     async getData () {
       var that = this
-      console.log(this.id,'8888')
       const res = await this.$api.requested({
         "id": 20230620143204,
         "content": {
@@ -439,6 +445,7 @@ export default {
       })
       // this.data = this.createMenu([res.data.data])
       const container = document.getElementById('container');
+      console.log(container,'container')
       const width = container.scrollWidth;
       const height = container.scrollHeight -50 || 500;
       const contextMenu = new G6.Menu({
@@ -510,17 +517,18 @@ export default {
         this.tableData = item._cfg.model.data
         console.log(this.tableData,'表格订单')
         this.title = item._cfg.model.label + '列表'
-        if (item._cfg.model.label == '合同' || item._cfg.model.label == '项目' || item._cfg.model.label == '订单' || item._cfg.model.label == '服务'){
+        if (item._cfg.model.label == '合同' || item._cfg.model.label == '项目' || item._cfg.model.label == '订单' || item._cfg.model.label == '服务' || item._cfg.model.label == '联系人'){
           this.drawer = true
         }
       })
-      
+
       if (typeof window !== 'undefined')
         window.onresize = () => {
           if (!graph || graph.get('destroyed')) return;
           if (!container || !container.scrollWidth || !container.scrollHeight) return;
           graph.changeSize(container.scrollWidth, container.scrollHeight);
         };
+
       if (this.$route.query.portrait === 'ht'){
         res.data.children.forEach(item=>{
           if (item.name === '合同'){

+ 3 - 3
src/components/mindmap/index.vue

@@ -6,9 +6,9 @@
       append-to-body
       size="90%"
       :with-header="false">
-      <custom :contentStyle="{height:'100vh',width:'100vw'}" ref="custom" v-if="name === 'custom'" :id="id"/>
-      <project :contentStyle="{height:'100vh',width:'100vw'}" ref="project" v-else-if="name === 'project'" :id="id"/>
-      <saler :contentStyle="{height:'100vh',width:'100vw'}" ref="saler" v-else :id="id"/>
+      <custom :contentStyle="{height:'100vh',width:'100vw'}" :divStyle="{height:'100vh',width:'100vw'}" ref="custom" v-if="name === 'custom'" :id="id"/>
+      <project :contentStyle="{height:'100vh',width:'100vw'}" :divStyle="{height:'100vh',width:'100vw'}" ref="project" v-else-if="name === 'project'" :id="id"/>
+      <saler :contentStyle="{height:'100vh',width:'100vw'}" :divStyle="{height:'100vh',width:'100vw'}" ref="saler" v-else :id="id"/>
     </el-drawer>
 
   </div>

+ 84 - 0
src/components/mindmap/modules/contactsInfo.vue

@@ -0,0 +1,84 @@
+<template>
+  <div style="padding: 10px 0px 0px 10px">
+      <el-table
+          :data="data"
+          border
+          height="calc(100vh - 60px)"
+          style="width: 100%">
+        <el-table-column
+            prop="name"
+            label="姓名"
+            width="0">
+        </el-table-column>
+        <el-table-column
+            prop="wechatnum"
+            label="微信"
+            width="0">
+        </el-table-column>
+        <el-table-column
+            prop="phonenumber"
+            label="手机号"
+            width="0">
+<!--            <template slot-scope="scope">
+              <span>{{tool.formatAmount(scope.row.signamount,2)}}</span>
+            </template>-->
+        </el-table-column>
+        <el-table-column
+            prop="depname"
+            label="部门"
+            width="0">
+<!--          <template slot-scope="scope">
+            <span >{{tool.formatAmount(scope.row.discountrate * 100,2)}}%</span>
+          </template>-->
+        </el-table-column>
+        <el-table-column
+            prop="position"
+            label="职位"
+            width="100">
+        </el-table-column>
+<!--        <el-table-column
+            prop="operation"
+            width="100"
+            label="操作">
+          <template slot-scope="scope">
+            &lt;!&ndash;              <el-input v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>&ndash;&gt;
+            <el-button size="mini" type="text" @click="rowChange(scope.row)">详 情</el-button>
+            &lt;!&ndash;              <detailsInfo :row="scope.row"></detailsInfo>&ndash;&gt;
+          </template>
+        </el-table-column>-->
+      </el-table>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "contractInfo",
+  props:['data'],
+  methods:{
+    rowChange(data){
+      this.$store.dispatch('changeDetailDrawer',false)
+      setTimeout(()=>{
+        let route = this.$route
+        route.query.portrait = 'xm'
+        console.log(route,'route')
+        if (route.path !== '/projectChangeDetail') {
+          this.oldRoute = {path:route.path,query:route.query}
+          this.$store.dispatch('setHistoryRouter',this.oldRoute)
+        }
+        this.$router.replace({
+          path:'/projectChangeDetail',
+          query:{
+            id:data.sa_projectid,
+            rowindex:data.rowindex,
+          }
+        })
+        this.$store.dispatch('changeDetailDrawer',true)
+      },500)
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 99 - 0
src/components/mindmap/modules/projectEvaluation.vue

@@ -0,0 +1,99 @@
+<template>
+  <div style="padding: 10px 0px 0px 10px">
+      <el-table
+          :data="data"
+          border
+          height="calc(100vh - 60px)"
+          style="width: 100%">
+        <el-table-column
+            prop="name"
+            label="评估人"
+            width="0">
+        </el-table-column>
+        <el-table-column
+            prop="depname"
+            label="部门"
+            width="0">
+        </el-table-column>
+        <el-table-column
+            prop="position"
+            label="职位"
+            width="0">
+<!--            <template slot-scope="scope">
+              <span>{{tool.formatAmount(scope.row.signamount,2)}}</span>
+            </template>-->
+        </el-table-column>
+        <el-table-column
+            prop="taskname"
+            label="评估任务"
+            width="300">
+<!--          <template slot-scope="scope">
+            <span >{{tool.formatAmount(scope.row.discountrate * 100,2)}}%</span>
+          </template>-->
+        </el-table-column>
+        <el-table-column
+            prop="enterprisename"
+            label="评估对象"
+            width="180">
+        </el-table-column>
+        <el-table-column
+            prop="optionname"
+            label="评估结果"
+            width="100">
+        </el-table-column>
+        <el-table-column
+            prop="actionnotes"
+            label="评估说明"
+            width="300">
+        </el-table-column>
+        <el-table-column
+            prop="createdate"
+            label="评估时间"
+            width="200">
+        </el-table-column>
+<!--        <el-table-column
+            prop="operation"
+            width="100"
+            label="操作">
+          <template slot-scope="scope">
+            &lt;!&ndash;              <el-input v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>&ndash;&gt;
+            <el-button size="mini" type="text" @click="rowChange(scope.row)">详 情</el-button>
+            &lt;!&ndash;              <detailsInfo :row="scope.row"></detailsInfo>&ndash;&gt;
+          </template>
+        </el-table-column>-->
+      </el-table>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "contractInfo",
+  props:['data'],
+  methods:{
+    rowChange(data){
+      this.$store.dispatch('changeDetailDrawer',false)
+      setTimeout(()=>{
+        let route = this.$route
+        route.query.portrait = 'xm'
+        console.log(route,'route')
+        if (route.path !== '/projectChangeDetail') {
+          this.oldRoute = {path:route.path,query:route.query}
+          this.$store.dispatch('setHistoryRouter',this.oldRoute)
+        }
+        this.$router.replace({
+          path:'/projectChangeDetail',
+          query:{
+            id:data.sa_projectid,
+            rowindex:data.rowindex,
+          }
+        })
+        this.$store.dispatch('changeDetailDrawer',true)
+      },500)
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 14 - 9
src/components/mindmap/project.vue

@@ -1,8 +1,8 @@
 <template>
-  <div style="background:#f1f2f3" id="full" :style="contentStyle">
-    <img style="width: 25px; height: 25px;float: right" v-if="!fullscreen" @click="enterFullscreen" src="@/assets/icons/amplify.svg" title="全屏">
-    <img style="width: 25px; height: 25px;float: right" @click="backFullscreen" v-if="fullscreen" src="@/assets/icons/reduce.svg" title="还原">
-    <div id="container"></div>
+  <div style="background:#f1f2f3" id="full" :style="divStyle">
+    <img style="width: 25px; height: 25px;float: left" v-if="!fullscreen" @click="enterFullscreen" src="@/assets/icons/amplify.svg" title="全屏">
+    <img style="width: 25px; height: 25px;float: left" @click="backFullscreen" v-if="fullscreen" src="@/assets/icons/reduce.svg" title="还原">
+    <div id="container" :style="contentStyle"></div>
     <el-drawer
         :visible.sync="drawer"
         append-to-body
@@ -13,6 +13,7 @@
       <customInfo v-if="title == '关联客户列表'" :data="tableData"></customInfo>
       <contractInfo v-if="title == '合同列表'" :data="tableData"></contractInfo>
       <quotationInfo v-if="title == '报价列表'" :data="tableData"></quotationInfo>
+      <projectEvaluation v-if="title == '评估记录列表'" :data="tableData"></projectEvaluation>
     </el-drawer>
   </div>
 </template>
@@ -22,6 +23,7 @@ import competitorInfo from "@/components/mindmap/modules/competitorInfo";
 import customInfo from "@/components/mindmap/modules/customInfo";
 import contractInfo from "@/components/mindmap/modules/contractInfo";
 import quotationInfo from "@/components/mindmap/modules/quotationInfo";
+import projectEvaluation from "@/components/mindmap/modules/projectEvaluation";
 import G6 from '@antv/g6';
 import axios from 'axios'
 let graph;
@@ -376,8 +378,8 @@ G6.registerNode('card-node', {
   setState: nodeBasicMethod.setState,
 });
 export default {
-  props:['id','contentStyle'],
-  components:{competitorInfo,customInfo,contractInfo,quotationInfo},
+  props:['id','contentStyle','show','divStyle'],
+  components:{competitorInfo,customInfo,contractInfo,quotationInfo,projectEvaluation},
   data () {
     return {
       fullscreen:false,
@@ -388,6 +390,9 @@ export default {
   },
   mounted () {
     // this.getData()
+    if (this.show === '1'){
+      this.getData()
+    }
     document.addEventListener('fullscreenchange', this.handleFullscreenChange);
     document.addEventListener('mozfullscreenchange', this.handleFullscreenChange);
     document.addEventListener('webkitfullscreenchange', this.handleFullscreenChange);
@@ -397,7 +402,7 @@ export default {
     createMenu (array) {
       var that = this
       let arr = []
-      const HASLINKS = ['关联客户','竞争对手','报价单有效数','合同有效数','报价','合同']
+      const HASLINKS = ['关联客户','竞争对手','报价单有效数','合同有效数','报价','合同','评估记录']
       function convertToElementTree(node) {
         // 新节点
         var elNode = {
@@ -482,7 +487,7 @@ export default {
           type: 'dendrogram',
           direction: 'RL',
           nodeSep: 100,
-          rankSep: 350,
+          rankSep: 500,
           radial: true,
         },
       });
@@ -501,7 +506,7 @@ export default {
         console.log(item._cfg.model,'点击列表')
         this.tableData = item._cfg.model.data
         this.title = item._cfg.model.label + '列表'
-        if (item._cfg.model.label == '竞争对手' || item._cfg.model.label == '关联客户' || item._cfg.model.label == '报价' || item._cfg.model.label == '合同'){
+        if (item._cfg.model.label == '竞争对手' || item._cfg.model.label == '关联客户' || item._cfg.model.label == '报价' || item._cfg.model.label == '合同' || item._cfg.model.label == '评估记录'){
           this.drawer = true
         }
       })

+ 8 - 5
src/components/mindmap/saler.vue

@@ -1,8 +1,8 @@
 <template>
-  <div style="background:#f1f2f3" id="full" :style="contentStyle">
-    <img style="width: 25px; height: 25px;float: right" v-if="!fullscreen" @click="enterFullscreen" src="@/assets/icons/amplify.svg" title="全屏">
-    <img style="width: 25px; height: 25px;float: right" @click="backFullscreen" v-if="fullscreen" src="@/assets/icons/reduce.svg" title="还原">
-    <div id="container"></div>
+  <div style="background:#f1f2f3" id="full" :style="divStyle">
+    <img style="width: 25px; height: 25px;float: left" v-if="!fullscreen" @click="enterFullscreen" src="@/assets/icons/amplify.svg" title="全屏">
+    <img style="width: 25px; height: 25px;float: left" @click="backFullscreen" v-if="fullscreen" src="@/assets/icons/reduce.svg" title="还原">
+    <div id="container" :style="contentStyle"></div>
     <el-drawer
         :visible.sync="drawer"
         append-to-body
@@ -378,7 +378,7 @@ G6.registerNode('card-node', {
   setState: nodeBasicMethod.setState,
 });
 export default {
-  props:['id','contentStyle'],
+  props:['id','contentStyle','show','divStyle'],
   components:{customerCount,contractCount,clueCount,projectQuotation,customQuotation,projectAssociation},
   data () {
     return {
@@ -390,6 +390,9 @@ export default {
   },
   mounted () {
     // this.getData()
+    if (this.show === '1'){
+      this.getData()
+    }
     document.addEventListener('fullscreenchange', this.handleFullscreenChange);
     document.addEventListener('mozfullscreenchange', this.handleFullscreenChange);
     document.addEventListener('webkitfullscreenchange', this.handleFullscreenChange);

+ 7 - 7
src/store/index.js

@@ -51,7 +51,7 @@ export default new Vuex.Store({
     isRouterAlive:state => state.isRouterAlive,
     pageCache: state => state.pageCache,
     svlistData:state => state.svlistData,
-    
+
   },
   mutations: {
     setLoading(state,value) {
@@ -84,12 +84,12 @@ export default new Vuex.Store({
     sendDataToForm (state,data) {
       state.dataToForm = data
     },
-    
+
     setActiveApp (state,data) {
       //头部区域搜索所传入的数值
       state.searchValue = data.val
 
-      
+
       data.app?sessionStorage.setItem('activeApp',JSON.stringify(data.app)):''
       state.appname = data.name
       state.activeApp = JSON.parse(sessionStorage.getItem('activeApp'))
@@ -146,10 +146,10 @@ export default new Vuex.Store({
         const res = await api.requested(obj)
 
         commit('setSelectList',res)
-        
+
         reslove(res)
       })
-      
+
     },
     // 查询站点信息
     async querySiteInfo ({commit}, param) {
@@ -199,7 +199,7 @@ export default new Vuex.Store({
       })
       commit('setUsershortcuts',arr)
     },
-    // 设置应用快捷栏 
+    // 设置应用快捷栏
     async setAppMenu ({commit}, param) {
       const res = await api.requested({
         "classname": "sysmanage.develop.userauthforweb.userauth",
@@ -244,7 +244,7 @@ export default new Vuex.Store({
     getModules ({commit}, data) {
       if (data.type === 'system') {
         commit('setActiveApp',{name:data.mod[0].apps[0].systemappname,app:data.mod[0].apps[0],val:''})
-        
+
         sessionStorage.setItem('active_modules',JSON.stringify(data.mod[0]))
 
         let inactivePath = data.mod[0].apps[0].path