Browse Source

问题界面优化

master
陈裕财 5 years ago
parent
commit
d9bbdf32b9
  1. 48
      src/views/xm/core/xmQuestion/XmQuestionEdit.vue
  2. 6
      src/views/xm/core/xmQuestion/XmQuestionMng.vue

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

@ -46,14 +46,20 @@
<el-col :span="12"> <el-col :span="12">
<el-row class="app-container"> <el-row class="app-container">
<el-col :span="24" class="label-font">测试步骤</el-col> <el-col :span="24" class="label-font">测试步骤</el-col>
<el-col :span="24" style="padding-top:12px;">
<div v-html="editForm.opStep"></div>
<el-col :span="24" >
<div class="wf-main-context-box" v-if="editForm.opStep">
<div style="padding:10px;" class="wf-main-context" v-html="editForm.opStep"></div>
</div>
<font v-else></font>
</el-col> </el-col>
</el-row> </el-row>
<el-row class="app-container"> <el-row class="app-container">
<el-col :span="24" class="label-font" >预期结果</el-col> <el-col :span="24" class="label-font" >预期结果</el-col>
<el-col :span="24" style="padding-top:12px;">
<div v-html="editForm.expectResult"></div>
<el-col :span="24" >
<div class="wf-main-context-box" v-if="editForm.expectResult">
<div style="padding:10px;" class="wf-main-context" v-html="editForm.expectResult"></div>
</div>
<font v-else></font>
</el-col> </el-col>
</el-row> </el-row>
<el-row class="app-container"> <el-row class="app-container">
@ -85,7 +91,20 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="问题描述" prop="description"> <el-form-item label="问题描述" prop="description">
<div v-html="editForm.description"></div>
<div class="wf-main-context-box" v-if="editForm.description">
<div style="padding:10px;" class="wf-main-context" v-html="editForm.description"></div>
</div>
<font v-else></font>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="上次处理意见" prop="lremark">
<div class="wf-main-context-box" v-if="editForm.lremark">
<div style="padding:10px;" class="wf-main-context" v-html="editForm.lremark"></div>
</div>
<font v-else></font>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
@ -283,6 +302,11 @@
return ; return ;
} }
} }
//
if(tardgetBugStatus=='resolved'){
this.editForm.handlerUserid=this.editForm.createUserid
this.editForm.handlerUsername=this.editForm.createUsername;
}
this.editSubmit(tardgetBugStatus); this.editSubmit(tardgetBugStatus);
}, },
formatterOption: function(row,column,cellValue, index){ formatterOption: function(row,column,cellValue, index){
@ -418,4 +442,18 @@
font-weight: 700; font-weight: 700;
font-size: 14px; font-size: 14px;
} }
.wf-main-context-box {
border:1px dashed #000;
margin-bottom: 10px;
margin-top: 10px;
}
.wf-main-context p {
color: #585858;
}
.wf-main-context p > img {
max-width: 100%;
}
</style> </style>

6
src/views/xm/core/xmQuestion/XmQuestionMng.vue

@ -148,13 +148,13 @@
<el-table-column prop="bugSeverity" label="严重程度" width="100" :formatter="formatterOption"></el-table-column> <el-table-column prop="bugSeverity" label="严重程度" width="100" :formatter="formatterOption"></el-table-column>
<el-table-column prop="createUsername" label="创建人" width="100" show-overflow-tooltip></el-table-column> <el-table-column prop="createUsername" label="创建人" width="100" show-overflow-tooltip></el-table-column>
<el-table-column prop="handlerUsername" width="200" label="指派给" >
<el-table-column prop="handlerUsername" width="100" label="指派给" show-overflow-tooltip>
<template slot="header"> <template slot="header">
指派给<el-button @click="showGroupUsers('handlerUser')" icon="el-icon-search" circle size="mini"></el-button> 指派给<el-button @click="showGroupUsers('handlerUser')" icon="el-icon-search" circle size="mini"></el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column sortable prop="ltime" label="更新时间" width="120" :formatter="formatterDate" show-overflow-tooltip></el-table-column>
<el-table-column prop="lremark" label="更新说明" width="120" show-overflow-tooltip></el-table-column>
<el-table-column sortable prop="ltime" label="更新时间" width="120" show-overflow-tooltip></el-table-column>
<el-table-column prop="lremark" label="更新说明" width="100" show-overflow-tooltip></el-table-column>
<el-table-column prop="createTime" label="创建时间" width="120" :formatter="formatterDate" show-overflow-tooltip></el-table-column> <el-table-column prop="createTime" label="创建时间" width="120" :formatter="formatterDate" show-overflow-tooltip></el-table-column>
<el-table-column prop="bizFlowState" label="升级处理" width="120" > <el-table-column prop="bizFlowState" label="升级处理" width="120" >
<template slot-scope="scope"> <template slot-scope="scope">

Loading…
Cancel
Save