fix
Showing
1 changed file
with
9 additions
and
2 deletions
| ... | @@ -143,17 +143,22 @@ const getCntSumInfo = () => { | ... | @@ -143,17 +143,22 @@ const getCntSumInfo = () => { |
| 143 | }) | 143 | }) |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | const dataSource = ref(null); | ||
| 147 | |||
| 146 | const getExecSensitiveTableData = () => { | 148 | const getExecSensitiveTableData = () => { |
| 147 | treeInfo.value.loading = true; | 149 | treeInfo.value.loading = true; |
| 148 | getExecSensitiveTable(route.query.execGuid).then((res: any) => { | 150 | getExecSensitiveTable(route.query.execGuid).then((res: any) => { |
| 149 | treeInfo.value.loading = false; | 151 | treeInfo.value.loading = false; |
| 150 | if (res?.code == proxy.$passCode) { | 152 | if (res?.code == proxy.$passCode) { |
| 151 | treeInfo.value.data = res.data?.map(d => { | 153 | treeInfo.value.data = res.data?.map((d, index) => { |
| 152 | d.value = `${d.databaseName}-ds`; //解决文件名称和文件的sheet名称一样的树形选中问题 | 154 | d.value = `${d.databaseName}-ds`; //解决文件名称和文件的sheet名称一样的树形选中问题 |
| 153 | d.label = d.databaseChName; | 155 | d.label = d.databaseChName; |
| 156 | if (index == 0) { | ||
| 157 | dataSource.value = d.dataSource; | ||
| 158 | } | ||
| 154 | d.tableList = d.tableList?.map(t => { | 159 | d.tableList = d.tableList?.map(t => { |
| 155 | t.value = `${d.databaseName}-${t.tableName}`; | 160 | t.value = `${d.databaseName}-${t.tableName}`; |
| 156 | t.label = t.tableChName; | 161 | t.label = dataSource.value == 1 ? `${t.tableChName}(${t.tableName})` : t.tableChName; |
| 157 | t.parent = d.databaseName; | 162 | t.parent = d.databaseName; |
| 158 | return t; | 163 | return t; |
| 159 | }) || [] | 164 | }) || [] |
| ... | @@ -621,6 +626,8 @@ const cntLabelMap = ref({ | ... | @@ -621,6 +626,8 @@ const cntLabelMap = ref({ |
| 621 | </el-table-column> | 626 | </el-table-column> |
| 622 | <el-table-column label="所属表名" prop="tableChName" width="140" align="left" show-overflow-tooltip> | 627 | <el-table-column label="所属表名" prop="tableChName" width="140" align="left" show-overflow-tooltip> |
| 623 | </el-table-column> | 628 | </el-table-column> |
| 629 | <el-table-column v-if="dataSource == 1" label="所属表英文名" prop="tableName" width="140" align="left" show-overflow-tooltip> | ||
| 630 | </el-table-column> | ||
| 624 | <el-table-column label="确认状态" prop="confirmStatus" class-name="filter-cell" width="120" align="center" | 631 | <el-table-column label="确认状态" prop="confirmStatus" class-name="filter-cell" width="120" align="center" |
| 625 | show-overflow-tooltip> | 632 | show-overflow-tooltip> |
| 626 | <template #header> | 633 | <template #header> | ... | ... |
-
Please register or sign in to post a comment