统一dialog弹框底部按钮

This commit is contained in:
不做码农
2022-06-11 19:11:57 +08:00
parent 5c3c3e76fa
commit 3c3798e3b3
9 changed files with 19 additions and 39 deletions
+1 -3
View File
@@ -130,9 +130,7 @@
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="open = false">关 闭</el-button>
<el-button @click="open = false">关 闭</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+2 -4
View File
@@ -164,10 +164,8 @@
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+2 -4
View File
@@ -101,10 +101,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button @click="cancel">{{ $t('btn.cancel') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+2 -4
View File
@@ -117,10 +117,8 @@
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+2 -4
View File
@@ -107,10 +107,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button @click="cancel">{{ $t('btn.cancel') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
+2 -4
View File
@@ -302,10 +302,8 @@
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button @click="cancel">{{ $t('btn.cancel') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+2 -4
View File
@@ -98,10 +98,8 @@
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button @click="cancel">{{ $t('btn.cancel') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+2 -4
View File
@@ -90,10 +90,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button @click="cancel">{{ $t('btn.cancel') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>
+4 -8
View File
@@ -113,10 +113,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitDataScope" v-hasPermi="['system:role:authorize']">{{ $t('btn.save') }}</el-button> <el-button type="primary" @click="submitDataScope" v-hasPermi="['system:role:authorize']">{{ $t('btn.save') }}</el-button>
<el-button @click="cancel">{{ $t('btn.cancel') }}</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
@@ -178,10 +176,8 @@
</el-row> </el-row>
</el-form> </el-form>
<template #footer> <template #footer>
<div class="dialog-footer"> <el-button text @click="cancel">{{ $t('btn.cancel') }}</el-button>
<el-button type="primary" @click="submitForm">确 定</el-button> <el-button type="primary" @click="submitForm">{{ $t('btn.submit') }}</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</template> </template>
</el-dialog> </el-dialog>
</div> </div>