|
@@ -27,12 +27,12 @@
|
|
</div>
|
|
</div>
|
|
<div class="interfaceLog_content">
|
|
<div class="interfaceLog_content">
|
|
<el-row :gutter="24">
|
|
<el-row :gutter="24">
|
|
- <el-col :span="19">
|
|
|
|
|
|
+ <el-col :span="24">
|
|
<div class="app-containers">
|
|
<div class="app-containers">
|
|
- <DataTable :table-header="tableColumns" :table-data="tableData" :table-property="{ rowKey: 'ID' }" @row-click="rowClickHandler" />
|
|
|
|
|
|
+ <DataTable class="table" :data="tableData" :columns="tableColumns" />
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="5">
|
|
|
|
|
|
+ <el-col v-if="false" :span="5">
|
|
<div class="interfaceLog_content_progress">
|
|
<div class="interfaceLog_content_progress">
|
|
<el-timeline>
|
|
<el-timeline>
|
|
<el-timeline-item v-for="(item, index) in progressList" :key="index">
|
|
<el-timeline-item v-for="(item, index) in progressList" :key="index">
|
|
@@ -52,10 +52,11 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import DataTable from "@/components/tableTemp/index.vue";
|
|
|
|
|
|
+import DataTable from "@/components/SimpleTable/index.vue";
|
|
import { ElMessage } from "element-plus";
|
|
import { ElMessage } from "element-plus";
|
|
import { Query } from "@/api/webApi";
|
|
import { Query } from "@/api/webApi";
|
|
import { CommonTableColumn } from "~/common";
|
|
import { CommonTableColumn } from "~/common";
|
|
|
|
+import { ellipsisCell } from "./customRender";
|
|
|
|
|
|
type TableColumn = {
|
|
type TableColumn = {
|
|
label: string;
|
|
label: string;
|
|
@@ -106,11 +107,11 @@ const getTableData = async () => {
|
|
: [timeStart.value, timeEnd.value, selMsg.value],
|
|
: [timeStart.value, timeEnd.value, selMsg.value],
|
|
});
|
|
});
|
|
if (Number(code) === 0) {
|
|
if (Number(code) === 0) {
|
|
- tableColumns.value = columnSet.map((column) => ({
|
|
|
|
- label: column.columnLabel,
|
|
|
|
- key: column.columnName,
|
|
|
|
- ...column,
|
|
|
|
- }));
|
|
|
|
|
|
+ // customRender: ellipsisCell,
|
|
|
|
+ columnSet.map((item) => {
|
|
|
|
+ if (item.columnName == "success") item.customRender = ellipsisCell;
|
|
|
|
+ });
|
|
|
|
+ tableColumns.value = [...columnSet];
|
|
if (listValues.length === 0) {
|
|
if (listValues.length === 0) {
|
|
page--;
|
|
page--;
|
|
noMore.value = true;
|
|
noMore.value = true;
|