|
@@ -81,13 +81,12 @@
|
|
|
</el-col>
|
|
|
</div>
|
|
|
<el-form-item label="提测模块" style="margin: 2px 0;" />
|
|
|
- <div id="DetailsOfProposal" class="toolbar" />
|
|
|
- <div id="DetailsOfProposal1" class="text" />
|
|
|
+
|
|
|
+ <normal-area id="presens-children-moduleInfo" :value.sync="clienEdit.moduleInfo" :height="200" />
|
|
|
|
|
|
<div class="backStyle">二. 联调详情</div>
|
|
|
|
|
|
- <div id="editorContent" class="toolbar" />
|
|
|
- <div id="editorContent1" class="text" />
|
|
|
+ <normal-area id="presens-children-joinTest" :value.sync="clienEdit.joinTest" :height="200" />
|
|
|
|
|
|
<div class="backStyle">三. 其他</div>
|
|
|
<div class="double">
|
|
@@ -108,10 +107,13 @@
|
|
|
const _ = require('lodash')
|
|
|
import moment from 'moment'
|
|
|
import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
|
|
|
-import E from 'wangeditor'
|
|
|
+import normalArea from '@/components/input/normalArea'
|
|
|
|
|
|
export default {
|
|
|
name: 'PresentationReport',
|
|
|
+ components: {
|
|
|
+ normalArea
|
|
|
+ },
|
|
|
props: {
|
|
|
clienData: {
|
|
|
type: Object,
|
|
@@ -155,36 +157,19 @@ export default {
|
|
|
lateStatus: 1,
|
|
|
getInfo: '',
|
|
|
fromDev: {},
|
|
|
+ clienEdit: {
|
|
|
+ moduleInfo: `<p></p><table border="1" style="border: 1px solid #DEE2E7" width="100%"><colgroup><col width="30%"><col width="30%"><col width="30%"></colgroup><thead><tr><th>提测模块</th><th>提测分支</th><th>对应RD</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td></tr></tbody></table>`,
|
|
|
+ joinTest: `<p></p><table border="1" style="border: 1px solid #DEE2E7" width="100%"><colgroup><col width="30%"><col width="30%"><col width="30%"></colgroup><thead><tr><th>联调模块</th><th>联调RD</th><th>联调结果</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td></tr></tbody></table>`
|
|
|
+ },
|
|
|
ids: [],
|
|
|
- editorContent: '',
|
|
|
showData: false,
|
|
|
showCodeReview: false,
|
|
|
- DetailsOfProposal: '',
|
|
|
projectIdCode: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.getRouterData()
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.editorContent = new E('#editorContent', '#editorContent1')
|
|
|
- this.DetailsOfProposal = new E('#DetailsOfProposal', '#DetailsOfProposal1')
|
|
|
-
|
|
|
- this.editorContent.customConfig.zIndex = 110
|
|
|
- this.DetailsOfProposal.customConfig.zIndex = 110
|
|
|
-
|
|
|
- this.editorContent.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
- this.DetailsOfProposal.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
-
|
|
|
- this.editorContent.customConfig.onchange = (html) => { this.editorContent = html }
|
|
|
- this.DetailsOfProposal.customConfig.onchange = (html) => { this.DetailsOfProposal = html }
|
|
|
-
|
|
|
- this.editorContent.create()
|
|
|
- this.DetailsOfProposal.create()
|
|
|
-
|
|
|
- this.editorContent.txt.html(`<p></p><table width="100%"><colgroup><col width="30%"><col width="30%"><col width="30%"></colgroup><thead><tr><th>联调模块</th><th>联调RD</th><th>联调结果</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
|
- this.DetailsOfProposal.txt.html(`<p></p><table width="100%"><colgroup><col width="30%"><col width="30%"><col width="30%"></colgroup><thead><tr><th>提测模块</th><th>提测分支</th><th>对应RD</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
|
- },
|
|
|
methods: {
|
|
|
getRouterData() {
|
|
|
console.log(this.clienData, '提测服务端')
|
|
@@ -226,8 +211,8 @@ export default {
|
|
|
this.$set(this.fromDev, 'crBy', '')
|
|
|
}
|
|
|
this.$nextTick(() => {
|
|
|
- this.fromDev.joinTest !== null ? this.editorContent.txt.html(this.fromDev.joinTest) : ''
|
|
|
- this.fromDev.moduleInfo !== null ? this.DetailsOfProposal.txt.html(this.fromDev.moduleInfo) : ''
|
|
|
+ this.clienEdit.moduleInfo = this.fromDev.moduleInfo || this.clienEdit.moduleInfo
|
|
|
+ this.clienEdit.joinTest = this.fromDev.joinTest || this.clienEdit.joinTest
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -235,8 +220,8 @@ export default {
|
|
|
this.$refs['fromDev'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
const params = _.cloneDeep(this.fromDev)
|
|
|
- typeof (this.editorContent) === 'string' ? params.joinTest = this.editorContent : ''
|
|
|
- typeof (this.DetailsOfProposal) === 'string' ? params.moduleInfo = this.DetailsOfProposal : ''
|
|
|
+ params.moduleInfo = this.clienEdit.moduleInfo
|
|
|
+ params.joinTest = this.clienEdit.joinTest
|
|
|
params.lateStatus = this.lateStatus
|
|
|
params.devTimeStart = moment(params.devTimeStart).format('YYYY.MM.DD')
|
|
|
params.devTimeEnd = moment(params.devTimeEnd).format('YYYY.MM.DD')
|
|
@@ -270,7 +255,8 @@ export default {
|
|
|
if (valid) {
|
|
|
this.fromDev = ele
|
|
|
typeof (this.editorContent) === 'string' ? this.fromDev.joinTest = this.editorContent : ''
|
|
|
- typeof (this.DetailsOfProposal) === 'string' ? this.fromDev.moduleInfo = this.DetailsOfProposal : ''
|
|
|
+ this.fromDev.moduleInfo = this.clienEdit.moduleInfo
|
|
|
+ this.fromDev.joinTest = this.clienEdit.joinTest
|
|
|
this.fromDev.lateReason = ele.lateReason
|
|
|
this.fromDev.lateStatus = this.lateStatus
|
|
|
this.fromDev.bizId = Number(localStorage.getItem('bizId'))
|
|
@@ -352,15 +338,6 @@ export default {
|
|
|
border-radius: 4px;
|
|
|
margin: 1% 0;
|
|
|
}
|
|
|
- .toolbar {
|
|
|
- border: 2px solid #DEE2E7;
|
|
|
- }
|
|
|
- .text {
|
|
|
- font-size: 15px;
|
|
|
- color: #606266;
|
|
|
- border: 2px solid #DEE2E7;
|
|
|
- height: auto;
|
|
|
- }
|
|
|
.CodeReview {
|
|
|
/deep/ .el-form-item__label {
|
|
|
width: 106px;
|