mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 07:36:44 +08:00
gz
This commit is contained in:
@@ -33,7 +33,7 @@ service.interceptors.request.use(
|
||||
|
||||
config.headers['token'] = window.localStorage.getItem('token')
|
||||
// config.headers['token'] = `507e5ff426364e95b22cd4c1e22f427f`
|
||||
return config
|
||||
// return config
|
||||
},
|
||||
error => {
|
||||
// Do something with request error
|
||||
|
||||
@@ -115,20 +115,15 @@ export default {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
this.relationToAppnt = `1`
|
||||
this.information()
|
||||
},
|
||||
methods: {
|
||||
// 一键全否
|
||||
allFalse() {
|
||||
let that = this
|
||||
|
||||
// alert('1')impartDTOS
|
||||
that.impartDTOS.map(it => {
|
||||
it.impartItemDTOS.map(itm => {
|
||||
itm.impartAnswer = '1'
|
||||
// console.log(itm.impartAnswer)
|
||||
// console.log(itm.show)
|
||||
})
|
||||
})
|
||||
},
|
||||
@@ -140,17 +135,14 @@ export default {
|
||||
that.impartDTOS.map(it => {
|
||||
it.impartItemDTOS.map(itm => {
|
||||
if (item == itm.extra2) {
|
||||
// itm.isTrue = val
|
||||
itm.show = true
|
||||
}
|
||||
})
|
||||
})
|
||||
// that.impartItemDTOS[item].show = true
|
||||
} else {
|
||||
that.impartDTOS.map(it => {
|
||||
it.impartItemDTOS.map(itm => {
|
||||
if (item == itm.extra2) {
|
||||
// itm.isTrue = val
|
||||
itm.show = false
|
||||
}
|
||||
})
|
||||
@@ -167,14 +159,11 @@ export default {
|
||||
type: '2'
|
||||
}
|
||||
information(data).then(res => {
|
||||
// console.log(res)
|
||||
if (res.result == '0') {
|
||||
res.productImpartLstDTO.impartDTOS.map(item => {
|
||||
// that.impartItemDTOS = item.impartItemDTOS
|
||||
item.impartItemDTOS.map(im => {
|
||||
// debugger
|
||||
im.impartAnswer = ''
|
||||
|
||||
item.impartItemDTOS.map(im => {
|
||||
im.impartAnswer = ''
|
||||
if (im.questions.length == '0') {
|
||||
let obj = {
|
||||
answer: ''
|
||||
|
||||
Reference in New Issue
Block a user