qinzhipeng_v@didiglobal.com 4 jaren geleden
bovenliggende
commit
b1092fe724

+ 4 - 2
src/views/ToConfigure/components/toConfigureNodel.vue

@@ -43,8 +43,6 @@ export default {
   },
   methods: {
     async selectBizUnAddTemplates() {
-      this.$refs.ruleForm.resetFields()
-      this.ruleForm = {}
       const res = await selectBizUnAddTemplates(this.bizId)
       if (res.code === 200) {
         this.modelList = res.data
@@ -57,6 +55,9 @@ export default {
           const res = await addBizTemplates(data)
           if (res.code === 200) {
             this.$emit('update')
+            this.$nextTick(() => {
+              this.$refs.ruleForm.resetFields()
+            })
             this.$message({ message: '模块添加成功', type: 'success', duration: 1000, offset: 150 })
           }
         }
@@ -64,6 +65,7 @@ export default {
     },
     handleClose() {
       this.$emit('update')
+      this.ruleForm.name = []
     }
   }
 }

+ 2 - 2
src/views/projectManage/bugList/details/index.vue

@@ -433,8 +433,8 @@
                 </span>
               </div>
             </el-upload>
-            <el-dialog :visible.sync="dialogVisible" :modal-append-to-body="false" width="40%">
-              <img width="100%" :src="dialogImageUrl" alt="图片加载失败···" style="max-height: 60vh">
+            <el-dialog :visible.sync="dialogVisible" :modal-append-to-body="false" width="80%">
+              <img width="100%" :src="dialogImageUrl" alt="图片加载失败···">
             </el-dialog>
           </section>
         </el-main>