|
@@ -18,7 +18,7 @@
|
|
|
<el-table-column prop="priorityName" label="缺陷等级" align="center" />
|
|
|
<el-table-column prop="bugStatusName" label="状态" min-width="110" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <statusChange :status-code="Number(scope.row.status)" :bug-data="scope.row" />
|
|
|
+ <statusChange :status-code="Number(scope.row.status)" :bug-data="scope.row" :status-obj="statusObj" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="noShow !== 'taskName'" prop="taskName" label="所属任务" align="center" min-width="250" show-overflow-tooltip />
|
|
@@ -59,7 +59,7 @@
|
|
|
|
|
|
<script>
|
|
|
import statusChange from '@/views/projectManage/bugList/details/statusChange'
|
|
|
-import { bugList } from '@/api/defectManage'
|
|
|
+import { bugList, bugGetEnum } from '@/api/defectManage'
|
|
|
import BugDetails from './index'
|
|
|
import '@/styles/PublicStyle/index.scss'
|
|
|
|
|
@@ -97,7 +97,8 @@ export default {
|
|
|
drawerShow: false, // drawer展示
|
|
|
queryData: {}, // 查询条件
|
|
|
data: {}, // 查询条件
|
|
|
- bizId: Number(localStorage.getItem('bizId')) // 业务线
|
|
|
+ bizId: Number(localStorage.getItem('bizId')), // 业务线
|
|
|
+ statusObj: null // 状态对象
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -119,7 +120,20 @@ export default {
|
|
|
immediate: true
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.getBugSelect()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ async getBugSelect() { // 获取下拉菜单option
|
|
|
+ const res = await bugGetEnum()
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.statusObj = {
|
|
|
+ bugEnumList: res.data.bugEnumList, // status
|
|
|
+ repairResultEnumList: res.data.repairResultEnumList, // 修复结果
|
|
|
+ bugReasonEnumList: res.data.bugReasonEnumList // 缺陷原因
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
bugGetTableList(e, index) {
|
|
|
this.queryData = e
|
|
|
this.data = {}
|