qinzhipeng_v 5 rokov pred
rodič
commit
47d10a6a5b

+ 10 - 7
src/views/Platform/presentation/PresentReport.vue

@@ -156,16 +156,16 @@ export default {
       userNames: localStorage.getItem('realname'),
       id: '',
       name: '',
-      dataChange: {},
+      dataChange: {
+        cr: 0
+      },
       DetailsOfProposal: '',
-      lateStatus: '',
-      configInfo: '',
-      dependentComponents: '',
+      lateStatus: 1,
       bizIdCode: '',
       projectIdCode: '',
       ids: [],
-      configIn: '',
-      dependent: '',
+      configIn: 2,
+      dependent: 2,
       clien: '',
       cr: ''
     }
@@ -190,6 +190,8 @@ export default {
     getRouterData() {
       console.log(this.clienData, '提测客户端')
       this.dataChange = this.clienData
+      this.dataChange.cr = 0
+      this.dataChange.configIn = 2
       if (this.dataChange.id) {
         if (this.dataChange.lateStatus === 1) {
           this.lateStatusBtn1 = 'success'
@@ -280,6 +282,8 @@ export default {
       this.$refs['dataChange'].validate((valid) => {
         if (valid) {
           this.dataChange = ele
+          this.dataChange.configInfo ? '' : this.dataChange.configInfo = ''
+          this.dataChange.dependentComponents ? '' : this.dataChange.dependentComponents = ''
           typeof (this.DetailsOfProposal) === 'string' ? this.dataChange.joinTest = this.DetailsOfProposal : ''
           this.dataChange.bizId = Number(localStorage.getItem('bizId'))
           this.dataChange.taskIds = this.ids
@@ -356,7 +360,6 @@ export default {
         this.dataChange.cr = 1
         this.showCodeReview = true
       } else {
-        this.$set(this.dataChange, 'dependentComponents', '')
         this.CodeReview = 'info'
         this.CodeReview1 = 'danger'
         this.dataChange.cr = 0

+ 1 - 1
src/views/Platform/presentation/presentationReport.vue

@@ -150,7 +150,7 @@ export default {
       userData: '',
       showDelay: false,
       labelWidth: '60px',
-      lateStatus: '',
+      lateStatus: 1,
       getInfo: '',
       fromDev: {},
       ids: [],