收敛历史导入文件前端只读展示
This commit is contained in:
@@ -71,6 +71,14 @@
|
||||
{{ scope.row.accountNos || '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="sourceProjectName" label="来源" min-width="180">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.sourceType === 'HISTORY_IMPORT'">
|
||||
历史导入 · {{ scope.row.sourceProjectName || '-' }}
|
||||
</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="uploadTime" label="上传时间" width="180">
|
||||
<template slot-scope="scope">
|
||||
{{ formatUploadTime(scope.row.uploadTime) }}
|
||||
@@ -820,7 +828,7 @@ export default {
|
||||
},
|
||||
|
||||
getRowAction(row) {
|
||||
return getUploadFileAction(row.fileStatus);
|
||||
return getUploadFileAction(row);
|
||||
},
|
||||
|
||||
handleRowAction(row) {
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
export function getUploadFileAction(status) {
|
||||
export function getUploadFileAction(row) {
|
||||
if (row.sourceType === "HISTORY_IMPORT") {
|
||||
return null
|
||||
}
|
||||
|
||||
const actionMap = {
|
||||
parsed_failed: { key: "viewError", text: "查看错误原因" },
|
||||
parsed_success: { key: "delete", text: "删除" }
|
||||
};
|
||||
}
|
||||
|
||||
return actionMap[status] || null;
|
||||
return actionMap[row.fileStatus] || null
|
||||
}
|
||||
|
||||
export function getUploadFileStatusText(status) {
|
||||
@@ -14,9 +18,9 @@ export function getUploadFileStatusText(status) {
|
||||
parsed_success: "解析成功",
|
||||
parsed_failed: "解析失败",
|
||||
deleted: "已删除"
|
||||
};
|
||||
}
|
||||
|
||||
return map[status] || status;
|
||||
return map[status] || status
|
||||
}
|
||||
|
||||
export function getUploadFileStatusType(status) {
|
||||
@@ -26,7 +30,7 @@ export function getUploadFileStatusType(status) {
|
||||
parsed_success: "success",
|
||||
parsed_failed: "danger",
|
||||
deleted: "info"
|
||||
};
|
||||
}
|
||||
|
||||
return map[status] || "info";
|
||||
return map[status] || "info"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user