fix: 1.目录调整2.el-table empty-text 属性调整

This commit is contained in:
@changcode
2022-09-13 17:52:38 +08:00
parent bda7886d27
commit f0c3f11166
11 changed files with 15 additions and 16 deletions

View File

@@ -42,7 +42,7 @@
width="100%" width="100%"
@selection-change="handleDetailSelectionChange" @selection-change="handleDetailSelectionChange"
:row-class-name="rowClassName" :row-class-name="rowClassName"
empty-text=" " empty-text=""
ref="tb"> ref="tb">
<el-table-column type="selection" align="center" label="" width="30px" style="border-left:0px;" /> <el-table-column type="selection" align="center" label="" width="30px" style="border-left:0px;" />

View File

@@ -4,7 +4,6 @@
ref="dataTable" ref="dataTable"
:data="tableData" :data="tableData"
:height="height" :height="height"
empty-text=" "
border border
@header-dragend="dragend" @header-dragend="dragend"
@sort-change="tableDataSort" @sort-change="tableDataSort"

View File

@@ -6,7 +6,7 @@
:data="tableData" :data="tableData"
:height="height" :height="height"
:expand-row-keys="expandedIds" :expand-row-keys="expandedIds"
empty-text=" " empty-text=""
border border
tooltip-effect="light" tooltip-effect="light"
:row-key="(row) => { return row.id }" :row-key="(row) => { return row.id }"
@@ -208,7 +208,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
@@ -404,7 +404,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.expandTable(); this.expandTable();
}, },
methods: { methods: {
/** /**
@@ -413,13 +413,13 @@ export default {
*/ */
expandTable() { expandTable() {
let expandInfo = this.expandedIds; let expandInfo = this.expandedIds;
if(expandInfo !== undefined && expandInfo.length>0) { if(expandInfo !== undefined && expandInfo.length>0) {
let obj = { let obj = {
id: expandInfo[0] id: expandInfo[0]
} }
this.dropExpandChange(obj, expandInfo); this.dropExpandChange(obj, expandInfo);
} }
}, },
/** /**
* 显示选中的行,即分页后依旧显示 * 显示选中的行,即分页后依旧显示
@@ -435,7 +435,7 @@ export default {
} }
}) })
} }
}); });
}, },
getJobStatus (report) { getJobStatus (report) {
if (report.state === 1 && report.upload === 1) { if (report.state === 1 && report.upload === 1) {
@@ -460,7 +460,7 @@ export default {
this.checkboxAll = objs.length === this.tableData.length; this.checkboxAll = objs.length === this.tableData.length;
this.isIndeterminate = objs.length > 0 && objs.length < this.tableData.length; this.isIndeterminate = objs.length > 0 && objs.length < this.tableData.length;
// 选中状态回显 // 选中状态回显
let selectIds = []; let selectIds = [];
if(objs.length > 0) { if(objs.length > 0) {

View File

@@ -4,7 +4,7 @@
ref="dataTable" ref="dataTable"
:data="tableData" :data="tableData"
:height="height" :height="height"
empty-text=" " empty-text=""
border border
@header-dragend="dragend" @header-dragend="dragend"
@sort-change="tableDataSort" @sort-change="tableDataSort"

View File

@@ -6,7 +6,7 @@
:data="tableData" :data="tableData"
style="width: 70%;" style="width: 70%;"
tooltip-effect="light" tooltip-effect="light"
empty-text=" " empty-text=""
border="none" border="none"
:size="'mini'" :size="'mini'"
:height="'100%'"> :height="'100%'">

View File

@@ -21,7 +21,7 @@
:data="tableData" :data="tableData"
class="app-table" class="app-table"
height="100%" height="100%"
empty-text=" " empty-text=""
> >
<template v-for="(item, index) in customTableTitles" :key="index"> <template v-for="(item, index) in customTableTitles" :key="index">
<el-table-column class="data-column"> <el-table-column class="data-column">

View File

@@ -24,7 +24,7 @@
:data="tableData" :data="tableData"
class="npm-app-event-table" class="npm-app-event-table"
height="100%" height="100%"
empty-text=" " empty-text=""
> >
<template v-for="(item, index) in customTableTitles" :key="index"> <template v-for="(item, index) in customTableTitles" :key="index">
<el-table-column class="data-column" :min-width="columnWidth(index)"> <el-table-column class="data-column" :min-width="columnWidth(index)">

View File

@@ -8,7 +8,7 @@
</template> </template>
<script> <script>
import SingleValue from '@/views/charts2/charts/SingleValue' import SingleValue from '@/views/charts2/charts/npm/localComponents/SingleValue'
import { get } from '@/utils/http' import { get } from '@/utils/http'
import { getSecond } from '@/utils/date-util' import { getSecond } from '@/utils/date-util'
import { api } from '@/utils/api' import { api } from '@/utils/api'

View File

@@ -6,7 +6,7 @@
:ref="`dataTable_${index}`" :ref="`dataTable_${index}`"
:data="tableData" :data="tableData"
class="npm-recent-table" class="npm-recent-table"
empty-text=" " empty-text=""
height="100%" height="100%"
> >
<template v-for="(item, index) in customTableTitles" :key="index"> <template v-for="(item, index) in customTableTitles" :key="index">

View File

@@ -17,7 +17,7 @@
:row-style="rowStyle" :row-style="rowStyle"
:cell-style="{'text-align':'left','padding': '1px 0','border':'0px'}" :cell-style="{'text-align':'left','padding': '1px 0','border':'0px'}"
class="customer-no-border-table" class="customer-no-border-table"
empty-text=" " empty-text=""
style="width: 100%; height: 300px;" style="width: 100%; height: 300px;"
@row-click="filter" @row-click="filter"
> >