zenglf
2023-08-19 8611a1ba1696e76cced04ff5d658ba138a05dafd
src/views/eam/modules/equipmentCalibrationOrder/EquipmentCalibrationOrderReportDrawerList.vue
@@ -19,6 +19,7 @@
        @click="handleAdd"
        type="primary"
        icon="plus"
        :disabled="buttonDistable"
      >新增</a-button>
      <a-table
        ref="table"
@@ -43,7 +44,10 @@
          slot="action"
          slot-scope="text, record"
        >
          <a @click="handleEdit(record)">编辑</a>
          <a
            :disabled="buttonDistable"
            @click="handleEdit(record)"
          >编辑</a>
          <a-divider type="vertical" />
          <Tooltip
@@ -66,6 +70,7 @@
            v-if="record.upload.path && record.upload.format.toLowerCase()=='pdf'"
            href="javascript:;"
            @click="view(record)"
            :disabled="buttonDistable"
          >
            预览
          </a>
@@ -78,6 +83,7 @@
          <a
            href="javascript:;"
            @click="handleDownload(record)"
            :disabled="buttonDistable"
          >下载</a>
          <a-divider type="vertical" />
@@ -85,7 +91,7 @@
            title="确定删除吗?"
            @confirm="() => handleDelete(record.id)"
          >
            <a>删除</a>
            <a :disabled="buttonDistable">删除</a>
          </a-popconfirm>
        </span>
@@ -134,6 +140,11 @@
      type: String,
      default: '-1',
      required: false
    },
    buttonDistable: {
      type: Boolean,
      default: 'false',
      required: false
    }
  },
  watch: {