Browse Source

优化

master
陈裕财 3 years ago
parent
commit
914feb9abc
  1. 2
      src/views/xm/core/xmTestCase/XmTestCaseEdit.vue
  2. 4
      src/views/xm/core/xmTestCase/XmTestCaseMng.vue
  3. 2
      src/views/xm/core/xmTestCasedb/XmTestCasedbMng.vue
  4. 2
      src/views/xm/core/xmTestPlan/XmTestPlanMng.vue
  5. 8
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue

2
src/views/xm/core/xmTestCase/XmTestCaseEdit.vue

@ -57,7 +57,7 @@
前置条件
</el-row>
<el-row>
<el-input type="textarea" :rows="4" v-model="editForm.preRemark" placeholder="请输入前置条件" @change="editSomeFields(editForm,'preRmark',$event)"></el-input>
<el-input type="textarea" :rows="4" v-model="editForm.preRemark" placeholder="请输入前置条件" @change="editSomeFields(editForm,'preRemark',$event)"></el-input>
</el-row>
</el-form-item>
<el-form-item label="" prop="testStep" label-width="0px">

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

@ -7,9 +7,9 @@
</el-col>
<el-col :span="18">
<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" clearable></el-input>
<el-select v-model="filters.caseStatus" style="width:120px;" placeholder="审核状态" 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-select>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestCases" icon="el-icon-search">查询</el-button>

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

@ -2,7 +2,7 @@
<section class="border padding">
<el-row>
<xm-product-select v-if="!xmProduct" style="display:inline;" :auto-select="false" :link-project-id="selProject?selProject.id:null" @row-click="onProductSelected" @clear="clearProduct"></xm-product-select>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询" clearable></el-input>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestCasedbs" icon="el-icon-search">查询</el-button>
<span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus">添加用例库 </el-button>

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

@ -1,7 +1,7 @@
<template>
<section class="page-container border padding">
<el-row>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询" clearable></el-input>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestPlans" icon="el-icon-search">查询</el-button>
<span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus">测试计划</el-button>

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

@ -7,7 +7,7 @@
</el-col>
<el-col :span="18">
<el-row>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询"></el-input>
<el-input v-model="filters.key" style="width: 20%;" placeholder="模糊查询" clearable></el-input>
<el-button v-loading="load.list" :disabled="load.list==true" @click="searchXmTestPlanCases" icon="el-icon-search">查询</el-button>
<span style="float:right;">
<el-button type="primary" @click="showAdd" icon="el-icon-plus">将用例纳入计划</el-button>
@ -32,6 +32,11 @@
</span>
</template>
</el-table-column>
<el-table-column prop="caseStatus" label="用例状态" width="100" show-overflow-tooltip>
<template slot-scope="scope">
<mdp-select-dict-tag :dict="dicts['testCaseStatus']" v-model="scope.row.caseStatus" effect="dark" @change="editSomeFields(scope.row,'caseStatus',$event)"></mdp-select-dict-tag>
</template>
</el-table-column>
<template v-if="select!==true">
<el-table-column prop="execStatus" label="执行结果" width="120" show-overflow-tooltip>
<template slot-scope="scope">
@ -143,6 +148,7 @@ export default {
load:{ list: false, edit: false, del: false, add: false },//...
sels: [],//
dicts:{
testCaseStatus:[],
//sex: [{id:'1',name:''},{id:'2',name:''}]
},// params={categoryId:'all',itemCodes:['sex']} {sex: [{id:'1',name:''},{id:'2',name:''}]}
addFormVisible: false,//xmTestPlanCase

Loading…
Cancel
Save