Commit 910dabe6 by 张超军

美亚日志控制

parent 8eaf333d
...@@ -15,5 +15,5 @@ ...@@ -15,5 +15,5 @@
"trailingComma": "es5", "trailingComma": "es5",
"useTabs": false, "useTabs": false,
"vueIndentScriptAndStyle": false, "vueIndentScriptAndStyle": false,
"printWidth": 80 "printWidth": 120
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
const baseSize = 16 const baseSize = 16
// 设置 rem 函数 // 设置 rem 函数
function setRem () { function setRem () {
console.log(document.documentElement.clientWidth); // console.log(document.documentElement.clientWidth);
// 当前页面宽度相对于 1920宽的缩放比例,可根据自己需要修改。 // 当前页面宽度相对于 1920宽的缩放比例,可根据自己需要修改。
const scale = document.documentElement.clientWidth / 1920 const scale = document.documentElement.clientWidth / 1920
// 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整) // 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整)
......
...@@ -620,6 +620,7 @@ export default { ...@@ -620,6 +620,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog () { sendLog () {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -599,6 +599,7 @@ export default { ...@@ -599,6 +599,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog () { sendLog () {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -267,6 +267,7 @@ export default { ...@@ -267,6 +267,7 @@ export default {
* @return {*} * @return {*}
*/ */
async sendLog () { async sendLog () {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -177,6 +177,7 @@ export default { ...@@ -177,6 +177,7 @@ export default {
* @return {*} * @return {*}
*/ */
async sendLog () { async sendLog () {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -338,6 +338,7 @@ export default { ...@@ -338,6 +338,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -224,6 +224,7 @@ export default { ...@@ -224,6 +224,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -221,6 +221,7 @@ export default { ...@@ -221,6 +221,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -1333,6 +1333,7 @@ export default { ...@@ -1333,6 +1333,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -697,6 +697,7 @@ export default { ...@@ -697,6 +697,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
<template> <template>
<!-- <div class="login_account width70 middle" v-show="isShow"> <div class="login_account width70 middle" v-show="isShow">
<el-input class="width100 margin_top25_bottom10" type="text" :placeholder="$t('Login.username_placeholder')" @keydown.enter.native="login(userInfo)" v-model="userInfo.username"> <el-input class="width100 margin_top25_bottom10" type="text" :placeholder="$t('Login.username_placeholder')" @keydown.enter.native="login(userInfo)" v-model="userInfo.username">
<i slot="prefix" style="display: flex; align-items: center"> <i slot="prefix" style="display: flex; align-items: center">
<img style=" <img style="
...@@ -20,12 +20,12 @@ ...@@ -20,12 +20,12 @@
</el-input> </el-input>
<el-button class="login_button width100 margin_top25_bottom10" type="primary" ref="userLogin" @click="login(userInfo)" :loading="btnLoading">{{$t('Login.login_btn')}} <el-button class="login_button width100 margin_top25_bottom10" type="primary" ref="userLogin" @click="login(userInfo)" :loading="btnLoading">{{$t('Login.login_btn')}}
</el-button> </el-button>
</div> --> </div>
<!-- 对接线上 --> <!-- 对接线上 -->
<div class="AccountsLogin"> <!-- <div class="AccountsLogin">
<div class="el-icon-loading"></div> <div class="el-icon-loading"></div>
<span>正在加载中...</span> <span>正在加载中...</span>
</div> </div> -->
</template> </template>
<script> <script>
...@@ -176,14 +176,14 @@ export default { ...@@ -176,14 +176,14 @@ export default {
/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec( /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(
ice.candidate.candidate ice.candidate.candidate
)[1] )[1]
console.log('my IP: ', myIP) //【注:ice.candidate.address也可以拿到值】 // console.log('my IP: ', myIP) //【注:ice.candidate.address也可以拿到值】
localStorage.setItem('userIP', myIP) localStorage.setItem('userIP', myIP)
pc.onicecandidate = noop pc.onicecandidate = noop
10 10
} }
} }
// localStorage.setItem("userIP", '192.168.1.3'); // 存入 参数: 1.调用的值 2.所要存入的数据 // localStorage.setItem("userIP", '192.168.1.3'); // 存入 参数: 1.调用的值 2.所要存入的数据
console.log(localStorage.getItem('userIP')) // 输出 // console.log(localStorage.getItem('userIP')) // 输出
// document.cookie = '_idp_session=asiodnsaondoaisndosandosando===' // document.cookie = '_idp_session=asiodnsaondoaisndosandosando==='
// removeCookie() // removeCookie()
...@@ -192,12 +192,12 @@ export default { ...@@ -192,12 +192,12 @@ export default {
// console.log(navigator); // console.log(navigator);
// TODO 放开注释 // TODO 放开注释
this.TibetChange() this.TibetChange()
console.log(zzwxtCloud) /* console.log(zzwxtCloud)
console.log(zzwxtCloud.appId) console.log(zzwxtCloud.appId)
console.log(this.appId) console.log(this.appId)
console.log(zzwxtCloud.applicationUrl) console.log(zzwxtCloud.applicationUrl)
console.log(zzwxtCloud.authenticatedUrl) console.log(zzwxtCloud.authenticatedUrl)
console.log(zzwxtCloud.logoutUrl) console.log(zzwxtCloud.logoutUrl) */
// this.systemInfoRegister() // this.systemInfoRegister()
// this.sendLog() // this.sendLog()
}, },
...@@ -230,6 +230,15 @@ export default { ...@@ -230,6 +230,15 @@ export default {
this.$message.success(this.$t('Login.login_success_tip')) this.$message.success(this.$t('Login.login_success_tip'))
// 是否上传日志
localStorage.setItem('sbrzFlag', res.data.sbrzFlag)
// TODO 上传登录日志
// 注册
// await this.systemInfoRegister()
// 日志采集
this.sendLog()
//所在单位数据 //所在单位数据
await this.$store.dispatch('ljk/_ljkRy') // 获取用户人员逻辑库JSON await this.$store.dispatch('ljk/_ljkRy') // 获取用户人员逻辑库JSON
await this.$store.dispatch('ljk/_ljkAj') // 获取用户案件逻辑库JSON await this.$store.dispatch('ljk/_ljkAj') // 获取用户案件逻辑库JSON
...@@ -237,12 +246,6 @@ export default { ...@@ -237,12 +246,6 @@ export default {
this.$router.push('/index') this.$router.push('/index')
this.$bus.emit('goLogin') this.$bus.emit('goLogin')
this.$store.commit('layout/setMenu', res.data.auth) this.$store.commit('layout/setMenu', res.data.auth)
// TODO 上传登录日志
// 注册
// await this.systemInfoRegister()
// 日志采集
this.sendLog()
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
...@@ -456,6 +459,7 @@ export default { ...@@ -456,6 +459,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog() { sendLog() {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -298,6 +298,7 @@ export default { ...@@ -298,6 +298,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -237,6 +237,7 @@ export default { ...@@ -237,6 +237,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -234,6 +234,7 @@ export default { ...@@ -234,6 +234,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -1252,6 +1252,7 @@ export default { ...@@ -1252,6 +1252,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -512,6 +512,7 @@ export default { ...@@ -512,6 +512,7 @@ export default {
* @return {*} * @return {*}
*/ */
sendLog (str) { sendLog (str) {
if (localStorage.getItem('sbrzFlag') === 'false') return
// xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称] // xxx在xxx时间[操作类型][操作对象类型]:[操作对象名称]
// 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务 // 例:张三在2021-02-04 12:12:50审批任务:李四角色申请任务
// 查询规范 // 查询规范
......
...@@ -106,7 +106,7 @@ module.exports = { ...@@ -106,7 +106,7 @@ module.exports = {
// target: "http://172.18.108.98:8099/", // 张 认定 // target: "http://172.18.108.98:8099/", // 张 认定
// target: "http://192.168.128.102:8090", // 北京 王 // target: "http://192.168.128.102:8090", // 北京 王
// target: "http://172.18.118.53:8099", // 北京 // target: "http://172.18.118.53:8099", // 北京
target: "http://172.18.118.53:11099", // 北京 target: "http://172.18.108.229:8099", // 北京
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
...@@ -124,8 +124,8 @@ module.exports = { ...@@ -124,8 +124,8 @@ module.exports = {
// target: "http://192.168.0.107:8765", // 西藏 张 // target: "http://192.168.0.107:8765", // 西藏 张
// target: "http://172.18.108.98:8765/", // 张 认定 // target: "http://172.18.108.98:8765/", // 张 认定
// target: "http://192.168.128.102:8765", // 北京 王 // target: "http://192.168.128.102:8765", // 北京 王
target: "http://172.18.118.53:8765", // 北京 // target: "http://172.18.118.53:8765", // 北京
// target: "http://172.18.118.53:11099", // 北京 target: "http://172.18.108.229:8765", // 北京
// target: "http://172.18.110.145:8765", // 马 // target: "http://172.18.110.145:8765", // 马
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment