|
@@ -15,15 +15,6 @@
|
|
|
<!-- 富文本 -->
|
|
|
<div id="editor" name="editor" style="width:50px;" />
|
|
|
|
|
|
- <!-- <div class="backStyle">一. 进度和风险</div>
|
|
|
- <div id="projectProgress" class="toolbar" />
|
|
|
- <div id="projectProgress1" class="text" style="text-align:left" />
|
|
|
-
|
|
|
- <div class="backStyle">二. 测试情况</div>
|
|
|
-
|
|
|
- <div id="TestProgress" class="toolbar" />
|
|
|
- <div id="TestProgress1" class="text" style="text-align:left;" /> -->
|
|
|
-
|
|
|
<div class="backStyle">三. bug情况</div>
|
|
|
|
|
|
<div style="border: 1px,solid #ccc;">
|
|
@@ -53,7 +44,7 @@
|
|
|
// import E from 'wangeditor'
|
|
|
import echarts from 'echarts'
|
|
|
import Jodit from 'jodit'
|
|
|
-import { dailyReportCreate, dailyReportUpdate, bugDailyList } from '@/api/testPresentetion'
|
|
|
+import { dailyReportCreate, dailyReportUpdate, bugDailyList, dailyReport } from '@/api/testPresentetion'
|
|
|
|
|
|
export default {
|
|
|
name: 'DailyNewsAdded',
|
|
@@ -115,44 +106,27 @@ export default {
|
|
|
'showXPathInStatusbar': false
|
|
|
})
|
|
|
this.editor.value = '<br><h2>一. 进度和风险</h2><br><p>1,项目整体进度</p><br><br><p>2,项目风险与问题</p><br><table width="100%"><colgroup><col width="8%"><col width="8%"><col width="8%"><col width="8%"></colgroup><thead><tr><th>风险等级</th><th>风险项</th><th>当前状态</th><th>跟进人</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><br><h2>二. 测试情况</h2><br><p>1,测试进展</p><br><table width="100%"><colgroup><col width="8%"><col width="8%"><col width="8%"><col width="8%"><col width="8%"><col width="8%"><col width="8%"></colgroup><thead><tr><th>标题1</th><th>标题2</th><th>标题3</th><th>标题4</th><th>标题5</th><th>标题6</th><th>标题7</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><br><p>2,测试说明</p><br><br>'
|
|
|
- // this.TestProgress = new E('#TestProgress', '#TestProgress1')
|
|
|
- // this.projectProgress = new E('#projectProgress', '#projectProgress1')
|
|
|
-
|
|
|
- // this.TestProgress.customConfig.zIndex = 110
|
|
|
- // this.projectProgress.customConfig.zIndex = 110
|
|
|
-
|
|
|
- // this.TestProgress.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
- // this.projectProgress.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
-
|
|
|
- // this.TestProgress.customConfig.onchange = (html) => { this.TestProgress = html }
|
|
|
- // this.projectProgress.customConfig.onchange = (html) => { this.projectProgress = html }
|
|
|
-
|
|
|
- // this.TestProgress.create()
|
|
|
- // this.projectProgress.create()
|
|
|
-
|
|
|
- // this.TestProgress.txt.html(`<p>1,测试进展</p><br><table width="100%"><colgroup><col width="8%"><col width="8%"><col width="8%"><col width="8%"><col width="8%"><col width="8%"><col width="8%"></colgroup><thead><tr><th>标题1</th><th>标题2</th><th>标题3</th><th>标题4</th><th>标题5</th><th>标题6</th><th>标题7</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><br><p>2,测试说明</p><br><br>`)
|
|
|
- // this.projectProgress.txt.html(`<br><p>1,项目整体进度</p><br><br><p>2,项目风险与问题</p><br><table width="100%"><colgroup><col width="8%"><col width="8%"><col width="8%"><col width="8%"></colgroup><thead><tr><th>风险等级</th><th>风险项</th><th>当前状态</th><th>跟进人</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><br>`)
|
|
|
- this.getRouterData1()
|
|
|
},
|
|
|
methods: {
|
|
|
getRouterData() {
|
|
|
- if (this.$route.query.data) {
|
|
|
+ if (this.$route.query.data) { // 主页面编辑
|
|
|
this.fromCreateData = {}
|
|
|
- this.fromCreateData = this.$route.query.data
|
|
|
this.showButton1 = true
|
|
|
this.showButton = false
|
|
|
- this.pro = this.$route.query.data
|
|
|
+ dailyReport({ id: this.$route.query.id }).then((res) => {
|
|
|
+ this.fromCreateData = res.data
|
|
|
+ this.editor.value = this.fromCreateData.testExplain
|
|
|
+ })
|
|
|
+ this.pro = { projectId: this.$route.query.projectId, taskId: this.$route.query.taskId }
|
|
|
}
|
|
|
if (this.$route.query.state1) { // 项目主页面新建
|
|
|
this.fromCreateData = {}
|
|
|
this.showButton1 = false
|
|
|
this.showButton = true
|
|
|
- console.log(this.$route.query.projectId)
|
|
|
this.$route.query.projectId ? this.projectId = this.$route.query.projectId : ''
|
|
|
this.$route.query.taskId ? this.taskId = this.$route.query.taskId : ''
|
|
|
this.bizIdCode = this.$route.query.state1.bizId
|
|
|
this.pro = { projectId: this.projectId, taskId: this.taskId }
|
|
|
- console.log(this.pro)
|
|
|
}
|
|
|
if (this.$route.query.task) { // 任务页面
|
|
|
this.fromCreateData = {}
|
|
@@ -200,9 +174,6 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- getRouterData1() {
|
|
|
- this.editor.value = this.fromCreateData.testExplain
|
|
|
- },
|
|
|
|
|
|
// 返回
|
|
|
open(ele) {
|
|
@@ -220,10 +191,7 @@ export default {
|
|
|
this.$refs['fromCreateData'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.fromCreateData = ele
|
|
|
- // typeof (this.TestProgress) === 'string' ? this.fromCreateData.testExplain = this.TestProgress : ''
|
|
|
this.fromCreateData.testExplain = this.editor.editor.innerHTML
|
|
|
- // typeof (this.projectProgress) === 'string' ? this.fromCreateData.problemRisks = this.projectProgress : ''
|
|
|
- // this.fromCreateData.taskId !== '' ? this.fromCreateData.taskId = this.idCode : this.fromCreateData.projectId = this.idCode
|
|
|
if (this.$route.query.task) { // 任务页面
|
|
|
this.fromCreateData.taskId = this.idCode
|
|
|
this.fromCreateData.bizId = this.bizIdCode
|
|
@@ -263,7 +231,6 @@ export default {
|
|
|
this.fromCreateData = ele
|
|
|
this.fromCreateData.taskId === 0 ? this.fromCreateData.taskId = '' : ''
|
|
|
this.fromCreateData.projectId === 0 ? this.fromCreateData.projectId = '' : ''
|
|
|
- // typeof (this.TestProgress) === 'string' ? this.fromCreateData.testExplain = this.testExplain : ''
|
|
|
this.fromCreateData.testExplain = this.editor.editor.innerHTML
|
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
this.objData = { dailyTestReport: this.fromCreateData, user: this.userData }
|
|
@@ -279,7 +246,8 @@ export default {
|
|
|
|
|
|
// 预览跳转
|
|
|
clickPreview(ele) {
|
|
|
- this.$router.push({ path: '/Platform/presentation/testPresenyL', query: { data: ele }})
|
|
|
+ console.log(ele)
|
|
|
+ this.$router.push({ path: '/Platform/presentation/testPresenyL', query: { id: ele }})
|
|
|
},
|
|
|
|
|
|
deleteProject(e) {
|
|
@@ -290,9 +258,6 @@ export default {
|
|
|
this.showbut1 = false
|
|
|
this.showbut = '2'
|
|
|
}
|
|
|
- },
|
|
|
- createDateNode() {
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -316,11 +281,9 @@ export default {
|
|
|
border: none;
|
|
|
}
|
|
|
.toolbar {
|
|
|
- /* width: 86vw; */
|
|
|
border: 1px solid #DEE2E7;
|
|
|
}
|
|
|
.text {
|
|
|
- /* width: 86vw; */
|
|
|
border: 1px solid #DEE2E7;
|
|
|
height: auto;
|
|
|
font-size: 15px;
|