8b7c1bf3 by 杨威

优化项目目录结构

1 parent a5a6fcca
import request from '@/plugin/axios'
/**
* 预约配置列表生成接口
*/
export function appointmentList(data) {
return request({
url: '/reserve/appointmentRules/search',
method: 'get',
params: {
data
}
})
}
/**
* 根据预约规则id单个/批量启用/禁用预约规则
*/
export function enableAppointmentRule(data) {
return request({
url: '/reserve/appointmentRules/enableAppointmentRule?yyidList='+data.yyidList+'&enable='+data.enable,
method: 'post'
})
}
/**
* 单个/批量删除预约规则
*/
export function deleteRuleByIds(data) {
return request({
url: '/reserve/appointmentRules/deleteByIds?yyidList='+data.yyidList,
method: 'delete'
})
}
/**
* 获取预约批次号-预约配置设置
*/
export function getBatch() {
return request({
url: '/reserve/appointmentRules/getBatch',
method: 'get'
})
}
/**
* 组织机构接口 : Organization Service
*/
export function queryAllOrganization() {
return request({
url: '/reserve/organization/queryAllOrganization',
method: 'get'
})
}
/**
* 获取所有业务
*/
export function getAllBusinessList() {
return request({
url: '/reserve/appointmentPeriodRules/getAllBusinessList',
method: 'get'
})
}
/**
* 根据机构IDS、业务IDS查询预约业务-预约业务配置
*/
export function getAppointmentBusinessList(data) {
return request({
url: '/reserve/appointmentPeriodRules/getAppointmentBusinessList',
method: 'get',
params: {
jgid: data.jgids,
ywids: data.ywids
}
})
}
/**
* 根据机构ID查询机构预约和未预约业务
*/
export function getBusinessByJgid(data) {
return request({
url: '/reserve/appointmentPeriodRules/getBusinessByJgid',
method: 'get',
params: {
jgid: data
}
})
}
/**
* 对机构授权可预约业务-预约业务设置保存
*/
export function grantAppointment(data) {
return request({
url: '/reserve/appointmentPeriodRules/grantAppointment?appointmentYwids='+data.appointmentYwids+'&jgid='+data.jgid,
method: 'post'
})
}
/**
* 单个/批量删除机构下的所有预约业务-预约业务设置保存
*/
export function deleteByjgids(data) {
return request({
url: '/reserve/appointmentPeriodRules/deleteByjgids?jgids='+data,
method: 'delete'
})
}
/**
* 预约记录管理
*/
export function SearchList(data) {
return request({
url: '/reserve/appointment/search',
method: 'post',
data: data,
})
}
// 单个/批量取消赴约
export function CancelAppointment(data) {
return request({
url: '/reserve/appointment/deleteByIds?idList='+data,
method: 'delete',
})
}
//赴约
export function Appointment(data) {
return request({
url: '/reserve/appointment/keepAppointment',
method: 'put',
data: data,
})
}
\ No newline at end of file
import request from '@/plugin/axios'
/**
* 查询业务登记类型
*/
export function SearchList(data) {
return request({
url: '/reserve/business/search',
method: 'post',
data:data,
})
}
// 插入业务登记类型
export function Insert(data) {
return request({
url: '/reserve/business/insert',
method: 'post',
data:data,
})
}
// 更新业务登记类型
export function update(data) {
return request({
url: '/reserve/business/update',
method: 'put',
data:data,
})
}
// 获取业务登记类型全集
export function getDetailById(id) {
return request({
url: '/reserve/business/getDetailById',
method: 'get',
params:{
id:id
}
})
}
// 删除
export function deleteByIds(data) {
return request({
url: '/reserve/business/deleteByIds?idList='+data,
method: 'delete',
})
}
\ No newline at end of file
import request from '@/plugin/axios'
/**
* 查询所有行政区
*/
......@@ -33,26 +33,6 @@ export function getListByPbsm (pbsm) {
})
}
/**
* 新增宗地基本信息
*/
export function insertQjZdjbxx (data) {
return request({
url: 'zd/qjZdjbxx/insertQjZdjbxx',
method: 'post',
data: data,
})
}
/**
* 新增自然幢基本信息
*/
export function insertZrzjbxx (data) {
return request({
url: 'fw/qjZrz/insert',
method: 'post',
data: data,
})
}
/**
* 通过名称获取字典
*/
export function getDdicByMC (mc) {
......
import request from '@/plugin/axios'
/**
* 草稿箱List
*/
export function DraftsList(data) {
return request({
url: '/hlwj/articleDO/draftsBox',
method: 'get',
params:{
currentPage:data.pagenum,
pageSize:data.pagesize
}
})
}
// 单个/批量刪除草稿箱的文章
export function DraftsDeleteByIds(data) {
return request({
url: '/hlwj/articleDO/deleteArticleByIds',
method: 'delete',
params:{
ids:data
}
})
}
// 草稿箱新增文章
// export function DraftsInsert(data) {
// return request({
// url: '/hlwj/articleDO/insert',
// method: 'post',
// data:data
// })
// }
export function DraftsInsert(data) {
return request({
url: '/hlwj/articleDO/insert',
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
data:data
})
}
// 发布文章
export function PublishArticle(data) {
return request({
url: '/hlwj/articleDO/publishArticle',
method: 'post',
data:data
})
}
// 栏目接口管理
export function articleClassifyList() {
return request({
url: '/cms/classify/articleClassifyList',
method: 'get',
})
}
// 栏目接口管理
export function ClassifyGetDetailById(classifyId) {
return request({
url: '/cms/classify/getDetailById',
method: 'get',
params:{
id:classifyId
}
})
}
// 根据文章标识码查询详细信息
export function getarticleDetail(data) {
return request({
url: '/hlwj/articleDO/getDetailById',
method: 'get',
params:{
id:data.id
}
})
}
// 点击更新的时候的接口
export function updateArticle(data) {
return request({
url: '/hlwj/articleDO/update',
method: 'post',
data:data
})
}
import request from '@/plugin/axios'
/**
* 公告管理
*/
export function noticeTable(data) {
return request({
url: '/hlwj/Notice/draftBox',
method: 'post',
data
})
}
/**
* 物理删除
*/
export function physicalDeletion(data) {
return request({
url: '/hlwj/Notice/deleteByIds?idList='+data,
method: 'delete'
})
}
/**
* 逻辑删除
*/
export function logicalDeletion(data) {
return request({
url: '/hlwj/Notice/updateIsDelete',
method: 'post',
data
})
}
/**
* 新增公告
*/
export function newAnnouncement(data) {
return request({
url: '/hlwj/Notice/insert',
method: 'post',
data
})
}
/**
* 发布公告
*/
export function announcement(data) {
return request({
url: '/hlwj/Notice/updateState?idList='+data.idList,
method: 'post'
})
}
/**
* 更新公告-编辑
*/
export function updateNotice(data) {
return request({
url: '/hlwj/Notice/update',
method: 'post',
data
})
}
/**
* 发布箱tableList
*/
export function releaseBox(data) {
return request({
url: '/hlwj/Notice/issueBox',
method: 'post',
data
})
}
/**
* 发布箱启用禁用
*/
export function publishingBoxEnabled(data) {
return request({
url: '/hlwj/Notice/updateEnable?idList='+data.idList+'&enable='+data.enable,
method: 'post'
})
}
/**
* 公告逻辑删除(使用场景:发布箱
*/
export function publishingLogicalDeletion(data) {
return request({
url: '/hlwj/Notice/updateIsDelete?idList='+data.idList+'&IsDelete='+data.IsDelete,
method: 'post'
})
}
/**
* 公告管理回收箱tablelist
*/
export function recycleBinTableList(data) {
return request({
url: '/hlwj/Notice/recycleBox?',
method: 'post',
data
})
}
/**
* 读取明细-详情展示
*/
export function getDetailById(data) {
return request({
url: '/hlwj/Notice/getDetailById',
method: 'get',
params: {
id:data
}
})
}
import request from '@/plugin/axios'
/**
* 删除箱List
*/
export function RecyclesList(data) {
return request({
url: '/hlwj/articleDO/recoverBox',
method: 'get',
params:{
currentPage:data.pagenum,
pageSize:data.pagesize
}
})
}
// 单个/批量回收箱的文章
export function DraftsDeleteByIds(data) {
return request({
url: '/hlwj/articleDO/deleteArticleByIds',
method: 'delete',
params:{
ids:data
}
})
}
// 栏目接口管理
export function articleClassifyList() {
return request({
url: '/cms/classify/articleClassifyList',
method: 'get',
})
}
\ No newline at end of file
import request from '@/plugin/axios'
/**
* 发布箱List
*/
export function ReleasesList(data) {
return request({
url: '/hlwj/articleDO/publishBox',
method: 'get',
params:{
currentPage:data.pagenum,
pageSize:data.pagesize
}
})
}
// 单个/批量刪除发布箱的文章(逻辑删除)
export function DraftsDeleteByIds(data) {
return request({
url: '/hlwj/articleDO/deletePublishArticleByIds',
method: 'delete',
params:{
ids:data
}
})
}
// 栏目接口管理
export function articleClassifyList() {
return request({
url: '/cms/classify/articleClassifyList',
method: 'get',
})
}
/**
* 发布箱启用禁用
*/
export function publishingBoxEnabled(data) {
return request({
url: '/hlwj/articleDO/enableArticle?ids='+data.idList+'&enable='+data.enable,
method: 'post'
})
}
\ No newline at end of file
......@@ -12,3 +12,14 @@ export function savemjft(data) {
data: data,
})
}
/**
* 新增宗地基本信息
*/
export function insertQjZdjbxx (data) {
return request({
url: 'zd/qjZdjbxx/insertQjZdjbxx',
method: 'post',
data: data,
})
}
\ No newline at end of file
......
import request from '@/plugin/axios'
/**
* 加载左边菜单栏
* 新增自然幢基本信息
*/
export function getNavigation() {
export function insertZrzjbxx (data) {
return request({
url: '/menu/back',
method: 'get',
url: 'fw/qjZrz/insert',
method: 'post',
data: data,
})
}
......
import util from '@/libs/util.js'
import router from '@router'
import { getNavigation } from '@/api/navigation.js'
const getState = () => {
return {
......@@ -17,20 +16,20 @@ const mutations = {
const actions = {
// 在这里处理后台返回的数据加载左边菜单栏
getMenus({ commit }) {
return new Promise((resolve, reject) => {
getNavigation().then(response => {
commit('GET_NAVIGATION', response.data)
// filterAsyncRoutes(data.menuList)
util.cookies.set('navigation-1',response.data.slice(0,1))
util.cookies.set('navigation',response.data.slice(1))
router.push('/panel')
resolve()
}).catch(error => {
reject(error)
})
})
},
// getMenus({ commit }) {
// return new Promise((resolve, reject) => {
// getNavigation().then(response => {
// commit('GET_NAVIGATION', response.data)
// // filterAsyncRoutes(data.menuList)
// util.cookies.set('navigation-1',response.data.slice(0,1))
// util.cookies.set('navigation',response.data.slice(1))
// router.push('/panel')
// resolve()
// }).catch(error => {
// reject(error)
// })
// })
// },
}
// 在这里处理路由表信息
export function filterAsyncRoutes(routes) {
......
import { getDetailById } from "@api/notice"
// import { getDetailById } from "@api/notice"
import { httpStatus } from "@api/config"
let mixin = {
data() {
......@@ -52,17 +52,17 @@ let mixin = {
return jsonData.map(v => filterVal.map(j => v[j]))
},
// 编辑
getIdDetail(data) {
getDetailById(data.id)
.then(res => {
if(res.code = httpStatus.OK.code){
this.detailsData = res.data
}
})
.catch(error => {
reject(error)
})
},
// getIdDetail(data) {
// getDetailById(data.id)
// .then(res => {
// if(res.code = httpStatus.OK.code){
// this.detailsData = res.data
// }
// })
// .catch(error => {
// reject(error)
// })
// },
// 表格索引得问题
indexMethod(index) {
return index + 1 + (this.PageData.current - 1) * this.PageData.size;
......
......@@ -99,7 +99,10 @@
</template>
<script>
import{getAllList,getListByXzqbsm,getListByPbsm,insertQjZdjbxx,getDdicByMC,insertZrzjbxx} from "../../../api/panel"
import{getAllList,getListByXzqbsm,getListByPbsm,getDdicByMC} from "../../../api/common"
import { insertQjZdjbxx } from "../../../api/zd";
import { insertZrzjbxx } from "../../../api/zrz";
export default {
name:"",
components:{},
......
......@@ -50,7 +50,7 @@
</template>
<script>
import {savemjft} from '../../../api/basic'
import {savemjft} from '../../../api/zd'
import {Message} from 'element-ui'
export default {
name: "index",
......