瀏覽代碼

lhj 04-18

liuhj 2 年之前
父節點
當前提交
4a2f98f568

+ 1 - 0
src/components/Crm/CustomerCompany.vue

@@ -234,6 +234,7 @@ export default {
                 }
             })
         },
+        
         del(index, row) {
 
             var url = "/api/CRM/DelClientCompany"

+ 6 - 4
src/components/child/Controltree.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="controltree-box">
+    <div class="controltree-box" v-loading.fullscreen.lock="fullscreenLoading">
         <div class="controltree-w">
             <div class="controltree-ul" >
                 <div class="controltree-li" v-for="(item,index) in treeData" :key="index">
@@ -473,7 +473,8 @@ export default {
             addArgument:{},
             //标题名称
             titleName:'',
-            stepID:''
+            stepID:'',
+            OPid:""
         }
     },
     created(){
@@ -520,14 +521,14 @@ export default {
                     //     type: 'success',
                     //     offset:50
                     // });
-                    // that.fullscreenLoading = false;
+                    that.fullscreenLoading = false;
                 }else{
                     // that.$message({
                     //     message:res.data.msg,
                     //     type: 'warning',
                     //     offset:50
                     // });
-                    // that.fullscreenLoading = false;
+                    that.fullscreenLoading = false;
                 }
             })
         },
@@ -740,6 +741,7 @@ export default {
     },
     mounted(){
         this.token=JSON.parse(localStorage.getItem('userinif')).token;
+        this.OPid=JSON.parse(localStorage.getItem('OPid'));
         this.ruleForm.CreateUserId=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
         this.getControl()
     }

+ 9 - 2
src/components/child/Generalindex.vue

@@ -78,9 +78,11 @@
                                 label="出访时间">
                             </el-table-column>
                             <el-table-column width="80" label="管控">
-                                    <el-button type="primary" size="mini">
-                                    <i class="icon-xianchangguankong"></i>
+                                <template slot-scope="scope">
+                                    <el-button type="primary" size="mini" @click="handleEdit(scope.$index, scope.row)">
+                                        <i class="icon-xianchangguankong"></i>
                                     </el-button>
+                                </template>
                             </el-table-column>
                         </el-table>
                     </template>
@@ -432,6 +434,11 @@ export default {
             let gstime=val.visitDate.split(' ')[0]
             return gstime;
         },
+        handleEdit(index, row) {
+            console.log(index, row.id);
+            localStorage.setItem('OPid', row.id);
+            this.$router.push({name:'Controltree'})
+        },
     },
     mounted(){
         this.Grouplist()