diff --git a/public/img/bg/bg.png b/public/img/bg/bg.png new file mode 100644 index 0000000..1b808c1 Binary files /dev/null and b/public/img/bg/bg.png differ diff --git a/public/img/bg/home.jpg b/public/img/bg/home.jpg new file mode 100644 index 0000000..8706ff7 Binary files /dev/null and b/public/img/bg/home.jpg differ diff --git a/public/img/bg/left_bg.png b/public/img/bg/left_bg.png new file mode 100644 index 0000000..e196130 Binary files /dev/null and b/public/img/bg/left_bg.png differ diff --git a/public/img/bg/login.png b/public/img/bg/login.png deleted file mode 100644 index eb92779..0000000 Binary files a/public/img/bg/login.png and /dev/null differ diff --git a/src/api/user.js b/src/api/user.js index 5775d8a..65842a2 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -113,3 +113,14 @@ export const clearCache = () => request({ method: 'get', authorization: false }); + +//授权登录 +export const loginByAuth = (applyType, username, password) => request({ + url: '/authApi/system/sys-sub/login', + method: 'post', + data: { + applyType, + username, + password + } +}); \ No newline at end of file diff --git a/src/api/wirelessintrusion/wirelessintrusion.js b/src/api/wirelessintrusion/wirelessintrusion.js new file mode 100644 index 0000000..c18e164 --- /dev/null +++ b/src/api/wirelessintrusion/wirelessintrusion.js @@ -0,0 +1,59 @@ +import request from '@/router/axios'; + +const baseUrl = process.env.NODE_ENV === 'production' ? 'http://182.139.182.190:60032/prod-api' : 'http://182.139.182.190:60032/prod-api'; +//物联网登录 +export const bizLogin = (data) => { + return request({ + url: baseUrl + '/api/Login', + method: 'post', + data: data, + authorization: false + }) +} + +//物联网设备状态 +export const bizDeviceStatus = (token) => { + return request({ + url: baseUrl + '/system/dict/data/type/device_status', + method: 'get', + headers: { + Authorization: token + }, + authorization: false + }) +} +//节点类型 +export const bizNodeType = (token) => { + return request({ + url: baseUrl + '/system/dict/data/type/node_type', + method: 'get', + headers: { + Authorization: token + }, + authorization: false + }) +} +//物联网设备列表 +export const bizDeviceList = (token, params) => { + return request({ + url: baseUrl + '/api/bizDevice/list', + method: 'get', + headers: { + Authorization: token + }, + params: params, + authorization: false + }) +} +//设备详情 +export const bizDeviceDetail = (token, id) => { + return request({ + url: baseUrl + '/api/bizDevice/' + id, + method: 'get', + headers: { + Authorization: token + }, + authorization: false + }) +} + diff --git a/src/components/third-register/main.vue b/src/components/third-register/main.vue index 080d54e..6b21f3c 100644 --- a/src/components/third-register/main.vue +++ b/src/components/third-register/main.vue @@ -57,7 +57,7 @@ ...mapGetters(["userInfo"]), }, created() { - this.getTenant(); + // this.getTenant(); }, mounted() { // 若未登录则弹出框进行绑定 diff --git a/src/config/website.js b/src/config/website.js index e66b5fd..892e3ad 100644 --- a/src/config/website.js +++ b/src/config/website.js @@ -5,12 +5,12 @@ export default { title: "saber", logo: "S", key: 'saber',//配置主键,目前用于存储 - indexTitle: 'Saber Admin', + indexTitle: '入侵报警系统', clientId: 'saber', // 客户端id clientSecret: 'saber_secret', // 客户端密钥 tenantMode: false, // 是否开启租户模式 tenantId: "000000", // 管理组租户编号 - captchaMode: true, // 是否开启验证码模式 + captchaMode: false, // 是否开启验证码模式 switchMode: false, // 是否开启部门切换模式 lockPage: '/lock', tokenTime: 3000, diff --git a/src/page/login/alogin.vue b/src/page/login/alogin.vue new file mode 100644 index 0000000..bb67ef9 --- /dev/null +++ b/src/page/login/alogin.vue @@ -0,0 +1,79 @@ + + + + diff --git a/src/page/login/index.vue b/src/page/login/index.vue index ddb6e42..7055e96 100644 --- a/src/page/login/index.vue +++ b/src/page/login/index.vue @@ -4,49 +4,13 @@ @keyup.enter.native="handleLogin">
-
- -

{{ $t('login.info') }}

-
- ---------------------------------------------- -
- 管理租户编号:000000 -
- 超级管理员账号: admin / admin -
- 人事账号: hr / hr -
- 经理账号: manager / manager -
- 老板账号: boss / boss -
- ---------------------------------------------- -
- 普通租户编号:详见租户管理模块 -
- 租户管理员账号: admin / admin -
- ---------------------------------------------- -
- -
-
+ @@ -82,7 +46,7 @@ source: "", code: "", state: "", - } + }, }; }, watch: { @@ -92,7 +56,7 @@ }, created() { this.handleLogin(); - this.getTime(); + // this.getTime(); }, mounted() { }, diff --git a/src/page/login/userlogin.vue b/src/page/login/userlogin.vue index a70c2c6..bb4efd7 100644 --- a/src/page/login/userlogin.vue +++ b/src/page/login/userlogin.vue @@ -72,7 +72,7 @@ - + diff --git a/src/views/alarmcenter/peopleposition/list.vue b/src/views/alarmcenter/peopleposition/list.vue new file mode 100644 index 0000000..691e24e --- /dev/null +++ b/src/views/alarmcenter/peopleposition/list.vue @@ -0,0 +1,342 @@ + + + + + diff --git a/src/views/alarmcenter/point/list.vue b/src/views/alarmcenter/point/list.vue new file mode 100644 index 0000000..387d95b --- /dev/null +++ b/src/views/alarmcenter/point/list.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/src/views/map/index.vue b/src/views/map/index.vue new file mode 100644 index 0000000..b893b7b --- /dev/null +++ b/src/views/map/index.vue @@ -0,0 +1,33 @@ + + + + + + diff --git a/src/views/wel/index copy.vue b/src/views/wel/index copy.vue deleted file mode 100644 index 33503e9..0000000 --- a/src/views/wel/index copy.vue +++ /dev/null @@ -1,869 +0,0 @@ - - - - - - diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue index 1610d96..0711258 100644 --- a/src/views/wel/index.vue +++ b/src/views/wel/index.vue @@ -1,10 +1,20 @@ diff --git a/src/views/wirelessintrusion/device/list.vue b/src/views/wirelessintrusion/device/list.vue index 145bc18..74ddf3f 100644 --- a/src/views/wirelessintrusion/device/list.vue +++ b/src/views/wirelessintrusion/device/list.vue @@ -1,346 +1,343 @@ - + diff --git a/vue.config.js b/vue.config.js index 2e635cb..1f1dd70 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,14 +40,20 @@ module.exports = { proxy: { '/api': { //本地服务接口地址 - target: 'http://192.168.1.34:8008', - // target: 'http://192.168.3.32:8008', - //远程演示服务地址,可用于直接启动项目 - //target: 'https://saber.bladex.vip/api', + // target: 'http://192.168.1.34:8008', + target: 'http://192.168.3.32:8008', ws: true, pathRewrite: { '^/api': '/' } + }, + '/autoApi': { + //本地服务接口地址 + target: 'http://182.139.182.190:82', + ws: true, + pathRewrite: { + '^/autoApi': '/' + } } } }