|
@@ -63,6 +63,15 @@
|
|
|
<div>
|
|
|
<el-button size="mini" type="primary" plain @click="projectShowData(scope.row.id)">编辑</el-button>
|
|
|
<el-button size="mini" type="danger" plain @click="dialogBug(scope.row.id)">删除</el-button>
|
|
|
+ <el-dropdown style="margin-left:10px" trigger="click">
|
|
|
+ <el-button size="mini" type="primary">···</el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item icon="el-icon-coin" @click.native="createReport(1, scope.row)">新建提测报告</el-dropdown-item>
|
|
|
+ <el-dropdown-item icon="el-icon-coin" @click.native="createReport(2, scope.row)">新建日报报告</el-dropdown-item>
|
|
|
+ <el-dropdown-item icon="el-icon-coin" @click.native="createReport(3, scope.row)">新建准出报告</el-dropdown-item>
|
|
|
+ <el-dropdown-item icon="el-icon-coin" @click.native="createReport(4, scope.row)">新建bug</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
<el-dialog
|
|
|
:visible.sync="dialogVisible"
|
|
|
width="30%"
|
|
@@ -77,7 +86,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination background style="margin-top:30px;" align="center" :current-page="curIndex" :page-size="pageSize" layout="prev, pager, next" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
|
|
+ <el-pagination background style="margin-top:30px;" align="center" :current-page="curIndex" :page-size="pageSize" layout="prev, pager, next" :total="total" @current-change="handleCurrentChange" />
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="看板" name="second">
|
|
@@ -115,6 +124,9 @@ export default {
|
|
|
created() {
|
|
|
this.bugListSelectBeforeGet()
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ document.getElementsByClassName('app-main')[0].style.cssText = 'overflow:auto'
|
|
|
+ },
|
|
|
methods: {
|
|
|
async bugListSelectBeforeGet() {
|
|
|
await bugGetEnum().then(res => {
|
|
@@ -135,6 +147,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
dataQuery(queryCode) {
|
|
|
+ this.curIndex = 1
|
|
|
+ queryCode.bizId = localStorage.getItem('key')
|
|
|
+ queryCode.pageSize = this.pageSize
|
|
|
+ queryCode.curIndex = this.curIndex
|
|
|
+ taskListGet(queryCode).then(res => {
|
|
|
+ res.code === 200 ? this.tableData = res.data : this.errorFun(res.msg)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ dataQueryInSearch(queryCode) {
|
|
|
queryCode.bizId = localStorage.getItem('key')
|
|
|
queryCode.pageSize = this.pageSize
|
|
|
queryCode.curIndex = this.curIndex
|
|
@@ -145,6 +166,40 @@ export default {
|
|
|
createdCode() {
|
|
|
this.$router.push({ name: '任务创建' })
|
|
|
},
|
|
|
+ // 创建日报 提测 准出 Bug报告跳转
|
|
|
+ createReport(e, ele) {
|
|
|
+ if (ele.typeString !== '服务端') {
|
|
|
+ switch (e) {
|
|
|
+ case 1:
|
|
|
+ this.$router.push({ path: '/Platform/presentation/PresentReport', query: { task: ele }}) // 客户端提测
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele }}) // 客户端日报
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.$router.push({ path: '/Platform/presentation/ClientAcceptance', query: { task: ele }}) // 客户端准出
|
|
|
+ break
|
|
|
+ case 4:
|
|
|
+ this.$router.push({ name: '新建Bug', query: { id: ele.id }}) // 缺陷报告
|
|
|
+ break
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ switch (e) {
|
|
|
+ case 1:
|
|
|
+ this.$router.push({ path: '/Platform/presentation/presentationReport', query: { task: ele }}) // 服务端提测
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele }}) // 服务端日报
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.$router.push({ path: '/Platform/presentation/Acceptance', query: { task: ele }}) // 服务端准出
|
|
|
+ break
|
|
|
+ case 4:
|
|
|
+ this.$router.push({ name: '新建Bug', query: { id: ele.id }}) // 缺陷报告
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// id Bug
|
|
|
dialogBug(e) {
|
|
|
this.dialogVisible = true
|
|
@@ -163,11 +218,60 @@ export default {
|
|
|
})
|
|
|
this.dialogVisible = false
|
|
|
},
|
|
|
- handleSizeChange(size) {
|
|
|
- this.pageSize = size
|
|
|
- },
|
|
|
+ // // 看板移动更新
|
|
|
+ // checkMove(evt) {
|
|
|
+ // this.pauseFromId = evt.draggedContext.element.id
|
|
|
+ // },
|
|
|
+ // targetRecording(e) {
|
|
|
+ // this.pauseTarget = e
|
|
|
+ // const formTask = { id: this.pauseFromId, status: this.pauseTarget }
|
|
|
+ // const userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
+ // const objData = { taskInfo: formTask, user: userData }
|
|
|
+ // updateTaskList(objData).then(response => {
|
|
|
+ // if (response.code === 200) {
|
|
|
+ // this.kanBanDrag()
|
|
|
+ // this.successFun('operating')
|
|
|
+ // } else {
|
|
|
+ // this.errorFun(response.msg)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ // // 看板获取
|
|
|
+ // kanBanDrag() {
|
|
|
+ // this.loadingOnlineProcess = true
|
|
|
+ // const initValue = { bizId: this.bizJson }
|
|
|
+ // listMap(initValue).then((res) => {
|
|
|
+ // this.labelDrag = res.data
|
|
|
+ // this.loadingOnlineProcess = false
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ // // 标签页研发质量
|
|
|
+ // handleClick() {
|
|
|
+ // if (this.activeName === 'second') {
|
|
|
+ // this.kanBanDrag()
|
|
|
+ // } else if (this.activeName === 'first') {
|
|
|
+ // this.bugListSelectBeforeGet()
|
|
|
+ // } else {
|
|
|
+ // this.errorFun('获取数据失败')
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // // 看板查询
|
|
|
+ // kanBanQuery(e) {
|
|
|
+ // for (const key in e) {
|
|
|
+ // if (!e[key]) {
|
|
|
+ // delete e[key]
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // e.bizId = this.bizJson
|
|
|
+ // this.loadingOnlineProcess = true
|
|
|
+ // listMap(e).then((res) => {
|
|
|
+ // this.labelDrag = res.data
|
|
|
+ // this.loadingOnlineProcess = false
|
|
|
+ // })
|
|
|
+ // },
|
|
|
handleCurrentChange(curIndex) {
|
|
|
this.curIndex = curIndex
|
|
|
+ this.dataQueryInSearch()
|
|
|
},
|
|
|
taskShow(e) {
|
|
|
this.$router.push({ name: '任务查看', query: { id: e }})
|
|
@@ -191,6 +295,7 @@ export default {
|
|
|
background-color #F2F3F6
|
|
|
display flex
|
|
|
justify-content center
|
|
|
+ min-width 1200px
|
|
|
.block
|
|
|
background-color rgba(255,255,255,1)
|
|
|
box-shadow 0px 0px 11px 0px rgba(238,240,245,1)
|