Commit 3b967bfd authored by renjintao's avatar renjintao

bug detail

parent ac8d22c2
<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">
<Form :model="bugForm" :label-width="5" ref="formValidate">
<Row>
......@@ -63,6 +63,9 @@
<p class="time" v-else>
<state code="Test.bug.statusHistory" :value="item.action" type="text"></state>
</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.creationTime}}</p>
</TimelineItem>
......@@ -97,8 +100,9 @@
<Button @click="showInfo=false">关闭</Button>
</div>
</Modal>
</div>
</div>
</template>
<script>
export default {
name: 'detail',
......@@ -109,7 +113,7 @@ export default {
detailForm: {
remark: '',
actionName: '',
creationTime:'',
creationTime: '',
workHours: 0
},
divHeight: '200px',
......@@ -118,8 +122,7 @@ export default {
eid: null,
name: ''
},
postUrl:
fileUrl + '/?token=Bearer ' + window.sessionStorage.getItem('token'),
postUrl: fileUrl + '/?token=Bearer ' + window.sessionStorage.getItem('token'),
downUrl: fileUrlDown,
fileUrlPath: '',
bugForm: {
......@@ -143,7 +146,9 @@ export default {
detailInfo(value) {
this.nameList = []
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) {
this.bugForm = res.result
//this.bugForm.statusNew=res.result.level
......@@ -155,7 +160,9 @@ export default {
let id = value.id
if (id != null) {
//增加确定
this.$http.bug.getallaction({ id: id }).then((res) => {
this.$http.bug.getallaction({
id: id
}).then((res) => {
if (res.result) {
this.timeLineLista = []
this.timeLineList = res.result
......@@ -180,7 +187,7 @@ export default {
this.detailForm = {
remark: value.remark,
actionName: value.actionName,
creationTime:value.creationTime,
creationTime: value.creationTime,
workHours: value.workHours
}
},
......@@ -201,18 +208,21 @@ export default {
}
}
</script>
<style scoped>
.time {
font-size: 14px;
font-weight: bold;
}
.content {
padding-left: 5px;
}
.rightDiv {
width: 18%;
float: left;
padding-left: 50px;
overflow: auto;
}
</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