Browse Source

优化

master
陈裕财 3 years ago
parent
commit
82b3663fa7
  1. 4
      src/views/xm/core/xmFunc/XmFuncSelect.vue
  2. 8
      src/views/xm/core/xmTestCase/XmTestCaseMng.vue
  3. 6
      src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue
  4. 2
      src/views/xm/core/xmTestPlan/XmTestPlanMng.vue
  5. 2
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue

4
src/views/xm/core/xmFunc/XmFuncSelect.vue

@ -1,9 +1,9 @@
<template> <template>
<section> <section>
<el-row> <el-row>
<el-input v-model="filters.key" style="width: 60%;" placeholder="名称 按回车" @keyup.enter.native="searchXmFuncs" clearable></el-input>
<el-input v-model="filters.key" style="width: 60%;" placeholder="模块名称 按回车" @keyup.enter.native="searchXmFuncs" clearable></el-input>
<span style="float:right;"> <span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus"> </el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus" title="添加模块"> </el-button>
</span> </span>
</el-row> </el-row>
<el-row> <el-row>

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

@ -1,6 +1,6 @@
<template> <template>
<section> <section>
<el-row>
<el-row class="padding-right">
<el-col :span="6"> <el-col :span="6">
<xm-func-select v-if="xmProductCpd" class="padding-right padding-left" :xm-product="xmProductCpd" @row-click="onXmFuncRowClick"> <xm-func-select v-if="xmProductCpd" class="padding-right padding-left" :xm-product="xmProductCpd" @row-click="onXmFuncRowClick">
</xm-func-select> </xm-func-select>
@ -9,16 +9,16 @@
<el-row> <el-row>
<el-input v-model="filters.key" style="width: 20%;" placeholder="名称 按回车" @keyup.enter.native="searchXmTestCases"></el-input> <el-input v-model="filters.key" style="width: 20%;" placeholder="名称 按回车" @keyup.enter.native="searchXmTestCases"></el-input>
<el-select v-model="filters.caseStatus" style="width:120px;" clearable>
<el-select v-model="filters.caseStatus" style="width:120px;" placeholder="审核状态" clearable>
<el-option v-for="(item,index) in dicts['testCaseStatus']" :key="index" :value="item.id" :label="item.name"></el-option> <el-option v-for="(item,index) in dicts['testCaseStatus']" :key="index" :value="item.id" :label="item.name"></el-option>
</el-select> </el-select>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestCases" icon="el-icon-search">查询</el-button> <el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestCases" icon="el-icon-search">查询</el-button>
<span style="float:right;"> <span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus"> </el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus">用例</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button> <el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
</span> </span>
</el-row> </el-row>
<el-row>
<el-row >
<!--列表 XmTestCase 测试用例--> <!--列表 XmTestCase 测试用例-->
<el-table ref="xmTestCaseTable" :data="xmTestCases" :height="maxTableHeight" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> <el-table ref="xmTestCaseTable" :data="xmTestCases" :height="maxTableHeight" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;">
<el-table-column type="selection" width="55" show-overflow-tooltip fixed="left"></el-table-column> <el-table-column type="selection" width="55" show-overflow-tooltip fixed="left"></el-table-column>

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

@ -5,7 +5,7 @@
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input> <el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestCasedbs" icon="el-icon-search">查询</el-button> <el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestCasedbs" icon="el-icon-search">查询</el-button>
<span style="float:right;"> <span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus"> </el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus">添加用例库 </el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button> <el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
</span> </span>
</el-row> </el-row>
@ -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.xmProductName}} </span>
<span> {{scope.row.productName}} </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>
@ -187,7 +187,7 @@ export default {
params.key=this.filters.key params.key=this.filters.key
} }
if(this.filters.xmProduct && this.filters.xmProduct.id){ if(this.filters.xmProduct && this.filters.xmProduct.id){
params.xmProductId=this.filters.xmProduct.id
params.productId=this.filters.xmProduct.id
} }
this.load.list = true; this.load.list = true;

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

@ -4,7 +4,7 @@
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input> <el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestPlans" icon="el-icon-search">查询</el-button> <el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestPlans" icon="el-icon-search">查询</el-button>
<span style="float:right;"> <span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus"> </el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus">测试计划</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button> <el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
</span> </span>
</el-row> </el-row>

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

@ -10,7 +10,7 @@
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input> <el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestPlanCases" icon="el-icon-search">查询</el-button> <el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestPlanCases" icon="el-icon-search">查询</el-button>
<span style="float:right;"> <span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus"> </el-button>
<el-button type="primary" @click="showAdd" icon="el-icon-plus">将用例纳入计划</el-button>
<el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button> <el-button type="danger" v-loading="load.del" @click="batchDel" :disabled="this.sels.length===0 || load.del==true" icon="el-icon-delete"></el-button>
</span> </span>
</el-row> </el-row>

Loading…
Cancel
Save