From e868df3a4b632141d63ffa9db082360f11f61943 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 13 Mar 2021 11:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B5=84=E6=96=99=E6=8E=92?= =?UTF-8?q?=E5=BA=8F,notify=E4=BF=AE=E6=94=B9=E4=B8=BAmessage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_client/src/views/crm/company.vue | 14 ++--------- test_client/src/views/crm/consumerrole.vue | 6 +---- test_client/src/views/material/material.vue | 22 ++++++++---------- .../src/views/question/questioncat.vue | 14 ++--------- test_client/src/views/question/subject.vue | 14 ++--------- test_client/src/views/system/banner.vue | 14 ++--------- test_client/src/views/system/organization.vue | 14 ++--------- test_client/src/views/system/user.vue | 14 ++--------- .../cms/migrations/0008_material_sort.py | 18 +++++++++++++++ test_server/cms/models.py | 1 + test_server/cms/views.py | 2 +- .../crm/migrations/0026_auto_20210313_1109.py | 23 +++++++++++++++++++ test_server/demo.py | 13 ----------- 13 files changed, 66 insertions(+), 103 deletions(-) create mode 100644 test_server/cms/migrations/0008_material_sort.py create mode 100644 test_server/crm/migrations/0026_auto_20210313_1109.py delete mode 100644 test_server/demo.py diff --git a/test_client/src/views/crm/company.vue b/test_client/src/views/crm/company.vue index ab2415e..2fc62c7 100644 --- a/test_client/src/views/crm/company.vue +++ b/test_client/src/views/crm/company.vue @@ -212,12 +212,7 @@ export default { updateCompany(this.company.id, this.company).then(() => { this.getList(); this.dialogVisible = false; - this.$notify({ - title: "成功", - message: "编辑成功", - type: "success", - duration: 2000 - }); + this.$message.success('成功') }); } else { createCompany(this.company).then(res => { @@ -225,12 +220,7 @@ export default { // this.tableData.unshift(this.company) this.getList(); this.dialogVisible = false; - this.$notify({ - title: "成功", - message: "新增成功", - type: "success", - duration: 2000 - }); + this.$message.success('成功') }); } } else { diff --git a/test_client/src/views/crm/consumerrole.vue b/test_client/src/views/crm/consumerrole.vue index 02fcf2d..1942223 100644 --- a/test_client/src/views/crm/consumerrole.vue +++ b/test_client/src/views/crm/consumerrole.vue @@ -156,11 +156,7 @@ export default { const { description, name } = this.role this.dialogVisible = false - this.$notify({ - title: '成功', - dangerouslyUseHTMLString: true, - type: 'success' - }) + this.$message.success('成功') }, } } diff --git a/test_client/src/views/material/material.vue b/test_client/src/views/material/material.vue index 57f9665..25c27c0 100644 --- a/test_client/src/views/material/material.vue +++ b/test_client/src/views/material/material.vue @@ -43,10 +43,13 @@ {{ scope.row.name }} - + - + + + + @@ -96,6 +99,9 @@ + + +