gaoluyang
2 天以前 c4439dd57d5550f9deace69a5facbeb68a81f34e
src/components/Table/ETable.vue
@@ -37,6 +37,8 @@
        <slot name="operations" :row="scope.row">
          <el-button v-if="operations.includes('edit')" link type="primary" size="small"
            @click="handleEdit(scope.row)">编辑</el-button>
          <el-button v-if="operations.includes('viewFile')" link type="primary" size="small"
            @click="handleView(scope.row)">查看附件</el-button>
          <!--            <el-button-->
          <!--              v-if="operations.includes('delete')"-->
          <!--              link-->
@@ -173,6 +175,9 @@
const handleEdit = (row) => {
  emit('edit', row)
}
const handleView = (row) => {
  emit('viewFile', row)
}
const handleDelete = (row) => {
  ElMessageBox.confirm(
    props.deleteConfirmText,