Browse Source

优化

master
陈裕财 4 years ago
parent
commit
165e535c52
  1. 6
      src/components/DictTag/index.vue
  2. 7
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue

6
src/components/DictTag/index.vue

@ -1,5 +1,5 @@
<template> <template>
<el-tag v-if="currentItem" :type="currentItem.className" :closable="closable">{{currentItem.name}}</el-tag>
<el-tag v-if="currentItem" :type="currentItem.className" :closable="closable" :effect="effect">{{currentItem.name}}</el-tag>
</template> </template>
<script> <script>
@ -34,6 +34,10 @@
type:Boolean, type:Boolean,
default:false, default:false,
}, },
effect:{
type:String,
default:'light'//dark / light / plain
},
dict:{ dict:{
type:Array, type:Array,
default:function(){return []} default:function(){return []}

7
src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue

@ -37,7 +37,7 @@
用例状态 用例状态
</el-row> </el-row>
<el-row> <el-row>
<dict-tag class="cell-text" :dict="dicts['testCaseStatus']" v-model="editForm.caseStatus"></dict-tag>
<dict-tag :dict="dicts['testCaseStatus']" v-model="editForm.caseStatus"></dict-tag>
</el-row> </el-row>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -64,8 +64,7 @@
紧急程度 紧急程度
</el-row> </el-row>
<el-row> <el-row>
<el-tag v-for="(item,index) in formatDictsWithClass(dicts,'priority',editForm.priority)" :key="index" :type="item.className">{{item.name}}</el-tag>
<dict-tag :dict="dicts['priority']" v-model="editForm.priority"></dict-tag>
</el-row> </el-row>
</el-col> </el-col>
</el-row> </el-row>
@ -136,7 +135,7 @@
<dict-field label="执行结果" :dict="dicts['testStepTcode']" v-model="editForm.execStatus" :get-icon="getExecStatusIcon" @change="editSomeFields(editForm,'execStatus',$event)"> <dict-field label="执行结果" :dict="dicts['testStepTcode']" v-model="editForm.execStatus" :get-icon="getExecStatusIcon" @change="editSomeFields(editForm,'execStatus',$event)">
<span slot="label"></span> <span slot="label"></span>
</dict-field> </dict-field>
<el-button @click="$emit('next')">下一条</el-button>
<el-button @click="$emit('next')" type="primary">下一条</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="opType=='add'"> <el-row v-if="opType=='add'">

Loading…
Cancel
Save