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){ if(this.scene){
this.filters.caseStatus='1' this.filters.caseStatus='1'
}
}
this.filters.xmProduct=this.xmProduct
}, },
onXmFuncRowClick(row){ onXmFuncRowClick(row){
this.filters.xmFunc=row this.filters.xmFunc=row

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

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

Loading…
Cancel
Save