Browse Source

notiy改message

master
xuhuajiao 3 years ago
parent
commit
81e4770aab
  1. 24
      src/mixins/crud.js
  2. 4
      src/views/category/descriptionPreview/index.vue
  3. 4
      src/views/category/fieldManage/index.vue
  4. 4
      src/views/category/fileNoFormat/index.vue
  5. 8
      src/views/category/fileNoFormat/module/form.vue
  6. 4
      src/views/category/fileNoFormat/module/sortDialog.vue
  7. 4
      src/views/category/index.vue
  8. 4
      src/views/category/listBrowsing/index.vue
  9. 8
      src/views/category/listBrowsing/module/form.vue
  10. 4
      src/views/category/listBrowsing/module/sortDialog.vue
  11. 4
      src/views/category/orderingRule/index.vue
  12. 4
      src/views/category/orderingRule/module/form.vue
  13. 4
      src/views/category/orderingRule/module/sortDialog.vue
  14. 4
      src/views/category/sortDialog.vue
  15. 8
      src/views/components/BindingTagDlg.vue
  16. 2
      src/views/components/category/PreviewForm.vue
  17. 3
      src/views/login.vue
  18. 12
      src/views/mnt/database/execute.vue
  19. 4
      src/views/mnt/server/index.vue
  20. 4
      src/views/storeManage/tagManage/bindTagList/index.vue
  21. 4
      src/views/system/user/center/updateEmail.vue
  22. 4
      src/views/system/user/center/updatePass.vue
  23. 4
      src/views/tools/aliPay/config.vue
  24. 4
      src/views/tools/email/config.vue
  25. 4
      src/views/tools/email/send.vue
  26. 4
      src/views/tools/storage/local/index.vue
  27. 4
      src/views/tools/storage/qiniu/form.vue

24
src/mixins/crud.js

@ -112,36 +112,36 @@ export default {
* 通用的提示封装
*/
submitSuccessNotify() {
this.$notify({
title: '提交成功',
this.$message({
message: '提交成功',
type: 'success',
duration: 2500
})
},
addSuccessNotify() {
this.$notify({
title: '新增成功',
this.$message({
message: '新增成功',
type: 'success',
duration: 2500
})
},
editSuccessNotify() {
this.$notify({
title: '编辑成功',
this.$message({
message: '编辑成功',
type: 'success',
duration: 2500
})
},
delSuccessNotify() {
this.$notify({
title: '删除成功',
this.$message({
message: '删除成功',
type: 'success',
duration: 2500
})
},
notify(title, type) {
this.$notify({
title: title,
this.$message({
message: title,
type: type,
duration: 2500
})
@ -199,8 +199,8 @@ export default {
this.delAllLoading = false
this.dleChangePage(ids.length)
this.init()
this.$notify({
title: '删除成功',
this.$message({
message: '删除成功',
type: 'success',
duration: 2500
})

4
src/views/category/descriptionPreview/index.vue

@ -154,8 +154,8 @@ export default {
this.loading = true
edit(this.editField).then(() => {
this.loading = false
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/fieldManage/index.vue

@ -186,8 +186,8 @@ export default {
},
toDelete(data) {
if (data[0].isSystem) {
this.$notify({
title: '系统字段不可删除',
this.$message({
message: '系统字段不可删除',
type: 'warning',
duration: 2500
})

4
src/views/category/fileNoFormat/index.vue

@ -150,8 +150,8 @@ export default {
const deleteData = this.table.right.selections
del(deleteData).then((res) => {
this.delAllLoading = false
this.$notify({
title: '删除成功',
this.$message({
message: '删除成功',
type: 'success',
duration: 2500
})

8
src/views/category/fileNoFormat/module/form.vue

@ -51,8 +51,8 @@ export default {
}
})
add(addData).then((res) => {
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})
@ -62,8 +62,8 @@ export default {
})
} else {
edit(this.formData.fields).then((res) => {
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/fileNoFormat/module/sortDialog.vue

@ -57,8 +57,8 @@ export default {
})
order(this.sortTableData).then(() => {
this.sortVisible = false
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/index.vue

@ -208,8 +208,8 @@ export default {
[CRUD.HOOK.beforeToAdd](crud, form, btn) {
const isCanAddKey = JSON.parse(localStorage.getItem('currentCategoryKey'))
if (isCanAddKey.isType === 4 || isCanAddKey.isType === 5) {
this.$notify({
title: '此门类下不可新建门类',
this.$message({
message: '此门类下不可新建门类',
type: 'error',
duration: 2500
})

4
src/views/category/listBrowsing/index.vue

@ -196,8 +196,8 @@ export default {
})
add(deleteData).then((res) => {
this.delAllLoading = false
this.$notify({
title: '删除成功',
this.$message({
message: '删除成功',
type: 'success',
duration: 2500
})

8
src/views/category/listBrowsing/module/form.vue

@ -66,8 +66,8 @@ export default {
this.loading = true
if (this.title === '新增字段') {
add(this.formData.fields).then((res) => {
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})
@ -77,8 +77,8 @@ export default {
})
} else {
edit(this.formData.fields).then((res) => {
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/listBrowsing/module/sortDialog.vue

@ -57,8 +57,8 @@ export default {
})
order(this.sortTableData).then(() => {
this.sortVisible = false
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/orderingRule/index.vue

@ -165,8 +165,8 @@ export default {
})
edit(deleteData).then((res) => {
this.delAllLoading = false
this.$notify({
title: '删除成功',
this.$message({
message: '删除成功',
type: 'success',
duration: 2500
})

4
src/views/category/orderingRule/module/form.vue

@ -44,8 +44,8 @@ export default {
save() {
this.loading = true
edit(this.formData.fields).then((res) => {
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/orderingRule/module/sortDialog.vue

@ -57,8 +57,8 @@ export default {
})
order(this.sortTableData).then(() => {
this.sortVisible = false
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

4
src/views/category/sortDialog.vue

@ -60,8 +60,8 @@ export default {
})
sort(data).then(() => {
this.sortVisible = false
this.$notify({
title: '保存成功',
this.$message({
message: '保存成功',
type: 'success',
duration: 2500
})

8
src/views/components/BindingTagDlg.vue

@ -246,15 +246,15 @@ export default {
this.step = 5
resolve()
} else if (writeRes.code === '-1') {
this.$notify({
title: writeRes.message,
this.$message({
message: writeRes.message,
type: 'error',
duration: 2500
})
reject()
} else if (writeRes.code === '-1000') {
this.$notify({
title: '读写器超时未响应',
this.$message({
message: '读写器超时未响应',
type: 'error',
duration: 2500
})

2
src/views/components/category/PreviewForm.vue

@ -207,7 +207,7 @@ export default {
await FetchFindAllSubsetById({ id: fieldInfo.dictionaryConfigId.id }).then(res => {
const option = this.getNode(res, this.addOrUpdateForm[val.fieldName])
if (option) {
string += '' + option[0].dicName + val.connector
string += '' + option[0].dicCode + val.connector
}
})
} else {

3
src/views/login.vue

@ -209,8 +209,7 @@ export default {
point() {
const point = Cookies.get('point') !== undefined
if (point) {
this.$notify({
title: '提示',
this.$message({
message: '当前登录状态已过期,请重新登录!',
type: 'warning',
duration: 5000

12
src/views/mnt/database/execute.vue

@ -57,14 +57,14 @@ export default {
},
handleSuccess(response, file, fileList) {
if (response === 'success') {
this.$notify({
title: '执行成功',
this.$message({
message: '执行成功',
type: 'success',
duration: 2500
})
} else {
this.$notify({
title: response,
this.$message({
message: response,
type: 'error',
duration: 0
})
@ -72,8 +72,8 @@ export default {
},
handleError(e, file, fileList) {
const msg = JSON.parse(e.message)
this.$notify({
title: msg.message,
this.$message({
message: msg.message,
type: 'error',
duration: 0
})

4
src/views/mnt/server/index.vue

@ -114,8 +114,8 @@ export default {
this.loading = true
testServerConnect(this.form).then((res) => {
this.loading = false
this.$notify({
title: res ? '连接成功' : '连接失败',
this.$message({
message: res ? '连接成功' : '连接失败',
type: res ? 'success' : 'error',
duration: 2500
})

4
src/views/storeManage/tagManage/bindTagList/index.vue

@ -163,8 +163,8 @@ export default {
})
unbindTag(unbindData).then((res) => {
this.unbindBtnLoading = false
this.$notify({
title: '解除绑定成功',
this.$message({
message: '解除绑定成功',
type: 'success',
duration: 2500
})

4
src/views/system/user/center/updateEmail.vue

@ -108,8 +108,8 @@ export default {
updateEmail(this.form).then(res => {
this.loading = false
this.resetForm()
this.$notify({
title: '邮箱修改成功',
this.$message({
message: '邮箱修改成功',
type: 'success',
duration: 1500
})

4
src/views/system/user/center/updatePass.vue

@ -66,8 +66,8 @@ export default {
this.loading = true
updatePass(this.form).then(res => {
this.resetForm()
this.$notify({
title: '密码修改成功,请重新登录',
this.$message({
message: '密码修改成功,请重新登录',
type: 'success',
duration: 1500
})

4
src/views/tools/aliPay/config.vue

@ -74,8 +74,8 @@ export default {
if (valid) {
this.loading = true
update(this.form).then(res => {
this.$notify({
title: '修改成功',
this.$message({
message: '修改成功',
type: 'success',
duration: 2500
})

4
src/views/tools/email/config.vue

@ -67,8 +67,8 @@ export default {
if (valid) {
this.loading = true
update(this.form).then(res => {
this.$notify({
title: '修改成功',
this.$message({
message: '修改成功',
type: 'success',
duration: 2500
})

4
src/views/tools/email/send.vue

@ -67,8 +67,8 @@ export default {
if (valid) {
this.loading = true
send(this.form).then(res => {
this.$notify({
title: '发送成功',
this.$message({
message: '发送成功',
type: 'success',
duration: 2500
})

4
src/views/tools/storage/local/index.vue

@ -163,8 +163,8 @@ export default {
//
handleError(e, file, fileList) {
const msg = JSON.parse(e.message)
this.$notify({
title: msg.message,
this.$message({
message: msg.message,
type: 'error',
duration: 2500
})

4
src/views/tools/storage/qiniu/form.vue

@ -72,8 +72,8 @@ export default {
if (valid) {
this.loading = true
update(this.form).then(res => {
this.$notify({
title: '修改成功',
this.$message({
message: '修改成功',
type: 'success',
duration: 2500
})

Loading…
Cancel
Save