|
@@ -141,7 +141,7 @@
|
|
|
</div>
|
|
|
<div style=" margin: 0 4%;">
|
|
|
<el-form-item label="描述" style="width:100%;">
|
|
|
- <el-row>
|
|
|
+ <el-row v-if="editr">
|
|
|
<el-col :span="24">
|
|
|
<div id="wange" style="background-color: #FFF;" class="toolbar" />
|
|
|
<div id="wange1" class="text" />
|
|
@@ -281,7 +281,8 @@ export default {
|
|
|
sysTypeEnumList: [], // 端类型
|
|
|
showCopyFile: false, // 复制文件对话框
|
|
|
imageName: null,
|
|
|
- imageUrl: null
|
|
|
+ imageUrl: null,
|
|
|
+ editr: false
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -299,6 +300,7 @@ export default {
|
|
|
this.formInline = {}
|
|
|
this.$set(this.formInline, 'creatorList', this.userNames)
|
|
|
this.$set(this.formInline, 'bizId', Number(localStorage.getItem('bizId')))
|
|
|
+
|
|
|
if (e === 1) {
|
|
|
this.titleName = '新建缺陷'
|
|
|
if (ele !== undefined) {
|
|
@@ -314,6 +316,13 @@ export default {
|
|
|
this.$set(this.formInline, 'accessory', '')
|
|
|
}
|
|
|
}
|
|
|
+ this.$nextTick(() => {
|
|
|
+ document.getElementById('soll').scrollTop = 0
|
|
|
+ this.editr = true
|
|
|
+ this.getEcharts()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getEcharts() {
|
|
|
setTimeout(() => {
|
|
|
this.$set(this.formInline, 'bugDescribe', '')
|
|
|
const editorRemark = new E('#wange', '#wange1')
|
|
@@ -322,10 +331,7 @@ export default {
|
|
|
this.formInline.bugDescribe = html
|
|
|
}
|
|
|
editorRemark.create()
|
|
|
- }, 200)
|
|
|
- this.$nextTick(() => {
|
|
|
- document.getElementById('soll').scrollTop = 0
|
|
|
- })
|
|
|
+ }, 100)
|
|
|
},
|
|
|
getcurrentHandler(e) {
|
|
|
this.$set(this.formInline, 'currentHandler', e)
|
|
@@ -339,6 +345,7 @@ export default {
|
|
|
this.fileList = []
|
|
|
this.fileDbList = []
|
|
|
this.formInline = {}
|
|
|
+ this.editr = false
|
|
|
this.modalShow = false
|
|
|
},
|
|
|
// 上传成功回调
|