81f8b88e by 任超

chore:用户接口整理

1 parent 7417f6b3
import request from '@/utils/request'
import SERVER from './config'
// 获取首页通知公告列表
export function getHomeNoticeList () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeNoticeList',
method: 'get'
})
}
// 获取首页待办事项
export function getHomeTodoList () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeTodoList',
method: 'get'
})
}
//获取首页已办事项
export function getHomeDoneList () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeDoneList',
method: 'get'
})
}
//获取首页常办项目
export function getHomeFrequentProjects () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeFrequentProjects',
method: 'get'
})
}
//保存常办项目
export function saveFrequentProjectsList (data) {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/saveFrequentProjectsList',
method: 'post',
data
})
}
......@@ -10,17 +10,6 @@ export function selectOtherH (data) {
data
})
}
// /*
// 业务办理-选择单元-根据条件进行列表查询-房屋所有权
// */
// export function selectFwsyq (data) {
// return request({
// url: 'ywbl/ywsq/selectFwsyq',
// method: 'post',
// data,
// showLoading: true
// })
// }
/*
业务办理-选择抵押权信息-根据条件进行列表查询
*/
......
......@@ -91,7 +91,6 @@ export function updateSysSqywmbsz (data) {
})
}
// 通知
// 新增系统通知
export function addSysNotice (data) {
......
import request from '@/utils/request'
import SERVER from './config'
// 用户首页
// 获取首页通知公告列表
export function getHomeNoticeList () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeNoticeList',
method: 'get'
})
}
// 获取首页待办事项
export function getHomeTodoList () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeTodoList',
method: 'get'
})
}
//获取首页已办事项
export function getHomeDoneList () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeDoneList',
method: 'get'
})
}
//获取首页常办项目
export function getHomeFrequentProjects () {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/getHomeFrequentProjects',
method: 'get'
})
}
//保存常办项目
export function saveFrequentProjectsList (data) {
return request({
url: SERVER.SERVERAPI + '/rest/workBench/saveFrequentProjectsList',
method: 'post',
data
})
}
// 获取用户信息
export function getUserInfo () {
return request({
......
import request from '@/utils/request'
import SERVER from './config'
// 初始化内容
export function Init(data) {
let apiUrl = "";
switch (data.get("djlx")) {
case "100":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/fristInit";
break;
case "200":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/transferInit";
break;
case "300":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/changeInit";
break;
case "400":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/logoutInit";
break;
case "500":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/riviseInit";
break;
case "901":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/renewalInit";
break;
case "902":
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/ygdj/replaceInit";
break;
}
return request({
url: apiUrl,
method: 'post',
data
})
export function Init (data) {
let apiUrl = "";
switch (data.get("djlx")) {
case "100":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/fristInit";
break;
case "200":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/transferInit";
break;
case "300":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/changeInit";
break;
case "400":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/logoutInit";
break;
case "500":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/riviseInit";
break;
case "901":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/renewalInit";
break;
case "902":
apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdj/replaceInit";
break;
}
return request({
url: apiUrl,
method: 'post',
data
})
}
// 初始化内容
export function saveData (data) {
console.log("222222222222222"+data);
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/ygdj/saveData',
method: 'post',
......
......@@ -32,7 +32,7 @@ import { mapGetters } from 'vuex'
import NoticeBar from '@/components/NoticeBar/index'
import {
getHomeNoticeList
} from "@/api/home.js"
} from "@/api/user"
export default {
components: {
NoticeBar
......
......@@ -7,7 +7,7 @@
</template>
<script>
import { getMenuInfo } from "@/api/user.js";
import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/home.js";
import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/user.js";
export default {
props: {
value: { type: Boolean, default: false },
......
......@@ -106,7 +106,7 @@
<script>
import * as G2 from '@antv/g2'
import vueSeamlessScroll from "vue-seamless-scroll"
import { getHomeNoticeList, getHomeTodoList, getHomeDoneList, getHomeFrequentProjects } from "@/api/home.js";
import { getHomeNoticeList, getHomeTodoList, getHomeDoneList, getHomeFrequentProjects } from "@/api/user.js";
import addDialog from "./components/addProject.vue";
export default {
name: 'home',
......
import { getForm } from "../flowform";
import { getHomeNoticeList } from "@/api/home.js"
import { getHomeNoticeList } from "@/api/user.js"
export default {
data () {
return {
......