Browse Source

任务调整,展示优化

qymljy 1 year ago
parent
commit
8a8bec61bd

+ 1 - 1
src/HManagement/task/components/applicationData.vue

@@ -201,7 +201,7 @@ export default {
         value: 'sa_customers',
         label: '我的客户'
       }, {
-        value: 'sa_porject',
+        value: 'sa_project',
         label: '项目商机'
       }],
       value: 'sat_orderclue',

+ 1 - 0
src/HManagement/task/components/followData.vue

@@ -56,6 +56,7 @@ export default {
     },
     onSelect(data){
       console.log(data)
+      this.dialogTableVisible = false
       this.$emit('follow',data.content)
     },
     handleSizeChange(val) {

+ 2 - 2
src/HManagement/task/modules/add.vue

@@ -217,12 +217,12 @@ export default {
       })
       this.tool.showMessage(res,()=>{
 				this.param.content.ownerid = res.data.sys_taskid
-        this.bindData = {
+        /*this.bindData = {
           "ownertable": 'sys_task',
           "ownerid": res.data.sys_taskid,
           "usetype": 'default',
         }
-        this.$refs['upload'].toUpload()
+        this.$refs['upload'].toUpload()*/
         this.$emit('onSuccess')
 				this.dialogTableVisible = false
 				this.refresh()

+ 8 - 2
src/HManagement/task/modules/detail.vue

@@ -159,6 +159,7 @@ export default {
       console.log("权限结果", this.mainData.disabled)
     },
     changeDataStructure() {
+      console.log("输出执行")
       let that = this
       this.mainAreaData = [
         {
@@ -280,6 +281,7 @@ export default {
         console.log("执行")
         this.pathData.forEach(item=>{
           if (item.remarks == this.mainData.ownertable){
+            console.log("执行12345")
             if (this.mainData.ownertable == 'sat_orderclue'){
               this.customerPath(this.mainData.ownerid)
             }else if (this.mainData.ownertable == 'sa_salesforecastbill'){
@@ -287,10 +289,14 @@ export default {
             }else if (this.mainData.ownertable == 'sa_customers'){
               this.customerPath(this.mainData.ownerid)
             } else {
+              console.log("执行12】、")
               this.mainData.tableName = item.subvalues[0]
               this.mainData.path = item.value
               this.changeDataStructure()
             }
+          }else {
+            console.log("111执行45")
+            this.changeDataStructure()
           }
         })
 
@@ -336,8 +342,8 @@ export default {
         },
       })
       if (res.data){
-        this.mainData.tableName = res.data.sa_customerpoolid == '0' ? '公海客户':'我的客户'
-        this.mainData.path = res.data.sa_customerpoolid == '0' ? '/PublicCustomerDetail':'/customerDetail'
+        this.mainData.tableName = res.data.sa_customerpoolid == '0' ? '我的客户':'公海客户'
+        this.mainData.path = res.data.sa_customerpoolid == '0' ? '/customerDetail':'/PublicCustomerDetail'
         this.changeDataStructure()
       }
     }