Browse Source

优化

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

3
src/components/DictTag/index.vue

@ -36,6 +36,9 @@
} }
}, },
myVal(){
this.$emit('input',this.myVal)
}
}, },
props: { props: {
disabled:{ disabled:{

13
src/views/xm/core/xmTestPlan/XmTestPlanMng.vue

@ -34,20 +34,15 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="status" label="状态" width="120" show-overflow-tooltip> <el-table-column prop="status" label="状态" width="120" show-overflow-tooltip>
<template slot-scope="scope">
<el-tag class="cell-text" v-for="(item,index) in formatDictsWithClass(dicts,'testPlanStatus',scope.row.status)" :key="index" :type="item.className">{{item.name}}</el-tag>
<el-select class="cell-bar" v-model="scope.row.status" @change="editSomeFields(scope.row,'status',$event)">
<el-option v-for="(item,index) in dicts['testPlanStatus']" :key="index" :value="item.id" :label="item.name"></el-option>
</el-select>
<template slot-scope="scope">
<dict-tag :dict="dicts['testPlanStatus']" v-model="scope.row.status" effect="dark" @change="editSomeFields(scope.row,'status',$event)"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="tcode" label="测试结果" width="120" show-overflow-tooltip> <el-table-column prop="tcode" 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,'testPlanTcode',scope.row.tcode)" :key="index" :type="item.className">{{item.name}}</el-tag>
<el-select class="cell-bar" v-model="scope.row.tcode" @change="editSomeFields(scope.row,'tcode',$event)">
<el-option v-for="(item,index) in dicts['testPlanTcode']" :key="index" :value="item.id" :label="item.name"></el-option>
</el-select>
<dict-tag :dict="dicts['testPlanTcode']" v-model="scope.row.tcode" effect="dark" @change="editSomeFields(scope.row,'tcode',$event)"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="totalCases" label="进度" min-width="120" show-overflow-tooltip> <el-table-column prop="totalCases" label="进度" min-width="120" show-overflow-tooltip>

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

@ -29,7 +29,7 @@
<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"> <template slot-scope="scope">
<dict-tag :dict="dicts['testStepTcode']" v-model="scope.row.execStatus" effect="dark"></dict-tag>
<dict-tag :dict="dicts['testStepTcode']" v-model="scope.row.execStatus" effect="dark" @change="editSomeFields(scope.row,'execStatus',$event)"></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>
@ -47,7 +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">
<dict-tag :dict="dicts['priority']" v-model="scope.row.priority"></dict-tag>
<dict-tag :dict="dicts['priority']" v-model="scope.row.priority" @change="editSomeFields(scope.row,'priority',$event)"></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