Browse Source

修改获取所有部门的接口为/admin-api/backend/remind-broad/getdepts

houwenfeng 1 year ago
parent
commit
f9078f28b2

+ 9 - 0
src/api/backend/remindBroad.js

@@ -52,3 +52,12 @@ export function exportRemindBroadExcel(query) {
     responseType: 'blob'
     responseType: 'blob'
   })
   })
 }
 }
+
+// 获取所有部门信息
+export function getDepts(data) {
+  return request({
+    url: '/backend/remind-broad/getdepts',
+    method: 'post',
+    data: data
+  })
+}

+ 1 - 1
src/views/backend/remindBroad/index.vue

@@ -116,7 +116,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { createRemindBroad, updateRemindBroad, deleteRemindBroad, getRemindBroad, getRemindBroadPage, exportRemindBroadExcel } from "@/api/backend/remindBroad";
+import { createRemindBroad, updateRemindBroad, deleteRemindBroad, getRemindBroad, getRemindBroadPage, exportRemindBroadExcel,getDepts } from "@/api/backend/remindBroad";
 
 
 export default {
 export default {
   name: "RemindBroad",
   name: "RemindBroad",

+ 2 - 3
src/views/backend/remindInfo/index.vue

@@ -462,12 +462,11 @@ import {
   getuserinfo,
   getuserinfo,
   remindBroadFinish,
   remindBroadFinish,
 } from "@/api/backend/remindInfo";
 } from "@/api/backend/remindInfo";
-import { getRemindBroad, getRemindBroadPage } from "@/api/backend/remindBroad";
+import { getRemindBroad, getRemindBroadPage, getDepts } from "@/api/backend/remindBroad";
 import { getUserProfile } from "@/api/system/user";
 import { getUserProfile } from "@/api/system/user";
 import Editor from "@/components/Editor";
 import Editor from "@/components/Editor";
 import choiceOrange from "@/components/choiceOrange";
 import choiceOrange from "@/components/choiceOrange";
 import FileUpload from "@/components/FileUpload";
 import FileUpload from "@/components/FileUpload";
-import { listDept } from "@/api/system/dept";
 import { getTime } from "../../../utils";
 import { getTime } from "../../../utils";
 import { getNowDateTime } from "@/utils/ruoyi";
 import { getNowDateTime } from "@/utils/ruoyi";
 
 
@@ -564,7 +563,7 @@ export default {
     },
     },
     //获取所有的部门
     //获取所有的部门
     getAllDept() {
     getAllDept() {
-      listDept().then((response) => {
+      getDepts().then((response) => {
         this.listDeptData = response.data;
         this.listDeptData = response.data;
         this.getList();
         this.getList();
         console.log("response===", response);
         console.log("response===", response);