优化
This commit is contained in:
parent
926fa4e1df
commit
b67b061274
@ -57,7 +57,7 @@ service.interceptors.response.use(res => {
|
||||
if (res.config.responseType === 'blob') {
|
||||
return res
|
||||
}
|
||||
return res.data.data
|
||||
return res.data
|
||||
}
|
||||
},
|
||||
error => {
|
||||
|
||||
@ -168,8 +168,8 @@ export default {
|
||||
},
|
||||
async handleGetData (parmas = this.params) {
|
||||
try {
|
||||
const res = await apiGetAssessList(parmas)
|
||||
console.log('res: ', res)
|
||||
let res = await apiGetAssessList(parmas)
|
||||
res = res.data
|
||||
this.tableData = res.list
|
||||
this.params.totalCount = res.totalCount
|
||||
this.params.currPage = res.currPage
|
||||
|
||||
@ -265,7 +265,8 @@ export default {
|
||||
pageSize: 999
|
||||
}
|
||||
try {
|
||||
const res = await getStartsData(params)
|
||||
let res = await getStartsData(params)
|
||||
res = res.data
|
||||
handleNode(res)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
|
||||
@ -194,6 +194,7 @@ export default {
|
||||
async handleGetByIdForBasis (id) {
|
||||
try {
|
||||
let res = await getByIdForBasis({id})
|
||||
res = res.data
|
||||
console.log('res: ', res)
|
||||
this.GroundList1 = res.managers.map(i => {
|
||||
i.staffId = i.id
|
||||
@ -221,6 +222,7 @@ export default {
|
||||
async handleGetGround () {
|
||||
try {
|
||||
let res = await getGround({groupId: 1})
|
||||
res = res.data
|
||||
res = res.map(i => {
|
||||
i.isDisable = i.isSelect
|
||||
return i
|
||||
|
||||
@ -107,11 +107,11 @@ export default {
|
||||
// 获取流程大节点
|
||||
async handleGetByFlowManagerId (groupId = 0) {
|
||||
try {
|
||||
const res = await getByFlowManagerId({
|
||||
let res = await getByFlowManagerId({
|
||||
id: 1,
|
||||
groupId
|
||||
})
|
||||
|
||||
res = res.data
|
||||
this.processLsit = res
|
||||
this.processLsitCopy.map(i => {
|
||||
this.info[i.componment + 'Info'] = this.processLsit.filter(j => j.name === i.name)[0]
|
||||
|
||||
@ -75,6 +75,7 @@ export default {
|
||||
this.loadings = true
|
||||
try {
|
||||
let res = await saveBaseSet(this.basisForm)
|
||||
res = res.data
|
||||
this.basisForm = res
|
||||
this.templateForm.evaluationGroupId = res.id
|
||||
for (let i in this.processInfo) {
|
||||
@ -93,6 +94,7 @@ export default {
|
||||
console.log('this.templateForm: ', JSON.stringify(this.templateForm))
|
||||
try {
|
||||
let res = await saveTemSet(this.templateForm)
|
||||
res = res.data
|
||||
// this.basisForm = res
|
||||
console.log('res: ', res)
|
||||
} catch (error) {
|
||||
|
||||
@ -102,7 +102,8 @@ export default {
|
||||
},
|
||||
async handleGetData () {
|
||||
try {
|
||||
const res = await getWorkList(Object.assign({}, this.params))
|
||||
let res = await getWorkList(Object.assign({}, this.params))
|
||||
res = res.data
|
||||
console.log('res: ', res)
|
||||
this.tableData = res.list
|
||||
this.params.totalCount = res.totalCount
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user