8d458b10 by tianhaohao@pashanhoo.com

修改文件内容

1 parent 79c600f7
1 /*
2 * @Description: 用户首页
3 * @Autor: renchao
4 * @LastEditTime: 2023-05-16 16:06:51
5 */
6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8 /**
9 * @description: 获取首页通知公告列表
10 * @author: renchao
11 */
12 export function getHomeNoticeList () {
13 return request({
14 url: SERVER.SERVERAPI + '/rest/home/getHomeNoticeList',
15 method: 'get'
16 })
17 }
18 /**
19 * @description:
20 * @author: renchao
21 */
22 // 获取首页待办事项
23 export function getHomeTodoList () {
24 return request({
25 url: SERVER.SERVERAPI + '/rest/home/getHomeTodoList',
26 method: 'get'
27 })
28 }
29
30 /**
31 * @description: 获取首页已办事项
32 * @author: renchao
33 */
34 export function getHomeDoneList () {
35 return request({
36 url: SERVER.SERVERAPI + '/rest/home/getHomeDoneList',
37 method: 'get'
38 })
39 }
40
41 /**
42 * @description: 获取首页常办项目
43 * @author: renchao
44 */
45 export function getHomeFrequentProjects () {
46 return request({
47 url: SERVER.SERVERAPI + '/rest/home/getHomeFrequentProjects',
48 method: 'get'
49 })
50 }
51
52 /**
53 * @description: 保存常办项目
54 * @param {*} data
55 * @author: renchao
56 */
57 export function saveFrequentProjectsList (data) {
58 return request({
59 url: SERVER.SERVERAPI + '/rest/home/saveFrequentProjectsList',
60 method: 'post',
61 data
62 })
63 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 <script> 8 <script>
9 import { getMenuInfo } from "@/api/user.js"; 9 import { getMenuInfo } from "@/api/user.js";
10 import Tree from "@/components/Tree/src/tree.vue" 10 import Tree from "@/components/Tree/src/tree.vue"
11 import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/user.js"; 11 import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/home.js";
12 export default { 12 export default {
13 components: { 13 components: {
14 Tree 14 Tree
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 <script> 8 <script>
9 import { getMenuInfo } from "@/api/user.js"; 9 import { getMenuInfo } from "@/api/user.js";
10 import Tree from "@/components/Tree/src/tree.vue" 10 import Tree from "@/components/Tree/src/tree.vue"
11 import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/user.js"; 11 import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/home.js";
12 export default { 12 export default {
13 components: { 13 components: {
14 Tree 14 Tree
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
106 <script> 106 <script>
107 import * as G2 from '@antv/g2' 107 import * as G2 from '@antv/g2'
108 import vueSeamlessScroll from "vue-seamless-scroll" 108 import vueSeamlessScroll from "vue-seamless-scroll"
109 import { getHomeNoticeList, getHomeTodoList, getHomeDoneList, getHomeFrequentProjects } from "@/api/user.js"; 109 import { getHomeNoticeList, getHomeTodoList, getHomeDoneList, getHomeFrequentProjects } from "@/api/home.js";
110 import { setReadStatus } from '@/api/system' 110 import { setReadStatus } from '@/api/system'
111 import addDialog from "./components/addProject.vue"; 111 import addDialog from "./components/addProject.vue";
112 export default { 112 export default {
......