代码更新
This commit is contained in:
@@ -1,18 +1,3 @@
|
|||||||
/*
|
|
||||||
* Copyright 2019-2020 Zheng Jie
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
package org.nl.modules.system.service.impl;
|
package org.nl.modules.system.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function login(username, password, code, uuid) {
|
export function login(username, password, code, uuid) {
|
||||||
// debugger
|
|
||||||
return request({
|
return request({
|
||||||
url: 'auth/login',
|
url: 'auth/login',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -15,7 +14,6 @@ export function login(username, password, code, uuid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getInfo() {
|
export function getInfo() {
|
||||||
debugger
|
|
||||||
return request({
|
return request({
|
||||||
url: 'auth/info',
|
url: 'auth/info',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ export const loadMenus = (next, to) => {
|
|||||||
const sdata = JSON.parse(JSON.stringify(res))
|
const sdata = JSON.parse(JSON.stringify(res))
|
||||||
const rdata = JSON.parse(JSON.stringify(res))
|
const rdata = JSON.parse(JSON.stringify(res))
|
||||||
const sidebarRoutes = filterAsyncRouter(sdata)
|
const sidebarRoutes = filterAsyncRouter(sdata)
|
||||||
debugger
|
|
||||||
const rewriteRoutes = filterAsyncRouter(rdata, false, true)
|
const rewriteRoutes = filterAsyncRouter(rdata, false, true)
|
||||||
rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true })
|
rewriteRoutes.push({ path: '*', redirect: '/404', hidden: true })
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ const user = {
|
|||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
GetInfo({ commit }) {
|
GetInfo({ commit }) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
debugger
|
|
||||||
getInfo().then(res => {
|
getInfo().then(res => {
|
||||||
console.log('用户信息:', res)
|
console.log('用户信息:', res)
|
||||||
setUserInfo(res, commit)
|
setUserInfo(res, commit)
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ export default function checkPermission(value) { // 权限判断
|
|||||||
if (value && value instanceof Array && value.length > 0) {
|
if (value && value instanceof Array && value.length > 0) {
|
||||||
const roles = store.getters && store.getters.roles
|
const roles = store.getters && store.getters.roles
|
||||||
const permissionRoles = value
|
const permissionRoles = value
|
||||||
// debugger
|
|
||||||
const hasPermission = roles.some(role => {
|
const hasPermission = roles.some(role => {
|
||||||
return permissionRoles.includes(role)
|
return permissionRoles.includes(role)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ service.interceptors.response.use(
|
|||||||
console.log(code)
|
console.log(code)
|
||||||
if (code) {
|
if (code) {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
// debugger
|
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
// 用户登录界面提示
|
// 用户登录界面提示
|
||||||
Cookies.set('point', 401)
|
Cookies.set('point', 401)
|
||||||
|
|||||||
@@ -410,7 +410,6 @@ export default {
|
|||||||
logOperation.getLogData(queryParam).then(res => {
|
logOperation.getLogData(queryParam).then(res => {
|
||||||
console.log('res', res)
|
console.log('res', res)
|
||||||
this.showEmpty = false
|
this.showEmpty = false
|
||||||
debugger
|
|
||||||
if (res.data.result.length === 1) {
|
if (res.data.result.length === 1) {
|
||||||
this.logs = res.data.result[0].values
|
this.logs = res.data.result[0].values
|
||||||
for (const i in res.data.result[0].values) { // 格式转换
|
for (const i in res.data.result[0].values) { // 格式转换
|
||||||
|
|||||||
@@ -193,7 +193,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.showChoice = false
|
this.showChoice = false
|
||||||
}
|
}
|
||||||
// debugger
|
|
||||||
properties = { ...properties, ...node.properties }
|
properties = { ...properties, ...node.properties }
|
||||||
})
|
})
|
||||||
edges.forEach(edge => {
|
edges.forEach(edge => {
|
||||||
@@ -203,7 +202,6 @@ export default {
|
|||||||
return properties
|
return properties
|
||||||
},
|
},
|
||||||
$_dragInNode(type) {
|
$_dragInNode(type) {
|
||||||
// debugger
|
|
||||||
this.lf.dnd.startDrag({ // 拖拽创建结点
|
this.lf.dnd.startDrag({ // 拖拽创建结点
|
||||||
type
|
type
|
||||||
})
|
})
|
||||||
@@ -240,8 +238,6 @@ export default {
|
|||||||
lf.render(data)
|
lf.render(data)
|
||||||
},
|
},
|
||||||
$_saveGraph() { // 保存数据
|
$_saveGraph() { // 保存数据
|
||||||
// debugger
|
|
||||||
// console.log(this.defaultForm)
|
|
||||||
if (this.defaultForm.stage_code === null) {
|
if (this.defaultForm.stage_code === null) {
|
||||||
this.$message.error('请选择舞台!')
|
this.$message.error('请选择舞台!')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 新增与编辑前做的操作
|
// 新增与编辑前做的操作
|
||||||
[CRUD.HOOK.afterToCU](crud, form) {
|
[CRUD.HOOK.afterToCU](crud, form) {
|
||||||
|
debugger
|
||||||
this.menus = []
|
this.menus = []
|
||||||
if (form.menu_id != null) {
|
if (form.menu_id != null) {
|
||||||
if (form.pid === null) {
|
if (form.pid === null) {
|
||||||
|
|||||||
@@ -176,7 +176,6 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getMenuDatas(node, resolve) {
|
getMenuDatas(node, resolve) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
debugger
|
|
||||||
getMenusTree(node.data.menu_id ? node.data.menu_id : 0).then(res => {
|
getMenusTree(node.data.menu_id ? node.data.menu_id : 0).then(res => {
|
||||||
resolve(res)
|
resolve(res)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -387,7 +387,6 @@ export default {
|
|||||||
}
|
}
|
||||||
const dafult = this.$el.getElementsByClassName('dafult')
|
const dafult = this.$el.getElementsByClassName('dafult')
|
||||||
for (let a = 0; a < dafult.length; a++) {
|
for (let a = 0; a < dafult.length; a++) {
|
||||||
debugger
|
|
||||||
dafult[a].click()
|
dafult[a].click()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
debugger
|
|
||||||
this.query.region_id = this.openParam
|
this.query.region_id = this.openParam
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
open() {
|
open() {
|
||||||
debugger
|
|
||||||
this.query.region_id = this.openParam
|
this.query.region_id = this.openParam
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -529,7 +529,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toView(row) {
|
toView(row) {
|
||||||
debugger
|
|
||||||
if (row) {
|
if (row) {
|
||||||
this.$refs.viewDialog.setParentData(row)
|
this.$refs.viewDialog.setParentData(row)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user