mirror of
https://github.com/shawncai/ERP.git
synced 2024-12-29 11:33:05 +08:00
work
build | ||
config | ||
src | ||
static | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.postcssrc.js | ||
.travis.yml | ||
favicon.ico | ||
index.html | ||
LICENSE | ||
package.json | ||
README.md |
ERP
work for nwow
ERP project
2019/2/12 add topmenu
2019/2/25 遇到的一些问题以及解决方案
tagsview的页面关闭操作
const view = {
path: '/EmployeeInformation/NewEmployeeInformation',
name: 'NewEmployeeInformation',
fullPath: '/EmployeeInformation/NewEmployeeInformation',
title: 'NewEmployeeInformation'
}
this.$store.dispatch('delView', view).then(({ visitedViews }) => {})
拼接json 方法
var resultJsonObject = {}
for (const attr in jsonbject1) {
resultJsonObject[attr] = jsonbject1[attr]
}
for (const attr in jsonbject2) {
resultJsonObject[attr] = jsonbject2[attr]
}
return resultJsonObject}
2019/2/26 遇到的一些问题以及解决方案
axios 向后端发送请求数据时如果为空或者underfined时判断一下
var params = new URLSearchParams()
// 判断是否为空值
if (query.jobnumber !== '') {
params.append('jobnumber', query.jobnumber) // 你要传给后台的参数值 key/value
}
return request({
url: 'xxxx',
method: 'post',
data: params
})
}
2019/2/26
用map取用数组中的莫一项并且把这一项变成字符串组
ids = [{id: 2, name: xxx},{id: 3, name: xxx}, {id: 4, name: xxx}, {id: 5, name: xxx}]
const ids = this.moreaction.map(item => item.id).join()
ids = 2, 3, 4, 5, 6
导出功能中名字拼接还有点问题待解决!!!!!
2019/2/28
select 回显问题
this.employeeName = String( row.empName)
this.contractNumber =String(row.contractNumber)
// 需要把Number类型的数据转化成String类型,这样回显才没问题