|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="Parent">
|
|
|
- <el-dialog :visible.sync="modalShow" width="70%" top="4vh" :close-on-click-modal="false" :destroy-on-close="true" @close="modalClose">
|
|
|
+ <el-dialog :visible.sync="modalShow" width="70%" top="4vh" :modal-append-to-body="false" :close-on-click-modal="false" :destroy-on-close="true" @close="modalClose">
|
|
|
<el-form ref="formInline" label-position="left" :model="formInline" :rules="rules" label-width="90px">
|
|
|
<el-row style="margin: 0 4% 2% 4%;">
|
|
|
<el-col :span="24">
|
|
@@ -78,7 +78,7 @@
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
style="white-space:pre-line;"
|
|
|
- :content="dd"
|
|
|
+ :content="`P0:阻塞进程的bug,如新功能未实现、app启动失败、如接单crash、开单crash P1:主流程功能bug,新需求的功能性bug建议放在该等级 P2:功能bug,不影响主流程 P3:不影响功能使用的小问题,如界面显示有异常,文案、UI微调,建议优化类`"
|
|
|
placement="bottom"
|
|
|
>
|
|
|
<i style="color: red; margin-left: -17px;" class="el-icon-warning-outline" />
|
|
@@ -230,10 +230,6 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- dd: `P0:阻塞进程的bug,如新功能未实现、app启动失败、如接单crash、开单crash
|
|
|
- P1:主流程功能bug,新需求的功能性bug建议放在该等级
|
|
|
- P2:功能bug,不影响主流程
|
|
|
- P3:不影响功能使用的小问题,如界面显示有异常,文案、UI微调,建议优化类`,
|
|
|
dialogImageUrl: '', // 附件展示图片
|
|
|
modalShow: false, // 缺陷新建弹窗
|
|
|
dialogVisible: false,
|
|
@@ -292,25 +288,12 @@ export default {
|
|
|
this.bugListSelect()
|
|
|
this.bugDataGet()
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.form.remark = 'dd'
|
|
|
- setTimeout(() => {
|
|
|
- this.$set(this.formInline, 'bugDescribe', '')
|
|
|
- const editorRemark = new E('#wange', '#wange1')
|
|
|
- editorRemark.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table', 'foreColor']
|
|
|
- editorRemark.customConfig.onchange = (html) => {
|
|
|
- this.formInline.bugDescribe = html
|
|
|
- }
|
|
|
- editorRemark.create()
|
|
|
- }, 100)
|
|
|
- },
|
|
|
methods: {
|
|
|
init(e, ele) {
|
|
|
this.modalShow = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs['formInline'].clearValidate()
|
|
|
})
|
|
|
-
|
|
|
this.fileList = []
|
|
|
this.fileDbList = []
|
|
|
this.formInline = {}
|
|
@@ -322,9 +305,15 @@ export default {
|
|
|
this.$set(this.formInline, 'taskId', ele.id)
|
|
|
}
|
|
|
}
|
|
|
- this.$nextTick(() => {
|
|
|
- document.getElementById('soll').scrollTop = 0
|
|
|
- })
|
|
|
+ if (e === 2) {
|
|
|
+ this.titleName = '复制缺陷'
|
|
|
+ if (ele !== undefined) {
|
|
|
+ this.formInline = ele
|
|
|
+ this.show2 = true
|
|
|
+ this.$set(this.formInline, 'bugName', '')
|
|
|
+ this.$set(this.formInline, 'accessory', '')
|
|
|
+ }
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
|
this.$set(this.formInline, 'bugDescribe', '')
|
|
|
const editorRemark = new E('#wange', '#wange1')
|
|
@@ -333,7 +322,10 @@ export default {
|
|
|
this.formInline.bugDescribe = html
|
|
|
}
|
|
|
editorRemark.create()
|
|
|
- }, 100)
|
|
|
+ }, 200)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ document.getElementById('soll').scrollTop = 0
|
|
|
+ })
|
|
|
},
|
|
|
getcurrentHandler(e) {
|
|
|
this.$set(this.formInline, 'currentHandler', e)
|
|
@@ -376,6 +368,7 @@ export default {
|
|
|
this.bugListSelect()
|
|
|
this.modalShow = false
|
|
|
this.$message({ message: res.msg, type: 'success', duration: 1000, offset: 150 })
|
|
|
+ this.$emit('father')
|
|
|
if (this.getBugList) {
|
|
|
this.getBugList()
|
|
|
}
|