style:关闭部分consoleLog

This commit is contained in:
xiongchengqiang 2020-05-21 14:50:22 +08:00
parent 9adc1a40bf
commit 3342aac042
9 changed files with 1 additions and 16 deletions

View File

@ -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' })
} }

View File

@ -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)
} }
} }
} }

View File

@ -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)

View File

@ -40,7 +40,6 @@ export default {
beforeMount () { }, beforeMount () { },
mounted () { mounted () {
setTimeout(() => { setTimeout(() => {
console.log('dataInfo22: ', this.dataInfo)
}, 1000) }, 1000)
}, },
methods: {}, methods: {},

View File

@ -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: {}

View File

@ -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: {}

View File

@ -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 {

View File

@ -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)

View File

@ -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)