|
@@ -7,6 +7,9 @@
|
|
|
>
|
|
|
<el-container class="is-vertical">
|
|
|
<section class="top-control">
|
|
|
+ <div v-show="formData.parentId > 0" class="back">
|
|
|
+ <i class="el-icon-arrow-left" @click="backParent(formData.parentId)" />
|
|
|
+ </div>
|
|
|
<div class="bug-id-status">
|
|
|
<span>BUG-{{ formData.id }}</span>
|
|
|
<el-dropdown placement="bottom" @command="updateStatus">
|
|
@@ -71,9 +74,14 @@
|
|
|
<el-form :inline="true" :model="formData" class="demo-form-all" label-position="right" label-width="100px">
|
|
|
<el-form-item label="任务进度:">
|
|
|
<div class="block">
|
|
|
- <el-slider v-model="formData.process" show-input @change="changeProgres" />
|
|
|
+ <el-slider v-model.number="formData.process" @change="changeProgres" />
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-input v-model.number="formData.process" style="width: 90px" @change="changeProgres">
|
|
|
+ <template slot="append">%</template>
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
</section>
|
|
@@ -114,6 +122,7 @@
|
|
|
:list.sync="formData.childSubTaskInfos"
|
|
|
:data="formData"
|
|
|
:all-status="allStatus"
|
|
|
+ @toDetail="toChild"
|
|
|
@change="changeArea('childSubTaskInfos')"
|
|
|
/>
|
|
|
</div>
|
|
@@ -259,11 +268,19 @@ export default {
|
|
|
})
|
|
|
this.$refs['add-children-list'].scroll(`childadd` + (this.formData.childSubTaskInfos.length - 1))
|
|
|
},
|
|
|
- close() {
|
|
|
+ close() { // 关闭
|
|
|
this.$emit('close')
|
|
|
},
|
|
|
- toDetail() {
|
|
|
+ toDetail() { // 前往详情页
|
|
|
this.$router.push({ name: '子任务详情', query: { id: this.formData.id }})
|
|
|
+ },
|
|
|
+ backParent(id) { // 返回父任务
|
|
|
+ this.taskId = id
|
|
|
+ this.getById()
|
|
|
+ },
|
|
|
+ toChild(id) { // 前往子任务
|
|
|
+ this.taskId = id
|
|
|
+ this.getById()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -275,6 +292,14 @@ export default {
|
|
|
}
|
|
|
.top-control {
|
|
|
padding: 30px;
|
|
|
+ position: relative;
|
|
|
+ .back {
|
|
|
+ position: absolute;
|
|
|
+ left: 10px;
|
|
|
+ font-size: 18px;
|
|
|
+ top: 33px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
.bug-id-status {
|
|
|
font-size: 18px;
|
|
|
color: #333333;
|
|
@@ -356,13 +381,16 @@ export default {
|
|
|
}
|
|
|
.demo-form-all {
|
|
|
.el-form-item {
|
|
|
- width: 60%;
|
|
|
+ width: 35%;
|
|
|
margin-right: 0;
|
|
|
/deep/.el-form-item__content {
|
|
|
width: calc(100% - 100px)
|
|
|
}
|
|
|
/deep/.el-input__inner{
|
|
|
border: 1px solid rgba(220,223,230,1)
|
|
|
+ }
|
|
|
+ /deep/.el-input-group__append {
|
|
|
+ padding: 0 10px;
|
|
|
}
|
|
|
}
|
|
|
}
|