Browse Source

优化

master
陈裕财 3 years ago
parent
commit
c45ab42e25
  1. 5
      src/views/xm/core/xmTestCasedb/XmTestCasedbEdit.vue
  2. 8
      src/views/xm/core/xmTestCasedb/top-nav.vue

5
src/views/xm/core/xmTestCasedb/XmTestCasedbEdit.vue

@ -92,6 +92,9 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修
editForm: {
id:'',name:'',cuserid:'',cusername:'',ctime:'',cbranchId:'',productId:'',productName:''
},
editFormInit: {
id:'',name:'',cuserid:'',cusername:'',ctime:'',cbranchId:'',productId:'',productName:''
},
maxTableHeight:300,
}//end return
},//end data
@ -133,6 +136,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修
});
},
initData: function(){
this.editForm={...this.editFormInit}
this.currOpType=this.opType
if(this.xmTestCasedb){
this.editForm = Object.assign({},this.xmTestCasedb);
@ -144,6 +148,7 @@ import XmProductSelect from '@/views/xm/core/components/XmProductSelect';//修
if(this.xmProduct && this.xmProduct.id){
this.editForm.productId=this.xmProduct.id
this.editForm.productName=this.xmProduct.productName
this.editForm.name=this.xmProduct.productName+"-测试库-V1.0"
}
}
this.editFormBak={...this.editForm}

8
src/views/xm/core/xmTestCasedb/top-nav.vue

@ -22,13 +22,13 @@
<font v-if="testCasedb.name.length >= 15">
<strong>
&nbsp;<el-avatar class="top-icon" style="background-color:#409EFF">bugs</el-avatar>&nbsp;{{ testCasedb.name.substring(0, 15) }}</strong
&nbsp;<el-avatar class="top-icon" style="background-color:#409EFF">测试</el-avatar>&nbsp;{{ testCasedb.name.substring(0, 15) }}</strong
></font
>
<div v-else>
<font type="danger">
<strong>&nbsp; <el-avatar class="top-icon" icon="bugs" style="background-color:#409EFF"></el-avatar>&nbsp;:&nbsp;{{ testCasedb.name }}</strong></font
<strong>&nbsp; <el-avatar class="top-icon" style="background-color:#409EFF">测试</el-avatar>{{ testCasedb.name }}</strong></font
>
</div>
</span>
@ -39,10 +39,10 @@
:title="testCasedb.name"
>
<font v-if="testCasedb.name.length >= 15">
&nbsp;<el-avatar class="top-icon" icon="el-icon-s-opportunity" style="background-color:#409EFF"></el-avatar>&nbsp;:&nbsp;{{ testCasedb.name.substring(0, 15) }}</font
&nbsp;<el-avatar class="top-icon" style="background-color:#409EFF">测试</el-avatar>{{ testCasedb.name.substring(0, 15) }}</font
>
<font type="danger" v-else>
&nbsp;<el-avatar class="top-icon" icon="el-icon-s-opportunity" style="background-color:#409EFF"></el-avatar>&nbsp;:&nbsp;{{ testCasedb.name }}</font
&nbsp;<el-avatar class="top-icon" style="background-color:#409EFF">测试</el-avatar>{{ testCasedb.name }}</font
>
</span>
</el-menu-item>

Loading…
Cancel
Save