Ver Fonte

2023-6-30

codeMan há 2 anos atrás
pai
commit
f02c1069c1

+ 5 - 5
src/operation/moduleNormal/controlPanel/model/dianci/index.vue

@@ -5,7 +5,7 @@
         <infoPanel></infoPanel>
         <infoPanel></infoPanel>
       </div>
       </div>
       <div class="bottom">
       <div class="bottom">
-        <controlPanel></controlPanel>
+        <controlPanel @onSuccess="detailFun"></controlPanel>
       </div>
       </div>
     </div>
     </div>
     <div class="control-content" v-if="refresh">
     <div class="control-content" v-if="refresh">
@@ -234,13 +234,13 @@ onMounted( () => {
   background:  rgb(0, 0, 0,.25);
   background:  rgb(0, 0, 0,.25);
   padding: 10px;
   padding: 10px;
 }
 }
-/* .stop {
-  border-radius: 50%;
-  background: #ffffff;
+.stop {
+  /* border-radius: 50%;
+  background: #ffffff; */
   position: absolute;
   position: absolute;
   top: 100px;
   top: 100px;
   right: 400px;
   right: 400px;
-} */
+}
 /deep/ .stop .ant-btn {
 /deep/ .stop .ant-btn {
   border-radius: 50%;
   border-radius: 50%;
   width: 80px;
   width: 80px;

+ 2 - 2
src/operation/moduleNormal/controlPanel/model/dianci/modules/controlPanel.vue

@@ -148,7 +148,7 @@ import {ref, defineProps, defineEmits, reactive, inject} from 'vue'
 import Api from '@/api/api'
 import Api from '@/api/api'
 import utils from '@/utils/utils'
 import utils from '@/utils/utils'
 import { log } from '@antv/g2plot/lib/utils'
 import { log } from '@antv/g2plot/lib/utils'
-let emit = defineEmits([])
+let emit = defineEmits(['onSuccess'])
 let props = defineProps({})
 let props = defineProps({})
 
 
 let detailData = inject('detail')
 let detailData = inject('detail')
@@ -177,7 +177,7 @@ let updateData = (funName) => {
           }
           }
         })
         })
         utils.message(res,'操作成功',() => {
         utils.message(res,'操作成功',() => {
-          
+          emit('onSuccess')
         })
         })
     }
     }
    })
    })