style:关闭部分consoleLog
This commit is contained in:
parent
9adc1a40bf
commit
3342aac042
@ -15,7 +15,6 @@ export const apiEmployeesList = params => {
|
|||||||
|
|
||||||
// 员工档案
|
// 员工档案
|
||||||
export const apiEmployeesInfo = data => {
|
export const apiEmployeesInfo = data => {
|
||||||
console.log('data: ', data)
|
|
||||||
return http({ url: '/lz_management/staff/info/query/' + data, method: 'post' })
|
return http({ url: '/lz_management/staff/info/query/' + data, method: 'post' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,6 @@ export default {
|
|||||||
// 通过menuId与动态(菜单)路由进行匹配跳转至指定路由
|
// 通过menuId与动态(菜单)路由进行匹配跳转至指定路由
|
||||||
handleGoRoute (menu) {
|
handleGoRoute (menu) {
|
||||||
// this.$router.push({name: 'staff', query: {id: menu.id}})
|
// this.$router.push({name: 'staff', query: {id: menu.id}})
|
||||||
console.log(menu)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -229,7 +229,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 弹窗相关
|
// 弹窗相关
|
||||||
handleClick (tab, event) {
|
handleClick (tab, event) {
|
||||||
console.log(tab, event)
|
|
||||||
},
|
},
|
||||||
async handleView (data) {
|
async handleView (data) {
|
||||||
await this.getEmployeesInfo(data.staffId)
|
await this.getEmployeesInfo(data.staffId)
|
||||||
|
|||||||
@ -40,7 +40,6 @@ export default {
|
|||||||
beforeMount () { },
|
beforeMount () { },
|
||||||
mounted () {
|
mounted () {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log('dataInfo22: ', this.dataInfo)
|
|
||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
|
|||||||
@ -113,7 +113,6 @@ export default {
|
|||||||
// 获取侧边架构列表
|
// 获取侧边架构列表
|
||||||
async handleGetMenuList () {
|
async handleGetMenuList () {
|
||||||
let result = await apiOrganizationList()
|
let result = await apiOrganizationList()
|
||||||
console.log('result: ', result)
|
|
||||||
this.menuList = result
|
this.menuList = result
|
||||||
},
|
},
|
||||||
onSubmit () {
|
onSubmit () {
|
||||||
@ -136,7 +135,6 @@ export default {
|
|||||||
departmentId: a.departmentId,
|
departmentId: a.departmentId,
|
||||||
departmentName: a.departmentName
|
departmentName: a.departmentName
|
||||||
}
|
}
|
||||||
console.log('a: ', a)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {}
|
watch: {}
|
||||||
|
|||||||
@ -61,7 +61,6 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loading.close()
|
loading.close()
|
||||||
}, 500)
|
}, 500)
|
||||||
console.log('result: ', result)
|
|
||||||
if (result.code === 0) {
|
if (result.code === 0) {
|
||||||
this.dataInfo = result.data
|
this.dataInfo = result.data
|
||||||
} else {
|
} else {
|
||||||
@ -74,7 +73,6 @@ export default {
|
|||||||
},
|
},
|
||||||
submit (data) {
|
submit (data) {
|
||||||
this.handleGetEmployeessItuation(data)
|
this.handleGetEmployeessItuation(data)
|
||||||
console.log('data', data)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {}
|
watch: {}
|
||||||
|
|||||||
@ -136,8 +136,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let validatNumber = (rule, value, callback) => {
|
let validatNumber = (rule, value, callback) => {
|
||||||
console.log('value: ', value)
|
|
||||||
console.log('rule: ', rule)
|
|
||||||
if (!/^[1-9]\d*$/.test(value)) {
|
if (!/^[1-9]\d*$/.test(value)) {
|
||||||
callback(new Error('只能输入正整数'))
|
callback(new Error('只能输入正整数'))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -134,7 +134,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增 / 编辑
|
// 新增 / 编辑
|
||||||
handleAddOrUpdate (id) {
|
handleAddOrUpdate (id) {
|
||||||
console.log('id: ', id)
|
|
||||||
this.addOrUpdateVisible = true
|
this.addOrUpdateVisible = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.addOrUpdate.init(id)
|
this.$refs.addOrUpdate.init(id)
|
||||||
|
|||||||
@ -73,7 +73,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
console.log('Xcq')
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async init (id) {
|
async init (id) {
|
||||||
@ -84,7 +83,6 @@ export default {
|
|||||||
this.handleEdit()
|
this.handleEdit()
|
||||||
this.apiType = '/update'
|
this.apiType = '/update'
|
||||||
} else {
|
} else {
|
||||||
console.log('this.dataForm : ', this.dataForm)
|
|
||||||
this.apiType = '/save'
|
this.apiType = '/save'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -102,9 +100,7 @@ export default {
|
|||||||
handleEdit () {
|
handleEdit () {
|
||||||
apiSysRoleInfo({}, `/${this.dataForm.id}`).then(res => {
|
apiSysRoleInfo({}, `/${this.dataForm.id}`).then(res => {
|
||||||
if (res && res.code === 0) {
|
if (res && res.code === 0) {
|
||||||
this.dataForm = Object.assign({}, this.dataForm, res.role, { xcq: 1 })
|
this.dataForm = Object.assign({}, this.dataForm, res.role)
|
||||||
console.log('res.role: ', res.role)
|
|
||||||
console.log('this.dataForm: ', this.dataForm)
|
|
||||||
var idx = res.role.menuIdList.indexOf(this.tempKey)
|
var idx = res.role.menuIdList.indexOf(this.tempKey)
|
||||||
if (idx !== -1) {
|
if (idx !== -1) {
|
||||||
res.role.menuIdList.splice(idx, res.role.menuIdList.length - idx)
|
res.role.menuIdList.splice(idx, res.role.menuIdList.length - idx)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user