项目名长度限制

This commit is contained in:
shiziyuan9527 2020-06-08 11:33:00 +08:00
parent a127177c85
commit c45659a9de
3 changed files with 5 additions and 13 deletions

View File

@ -8,11 +8,8 @@
:show-create="false"/>
</template>
<el-table :data="tableData" class="table-content" @sort-change="sort"
@filter-change="filter">
<el-table-column :label="$t('commons.name')" width="200" show-overflow-tooltip>
<template v-slot:default="scope">
<el-link type="info" @click="handleView(scope.row)">{{ scope.row.name }}</el-link>
</template>
@filter-change="filter" @row-click="handleView">
<el-table-column :label="$t('commons.name')" width="200" show-overflow-tooltip prop="name">
</el-table-column>
<el-table-column prop="testName" :label="$t('api_report.test_name')" width="200" show-overflow-tooltip/>
<el-table-column prop="projectName" :label="$t('load_test.project_name')" width="150" show-overflow-tooltip/>
@ -83,8 +80,6 @@
methods: {
search() {
if (this.testId !== 'all') {
this.condition.testId = this.testId;
}
@ -121,9 +116,6 @@
this.testId = this.$route.params.testId;
this.search();
},
/* filter(value, row) {
return row.status === value;
},*/
sort(column) {
_sort(column, this.condition);
this.init();

View File

@ -23,7 +23,7 @@
<el-table-column
prop="name"
:label="$t('commons.name')"
width="200"
width="150"
show-overflow-tooltip>
</el-table-column>
<el-table-column

View File

@ -7,8 +7,8 @@
:create-tip="btnTips" :title="title"/>
</template>
<el-table @row-click="link" :data="items" style="width: 100%" @sort-change="sort">
<el-table-column prop="name" :label="$t('commons.name')"/>
<el-table-column prop="description" :label="$t('commons.description')"/>
<el-table-column prop="name" :label="$t('commons.name')" width="250" show-overflow-tooltip/>
<el-table-column prop="description" :label="$t('commons.description')" show-overflow-tooltip/>
<!--<el-table-column prop="workspaceName" :label="$t('project.owning_workspace')"/>-->
<el-table-column
sortable