Browse Source

home:fix:还原度修改

haojianlong 4 years ago
parent
commit
c9022106ea

+ 8 - 2
src/components/homeView/createGraphDialog.vue

@@ -1,5 +1,6 @@
 <template>
-  <el-dialog class="create-dialog" title="新建拓扑图" width="600px" :visible.sync="outerVisible" :close-on-click-modal="false" custom-class="createDialog">
+  <el-dialog class="create-dialog" title="新建拓扑图" width="600px" :visible.sync="outerVisible" :close-on-click-modal="false" custom-class="createDialog"
+    @close="closeModal">
     <graphTypeDialog ref="graphTypeDialog" @selectNode="selectNode"></graphTypeDialog>
     <div class="dialog-bodys">
       <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" label-position="top">
@@ -103,6 +104,8 @@ export default {
       });
     },
     resetForm(formName) {
+      this.dynamicTags = [];
+      this.buttonStr= '';
       this.$refs[formName].resetFields();
       this.outerVisible = false
     },
@@ -132,8 +135,11 @@ export default {
           this.$message(res.message)
         }
       })
+    },
+    closeModal() {
+      this.resetForm('ruleForm');
     }
-  }
+  },
 }
 </script>
 <style lang="less" scoped>

+ 2 - 2
src/components/homeView/graphTypeDialog.vue

@@ -106,8 +106,8 @@ export default {
             height: 38px;
             line-height: 38px;
             &:hover {
-              background: #e1f2ffff;
-              color: #0091ffff;
+              background: #F5F6F7;
+              color: #1F2429;
             }
           }
         }