Browse Source

点取消还原更改

cxmo 1 year ago
parent
commit
1e5e601b8a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/system_manage/etaBaseConfig.vue

+ 5 - 1
src/views/system_manage/etaBaseConfig.vue

@@ -144,7 +144,7 @@
             </div>
             </div>
         </el-form>
         </el-form>
         <div class="btn-wrap" style="text-align: center;">
         <div class="btn-wrap" style="text-align: center;">
-            <el-button type="primary" plain style="width:200px;">取消</el-button>
+            <el-button type="primary" plain style="width:200px;" @click="cancel">取消</el-button>
             <el-button type="primary"  style="margin-left:50px;width:200px;" @click="saveBaseConfig">保存</el-button>
             <el-button type="primary"  style="margin-left:50px;width:200px;" @click="saveBaseConfig">保存</el-button>
         </div>
         </div>
         <el-image-viewer 
         <el-image-viewer 
@@ -351,6 +351,10 @@ export default {
                     })
                     })
                 }
                 }
             })
             })
+        },
+        cancel(){
+            //取消就恢复原样
+            this.getBaseConfig()
         }
         }
     },
     },
     mounted(){
     mounted(){