renkang
2025-01-24 d492850f1cc64ddcfaf43798af9c76c2505414fd
admin/src/components/common/GlobalWindow.vue
@@ -22,6 +22,7 @@
      <slot name="footer">
        <el-button v-if="showConfirm" @click="confirm" :loading="confirmWorking" type="primary">{{text}}</el-button>
        <slot name="btns" />
        <el-button type="primary" v-if="isDownload" @click="downloadFile">下载催缴通知单</el-button>
        <el-button @click="close">{{ backText }}</el-button>
      </slot>
    </div>
@@ -68,6 +69,11 @@
    visible: {
      type: Boolean,
      required: true
    },
    // 是否显示下载按钮
    isDownload: {
      type: Boolean,
      required: false
    }
  },
  methods: {
@@ -77,6 +83,9 @@
    close () {
      this.$emit('close')
      this.$emit('update:visible', false)
    },
    downloadFile() {
      this.$emit('downloadFile')
    }
  }
}