Browse Source

del log merge zhip

wenbobowen 4 years ago
parent
commit
1b435f22b2

+ 38 - 57
src/components/actionDynamic/index.vue

@@ -3,33 +3,35 @@
     <el-tabs v-model="activeName" @tab-click="changeTabs">
     <el-tabs v-model="activeName" @tab-click="changeTabs">
       <el-tab-pane label="评论" name="Comments">
       <el-tab-pane label="评论" name="Comments">
         <div class="Comments">
         <div class="Comments">
-          <div
-            v-for="(item, index) in comments"
-            :key="index"
-          >
-            <div style="font-size: 14px; color: #333b4a; display: inline-block">
-              {{ item.commentInfo.name }}
-            </div>
+          <div class="maxHeight">
             <div
             <div
-              style="
-                margin-left: 20px;
-                display: inline-block;
-                color: #9b9b9b;
-                font-size: 12px;
-              "
+              v-for="(item, index) in comments"
+              :key="index"
             >
             >
-              {{ item.commentInfo.gmtCreater }}
+              <div style="font-size: 14px; color: #333b4a; display: inline-block">
+                {{ item.commentInfo.name }}
+              </div>
+              <div
+                style="
+                  margin-left: 20px;
+                  display: inline-block;
+                  color: #9b9b9b;
+                  font-size: 12px;
+                "
+              >
+                {{ item.commentInfo.gmtCreater }}
+              </div>
+              <p
+                style="
+                  font-size: 14px;
+                  color: #333b4a;
+                  margin: 0 0 25px 0;
+                  white-space: pre-line;
+                "
+              >
+                {{ item.commentInfo.content }}
+              </p>
             </div>
             </div>
-            <p
-              style="
-                font-size: 14px;
-                color: #333b4a;
-                margin: 0 0 25px 0;
-                white-space: pre-line;
-              "
-            >
-              {{ item.commentInfo.content }}
-            </p>
           </div>
           </div>
           <el-input
           <el-input
             v-model="commentContent"
             v-model="commentContent"
@@ -51,12 +53,14 @@
         </div>
         </div>
       </el-tab-pane>
       </el-tab-pane>
       <el-tab-pane label="变更记录" name="Logs">
       <el-tab-pane label="变更记录" name="Logs">
-        <div v-for="(item,index) in changeRecord" :key="index" class="Layout_space_between sign-record">
-          <span>
-            <span class="operatorName">{{ item.operator }} : </span>
-            <span class="remark">{{ item.remark }}</span>
-          </span>
-          <span class="createTime">{{ item.createTime }}</span>
+        <div class="maxHeight">
+          <div v-for="(item,index) in changeRecord" :key="index" class="Layout_space_between sign-record">
+            <span>
+              <span class="operatorName">{{ item.operator }} : </span>
+              <span class="remark">{{ item.remark }}</span>
+            </span>
+            <span class="createTime">{{ item.createTime }}</span>
+          </div>
         </div>
         </div>
       </el-tab-pane>
       </el-tab-pane>
     </el-tabs>
     </el-tabs>
@@ -81,33 +85,6 @@ export default {
     return {
     return {
       activeName: 'Comments',
       activeName: 'Comments',
       commentContent: ''
       commentContent: ''
-      // comments: [
-      //   {
-      //     child: [],
-      //     commentInfo: {"id":11529,"joinId":4721,"bizId":null,"type":3,"fatherId":0,"name":"文博","email":"wenbobowen","content":"test111","gmtCreater":"2020-12-31 15:03:37","gmtModify":"2020-12-31 15:03:37"}
-      //   },
-      //   {
-      //     child: [],
-      //     commentInfo: {"id":11529,"joinId":4721,"bizId":null,"type":3,"fatherId":0,"name":"文博","email":"wenbobowen","content":"test222","gmtCreater":"2020-12-31 15:03:37","gmtModify":"2020-12-31 15:03:37"}
-      //   }
-      // ],
-      // changeRecord: [
-      //   {
-      //     createTime: "2020-12-29 13:48:55",
-      //     operator: "廖子君",
-      //     remark: "更新了任务状态,从【已准出】到【已上线】"
-      //   },
-      //   {
-      //     createTime: "2020-12-29 13:48:55",
-      //     operator: "廖子君",
-      //     remark: "更新了任务状态,从【已准出】到【已上线】"
-      //   },
-      //   {
-      //     createTime: "2020-12-29 13:48:55",
-      //     operator: "廖子君",
-      //     remark: "更新了任务状态,从【已准出】到【已上线】"
-      //   }
-      // ]
     }
     }
   },
   },
   methods: {
   methods: {
@@ -127,6 +104,10 @@ export default {
   .Comments {
   .Comments {
     padding: 0 34px 20px 34px;
     padding: 0 34px 20px 34px;
   }
   }
+  .maxHeight {
+    max-height: 300px;
+    overflow-y: auto;
+  }
 }
 }
 .sign-record {
 .sign-record {
   margin: 20px 0;
   margin: 20px 0;

+ 2 - 2
src/views/projectManage/projectList/components/taskList.vue

@@ -306,9 +306,9 @@ export default {
       const data = this.curcentList.map(item => { return item.id })
       const data = this.curcentList.map(item => { return item.id })
       const res = await reportdelivertestCheckStatus(data)
       const res = await reportdelivertestCheckStatus(data)
       if (res.code === 200) {
       if (res.code === 200) {
-        if (res.data && res.data.id) {
+        if (res.data) {
           this.checklistStopVisible = true
           this.checklistStopVisible = true
-          this.firstChecklistTaskId = res.data.id
+          this.firstChecklistTaskId = res.data
           return
           return
         }
         }
         this.dialogTestReport = true
         this.dialogTestReport = true

+ 0 - 4
src/views/projectManage/publishTask/components/multipleSelect.vue

@@ -97,16 +97,12 @@ export default {
       }
       }
     },
     },
     clearHandle(val) {
     clearHandle(val) {
-      console.log(val)
       let item = null
       let item = null
-      console.log(this.data)
       this.options.forEach(t => {
       this.options.forEach(t => {
         if (t.id === val[0]) {
         if (t.id === val[0]) {
           item = t
           item = t
         }
         }
-        console.log(t.id === val[0], t)
       })
       })
-      console.log(item)
       this.$emit('change', item, 'add')
       this.$emit('change', item, 'add')
       this.query = ''
       this.query = ''
       this.value = null
       this.value = null

+ 0 - 10
src/views/projectManage/publishTask/components/onlineCheckList.vue

@@ -138,9 +138,6 @@ export default {
       name: ''
       name: ''
     }
     }
   },
   },
-  mounted() {
-    console.log(1111111111)
-  },
   methods: {
   methods: {
     async remoteMethod(moduleName) {
     async remoteMethod(moduleName) {
       this.moduleName = moduleName
       this.moduleName = moduleName
@@ -154,7 +151,6 @@ export default {
       }
       }
     },
     },
     clearHandle(subIdx) {
     clearHandle(subIdx) {
-      console.log(subIdx, this.value)
       this.$emit('changeSelectedHandle', this.moduleId, subIdx, this.value[0], 'add')
       this.$emit('changeSelectedHandle', this.moduleId, subIdx, this.value[0], 'add')
       this.moduleName = ''
       this.moduleName = ''
       this.value = null
       this.value = null
@@ -164,11 +160,6 @@ export default {
         this.$emit('changeSelectedHandle', this.moduleId, subIdx, this.moduleName, 'add')
         this.$emit('changeSelectedHandle', this.moduleId, subIdx, this.moduleName, 'add')
       }
       }
     },
     },
-    getfocus(index) {
-      console.log(index)
-      // window.elemmm[`s${index}`]=this.$refs[`s${index}`]
-      // this.$refs[`s${index}`][0].focused()
-    },
     handleClose(subIdx, val) {
     handleClose(subIdx, val) {
       this.$emit('changeSelectedHandle', this.moduleId, subIdx, val, 'del')
       this.$emit('changeSelectedHandle', this.moduleId, subIdx, val, 'del')
     },
     },
@@ -179,7 +170,6 @@ export default {
     // 拖拽结束事件
     // 拖拽结束事件
     onEnd() {
     onEnd() {
       this.drag = false
       this.drag = false
-      console.log(this.data)
     }
     }
   }
   }
 }
 }

+ 7 - 13
src/views/projectManage/publishTask/index.vue

@@ -176,7 +176,6 @@ export default {
 
 
     // 获取业务线下绑定的可以选checklist列表
     // 获取业务线下绑定的可以选checklist列表
     async getBizBindTemList() {
     async getBizBindTemList() {
-      console.log(1111)
       const { bizId = null } = store.state.global || {}
       const { bizId = null } = store.state.global || {}
       const res = await getBizBindTemList({ name: '', bizId })
       const res = await getBizBindTemList({ name: '', bizId })
       this.temList = res.data
       this.temList = res.data
@@ -192,7 +191,6 @@ export default {
     // 获取变更记录
     // 获取变更记录
     async getRecordList() {
     async getRecordList() {
       const res = await getRecordList({ checkListId: this.checkListId })
       const res = await getRecordList({ checkListId: this.checkListId })
-      console.log(res)
       if (res.code === 200) {
       if (res.code === 200) {
         this.changeRecordList = res.data
         this.changeRecordList = res.data
       }
       }
@@ -254,14 +252,11 @@ export default {
     },
     },
 
 
     changeOnlineModuleRow(type, mId, index) {
     changeOnlineModuleRow(type, mId, index) {
-      console.log(type, mId, index, this.data.templates)
       this.data.templates.map(t => {
       this.data.templates.map(t => {
         if (t.parentTemplateId === mId) {
         if (t.parentTemplateId === mId) {
           if (type === 'del') {
           if (type === 'del') {
-            console.log(t.onlineModule)
             const delModuleNames = t.onlineModule.tableContent[index].moduleNames
             const delModuleNames = t.onlineModule.tableContent[index].moduleNames
             const test = t.onlineModule.onlineOrder.filter(t => !delModuleNames.includes(t))
             const test = t.onlineModule.onlineOrder.filter(t => !delModuleNames.includes(t))
-            console.log(delModuleNames, test)
             t.onlineModule.onlineOrder = t.onlineModule.onlineOrder.filter(t => !delModuleNames.includes(t))
             t.onlineModule.onlineOrder = t.onlineModule.onlineOrder.filter(t => !delModuleNames.includes(t))
             t.onlineModule.tableContent.splice(index, 1)
             t.onlineModule.tableContent.splice(index, 1)
           } else {
           } else {
@@ -294,6 +289,7 @@ export default {
         this.openEdit = true
         this.openEdit = true
         // 保存更新变更记录
         // 保存更新变更记录
         this.getRecordList()
         this.getRecordList()
+        this.getList()
         this.$message({
         this.$message({
           message: '保存成功',
           message: '保存成功',
           type: 'success'
           type: 'success'
@@ -389,7 +385,6 @@ export default {
       const tems = []
       const tems = []
       const { templates } = this.data
       const { templates } = this.data
       // 循环都有哪些tem被选择了
       // 循环都有哪些tem被选择了
-      console.log(templates, this.temList, checkedIds)
       checkedIds.map(checkedId => {
       checkedIds.map(checkedId => {
         // 先循环是否有存过模板数据
         // 先循环是否有存过模板数据
         this.temList.map(g => {
         this.temList.map(g => {
@@ -410,11 +405,9 @@ export default {
       })
       })
       tems.map((h, index) => templates.map(j => {
       tems.map((h, index) => templates.map(j => {
         if (h.parentTemplateId === j.parentTemplateId) {
         if (h.parentTemplateId === j.parentTemplateId) {
-          console.log(h, j)
           tems[index] = { ...j }
           tems[index] = { ...j }
         }
         }
       }))
       }))
-      console.log(tems)
       this.data = { ...this.data, templates: tems, selectedBizTemplateIds }
       this.data = { ...this.data, templates: tems, selectedBizTemplateIds }
     },
     },
 
 
@@ -439,7 +432,10 @@ export default {
       } else if (!hasTask) {
       } else if (!hasTask) {
         tasks = [...this.data.tasks, task]
         tasks = [...this.data.tasks, task]
       } else {
       } else {
-        console.log('已经添加过该任务')
+        this.$message({
+          message: '已经添加过该任务',
+          type: 'error'
+        })
         return
         return
       }
       }
       this.data = { ...this.data, tasks }
       this.data = { ...this.data, tasks }
@@ -447,8 +443,8 @@ export default {
 
 
     // 更新检查项到数据库
     // 更新检查项到数据库
     async updateCheckItemHandle(item) {
     async updateCheckItemHandle(item) {
-      const { isCheck, parentTemplateId } = item
-      const res = await updateTemplateCheckStatus({ isCheck, checkListId: this.checkListId, templateId: parentTemplateId })
+      const { isCheck, id } = item
+      const res = await updateTemplateCheckStatus({ isCheck, id, checkListId: this.checkListId })
       if (res.code === 200) {
       if (res.code === 200) {
         this.getRecordList()
         this.getRecordList()
         this.$message({
         this.$message({
@@ -460,9 +456,7 @@ export default {
 
 
     // 修改线上问题模块
     // 修改线上问题模块
     onChangeModuleName: _.debounce(function(val, subIdx, index) {
     onChangeModuleName: _.debounce(function(val, subIdx, index) {
-      console.log(val, subIdx, index, this.data)
       this.data.templates[index].onlineModule.tableContent[subIdx].module = val
       this.data.templates[index].onlineModule.tableContent[subIdx].module = val
-      console.log(this.data)
     })
     })
   }
   }
 }
 }

+ 2 - 2
src/views/projectManage/requirement/components/taskList.vue

@@ -314,9 +314,9 @@ export default {
       const data = this.curcentList.map(item => { return item.id })
       const data = this.curcentList.map(item => { return item.id })
       const res = await reportdelivertestCheckStatus(data)
       const res = await reportdelivertestCheckStatus(data)
       if (res.code === 200) {
       if (res.code === 200) {
-        if (res.data && res.data.id) {
+        if (res.data) {
           this.checklistStopVisible = true
           this.checklistStopVisible = true
-          this.firstChecklistTaskId = res.data.id
+          this.firstChecklistTaskId = res.data
           return
           return
         }
         }
         this.dialogTestReport = true
         this.dialogTestReport = true

+ 2 - 2
src/views/projectManage/taskList/taskViewDetail.vue

@@ -818,9 +818,9 @@ export default {
         case 1: // 提测
         case 1: // 提测
           reportdelivertestCheckStatus([this.taskId]).then(res => {
           reportdelivertestCheckStatus([this.taskId]).then(res => {
             if (res.code === 200) {
             if (res.code === 200) {
-              if (res.data && res.data.id) {
+              if (res.data) {
                 this.checklistStopVisible = true
                 this.checklistStopVisible = true
-                this.firstChecklistTaskId = res.data.id
+                this.firstChecklistTaskId = res.data
                 return
                 return
               }
               }
               this.dialogTest = true
               this.dialogTest = true

+ 4 - 4
src/views/reportManagement/testPresentation.vue

@@ -385,9 +385,9 @@ export default {
               const data = res.data
               const data = res.data
               reportdelivertestCheckStatus(data.taskIds).then(response => {
               reportdelivertestCheckStatus(data.taskIds).then(response => {
                 if (response.code === 200) {
                 if (response.code === 200) {
-                  if (response.data && response.data.id) {
+                  if (response.data) {
                     this.checklistStopVisible = true
                     this.checklistStopVisible = true
-                    this.firstChecklistTaskId = response.data.id
+                    this.firstChecklistTaskId = response.data
                     this.goDataReport = data
                     this.goDataReport = data
                     return
                     return
                   }
                   }
@@ -469,9 +469,9 @@ export default {
           const res = await reportdelivertestCheckStatus([vel])
           const res = await reportdelivertestCheckStatus([vel])
           if (res.code === 200) {
           if (res.code === 200) {
             this.centerDialogVisible = false
             this.centerDialogVisible = false
-            if (res.data && res.data.id) {
+            if (res.data) {
               this.checklistStopVisible = true
               this.checklistStopVisible = true
-              this.firstChecklistTaskId = res.data.id
+              this.firstChecklistTaskId = res.data
               this.goDataReport = vel
               this.goDataReport = vel
               return
               return
             }
             }