Commit 3b967bfd authored by renjintao's avatar renjintao

bug detail

parent ac8d22c2
<template> <template>
<div style="width:100%;overflow:auto"> <div style="width:100%;overflow:auto">
<div style="width:80%; border-right:1px solid #ccc;padding-right:30px;float:left"> <div style="width:80%; border-right:1px solid #ccc;padding-right:30px;float:left">
<Form :model="bugForm" :label-width="5" ref="formValidate"> <Form :model="bugForm" :label-width="5" ref="formValidate">
<Row> <Row>
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
<p class="time" v-else> <p class="time" v-else>
<state code="Test.bug.statusHistory" :value="item.action" type="text"></state> <state code="Test.bug.statusHistory" :value="item.action" type="text"></state>
</p> </p>
<Tooltip max-width="400" :content="item.remark" v-if="item.remark">
<a>查看</a>
</Tooltip>
<p class="content">{{item.actionName}}</p> <p class="content">{{item.actionName}}</p>
<p class="content">{{item.creationTime}}</p> <p class="content">{{item.creationTime}}</p>
</TimelineItem> </TimelineItem>
...@@ -97,8 +100,9 @@ ...@@ -97,8 +100,9 @@
<Button @click="showInfo=false">关闭</Button> <Button @click="showInfo=false">关闭</Button>
</div> </div>
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'detail', name: 'detail',
...@@ -109,7 +113,7 @@ export default { ...@@ -109,7 +113,7 @@ export default {
detailForm: { detailForm: {
remark: '', remark: '',
actionName: '', actionName: '',
creationTime:'', creationTime: '',
workHours: 0 workHours: 0
}, },
divHeight: '200px', divHeight: '200px',
...@@ -118,8 +122,7 @@ export default { ...@@ -118,8 +122,7 @@ export default {
eid: null, eid: null,
name: '' name: ''
}, },
postUrl: postUrl: fileUrl + '/?token=Bearer ' + window.sessionStorage.getItem('token'),
fileUrl + '/?token=Bearer ' + window.sessionStorage.getItem('token'),
downUrl: fileUrlDown, downUrl: fileUrlDown,
fileUrlPath: '', fileUrlPath: '',
bugForm: { bugForm: {
...@@ -143,7 +146,9 @@ export default { ...@@ -143,7 +146,9 @@ export default {
detailInfo(value) { detailInfo(value) {
this.nameList = [] this.nameList = []
this.parms.eid = value.id this.parms.eid = value.id
this.$http.bug.get({ id: value.id }).then((res) => { this.$http.bug.get({
id: value.id
}).then((res) => {
if (res.result) { if (res.result) {
this.bugForm = res.result this.bugForm = res.result
//this.bugForm.statusNew=res.result.level //this.bugForm.statusNew=res.result.level
...@@ -155,7 +160,9 @@ export default { ...@@ -155,7 +160,9 @@ export default {
let id = value.id let id = value.id
if (id != null) { if (id != null) {
//增加确定 //增加确定
this.$http.bug.getallaction({ id: id }).then((res) => { this.$http.bug.getallaction({
id: id
}).then((res) => {
if (res.result) { if (res.result) {
this.timeLineLista = [] this.timeLineLista = []
this.timeLineList = res.result this.timeLineList = res.result
...@@ -180,7 +187,7 @@ export default { ...@@ -180,7 +187,7 @@ export default {
this.detailForm = { this.detailForm = {
remark: value.remark, remark: value.remark,
actionName: value.actionName, actionName: value.actionName,
creationTime:value.creationTime, creationTime: value.creationTime,
workHours: value.workHours workHours: value.workHours
} }
}, },
...@@ -201,18 +208,21 @@ export default { ...@@ -201,18 +208,21 @@ export default {
} }
} }
</script> </script>
<style scoped> <style scoped>
.time { .time {
font-size: 14px; font-size: 14px;
font-weight: bold; font-weight: bold;
} }
.content { .content {
padding-left: 5px; padding-left: 5px;
} }
.rightDiv { .rightDiv {
width: 18%; width: 18%;
float: left; float: left;
padding-left: 50px; padding-left: 50px;
overflow: auto;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment