qualityDefectProcess.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <div id="window-judge" class="set-background">
  3. <div class="block">
  4. <!-- <div style="text-align:right;">
  5. <el-link type="primary">指标计算指南</el-link>
  6. </div> -->
  7. <div class="title-search-output">
  8. <h4>线下缺陷</h4>
  9. <!-- <div class="search-output">
  10. <el-input v-model="input" size="medium" style="margin-right:5px" />
  11. <el-button plain type="info" size="medium" style="margin-right:35px">搜索</el-button>
  12. <el-button size="medium" type="primary">导出</el-button>
  13. </div> -->
  14. </div>
  15. <el-table
  16. :data="tableData"
  17. border
  18. style="width: 100%"
  19. size="mini"
  20. >
  21. <el-table-column
  22. label="bug名称"
  23. align="center"
  24. >
  25. <template slot-scope="scope">
  26. <a href="javascript:void(0)" style="color:#20a0ff" @click="toReportView(scope.row.id)">{{ scope.row.bugName }}</a>
  27. </template>
  28. </el-table-column>
  29. <el-table-column
  30. prop="projectId"
  31. label="Qrcc项目ID"
  32. align="center"
  33. width="100"
  34. />
  35. <el-table-column
  36. prop="modelDetail"
  37. label="模块"
  38. align="center"
  39. />
  40. <el-table-column
  41. prop="reporter"
  42. label="报告人"
  43. align="center"
  44. />
  45. <el-table-column
  46. prop="platType"
  47. label="平台类型"
  48. align="center"
  49. />
  50. <el-table-column
  51. prop="bugCreateTime"
  52. label="创建时间"
  53. align="center"
  54. width="140"
  55. />
  56. <el-table-column
  57. prop="bugType"
  58. label="错误类型"
  59. align="center"
  60. />
  61. <el-table-column
  62. prop="operator"
  63. label="经办人"
  64. align="center"
  65. show-overflow-tooltip
  66. />
  67. <el-table-column
  68. prop="bugLevel"
  69. label="缺陷分级"
  70. align="center"
  71. />
  72. <el-table-column
  73. prop="bugPriority"
  74. label="优先级"
  75. align="center"
  76. />
  77. <el-table-column
  78. prop="bugStatus"
  79. label="状态"
  80. align="center"
  81. />
  82. <el-table-column
  83. prop="resolution"
  84. label="解决结果"
  85. align="center"
  86. />
  87. <el-table-column
  88. prop="bugFindStyle"
  89. label="发现方式"
  90. align="center"
  91. />
  92. </el-table>
  93. <el-pagination style="margin-top:30px;" align="center" :current-page="curIndex" :page-sizes="[5, 10, 20]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
  94. </div>
  95. </div>
  96. </template>
  97. <script>
  98. import { getDefectInfo } from '@/api/qualityCenter'
  99. // import { apiBusinessLineAll } from '@/api/qualityMeasurement.js'
  100. // import Json from '@/api/home.json'
  101. export default {
  102. data() {
  103. return {
  104. tableData: [],
  105. input: '',
  106. curIndex: 1,
  107. pageSize: 10,
  108. total: 0,
  109. processSerach: {}
  110. }
  111. },
  112. created() {
  113. this._initProcess()
  114. },
  115. methods: {
  116. _initProcess() {
  117. this.processSerach = { id: this.$route.query.id, type: this.$route.query.type, page: this.curIndex, perPage: this.pageSize, startTime: this.$route.query.startTime, endTime: this.$route.query.endTime }
  118. getDefectInfo(this.processSerach).then(res => {
  119. this.tableData = res.data.data
  120. this.total = res.data.total
  121. })
  122. },
  123. // 跳转到bug详情
  124. toReportView(e) {
  125. this.$router.push({ name: '查看Bug', query: { id: e }})
  126. },
  127. handleSizeChange(size) {
  128. this.curIndex = 1
  129. this.pageSize = size
  130. this._initProcess()
  131. },
  132. handleCurrentChange(curIndex) {
  133. this.curIndex = curIndex
  134. this._initProcess()
  135. },
  136. errorFun(errorText) {
  137. this.$notify({ title: 'Failed', message: errorText, type: 'error', duration: 2000 })
  138. }
  139. }
  140. }
  141. </script>
  142. <style lang="stylus" scoped>
  143. .set-background
  144. background-color #F2F3F6
  145. display flex
  146. justify-content center
  147. .block
  148. background-color rgba(255,255,255,1)
  149. box-shadow 0px 0px 11px 0px rgba(238,240,245,1)
  150. border-radius 4px
  151. width 98.5%
  152. min-height calc(100vh - 81px)
  153. margin 10px 0
  154. padding 29px 20px
  155. .title-search-output
  156. display flex
  157. align-items center
  158. justify-content space-between
  159. margin 15px 0
  160. h4
  161. border-left 4px solid #4665b2
  162. padding-left 10px
  163. color #5A738E
  164. .search-output
  165. display flex
  166. justify-content space-around
  167. .block >>> th
  168. background-color #F1F4F7 !important
  169. font-size 10px
  170. .block >>> .el-table__body-wrapper .cell
  171. font-size 10px
  172. white-space nowrap
  173. text-overflow ellipsis
  174. overflow hidden
  175. </style>