8b7c1bf3 by 杨威

优化项目目录结构

1 parent a5a6fcca
1 import request from '@/plugin/axios'
2 /**
3 * 预约配置列表生成接口
4 */
5 export function appointmentList(data) {
6 return request({
7 url: '/reserve/appointmentRules/search',
8 method: 'get',
9 params: {
10 data
11 }
12 })
13 }
14
15 /**
16 * 根据预约规则id单个/批量启用/禁用预约规则
17 */
18 export function enableAppointmentRule(data) {
19 return request({
20 url: '/reserve/appointmentRules/enableAppointmentRule?yyidList='+data.yyidList+'&enable='+data.enable,
21 method: 'post'
22 })
23 }
24 /**
25 * 单个/批量删除预约规则
26 */
27 export function deleteRuleByIds(data) {
28 return request({
29 url: '/reserve/appointmentRules/deleteByIds?yyidList='+data.yyidList,
30 method: 'delete'
31 })
32 }
33 /**
34 * 获取预约批次号-预约配置设置
35 */
36 export function getBatch() {
37 return request({
38 url: '/reserve/appointmentRules/getBatch',
39 method: 'get'
40 })
41 }
42 /**
43 * 组织机构接口 : Organization Service
44 */
45 export function queryAllOrganization() {
46 return request({
47 url: '/reserve/organization/queryAllOrganization',
48 method: 'get'
49 })
50 }
51 /**
52 * 获取所有业务
53 */
54 export function getAllBusinessList() {
55 return request({
56 url: '/reserve/appointmentPeriodRules/getAllBusinessList',
57 method: 'get'
58 })
59 }
60 /**
61 * 根据机构IDS、业务IDS查询预约业务-预约业务配置
62 */
63 export function getAppointmentBusinessList(data) {
64 return request({
65 url: '/reserve/appointmentPeriodRules/getAppointmentBusinessList',
66 method: 'get',
67 params: {
68 jgid: data.jgids,
69 ywids: data.ywids
70 }
71 })
72 }
73 /**
74 * 根据机构ID查询机构预约和未预约业务
75 */
76 export function getBusinessByJgid(data) {
77 return request({
78 url: '/reserve/appointmentPeriodRules/getBusinessByJgid',
79 method: 'get',
80 params: {
81 jgid: data
82 }
83 })
84 }
85 /**
86 * 对机构授权可预约业务-预约业务设置保存
87 */
88 export function grantAppointment(data) {
89 return request({
90 url: '/reserve/appointmentPeriodRules/grantAppointment?appointmentYwids='+data.appointmentYwids+'&jgid='+data.jgid,
91 method: 'post'
92 })
93 }
94 /**
95 * 单个/批量删除机构下的所有预约业务-预约业务设置保存
96 */
97 export function deleteByjgids(data) {
98 return request({
99 url: '/reserve/appointmentPeriodRules/deleteByjgids?jgids='+data,
100 method: 'delete'
101 })
102 }
103 /**
104 * 预约记录管理
105 */
106 export function SearchList(data) {
107 return request({
108 url: '/reserve/appointment/search',
109 method: 'post',
110 data: data,
111 })
112 }
113 // 单个/批量取消赴约
114 export function CancelAppointment(data) {
115 return request({
116 url: '/reserve/appointment/deleteByIds?idList='+data,
117 method: 'delete',
118 })
119 }
120
121 //赴约
122 export function Appointment(data) {
123 return request({
124 url: '/reserve/appointment/keepAppointment',
125 method: 'put',
126 data: data,
127 })
128 }
...\ No newline at end of file ...\ No newline at end of file
1 import request from '@/plugin/axios'
2 /**
3 * 查询业务登记类型
4 */
5 export function SearchList(data) {
6 return request({
7 url: '/reserve/business/search',
8 method: 'post',
9 data:data,
10 })
11 }
12 // 插入业务登记类型
13 export function Insert(data) {
14 return request({
15 url: '/reserve/business/insert',
16 method: 'post',
17 data:data,
18 })
19 }
20
21 // 更新业务登记类型
22 export function update(data) {
23 return request({
24 url: '/reserve/business/update',
25 method: 'put',
26 data:data,
27 })
28 }
29
30 // 获取业务登记类型全集
31 export function getDetailById(id) {
32 return request({
33 url: '/reserve/business/getDetailById',
34 method: 'get',
35 params:{
36 id:id
37 }
38 })
39 }
40
41 // 删除
42 export function deleteByIds(data) {
43 return request({
44 url: '/reserve/business/deleteByIds?idList='+data,
45 method: 'delete',
46 })
47 }
...\ No newline at end of file ...\ No newline at end of file
1 import request from '@/plugin/axios' 1
2 /** 2 /**
3 * 查询所有行政区 3 * 查询所有行政区
4 */ 4 */
...@@ -33,26 +33,6 @@ export function getListByPbsm (pbsm) { ...@@ -33,26 +33,6 @@ export function getListByPbsm (pbsm) {
33 }) 33 })
34 } 34 }
35 /** 35 /**
36 * 新增宗地基本信息
37 */
38 export function insertQjZdjbxx (data) {
39 return request({
40 url: 'zd/qjZdjbxx/insertQjZdjbxx',
41 method: 'post',
42 data: data,
43 })
44 }
45 /**
46 * 新增自然幢基本信息
47 */
48 export function insertZrzjbxx (data) {
49 return request({
50 url: 'fw/qjZrz/insert',
51 method: 'post',
52 data: data,
53 })
54 }
55 /**
56 * 通过名称获取字典 36 * 通过名称获取字典
57 */ 37 */
58 export function getDdicByMC (mc) { 38 export function getDdicByMC (mc) {
......
1 import request from '@/plugin/axios'
2 /**
3 * 草稿箱List
4 */
5 export function DraftsList(data) {
6 return request({
7 url: '/hlwj/articleDO/draftsBox',
8 method: 'get',
9 params:{
10 currentPage:data.pagenum,
11 pageSize:data.pagesize
12 }
13 })
14 }
15 // 单个/批量刪除草稿箱的文章
16 export function DraftsDeleteByIds(data) {
17 return request({
18 url: '/hlwj/articleDO/deleteArticleByIds',
19 method: 'delete',
20 params:{
21 ids:data
22 }
23 })
24 }
25 // 草稿箱新增文章
26 // export function DraftsInsert(data) {
27 // return request({
28 // url: '/hlwj/articleDO/insert',
29 // method: 'post',
30 // data:data
31 // })
32 // }
33 export function DraftsInsert(data) {
34 return request({
35 url: '/hlwj/articleDO/insert',
36 method: 'post',
37 headers: {
38 'Content-Type': 'multipart/form-data'
39 },
40 data:data
41 })
42 }
43 // 发布文章
44 export function PublishArticle(data) {
45 return request({
46 url: '/hlwj/articleDO/publishArticle',
47 method: 'post',
48 data:data
49 })
50 }
51 // 栏目接口管理
52 export function articleClassifyList() {
53 return request({
54 url: '/cms/classify/articleClassifyList',
55 method: 'get',
56 })
57 }
58
59 // 栏目接口管理
60 export function ClassifyGetDetailById(classifyId) {
61 return request({
62 url: '/cms/classify/getDetailById',
63 method: 'get',
64 params:{
65 id:classifyId
66 }
67 })
68 }
69
70 // 根据文章标识码查询详细信息
71 export function getarticleDetail(data) {
72 return request({
73 url: '/hlwj/articleDO/getDetailById',
74 method: 'get',
75 params:{
76 id:data.id
77 }
78 })
79 }
80 // 点击更新的时候的接口
81 export function updateArticle(data) {
82 return request({
83 url: '/hlwj/articleDO/update',
84 method: 'post',
85 data:data
86 })
87 }
88
1 import request from '@/plugin/axios'
2 /**
3 * 公告管理
4 */
5 export function noticeTable(data) {
6 return request({
7 url: '/hlwj/Notice/draftBox',
8 method: 'post',
9 data
10 })
11 }
12 /**
13 * 物理删除
14 */
15 export function physicalDeletion(data) {
16 return request({
17 url: '/hlwj/Notice/deleteByIds?idList='+data,
18 method: 'delete'
19 })
20 }
21 /**
22 * 逻辑删除
23 */
24 export function logicalDeletion(data) {
25 return request({
26 url: '/hlwj/Notice/updateIsDelete',
27 method: 'post',
28 data
29 })
30 }
31 /**
32 * 新增公告
33 */
34 export function newAnnouncement(data) {
35 return request({
36 url: '/hlwj/Notice/insert',
37 method: 'post',
38 data
39 })
40 }
41 /**
42 * 发布公告
43 */
44 export function announcement(data) {
45 return request({
46 url: '/hlwj/Notice/updateState?idList='+data.idList,
47 method: 'post'
48 })
49 }
50
51 /**
52 * 更新公告-编辑
53 */
54 export function updateNotice(data) {
55 return request({
56 url: '/hlwj/Notice/update',
57 method: 'post',
58 data
59 })
60 }
61 /**
62 * 发布箱tableList
63 */
64 export function releaseBox(data) {
65 return request({
66 url: '/hlwj/Notice/issueBox',
67 method: 'post',
68 data
69 })
70 }
71
72 /**
73 * 发布箱启用禁用
74 */
75 export function publishingBoxEnabled(data) {
76 return request({
77 url: '/hlwj/Notice/updateEnable?idList='+data.idList+'&enable='+data.enable,
78 method: 'post'
79 })
80 }
81 /**
82 * 公告逻辑删除(使用场景:发布箱
83 */
84 export function publishingLogicalDeletion(data) {
85 return request({
86 url: '/hlwj/Notice/updateIsDelete?idList='+data.idList+'&IsDelete='+data.IsDelete,
87 method: 'post'
88 })
89 }
90 /**
91 * 公告管理回收箱tablelist
92 */
93 export function recycleBinTableList(data) {
94 return request({
95 url: '/hlwj/Notice/recycleBox?',
96 method: 'post',
97 data
98 })
99 }
100 /**
101 * 读取明细-详情展示
102 */
103 export function getDetailById(data) {
104 return request({
105 url: '/hlwj/Notice/getDetailById',
106 method: 'get',
107 params: {
108 id:data
109 }
110 })
111 }
1 import request from '@/plugin/axios'
2 /**
3 * 删除箱List
4 */
5 export function RecyclesList(data) {
6 return request({
7 url: '/hlwj/articleDO/recoverBox',
8 method: 'get',
9 params:{
10 currentPage:data.pagenum,
11 pageSize:data.pagesize
12 }
13 })
14 }
15 // 单个/批量回收箱的文章
16 export function DraftsDeleteByIds(data) {
17 return request({
18 url: '/hlwj/articleDO/deleteArticleByIds',
19 method: 'delete',
20 params:{
21 ids:data
22 }
23 })
24 }
25 // 栏目接口管理
26 export function articleClassifyList() {
27 return request({
28 url: '/cms/classify/articleClassifyList',
29 method: 'get',
30 })
31 }
32
...\ No newline at end of file ...\ No newline at end of file
1 import request from '@/plugin/axios'
2 /**
3 * 发布箱List
4 */
5 export function ReleasesList(data) {
6 return request({
7 url: '/hlwj/articleDO/publishBox',
8 method: 'get',
9 params:{
10 currentPage:data.pagenum,
11 pageSize:data.pagesize
12 }
13 })
14 }
15 // 单个/批量刪除发布箱的文章(逻辑删除)
16 export function DraftsDeleteByIds(data) {
17 return request({
18 url: '/hlwj/articleDO/deletePublishArticleByIds',
19 method: 'delete',
20 params:{
21 ids:data
22 }
23 })
24 }
25 // 栏目接口管理
26 export function articleClassifyList() {
27 return request({
28 url: '/cms/classify/articleClassifyList',
29 method: 'get',
30 })
31 }
32 /**
33 * 发布箱启用禁用
34 */
35
36 export function publishingBoxEnabled(data) {
37 return request({
38 url: '/hlwj/articleDO/enableArticle?ids='+data.idList+'&enable='+data.enable,
39 method: 'post'
40 })
41 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -12,3 +12,14 @@ export function savemjft(data) { ...@@ -12,3 +12,14 @@ export function savemjft(data) {
12 data: data, 12 data: data,
13 }) 13 })
14 } 14 }
15
16 /**
17 * 新增宗地基本信息
18 */
19 export function insertQjZdjbxx (data) {
20 return request({
21 url: 'zd/qjZdjbxx/insertQjZdjbxx',
22 method: 'post',
23 data: data,
24 })
25 }
...\ No newline at end of file ...\ No newline at end of file
......
1 import request from '@/plugin/axios' 1 import request from '@/plugin/axios'
2
3 /** 2 /**
4 * 加载左边菜单栏 3 * 新增自然幢基本信息
5 */ 4 */
6 export function getNavigation() { 5 export function insertZrzjbxx (data) {
7 return request({ 6 return request({
8 url: '/menu/back', 7 url: 'fw/qjZrz/insert',
9 method: 'get', 8 method: 'post',
9 data: data,
10 }) 10 })
11 } 11 }
......
1 import util from '@/libs/util.js' 1 import util from '@/libs/util.js'
2 import router from '@router' 2 import router from '@router'
3 import { getNavigation } from '@/api/navigation.js'
4 3
5 const getState = () => { 4 const getState = () => {
6 return { 5 return {
...@@ -17,20 +16,20 @@ const mutations = { ...@@ -17,20 +16,20 @@ const mutations = {
17 16
18 const actions = { 17 const actions = {
19 // 在这里处理后台返回的数据加载左边菜单栏 18 // 在这里处理后台返回的数据加载左边菜单栏
20 getMenus({ commit }) { 19 // getMenus({ commit }) {
21 return new Promise((resolve, reject) => { 20 // return new Promise((resolve, reject) => {
22 getNavigation().then(response => { 21 // getNavigation().then(response => {
23 commit('GET_NAVIGATION', response.data) 22 // commit('GET_NAVIGATION', response.data)
24 // filterAsyncRoutes(data.menuList) 23 // // filterAsyncRoutes(data.menuList)
25 util.cookies.set('navigation-1',response.data.slice(0,1)) 24 // util.cookies.set('navigation-1',response.data.slice(0,1))
26 util.cookies.set('navigation',response.data.slice(1)) 25 // util.cookies.set('navigation',response.data.slice(1))
27 router.push('/panel') 26 // router.push('/panel')
28 resolve() 27 // resolve()
29 }).catch(error => { 28 // }).catch(error => {
30 reject(error) 29 // reject(error)
31 }) 30 // })
32 }) 31 // })
33 }, 32 // },
34 } 33 }
35 // 在这里处理路由表信息 34 // 在这里处理路由表信息
36 export function filterAsyncRoutes(routes) { 35 export function filterAsyncRoutes(routes) {
......
1 import { getDetailById } from "@api/notice" 1 // import { getDetailById } from "@api/notice"
2 import { httpStatus } from "@api/config" 2 import { httpStatus } from "@api/config"
3 let mixin = { 3 let mixin = {
4 data() { 4 data() {
...@@ -52,17 +52,17 @@ let mixin = { ...@@ -52,17 +52,17 @@ let mixin = {
52 return jsonData.map(v => filterVal.map(j => v[j])) 52 return jsonData.map(v => filterVal.map(j => v[j]))
53 }, 53 },
54 // 编辑 54 // 编辑
55 getIdDetail(data) { 55 // getIdDetail(data) {
56 getDetailById(data.id) 56 // getDetailById(data.id)
57 .then(res => { 57 // .then(res => {
58 if(res.code = httpStatus.OK.code){ 58 // if(res.code = httpStatus.OK.code){
59 this.detailsData = res.data 59 // this.detailsData = res.data
60 } 60 // }
61 }) 61 // })
62 .catch(error => { 62 // .catch(error => {
63 reject(error) 63 // reject(error)
64 }) 64 // })
65 }, 65 // },
66 // 表格索引得问题 66 // 表格索引得问题
67 indexMethod(index) { 67 indexMethod(index) {
68 return index + 1 + (this.PageData.current - 1) * this.PageData.size; 68 return index + 1 + (this.PageData.current - 1) * this.PageData.size;
......
...@@ -99,7 +99,10 @@ ...@@ -99,7 +99,10 @@
99 99
100 </template> 100 </template>
101 <script> 101 <script>
102 import{getAllList,getListByXzqbsm,getListByPbsm,insertQjZdjbxx,getDdicByMC,insertZrzjbxx} from "../../../api/panel" 102 import{getAllList,getListByXzqbsm,getListByPbsm,getDdicByMC} from "../../../api/common"
103 import { insertQjZdjbxx } from "../../../api/zd";
104 import { insertZrzjbxx } from "../../../api/zrz";
105
103 export default { 106 export default {
104 name:"", 107 name:"",
105 components:{}, 108 components:{},
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
50 </template> 50 </template>
51 51
52 <script> 52 <script>
53 import {savemjft} from '../../../api/basic' 53 import {savemjft} from '../../../api/zd'
54 import {Message} from 'element-ui' 54 import {Message} from 'element-ui'
55 export default { 55 export default {
56 name: "index", 56 name: "index",
......