This commit is contained in:
邓晓坤
2019-09-25 15:01:33 +08:00
parent 0e2dbf4cfc
commit 70ac9ba250
2 changed files with 3 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ service.interceptors.request.use(
config.headers['token'] = window.localStorage.getItem('token') config.headers['token'] = window.localStorage.getItem('token')
// config.headers['token'] = `507e5ff426364e95b22cd4c1e22f427f` // config.headers['token'] = `507e5ff426364e95b22cd4c1e22f427f`
return config // return config
}, },
error => { error => {
// Do something with request error // Do something with request error

View File

@@ -115,20 +115,15 @@ export default {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
} }
}) })
this.relationToAppnt = `1`
this.information()
}, },
methods: { methods: {
// 一键全否 // 一键全否
allFalse() { allFalse() {
let that = this let that = this
// alert('1')impartDTOS
that.impartDTOS.map(it => { that.impartDTOS.map(it => {
it.impartItemDTOS.map(itm => { it.impartItemDTOS.map(itm => {
itm.impartAnswer = '1' itm.impartAnswer = '1'
// console.log(itm.impartAnswer)
// console.log(itm.show)
}) })
}) })
}, },
@@ -140,17 +135,14 @@ export default {
that.impartDTOS.map(it => { that.impartDTOS.map(it => {
it.impartItemDTOS.map(itm => { it.impartItemDTOS.map(itm => {
if (item == itm.extra2) { if (item == itm.extra2) {
// itm.isTrue = val
itm.show = true itm.show = true
} }
}) })
}) })
// that.impartItemDTOS[item].show = true
} else { } else {
that.impartDTOS.map(it => { that.impartDTOS.map(it => {
it.impartItemDTOS.map(itm => { it.impartItemDTOS.map(itm => {
if (item == itm.extra2) { if (item == itm.extra2) {
// itm.isTrue = val
itm.show = false itm.show = false
} }
}) })
@@ -167,14 +159,11 @@ export default {
type: '2' type: '2'
} }
information(data).then(res => { information(data).then(res => {
// console.log(res)
if (res.result == '0') { if (res.result == '0') {
res.productImpartLstDTO.impartDTOS.map(item => { 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') { if (im.questions.length == '0') {
let obj = { let obj = {
answer: '' answer: ''