项目名长度限制

This commit is contained in:
shiziyuan9527 2020-06-08 11:33:00 +08:00 committed by Captain.B
parent eee6da27fb
commit cbbfd79e62
3 changed files with 5 additions and 13 deletions

View File

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

View File

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

View File

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