zenglf
2023-09-28 8e75a78f55d60565eb48b25eafd4eb07939ce2cc
src/views/system/modules/QuartzJobDetails.vue
对比新文件
@@ -0,0 +1,75 @@
<template>
  <a-modal :title="title" width="100%" :visible="visible" :maskClosable="false" @ok="handleOk" @cancel="handleCancel"
           cancelText="鍏抽棴">
    <a-card :bordered="false">
      <div>
        <pre>
           {{textContent}}
        </pre>
      </div>
    </a-card>
  </a-modal>
</template>
<script>
  export default {
    name: 'QuartzJobDetails',
    // mixins: [JeecgListMixin],
    components: {
    },
    props: {
    },
    data() {
      return {
        title:'',
        visible:false,
        textContent:'',
      }
    },
    created() {
    },
    watch: {
    },
    methods: {
        showDetails(record){
          // console.log(record)
          this.visible = true
          this.textContent = record.exceptionDetail
        },
      close() {
        this.$emit('close')
        this.visible = false
      },
      handleCancel() {
        this.close()
      },
      handleOk() {
        this.close()
      },
    },
  }
</script>
<style>
  @import '~@assets/less/common.less';
  .frozenRowClass {
    color: #c9c9c9;
  }
  .success {
    color: green;
  }
  .error {
    color: red;
  }
</style>