Browse Source

优化

master
陈裕财 3 years ago
parent
commit
30a9a7ecdb
  1. 3
      src/views/xm/core/xmTestCase/XmTestCaseMng.vue
  2. 17
      src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue

3
src/views/xm/core/xmTestCase/XmTestCaseMng.vue

@ -315,7 +315,8 @@ export default {
if(this.scene){
this.filters.caseStatus='1'
}
}
this.filters.xmProduct=this.xmProduct
},
onXmFuncRowClick(row){
this.filters.xmFunc=row

17
src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue

@ -33,7 +33,7 @@
<template v-if="select!==true">
<el-table-column prop="productName" label="产品名称" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
<span> {{scope.row.productName}} </span>
<span> {{scope.row.xmProductName}} </span>
</template>
</el-table-column>
<el-table-column prop="cusername" label="创建人" min-width="120" show-overflow-tooltip>
@ -66,7 +66,7 @@
<!--新增 XmTestCasedb 测试用例库界面-->
<el-drawer title="新增测试用例库" :visible.sync="addFormVisible" size="60%" append-to-body :close-on-click-modal="false">
<xm-test-casedb-edit op-type="add" :visible="addFormVisible" @cancel="addFormVisible=false" @submit="afterAddSubmit"></xm-test-casedb-edit>
<xm-test-casedb-edit op-type="add" :xm-product="filters.xmProduct" :visible="addFormVisible" @cancel="addFormVisible=false" @submit="afterAddSubmit"></xm-test-casedb-edit>
</el-drawer>
</el-row>
</section>
@ -102,7 +102,8 @@ export default {
data() {
return {
filters: {
key: ''
key: '',
xmProduct:null,
},
xmTestCasedbs: [],//
pageInfo:{//
@ -182,8 +183,8 @@ export default {
if(this.filters.key){
params.key=this.filters.key
}
if(this.filters.product && this.filters.product.id){
params.productId=this.filters.product.id
if(this.filters.xmProduct && this.filters.xmProduct.id){
params.xmProductId=this.filters.xmProduct.id
}
this.load.list = true;
@ -294,15 +295,15 @@ export default {
this.$emit('row-click',row, event, column);// @row-click="rowClick"
},
initData: function(){
this.filters.product=this.xmProduct
this.filters.xmProduct=this.xmProduct
},
clearProduct(){
this.filters.product=null;
this.filters.xmProduct=null;
this.searchXmTestCasedbs();
},
onProductSelected(product){
this.filters.product=product;
this.filters.xmProduct=product;
this.searchXmTestCasedbs();
},
goCasedbInfo(row){

Loading…
Cancel
Save