浏览代码

月报2.0改造(2.7)

洪海涛 4 年之前
父节点
当前提交
8031188c02

+ 0 - 10
src/views/monthlyReport/childrenPage/editReport/components/ReadOnlyTable.vue

@@ -163,15 +163,12 @@ export default {
       this.paging.pageSize = 10
       this.paging.tableData = [...this.tableData].splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
       this.paging.pageTotal = this.tableData.length
-      console.log('init', this.paging)
       setTimeout(() => {
         this.paging.loading = false
       }, this.paging.timer)
     },
     print(row, index) {
       [this.otherColumns.all, this.otherColumns.p0, this.otherColumns.p1] = this.columns.map(elm => elm).splice(1, 3)
-      console.log(row, index, this.columns)
-      console.log(this.otherColumns)
     },
     // 添加插入
     setColumns(columns) {
@@ -216,9 +213,6 @@ export default {
         }
         return elm
       }).filter(elm => elm)
-      // console.log('newColumns', newColumns)
-      // console.log('oldPlugin', oldPlugin)
-      // return newColumns
     },
     // 设置表格列宽度
     setMinWidth(item) {
@@ -279,10 +273,8 @@ export default {
     query({ row, column }, lIndex) {
       const index = lIndex - 1 || 0
       const data = row[column.property]
-      console.log(index)
       // return
       if (index <= 2) {
-        console.log(284)
         const yaxis = this.setList(data, index)
         this.requireList = { toType: '缺陷', xaxis: this.bugPriority, title: '新增缺陷', yaxis: yaxis, dataIndex: index }
       } else if (index === 3) {
@@ -349,7 +341,6 @@ export default {
     /* S 分页 */
     handleSizeChange(value) {
       this.paging.loading = true
-      console.log('handleSizeChange', value)
       this.paging.pageSize = value
       this.paging.tableData = [...this.tableData].splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
       setTimeout(() => {
@@ -358,7 +349,6 @@ export default {
     },
     handleCurrentChange(value) {
       this.paging.loading = true
-      console.log('handleCurrentChange', value)
       this.paging.curIndex = value
       this.paging.tableData = [...this.tableData].splice((this.paging.curIndex - 1 || 0) * this.paging.pageSize, this.paging.pageSize)
       setTimeout(() => {

+ 0 - 2
src/views/monthlyReport/index.vue

@@ -152,7 +152,6 @@ export default {
             }
           })
         }
-        // console.log(this.$route.query.reportId, index, 146)
         this.reportValue = res.data.reportList[index].id
         this.reportName = res.data.reportList[index].reportName
         this.reportStatus = res.data.reportList[index]
@@ -160,7 +159,6 @@ export default {
       }
     },
     async monthlyReportIndex(id) {
-      // console.log(id)
       const res = await monthlyReportIndex(id)
       if (res.code === 200) {
         this.tagData = res.data