Browse Source

优化

master
陈裕财 3 years ago
parent
commit
462b285efb
  1. 9
      src/views/xm/core/xmQuestion/XmQuestionEdit.vue
  2. 3
      src/views/xm/core/xmTestCase/XmTestCaseEdit.vue
  3. 5
      src/views/xm/core/xmTestCase/XmTestCaseSelect.vue
  4. 2
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue
  5. 2
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseSelect.vue

9
src/views/xm/core/xmQuestion/XmQuestionEdit.vue

@ -618,6 +618,15 @@
this.editForm.opStep=this.xmTestCase.testStep this.editForm.opStep=this.xmTestCase.testStep
this.editForm.name=this.xmTestCase.caseName this.editForm.name=this.xmTestCase.caseName
} }
if(this.xmTestPlan && this.xmTestPlan.id){
this.editForm.casedbId=this.xmTestPlan.casedbId
this.editForm.casedbName=this.xmTestPlan.casedbName
this.editForm.planId=this.xmTestPlan.id
this.editForm.projectId=this.xmTestPlan.projectId
this.editForm.projectName=this.xmTestPlan.projectName
this.editForm.productId=this.xmTestPlan.productId
this.editForm.productName=this.xmTestPlan.productName
}
if(this.xmTestPlanCase && this.xmTestPlanCase.planId){ if(this.xmTestPlanCase && this.xmTestPlanCase.planId){
this.editForm.planId=this.xmTestPlanCase.planId this.editForm.planId=this.xmTestPlanCase.planId
this.editForm.productId=this.xmTestPlanCase.productId this.editForm.productId=this.xmTestPlanCase.productId

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

@ -39,7 +39,7 @@
<mdp-select-dict-x label="状态" :dict="dicts['testCaseStatus']" v-model="editForm.caseStatus" @change="editSomeFields(editForm,'caseStatus',$event)"></mdp-select-dict-x> <mdp-select-dict-x label="状态" :dict="dicts['testCaseStatus']" v-model="editForm.caseStatus" @change="editSomeFields(editForm,'caseStatus',$event)"></mdp-select-dict-x>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<mdp-select-user-xm label="维护人" userid-key="luserid" username-key="lusername" v-model="editForm" @change="editSomeFields(editForm,'luserid',$event)" :product-id="editForm.productId"></mdp-select-user-xm>
<mdp-select-user-xm label="责任人" userid-key="cuserid" username-key="cusername" v-model="editForm" @change="editSomeFields(editForm,'cuserid',$event)" :product-id="editForm.productId"></mdp-select-user-xm>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -278,6 +278,7 @@ import MdpSelectUserXm from '@/views/xm/core/components/MdpSelectUserXm';//修
}else if(fieldName=='cuserid'){ }else if(fieldName=='cuserid'){
params[fieldName]=$event[0].userid params[fieldName]=$event[0].userid
params['cusername']=$event[0].username params['cusername']=$event[0].username
params['cbranchId']=$event[0].branchId
}else if(fieldName=='luserid'){ }else if(fieldName=='luserid'){
params[fieldName]=$event[0].userid params[fieldName]=$event[0].userid
params['lusername']=$event[0].username params['lusername']=$event[0].username

5
src/views/xm/core/xmTestCase/XmTestCaseSelect.vue

@ -15,7 +15,7 @@
<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" v-loading="load.edit" @click="selectConfirm" :disabled="this.sels.length===0 || load.edit==true" icon="el-icon-finished" plain>确认选择</el-button>
<el-button type="primary" v-loading="load.edit" @click="selectConfirm" :disabled="this.sels.length===0 || load.edit==true" icon="el-icon-finished">确认选择</el-button>
</span> </span>
</el-row> </el-row>
<el-row> <el-row>
@ -30,7 +30,7 @@
--> -->
<el-table-column prop="caseName" label="标题" min-width="250" show-overflow-tooltip> <el-table-column prop="caseName" label="标题" min-width="250" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span><el-link @click="showEdit(scope.row)"> {{scope.row.caseName}} </el-link></span>
<span> {{scope.row.caseName}} </span>
</template> </template>
</el-table-column> </el-table-column>
@ -197,6 +197,7 @@ export default {
if(this.xmTestCasedb && this.xmTestCasedb.id){ if(this.xmTestCasedb && this.xmTestCasedb.id){
params.casedbId=this.xmTestCasedb.id params.casedbId=this.xmTestCasedb.id
} }
params.caseStatus="2"
this.load.list = true; this.load.list = true;
listXmTestCase(params).then((res) => { listXmTestCase(params).then((res) => {
var tips=res.data.tips; var tips=res.data.tips;

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

@ -34,7 +34,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="caseStatus" label="用例状态" width="100" show-overflow-tooltip> <el-table-column prop="caseStatus" label="用例状态" width="100" show-overflow-tooltip>
<template slot-scope="scope"> <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>
<mdp-select-dict-tag :dict="dicts['testCaseStatus']" v-model="scope.row.caseStatus" effect="dark" @change="editSomeFields(scope.row,'caseStatus',$event)" :disabled="true"></mdp-select-dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<template v-if="select!==true"> <template v-if="select!==true">

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

@ -199,7 +199,7 @@ export default {
if(this.xmProductCpd && this.xmProductCpd.id){ if(this.xmProductCpd && this.xmProductCpd.id){
params.productId=this.xmProductCpd.id params.productId=this.xmProductCpd.id
} }
params.caseStatus="2"
this.load.list = true; this.load.list = true;
listXmTestPlanCase(params).then((res) => { listXmTestPlanCase(params).then((res) => {
var tips=res.data.tips; var tips=res.data.tips;

Loading…
Cancel
Save