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') { if (res.config.responseType === 'blob') {
return res return res
} }
return res.data.data return res.data
} }
}, },
error => { error => {

View File

@ -168,8 +168,8 @@ export default {
}, },
async handleGetData (parmas = this.params) { async handleGetData (parmas = this.params) {
try { try {
const res = await apiGetAssessList(parmas) let res = await apiGetAssessList(parmas)
console.log('res: ', res) res = res.data
this.tableData = res.list this.tableData = res.list
this.params.totalCount = res.totalCount this.params.totalCount = res.totalCount
this.params.currPage = res.currPage this.params.currPage = res.currPage

View File

@ -265,7 +265,8 @@ export default {
pageSize: 999 pageSize: 999
} }
try { try {
const res = await getStartsData(params) let res = await getStartsData(params)
res = res.data
handleNode(res) handleNode(res)
} catch (error) { } catch (error) {
console.log(error) console.log(error)

View File

@ -194,6 +194,7 @@ export default {
async handleGetByIdForBasis (id) { async handleGetByIdForBasis (id) {
try { try {
let res = await getByIdForBasis({id}) let res = await getByIdForBasis({id})
res = res.data
console.log('res: ', res) console.log('res: ', res)
this.GroundList1 = res.managers.map(i => { this.GroundList1 = res.managers.map(i => {
i.staffId = i.id i.staffId = i.id
@ -221,6 +222,7 @@ export default {
async handleGetGround () { async handleGetGround () {
try { try {
let res = await getGround({groupId: 1}) let res = await getGround({groupId: 1})
res = res.data
res = res.map(i => { res = res.map(i => {
i.isDisable = i.isSelect i.isDisable = i.isSelect
return i return i

View File

@ -107,11 +107,11 @@ export default {
// //
async handleGetByFlowManagerId (groupId = 0) { async handleGetByFlowManagerId (groupId = 0) {
try { try {
const res = await getByFlowManagerId({ let res = await getByFlowManagerId({
id: 1, id: 1,
groupId groupId
}) })
res = res.data
this.processLsit = res this.processLsit = res
this.processLsitCopy.map(i => { this.processLsitCopy.map(i => {
this.info[i.componment + 'Info'] = this.processLsit.filter(j => j.name === i.name)[0] 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 this.loadings = true
try { try {
let res = await saveBaseSet(this.basisForm) let res = await saveBaseSet(this.basisForm)
res = res.data
this.basisForm = res this.basisForm = res
this.templateForm.evaluationGroupId = res.id this.templateForm.evaluationGroupId = res.id
for (let i in this.processInfo) { for (let i in this.processInfo) {
@ -93,6 +94,7 @@ export default {
console.log('this.templateForm: ', JSON.stringify(this.templateForm)) console.log('this.templateForm: ', JSON.stringify(this.templateForm))
try { try {
let res = await saveTemSet(this.templateForm) let res = await saveTemSet(this.templateForm)
res = res.data
// this.basisForm = res // this.basisForm = res
console.log('res: ', res) console.log('res: ', res)
} catch (error) { } catch (error) {

View File

@ -102,7 +102,8 @@ export default {
}, },
async handleGetData () { async handleGetData () {
try { try {
const res = await getWorkList(Object.assign({}, this.params)) let res = await getWorkList(Object.assign({}, this.params))
res = res.data
console.log('res: ', res) console.log('res: ', res)
this.tableData = res.list this.tableData = res.list
this.params.totalCount = res.totalCount this.params.totalCount = res.totalCount