diff --git a/App.vue b/App.vue
index f6a2124..c5c4aac 100644
--- a/App.vue
+++ b/App.vue
@@ -1,39 +1,119 @@
diff --git a/api/inspection/abnormal.js b/api/inspection/abnormal.js
new file mode 100644
index 0000000..d738229
--- /dev/null
+++ b/api/inspection/abnormal.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询巡检异常列表
+export function listAbnormal(query) {
+ return request({
+ url: '/inspection/abnormal/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询巡检异常详细
+export function getAbnormal(id) {
+ return request({
+ url: '/inspection/abnormal/' + id,
+ method: 'get'
+ })
+}
+
+// 新增巡检异常
+export function addAbnormal(data) {
+ return request({
+ url: '/inspection/abnormal',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改巡检异常
+export function updateAbnormal(data) {
+ return request({
+ url: '/inspection/abnormal',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除巡检异常
+export function delAbnormal(id) {
+ return request({
+ url: '/inspection/abnormal/' + id,
+ method: 'delete'
+ })
+}
\ No newline at end of file
diff --git a/api/login.js b/api/login.js
index 035da07..2b8efdb 100644
--- a/api/login.js
+++ b/api/login.js
@@ -65,4 +65,43 @@ export const getRouters = () => {
url: '/getRouters',
method: 'get'
})
+}
+
+// CAS 登录方法(通过请求参数传递 ticket 与 service)
+export function casLogin(ticket, service) {
+ return request({
+ url: '/cas/login',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ // 后端使用 @RequestParam 接收参数
+ params: { ticket, service }
+ })
+}
+
+// 移动端CAS登录方法
+export function casAppLogin(ticket) {
+ return request({
+ url: '/cas/app/login',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ // 后端使用 @RequestParam 接收参数
+ params: { ticket }
+ })
+}
+
+// 统一CAS登录方法
+export function casUnifiedLogin(ticket) {
+ return request({
+ url: '/cas/unified/login',
+ headers: {
+ isToken: false
+ },
+ method: 'post',
+ // 后端使用 @RequestParam 接收参数
+ params: { ticket }
+ })
}
\ No newline at end of file
diff --git a/config.js b/config.js
index 2da84e3..43fb2e8 100644
--- a/config.js
+++ b/config.js
@@ -1,9 +1,22 @@
// 应用全局配置
module.exports = {
// baseUrl: 'http://172.16.129.101:8080/dev-api/',
- baseUrl: 'https://pasd.gxsdxy.cn/prod-api/',
+ // baseUrl: 'https://pasd.gxsdxy.cn/prod-api/',
// baseUrl: 'http://172.16.129.101:8080',//172.16.129.101
- // baseUrl: 'https://192.168.211.59:8080/',
+ // baseUrl: 'http://localhost:8080',
+ // 生产环境:通过 Nginx /prod-api 代理到后端
+ baseUrl: 'https://pasd.gxsdxy.cn/prod-api',
+ // 是否启用 CAS 登录(与系统账号登录并存,H5 自动跳转)
+ // 发布 CAS 端:开启
+ casEnable: true,
+ // CAS 服务端登录地址(示例为统一认证平台登录地址)
+ casServer: 'https://rsso.gxsdxy.cn/login',
+ // PC 端
+ casService: 'https://pasd.gxsdxy.cn/cas',
+
+ // 移动端(关键) - 现在统一使用相同的回调地址,由后端处理设备检测
+ casServiceMobile: 'https://pasd.gxsdxy.cn/cas',
+
// 应用信息
appInfo: {
// 应用名称
@@ -16,13 +29,13 @@ module.exports = {
site_url: "http://pasd.gxsdxy.cn",
// 政策协议
agreements: [{
- title: "隐私政策",
- url: "http://pasd.gxsdxy.cn/protocol.html"
- },
- {
- title: "用户服务协议",
- url: "http://pasd.gxsdxy.cn/protocol.html"
- }
+ title: "隐私政策",
+ url: "http://pasd.gxsdxy.cn/protocol.html"
+ },
+ {
+ title: "用户服务协议",
+ url: "http://pasd.gxsdxy.cn/protocol.html"
+ }
]
}
-}
\ No newline at end of file
+}
diff --git a/manifest.json b/manifest.json
index d175ed9..d324b7a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -88,6 +88,7 @@
"router" : {
"mode" : "hash",
"base" : "./"
- }
+ },
+ "publicPath": "./"
}
}
diff --git a/pages.json b/pages.json
index 243877c..0233980 100644
--- a/pages.json
+++ b/pages.json
@@ -4,6 +4,12 @@
"style": {
"navigationBarTitleText": "登录"
}
+ }, {
+ "path": "pages/cas/callback",
+ "style": {
+ "navigationBarTitleText": "CAS回调",
+ "navigationStyle": "custom"
+ }
}, {
"path": "pages/register",
"style": {
@@ -79,7 +85,7 @@
"style": {
"navigationBarTitleText": "申报记录",
"navigationBarTextStyle": "white",
- "navigationBarBackgroundColor": "#bbbbbb",
+ "navigationBarBackgroundColor": "#1677ff",
"enablePullDownRefresh": true, //配置后,可以下拉刷新,上拉加载`
"onReachBottomDistance": 100
}
@@ -88,8 +94,16 @@
"path": "pages/work/sidebar/safetyDeclaratio/index",
"style": {
"navigationBarTextStyle": "white",
- "navigationBarBackgroundColor": "#bbbbbb",
- "navigationBarTitleText": "隐患申报"
+ "navigationBarBackgroundColor": "#1677ff",
+ "navigationBarTitleText": "异常隐患巡检"
+ }
+ },
+ {
+ "path": "pages/work/sidebar/filingDetail/index",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#1677ff",
+ "navigationBarTitleText": "申报详情"
}
},
{
@@ -113,7 +127,7 @@
},
"style": {
"navigationBarTextStyle": "white",
- "navigationBarBackgroundColor": "#bbbbbb",
+ "navigationBarBackgroundColor": "#1677ff",
"navigationBarTitleText": "扫码签到"
}
},
@@ -124,7 +138,7 @@
"path": "pages/work/inspection/inspectionEx/index",
"style": {
"navigationBarTextStyle": "white",
- "navigationBarBackgroundColor": "#bbbbbb",
+ "navigationBarBackgroundColor": "#1677ff",
"navigationBarTitleText": "异常巡检"
}
},
@@ -132,13 +146,60 @@
"app-plus": {
"titleNView": false
},
+ "path": "pages/work/inspection/checkInUserList/index",
+ "style": {
+ "navigationBarTitleText": "用户打卡列表",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#1677ff"
+ }
+ },
+ {
+ "app-plus": { "titleNView": false },
"path": "pages/work/inspection/checkInRecord/index",
"style": {
"navigationBarTextStyle": "white",
- "navigationBarBackgroundColor": "#bbbbbb",
+ "navigationBarBackgroundColor": "#1677ff",
"navigationBarTitleText": "打卡记录"
+ }
+ },
+ {
+ "app-plus": {
+ "titleNView": false
},
- "usingComponents": true
+ "path": "pages/work/inspection/abnormalList/index",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "巡检异常列表",
+ "navigationBarBackgroundColor": "#1677ff"
+ }
+ },
+ {
+ "app-plus": {
+ "titleNView": false
+ },
+ "path": "pages/work/inspection/abnormalDetail/index",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "异常详情",
+ "navigationBarBackgroundColor": "#1677ff"
+ }
+ },
+ {
+ "path": "pages/work/inspection/checkInDetail/index",
+ "style": {
+ "navigationBarTitleText": "打卡详情",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#1677ff"
+ }
+ },
+ {
+ "app-plus": { "titleNView": false },
+ "path": "pages/work/inspection/recordList/index",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#1677ff",
+ "navigationBarTitleText": "巡检记录"
+ }
}
],
"tabBar": {
diff --git a/pages/cas/callback.vue b/pages/cas/callback.vue
new file mode 100644
index 0000000..29be469
--- /dev/null
+++ b/pages/cas/callback.vue
@@ -0,0 +1,42 @@
+
+
+ 正在处理统一认证登录...
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index.vue b/pages/index.vue
index 2048a4c..5e68dbd 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -2,7 +2,7 @@
- Hello RuoYi
+ 平安水电
diff --git a/pages/login.vue b/pages/login.vue
index d3d5523..ef8e4fc 100644
--- a/pages/login.vue
+++ b/pages/login.vue
@@ -17,7 +17,7 @@
-
+
@@ -25,179 +25,198 @@
- 没有账号?
+ 没有账号?
立即注册
登录即代表同意
- 《用户协议》
- 《隐私协议》
+
+ <用户协议>
+
+
+ <隐私协议>
+
-
+
diff --git a/pages/mine/about/index.vue b/pages/mine/about/index.vue
index d3f6255..1ee85e5 100644
--- a/pages/mine/about/index.vue
+++ b/pages/mine/about/index.vue
@@ -17,13 +17,13 @@
@@ -38,7 +38,7 @@
- Copyright © 2022 ruoyi.vip All Rights Reserved.
+ Copyright © 2022 平安水电 All Rights Reserved.
diff --git a/pages/mine/help/index.vue b/pages/mine/help/index.vue
index d2e4374..4636bc3 100644
--- a/pages/mine/help/index.vue
+++ b/pages/mine/help/index.vue
@@ -20,21 +20,7 @@
data() {
return {
list: [{
- icon: 'iconfont icon-github',
- title: '若依问题',
- childList: [{
- title: '若依开源吗?',
- content: '开源'
- }, {
- title: '若依可以商用吗?',
- content: '可以'
- }, {
- title: '若依官网地址多少?',
- content: 'http://ruoyi.vip'
- }, {
- title: '若依文档地址多少?',
- content: 'http://doc.ruoyi.vip'
- }]
+
},
{
icon: 'iconfont icon-help',
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index b79ed52..9725df8 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -27,22 +27,6 @@
-
-
- 交流群
-
-
-
- 在线客服
-
-
-
- 反馈社区
-
-
-
- 点赞我们
-
-
+