This commit is contained in:
熊成强 2020-10-27 15:17:07 +08:00
parent 926fa4e1df
commit b67b061274
7 changed files with 13 additions and 7 deletions

View File

@ -57,7 +57,7 @@ service.interceptors.response.use(res => {
if (res.config.responseType === 'blob') {
return res
}
return res.data.data
return res.data
}
},
error => {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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