add: 初始化

This commit is contained in:
yanps
2024-07-25 14:11:35 +08:00
parent ecdca5b88a
commit 9e9c2db5e0
442 changed files with 19062 additions and 5117 deletions

View File

@@ -7,7 +7,6 @@ import {
downloadFile
} from '@/utils/index'
import checkPermission from '@/utils/permission'
import i18n from '@/i18n'
export default {
data() {
@@ -116,28 +115,28 @@ export default {
*/
submitSuccessNotify() {
this.$notify({
title: i18n.t('common.submit'),
title: '提交成功',
type: 'success',
duration: 2500
})
},
addSuccessNotify() {
this.$notify({
title: i18n.t('common.add'),
title: '新增成功',
type: 'success',
duration: 2500
})
},
editSuccessNotify() {
this.$notify({
title: i18n.t('common.edit'),
title: '编辑成功',
type: 'success',
duration: 2500
})
},
delSuccessNotify() {
this.$notify({
title: i18n.t('common.del'),
title: '删除成功',
type: 'success',
duration: 2500
})
@@ -180,9 +179,9 @@ export default {
* 多选删除提示
*/
beforeDelAllMethod() {
this.$confirm(i18n.t('common.Tip19'), i18n.t('common.Tips'), {
confirmButtonText: i18n.t('common.Confirm'),
cancelButtonText: i18n.t('common.Cancel'),
this.$confirm('你确定删除选中的数据吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.delAllMethod()
@@ -203,7 +202,7 @@ export default {
this.dleChangePage(ids.length)
this.init()
this.$notify({
title: i18n.t('common.del'),
title: '删除成功',
type: 'success',
duration: 2500
})
@@ -319,7 +318,7 @@ export default {
* 获取弹窗的标题
*/
getFormTitle() {
return this.isAdd ? i18n.t('common.Create') + `${this.title}` : i18n.t('common.Editors') + `${this.title}`
return this.isAdd ? `新增${this.title}` : `编辑${this.title}`
},
/**
* 通用导出
@@ -328,7 +327,7 @@ export default {
this.beforeInit()
this.downloadLoading = true
download(this.url + '/download', this.params).then(result => {
this.downloadFile(result, this.title + i18n.t('common.datas'), 'xlsx')
this.downloadFile(result, this.title + '数据', 'xlsx')
this.downloadLoading = false
}).catch(() => {
this.downloadLoading = false