瀏覽代碼

点取消还原更改

cxmo 1 年之前
父節點
當前提交
1e5e601b8a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/system_manage/etaBaseConfig.vue

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

@@ -144,7 +144,7 @@
             </div>
         </el-form>
         <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>
         </div>
         <el-image-viewer 
@@ -351,6 +351,10 @@ export default {
                     })
                 }
             })
+        },
+        cancel(){
+            //取消就恢复原样
+            this.getBaseConfig()
         }
     },
     mounted(){