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