qymljy 2 년 전
부모
커밋
8f485c3de2
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 1
      src/HManagement/siteManage/securityConfig/modules/basicinfo.vue
  2. 2 1
      src/HManagement/siteManage/securityConfig/modules/edit.vue

+ 7 - 1
src/HManagement/siteManage/securityConfig/modules/basicinfo.vue

@@ -28,7 +28,7 @@
     </div>
 <!--    <edit v-if="tool.checkAuth($route.name,'update')" :basicInfo="siteinfo" v-on="$listeners"></edit>-->
     <el-button  :disabled="!tool.checkAuth($route.name,'update')" icon="el-icon-edit" size="small" type="primary" style="width:120px;height: 30px"
-                @click="$store.dispatch('changeDetailDrawer',true),$router.push({path:'/enterpriseDetail',query:{basicInfo:siteinfo}})">编 辑</el-button>
+                @click="$store.dispatch('changeDetailDrawer',true),$router.push({path:'/enterpriseDetail',query:{basicInfo:siteinfo}})" >编 辑</el-button>
     <!--抽屉面板-->
     <el-drawer
         title="我是标题"
@@ -77,7 +77,13 @@ export default {
      /* this.$router.push('/security_config')
       this.$store.dispatch('DrawerShowChange',false)*/
       this.drawer = false
+      console.log("企业信息输出")
+      this.enterpriseData()
     },
+    onSuccess(){
+      console.log("执行")
+      this.enterpriseData()
+    }
   },
   mounted () {
     this.enterpriseData()

+ 2 - 1
src/HManagement/siteManage/securityConfig/modules/edit.vue

@@ -124,8 +124,9 @@ export default {
           "content": this.form
         })
         this.tool.showMessage(res,()=>{
-          this.dialogEditVisible = false
           this.$emit('onSuccess')
+          this.$store.dispatch('changeDetailDrawer',false)
+
         })
       });
     },