Преглед изворни кода

refactor(模板管理): 移除未使用的角色获取逻辑

liujt пре 6 месеци
родитељ
комит
caa2114bdc
1 измењених фајлова са 0 додато и 12 уклоњено
  1. 0 12
      src/views/notifyManage/templateManage/components/addOrEditDialog.vue

+ 0 - 12
src/views/notifyManage/templateManage/components/addOrEditDialog.vue

@@ -101,7 +101,6 @@ import dictMixins from '@/mixins/dictMixins';
 import {notifyTemplateGetByIdAPI, notifyTemplateSaveAPI, notifyTemplateUpdateAPI} from "@/api/notifyManage";
 import RoleSelect from '@/views/system/user/components/role-select.vue';
 import staffSelection from '@/views/enterpriseModel/dept/components/staffSelection.vue';
-import { getlistRole } from '@/api/system/role';
 export default {
   name: 'addOrEditDialog',
   props: {
@@ -208,19 +207,8 @@ export default {
       }
   },
   created() {
-    this.getUsers();
   },
   methods: {
-    getUsers() {
-      /* 获取角色数据 */
-      getlistRole()
-        .then((res) => {
-          this.users = res
-        .catch((e) => {
-          // this.$message.error(e.message);
-        });
-      })
-    },
     handleRecipientTypeChange() {
       this.formData.recipient = [];
       this.formData.recipientName = '';