修改禅道已知bug
This commit is contained in:
@@ -658,7 +658,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
console.log(item)
|
|
||||||
if (item.isLock == '1') {
|
if (item.isLock == '1') {
|
||||||
this.$refs.uploadFile.disabled = true
|
this.$refs.uploadFile.disabled = true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -443,7 +443,36 @@
|
|||||||
// todo
|
// todo
|
||||||
getAction(this.url.tableList, params).then((res) => {
|
getAction(this.url.tableList, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataSource = res.result
|
let tt = []
|
||||||
|
if (this.currentPersonRole !== 'dre') {
|
||||||
|
res.result.forEach((Obj) => {
|
||||||
|
Object.keys(Obj).forEach((item) => {
|
||||||
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
|
Obj[item].list.forEach((itemLi) => {
|
||||||
|
itemLi.isLock = 1
|
||||||
|
if (itemLi.type === 'pull_more') {
|
||||||
|
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
tt.push(Obj)
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
res.result.forEach((Obj) => {
|
||||||
|
Object.keys(Obj).forEach((item) => {
|
||||||
|
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
|
||||||
|
Obj[item].list.forEach((itemLi) => {
|
||||||
|
if (itemLi.type === 'pull_more') {
|
||||||
|
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
tt.push(Obj)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.dataSource = tt
|
||||||
this.total = res.result.total
|
this.total = res.result.total
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user