Browse Source

优化

master
陈裕财 4 years ago
parent
commit
3e5eeadea2
  1. 2
      src/components/DictTag/index.vue
  2. 13
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue

2
src/components/DictTag/index.vue

@ -78,7 +78,7 @@
cursor: pointer; cursor: pointer;
.item-info{ .item-info{
display:inherit; display:inherit;
height: 60px;
height: 33px;
} }
.item-select{ .item-select{
display: none; display: none;

13
src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue

@ -28,12 +28,8 @@
<el-table-column prop="caseId" label="用例编号" width="120" show-overflow-tooltip fixed="left"></el-table-column> <el-table-column prop="caseId" label="用例编号" width="120" show-overflow-tooltip fixed="left"></el-table-column>
<el-table-column prop="execStatus" label="执行结果" width="120" show-overflow-tooltip> <el-table-column prop="execStatus" label="执行结果" width="120" show-overflow-tooltip>
<template slot-scope="scope">
<el-tag class="cell-text" v-for="(item,index) in formatDictsWithClass(dicts,'testStepTcode',scope.row.execStatus)" :key="index" :type="item.className">{{item.name}}</el-tag>
<el-select class="cell-bar" v-model="scope.row.execStatus" @change="editSomeFields(scope.row,'execStatus',$event)">
<el-option v-for="(item,index) in dicts['testStepTcode']" :key="index" :value="item.id" :label="item.name"></el-option>
</el-select>
<template slot-scope="scope">
<dict-tag :dict="dicts['testStepTcode']" v-model="scope.row.execStatus" effect="dark"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="caseName" label="用例名称" min-width="250" show-overflow-tooltip> <el-table-column prop="caseName" label="用例名称" min-width="250" show-overflow-tooltip>
@ -51,10 +47,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="priority" label="优先级" width="120" show-overflow-tooltip> <el-table-column prop="priority" label="优先级" width="120" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag class="cell-text" v-for="(item,index) in formatDictsWithClass(dicts,'priority',scope.row.execStatus)" :key="index" :type="item.className">{{item.name}}</el-tag>
<el-select class="cell-bar" v-model="scope.row.priority" @change="editSomeFields(scope.row,'priority',$event)">
<el-option v-for="(item,index) in dicts['priority']" :key="index" :value="item.id" :label="item.name"></el-option>
</el-select>
<dict-tag :dict="dicts['priority']" v-model="scope.row.priority"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="remark" label="执行备注" min-width="120" show-overflow-tooltip> <el-table-column prop="remark" label="执行备注" min-width="120" show-overflow-tooltip>

Loading…
Cancel
Save