diff --git a/public/config.js b/public/config.js
index f88012a..6a082a5 100644
--- a/public/config.js
+++ b/public/config.js
@@ -1,6 +1,13 @@
-config = {
- API_URL: 'http://www.fatoaniic.com/api',
- UPLOAD_URL: "http://www.fatoaniic.com/api/api-ftp/ftp/upload",
- DOWNLOAD_URL: "http://www.fatoaniic.com/api/api-ftp/ftp/download?filename=",
+// config = {
+// API_URL: 'http://www.fatoaniic.com/api',
+// UPLOAD_URL: "http://www.fatoaniic.com/api/api-ftp/ftp/upload",
+// DOWNLOAD_URL: "http://www.fatoaniic.com/api/api-ftp/ftp/download?filename=",
+// SHOW_URL: "http://www.fatoaniic.com/ftpfile/",
+// }
+ config = {
+ API_URL: 'http://172.119.51.18:8082',
+ UPLOAD_URL: "http://172.119.51.18:8082/attachment/uploadOne",
+ DOWNLOAD_URL: "http://172.119.51.18:8082/api-ftp/ftp/download?filename=",
SHOW_URL: "http://www.fatoaniic.com/ftpfile/",
- }
\ No newline at end of file
+ }
+
\ No newline at end of file
diff --git a/src/api/company.js b/src/api/company.js
index 817b546..ffd2402 100644
--- a/src/api/company.js
+++ b/src/api/company.js
@@ -1,48 +1,74 @@
import request from '@/utils/request';
-import requestLoading from '@/utils/requestLoading';
//获取企业列表
export function getEnterpriseList(params) {
- return requestLoading({
- url: '/api-enterprise/enterprise/enterprises',
- method: 'get',
- params
+ return request({
+ url: '/company/search',
+ method: 'post',
+ data:params
+ });
+}
+//删除企业
+export function deleteEnterprise(params) {
+ return request({
+ url: '/company/delete',
+ method: 'post',
+ data:params
});
}
//获取企业详情
export function getEnterpriseDetails(params) {
- return requestLoading({
- url: '/api-enterprise/enterprise/selectById',
- method: 'get',
- params
+ return request({
+ url: '/company/get/'+params,
+ method: 'get'
+ });
+}
+//修改企业信息
+export function editEnterprise(params) {
+ return request({
+ url: '/company/edit',
+ method: 'post',
+ data:params
});
}
//添加企业
export function addEnterprise(params) {
- return requestLoading({
- url: '/api-enterprise/enterprise/enterprises',
+ return request({
+ url: '/company/add',
method: 'post',
data:params
});
}
-//删除企业
-export function deleteEnterprise(params) {
- return requestLoading({
- url: '/api-enterprise/enterprise/enterprises',
- method: 'delete',
- params
+//区域查询接口
+export function getArea(params) {
+ return request({
+ url: '/common/getComboList_2/40010/'+params,
+ method: 'get'
});
}
-//修改企业信息
-export function editEnterprise(params) {
- return requestLoading({
- url: '/api-enterprise/enterprise/enterprises',
- method: 'put',
- data:params
+//行业大类查询接口
+export function getBigIndustryList() {
+ return request({
+ url: '/common/getComboList_1/40008',
+ method: 'get'
});
}
+//行业小类查询接口
+export function getSmallIndustryList(params) {
+ return request({
+ url: '/common/getComboList_2/40009/'+params,
+ method: 'get'
+ });
+}
+
+
+
+
+
+
+
//启
export function enableEnterprise(params) {
- return requestLoading({
+ return request({
url: '/api-enterprise/enterprise/enable',
method: 'put',
data:params
@@ -50,40 +76,17 @@ export function enableEnterprise(params) {
}
//停
export function disableEnterprise(params) {
- return requestLoading({
+ return request({
url: '/api-enterprise/enterprise/disable',
method: 'put',
data:params
});
}
-//行业大类查询接口
-export function getBigIndustryList(params) {
- return requestLoading({
- url: '/api-enterprise/industry/bigIndustry',
- method: 'get',
- params
- });
-}
-//行业小类查询接口
-export function getSmallIndustryList(params) {
- return requestLoading({
- url: '/api-enterprise/industry/smallIndustry',
- method: 'get',
- params
- });
-}
-//区域查询接口
-export function getArea(params) {
- return requestLoading({
- url: '/api-enterprise/area/getArea',
- method: 'get',
- params
- });
-}
+
//审核
export function approveEnterprise(params) {
- return requestLoading({
+ return request({
url: '/api-enterprise/enApply/approve',
method: 'put',
data:params
@@ -91,7 +94,7 @@ export function approveEnterprise(params) {
}
//企业审核列表
export function enApplyList(params) {
- return requestLoading({
+ return request({
url: '/api-enterprise/enApply/page',
method: 'get',
params
@@ -99,7 +102,7 @@ export function enApplyList(params) {
}
//公司审核页面的详情
export function enApplyDetail(params) {
- return requestLoading({
+ return request({
url: '/api-enterprise/enApply/detail',
method: 'get',
params
diff --git a/src/api/notice.js b/src/api/notice.js
index 8cfd06b..39a308f 100644
--- a/src/api/notice.js
+++ b/src/api/notice.js
@@ -1,53 +1,54 @@
import request from '@/utils/request';
import requestLoading from '@/utils/requestLoading';
-
-//获取公告列表
-export function getNoticeList(params) {
- return requestLoading({
- url: '/api-login/ann/announcements',
- method: 'get',
- params
- });
-}
-//获取公告详情
-export function getNoticeInfo(params) {
- return requestLoading({
- url: '/api-login/ann/announcement',
+//获取文章类型下拉列表
+export function getNoticeTypeList(params) {
+ return request({
+ url: '/common/getComboList_1/40005',
method: 'get',
params
});
}
-
-//更新公告详情
-export function editNoticeInfo(params) {
- return requestLoading({
- url: '/api-login/ann/announcement',
- method: 'put',
+//获取文章列表
+export function getNoticeList(params) {
+ return request({
+ url: '/content/search',
+ method: 'post',
data:params
});
}
-//添加公告
+//添加文章
export function addNoticeInfo(params) {
- return requestLoading({
- url: '/api-login/ann/announcement',
+ return request({
+ url: '/content/add',
method: 'post',
data:params
});
}
-//删除公告
-export function deleteNoticeInfo(params) {
- return requestLoading({
- url: '/api-login/ann/announcement',
- method: 'delete',
- params
+
+
+
+
+
+//获取文章详情
+export function getNoticeInfo(params) {
+ return request({
+ url: '/content/get/'+params,
+ method: 'get'
});
}
-
-//获取接收人列表
-export function identitytypeList(params) {
- return requestLoading({
- url: '/api-login/ann/identitytype',
- method: 'get',
- params
+//更新文章详情
+export function editNoticeInfo(params) {
+ return request({
+ url: '/content/edit',
+ method: 'post',
+ data:params
});
}
+//删除文章
+export function deleteNoticeInfo(params) {
+ return request({
+ url: '/content/delete',
+ method: 'post',
+ data:params
+ });
+}
\ No newline at end of file
diff --git a/src/api/public.js b/src/api/public.js
new file mode 100644
index 0000000..a24e34b
--- /dev/null
+++ b/src/api/public.js
@@ -0,0 +1,5 @@
+import request from '@/utils/request';
+
+
+
+
diff --git a/src/main.ts b/src/main.ts
index 806b84b..8f5d626 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -14,7 +14,7 @@ import '@/icons' // icon
import echarts from 'echarts' //echarts
import scroll from 'vue-seamless-scroll' //滚动插件
import md5 from 'js-md5'; //md5 加密
-import '@/permission' // 权限控制
+// import '@/permission' // 权限控制
//判断浏览器,如果是IE11以下则不加载‘vue-quill-editor 富文本编辑器’并提示浏览器版本过低
let userAgent = window.navigator.userAgent;
diff --git a/src/utils/request.js b/src/utils/request.js
index d20ace2..d8f6aea 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -23,24 +23,24 @@ service.interceptors.request.use((config) => {
if (store.getters.token && !config.isLogin) {
config.headers['token'] = getToken()
}
-
+ config.headers['token'] = '800580795f01449f9100c4d2983d13c9'
if (config.method == 'post' || config.method == 'put') {
// 校验发送的请求是否包含敏感字符
//----------------start-----------------------------
- let sData = ''
- for (const i in config.data) {
- if (config.data.hasOwnProperty(i)) {
- const item = config.data[i];
- sData += item + ","
- }
- }
- store.getters.keys.forEach(item => {
- if (sData.indexOf(item) != -1) {
- isKey = true
- }
- });
+ // let sData = ''
+ // for (const i in config.data) {
+ // if (config.data.hasOwnProperty(i)) {
+ // const item = config.data[i];
+ // sData += item + ","
+ // }
+ // }
+ // store.getters.keys.forEach(item => {
+ // if (sData.indexOf(item) != -1) {
+ // isKey = true
+ // }
+ // });
//----------------End---------------------------------
- config.data = qs.stringify(config.data)
+ // config.data = qs.stringify(config.data)
// qs.stringify(config.params, { indices: false })
} else if (config.method == 'get') {
config.paramsSerializer = params => {
@@ -73,10 +73,10 @@ service.interceptors.response.use(
*/
const res = response.data
// const res = JSON.parse(response.data)
- if (res.code !== 200) {
+ if (res.status !== 200) {
// 511:失效的token;弹出弹框,返回登录页
- if (res.code === 511) {
+ if (res.status === 511) {
if (isToken) {
isToken = false //防止下个一个token失效的请求在弹出第二个框
MessageBox.alert('你已被登出,请重新登录', '确定登出', {
@@ -94,7 +94,7 @@ service.interceptors.response.use(
} else {
//接口失败统一报错
Message({
- message: res.msg,
+ message: res.message,
type: 'error',
duration: 5 * 1000
})
diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue
index 29de78c..7e87b58 100644
--- a/src/views/layout/components/Sidebar/index.vue
+++ b/src/views/layout/components/Sidebar/index.vue
@@ -40,26 +40,31 @@
data(){
return {
routes:[
+ // {
+ // path: 'menu',
+ // name: 'menuManage',
+ // meta: {title: '菜单管理', icon: 'table', noCache: true},
+ // },
{
- path: 'menu',
- name: 'menuManage',
- meta: {title: '菜单管理', icon: 'table', noCache: true},
+ path: 'company',
+ name: 'companyManage',
+ meta: {title: '公司管理', icon: 'dashboard', noCache: true},
},
{
path: 'user',
name: 'userManage',
meta: {title: '用户管理', icon: 'dashboard', noCache: true},
},
- {
- path: 'role',
- name: 'roleManage',
- meta: {title: '角色管理', icon: 'eye', noCache: true},
- },
- {
- path: 'permission',
- name: 'permissionManage',
- meta: {title: '权限管理', icon: 'form', noCache: true},
- },
+ // {
+ // path: 'role',
+ // name: 'roleManage',
+ // meta: {title: '角色管理', icon: 'eye', noCache: true},
+ // },
+ // {
+ // path: 'permission',
+ // name: 'permissionManage',
+ // meta: {title: '权限管理', icon: 'form', noCache: true},
+ // },
{
path: 'notice',
name: 'noticeManage',
diff --git a/src/views/systemManage/company/company.vue b/src/views/systemManage/company/company.vue
index 97e2752..3e1fcd4 100644
--- a/src/views/systemManage/company/company.vue
+++ b/src/views/systemManage/company/company.vue
@@ -10,6 +10,7 @@
+
+
+
+
-
-
-
-