qymljy 5 месяцев назад
Родитель
Сommit
4d35af864b
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/components/dialogTemplate/index2.vue

+ 2 - 1
src/components/dialogTemplate/index2.vue

@@ -13,7 +13,7 @@
 
 
 <script>
 <script>
 export default {
 export default {
-  name: "index1",
+  name: "index2",
   props:["btnTitle","disabled","btnType","content",'dialogTitle'],
   props:["btnTitle","disabled","btnType","content",'dialogTitle'],
   data(){
   data(){
     return {
     return {
@@ -23,6 +23,7 @@ export default {
   methods:{
   methods:{
     dialogShow(){
     dialogShow(){
       this.dialogTableVisible = true
       this.dialogTableVisible = true
+      this.$emit('dialogShow')
     },
     },
     onCancel(){
     onCancel(){
       this.dialogTableVisible = false
       this.dialogTableVisible = false