|
@@ -62,7 +62,7 @@
|
|
|
<el-table-column prop="stateText" label="爬虫状态" width="80" align="center" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="claimText" label="认领状态" width="100" align="center" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="href" label="栏目地址" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="modifyuser" label="维护人" width="120" align="center" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="modifyUserText" label="维护人" width="120" align="center" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="操作" width="160" align="center">
|
|
|
<template #default="scope">
|
|
|
<!-- <el-tooltip content="标注" placement="top">
|
|
@@ -278,6 +278,14 @@ const calcClaimText = (state) => {
|
|
|
return ''
|
|
|
}
|
|
|
}
|
|
|
+const calcModifyUserText = (state) => {
|
|
|
+ // 未认领状态。维护人返回无
|
|
|
+ if (state.claimtype === 0) {
|
|
|
+ return '无'
|
|
|
+ } else {
|
|
|
+ return state.modifyuser
|
|
|
+ }
|
|
|
+}
|
|
|
// 获取列表数据
|
|
|
async function getTableList() {
|
|
|
listState.loading = true
|
|
@@ -300,6 +308,7 @@ async function getTableList() {
|
|
|
...t,
|
|
|
stateText: calcStateText(t.state),
|
|
|
claimText: calcClaimText(t.claimtype),
|
|
|
+ modifyUserText: calcModifyUserText(t),
|
|
|
// 操作按钮是否点击过
|
|
|
_action_clicked_mark: false,
|
|
|
_action_clicked_edit: false,
|