|
@@ -18,7 +18,7 @@
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
<!-- 文档列表 -->
|
|
<!-- 文档列表 -->
|
|
|
- <el-table v-loading="documentLoading" :data="documentList" border style="margin-top: 10px">
|
|
|
|
|
|
|
+ <el-table v-loading="documentLoading" :data="documentList" border style="margin-top: 10px; width: 100%">
|
|
|
<el-table-column prop="id" width="55" align="center" :label="t('document.document.documentList.index')">
|
|
<el-table-column prop="id" width="55" align="center" :label="t('document.document.documentList.index')">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
{{ scope.row.id }}
|
|
{{ scope.row.id }}
|
|
@@ -93,68 +93,75 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
- <el-table-column :label="t('document.document.documentList.action')" width="200" align="center" fixed="right">
|
|
|
|
|
|
|
+ <el-table-column :label="t('document.document.documentList.action')" width="480" align="center" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="scope.row.url && scope.row.status === 1"
|
|
v-if="scope.row.url && scope.row.status === 1"
|
|
|
v-hasPermi="['document:document:audit']"
|
|
v-hasPermi="['document:document:audit']"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
- link
|
|
|
|
|
:icon="Select"
|
|
:icon="Select"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleAuditClick(scope.row)"
|
|
@click="handleAuditClick(scope.row)"
|
|
|
- :title="t('document.document.button.audit')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.audit') }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="(scope.row.status === 0 || scope.row.status === 2) && scope.row.submitterId === userStore.userId"
|
|
v-if="(scope.row.status === 0 || scope.row.status === 2) && scope.row.submitterId === userStore.userId"
|
|
|
v-hasPermi="['document:document:submit']"
|
|
v-hasPermi="['document:document:submit']"
|
|
|
- type="primary"
|
|
|
|
|
- link
|
|
|
|
|
|
|
+ type="success"
|
|
|
:icon="Upload"
|
|
:icon="Upload"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleSubmit(scope.row)"
|
|
@click="handleSubmit(scope.row)"
|
|
|
- :title="t('document.document.button.submit')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.submit') }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="(scope.row.status === 0 || scope.row.status === 2) && scope.row.submitterId === userStore.userId"
|
|
v-if="(scope.row.status === 0 || scope.row.status === 2) && scope.row.submitterId === userStore.userId"
|
|
|
v-hasPermi="['document:document:confirmSubmit']"
|
|
v-hasPermi="['document:document:confirmSubmit']"
|
|
|
- type="primary"
|
|
|
|
|
- link
|
|
|
|
|
|
|
+ type="danger"
|
|
|
icon="Delete"
|
|
icon="Delete"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleConfirmSubmit(scope.row)"
|
|
@click="handleConfirmSubmit(scope.row)"
|
|
|
- :title="t('document.document.button.confirmSubmit')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.confirmSubmit') }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-hasPermi="['document:document:mark']"
|
|
v-hasPermi="['document:document:mark']"
|
|
|
- type="primary"
|
|
|
|
|
- link
|
|
|
|
|
|
|
+ type="warning"
|
|
|
icon="Flag"
|
|
icon="Flag"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleMark(scope.row)"
|
|
@click="handleMark(scope.row)"
|
|
|
- :title="t('document.document.button.mark')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.mark') }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="scope.row.ossId"
|
|
v-if="scope.row.ossId"
|
|
|
- type="primary"
|
|
|
|
|
- link
|
|
|
|
|
|
|
+ type="info"
|
|
|
icon="Download"
|
|
icon="Download"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleDownload(scope.row)"
|
|
@click="handleDownload(scope.row)"
|
|
|
- :title="t('document.document.button.download')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.download') }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-hasPermi="['document:document:logAudit']"
|
|
v-hasPermi="['document:document:logAudit']"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
- link
|
|
|
|
|
icon="DocumentCopy"
|
|
icon="DocumentCopy"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleViewAuditLog(scope.row)"
|
|
@click="handleViewAuditLog(scope.row)"
|
|
|
- :title="t('document.document.button.viewAuditLog')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.viewAuditLog') }}
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="scope.row.status === 3"
|
|
v-if="scope.row.status === 3"
|
|
|
v-hasPermi="['document:document:filing']"
|
|
v-hasPermi="['document:document:filing']"
|
|
|
- type="primary"
|
|
|
|
|
- link
|
|
|
|
|
|
|
+ type="success"
|
|
|
icon="UploadFilled"
|
|
icon="UploadFilled"
|
|
|
|
|
+ style="padding: 0 5px; font-size: 10px; height: 24px; --el-button-icon-span-gap: 2px;"
|
|
|
@click="handleArchive(scope.row)"
|
|
@click="handleArchive(scope.row)"
|
|
|
- :title="t('document.document.button.archive')"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ t('document.document.button.archive') }}
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|