Commit 7c289665 by li_hongchao

组织结构解析

parent fff8ef89
......@@ -58,28 +58,24 @@ let parseStr = function (keyArrs, content) {
PrintLog('解析内容', content, _TAG)
let arrs = []
let temp = content
let tempArr
let index
keyArrs.forEach(item => {
let item
for (let i = 0; i < keyArrs.length; i++) {
if (!temp || temp === '') {
if (arrs.length === 0) {
arrs.push(content)
}
PrintLog('解析结果', arrs, _TAG)
return arrs
break
}
index = temp.indexOf(item)
item = keyArrs[i]
let index = temp.indexOf(item)
if (index > 0) {
tempArr = temp.split(item)
let tempArr = temp.split(item)
if (tempArr && tempArr.length === 2) {
if (tempArr[0]) {
arrs.push(tempArr[0] + item)
}
temp = tempArr[1]
index = -1
}
}
})
}
if (arrs.length === 0) {
arrs.push(content)
}
......
......@@ -432,7 +432,7 @@ export default {
_that.initTableColumns()
// _that.initTestData()
_that.getData()
_that.getLable("你好。。。")
ZzjgUtil.lastZzjg('你好。。。')
},
computed: {
roleArr() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment