|
@@ -72,7 +72,6 @@
|
|
|
:columns="columns2"
|
|
|
:data="editData.lists"
|
|
|
@on-selection-change="selChage"
|
|
|
- @on-select-cancel="selCancel"
|
|
|
:summary-method="handleSummary"
|
|
|
show-summary
|
|
|
></Table>
|
|
@@ -121,6 +120,9 @@ export default {
|
|
|
const resList = []
|
|
|
this.resArr1 = []
|
|
|
this.resArr2 = []
|
|
|
+ this.resArr3 = []
|
|
|
+ this.resArr4 = []
|
|
|
+ this.resArr5 = []
|
|
|
res.data.lists.forEach(v => {
|
|
|
if (v.id == 1) {
|
|
|
v._checked = true
|
|
@@ -132,6 +134,12 @@ export default {
|
|
|
this.resArr1.push(v)
|
|
|
} else if (v.id == 4 || v.id == 19) {
|
|
|
this.resArr2.push(v)
|
|
|
+ } else if (v.id == 20 || v.id == 23) {
|
|
|
+ this.resArr3.push(v)
|
|
|
+ } else if (v.id == 13 || v.id == 21) {
|
|
|
+ this.resArr4.push(v)
|
|
|
+ } else if (v.id == 14 || v.id == 22) {
|
|
|
+ this.resArr5.push(v)
|
|
|
} else {
|
|
|
resList.push(v)
|
|
|
}
|
|
@@ -141,6 +149,22 @@ export default {
|
|
|
if (atrs.indexOf(String(v.id)) > -1) {
|
|
|
resList.splice(1, 0, v)
|
|
|
}
|
|
|
+ } else if (v.id == 4 || v.id == 19) {
|
|
|
+ if (atrs.indexOf(String(v.id)) > -1) {
|
|
|
+ resList.splice(3, 0, v)
|
|
|
+ }
|
|
|
+ } else if (v.id == 20 || v.id == 23) {
|
|
|
+ if (atrs.indexOf(String(v.id)) > -1) {
|
|
|
+ resList.splice(13, 0, v)
|
|
|
+ }
|
|
|
+ } else if (v.id == 13 || v.id == 21) {
|
|
|
+ if (atrs.indexOf(String(v.id)) > -1) {
|
|
|
+ resList.splice(14, 0, v)
|
|
|
+ }
|
|
|
+ } else if (v.id == 14 || v.id == 22) {
|
|
|
+ if (atrs.indexOf(String(v.id)) > -1) {
|
|
|
+ resList.splice(15, 0, v)
|
|
|
+ }
|
|
|
} else {
|
|
|
resList.push(v)
|
|
|
}
|
|
@@ -183,9 +207,48 @@ export default {
|
|
|
s_pkcount: null,
|
|
|
_checked: false
|
|
|
}
|
|
|
+ let arr3 = {
|
|
|
+ i_ispackage: 0,
|
|
|
+ i_isserver: 1,
|
|
|
+ i_pkprice: null,
|
|
|
+ i_price_month: null,
|
|
|
+ i_price_year: null,
|
|
|
+ s_count_year: null,
|
|
|
+ id: 9121,
|
|
|
+ s_name: '',
|
|
|
+ s_pkcount: null,
|
|
|
+ _checked: false
|
|
|
+ }
|
|
|
+ let arr4 = {
|
|
|
+ i_ispackage: 0,
|
|
|
+ i_isserver: 1,
|
|
|
+ i_pkprice: null,
|
|
|
+ i_price_month: null,
|
|
|
+ i_price_year: null,
|
|
|
+ s_count_year: null,
|
|
|
+ id: 9122,
|
|
|
+ s_name: '',
|
|
|
+ s_pkcount: null,
|
|
|
+ _checked: false
|
|
|
+ }
|
|
|
+ let arr5 = {
|
|
|
+ i_ispackage: 0,
|
|
|
+ i_isserver: 1,
|
|
|
+ i_pkprice: null,
|
|
|
+ i_price_month: null,
|
|
|
+ i_price_year: null,
|
|
|
+ s_count_year: null,
|
|
|
+ id: 9123,
|
|
|
+ s_name: '',
|
|
|
+ s_pkcount: null,
|
|
|
+ _checked: false
|
|
|
+ }
|
|
|
if (bool == '1') {
|
|
|
resList.splice(1, 0, arr1)
|
|
|
- resList.splice(3, 0, arr2)
|
|
|
+ resList.splice(12, 0, arr2)
|
|
|
+ resList.splice(13, 0, arr3)
|
|
|
+ resList.splice(14, 0, arr4)
|
|
|
+ resList.splice(15, 0, arr5)
|
|
|
}
|
|
|
this.editData = {
|
|
|
lists: resList,
|
|
@@ -218,8 +281,17 @@ export default {
|
|
|
this.sumSel = []
|
|
|
this.strItems1 = []
|
|
|
this.strItems2 = []
|
|
|
+ this.strItems3 = []
|
|
|
+ this.strItems4 = []
|
|
|
+ this.strItems5 = []
|
|
|
this.selData = []
|
|
|
this.selData1 = []
|
|
|
+ this.optionDis1 = false
|
|
|
+ this.optionDis2 = false
|
|
|
+ this.optionDis3 = false
|
|
|
+ this.optionDis4 = false
|
|
|
+ this.optionDis5 = false
|
|
|
+ this.optionDis6 = false
|
|
|
setTimeout(() => {
|
|
|
this.editData = []
|
|
|
},200)
|
|
@@ -231,45 +303,31 @@ export default {
|
|
|
},
|
|
|
// 多选
|
|
|
selChage(selection) {
|
|
|
- let arrs = [], arrs1 = [], arrs2 = []
|
|
|
+ let arrs = [], arrs1 = [], strItems = []
|
|
|
this.selData = selection
|
|
|
selection.map(v => {
|
|
|
arrs1.push(v.id)
|
|
|
- if (v.id !== 9119 && v.id !== 9120) {
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
arrs.push(v)
|
|
|
}
|
|
|
+ if (v.id == 9119) {
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
+ } else if (v.id == 9120) {
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
+ } else if (v.id == 9121) {
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
+ } else if (v.id == 9122) {
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
+ } else if (v.id == 9123) {
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
- // arrs2.push(this.strItems1)
|
|
|
- // console.log(arrs2)
|
|
|
- if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1) {
|
|
|
- this.sumSel = arrs.concat(this.strItems1)
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
} else {
|
|
|
this.sumSel = arrs
|
|
|
}
|
|
|
- // console.log(this.selData)
|
|
|
- // console.log(this.sumSel)
|
|
|
- },
|
|
|
- // 取消选择
|
|
|
- selCancel(selection, row) {
|
|
|
- console.log(row)
|
|
|
- let arr1 = this.strItems1
|
|
|
- this.strItems1 = []
|
|
|
- if (row.id == 9119) {
|
|
|
- arr1.forEach(t => {
|
|
|
- if (t.id !== 17 && t.id !== 18) {
|
|
|
- this.strItems1.push(t)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- if (row.id == 9120) {
|
|
|
- arr1.forEach(t => {
|
|
|
- if (t.id !== 4 && t.id !== 19) {
|
|
|
- this.strItems1.push(t)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- console.log(this.strItems1)
|
|
|
},
|
|
|
// 合计
|
|
|
handleSummary ({ columns }) {
|
|
@@ -356,6 +414,7 @@ export default {
|
|
|
resArr2: [],
|
|
|
resArr3: [],
|
|
|
resArr4: [],
|
|
|
+ resArr5: [],
|
|
|
selData: [],
|
|
|
selData1: [],
|
|
|
filter: {
|
|
@@ -404,6 +463,17 @@ export default {
|
|
|
selStr: '',
|
|
|
strItems1: [],
|
|
|
strItems2: [],
|
|
|
+ strItems3: [],
|
|
|
+ strItems4: [],
|
|
|
+ strItems5: [],
|
|
|
+ value1: '',
|
|
|
+ value2: '',
|
|
|
+ optionDis1: false,
|
|
|
+ optionDis2: false,
|
|
|
+ optionDis3: false,
|
|
|
+ optionDis4: false,
|
|
|
+ optionDis5: false,
|
|
|
+ optionDis6: false,
|
|
|
columns2: [
|
|
|
{
|
|
|
type: 'selection',
|
|
@@ -429,26 +499,37 @@ export default {
|
|
|
row.i_price_month = JSON.parse(val).i_price_month
|
|
|
},
|
|
|
'on-select': val => {
|
|
|
- this.strItems1.push(JSON.parse(val.value))
|
|
|
- // const arrs = [], arrs1 = []
|
|
|
- // this.editData.lists.forEach(s => {
|
|
|
- // if (this.selData.length == 0) {
|
|
|
- // if (s.id == 1) {
|
|
|
- // this.selData.push(s)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // this.selData.map(v => {
|
|
|
- // arrs1.push(v.id)
|
|
|
- // if (v.id !== 9119 && v.id !== 9120) {
|
|
|
- // arrs.push(v)
|
|
|
- // }
|
|
|
- // })
|
|
|
- // if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1) {
|
|
|
- // this.sumSel = arrs.concat(this.strItems1)
|
|
|
- // } else {
|
|
|
- // this.sumSel = arrs
|
|
|
- // }
|
|
|
+ this.strItems1 = JSON.parse(val.value)
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
+ this.editData.lists.forEach(s => {
|
|
|
+ if (this.selData.length == 0) {
|
|
|
+ if (s.id == 1) {
|
|
|
+ this.selData.push(s)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selData.map(v => {
|
|
|
+ arrs1.push(v.id)
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
+ arrs.push(v)
|
|
|
+ }
|
|
|
+ if (v.id == 9119) {
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
+ } else if (v.id == 9120) {
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
+ } else if (v.id == 9121) {
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
+ } else if (v.id == 9122) {
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
+ } else if (v.id == 9123) {
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
+ } else {
|
|
|
+ this.sumSel = arrs
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -464,44 +545,285 @@ export default {
|
|
|
return h('Select', {
|
|
|
props: {
|
|
|
placeholder: '请选择企业全景分析',
|
|
|
+ value: this.value1,
|
|
|
+ },
|
|
|
+ on: {
|
|
|
+ 'on-change': (val) => {
|
|
|
+ const ids = JSON.parse(val).id
|
|
|
+ console.log(ids)
|
|
|
+ if (ids == 4) {
|
|
|
+ this.optionDis3 = true
|
|
|
+ this.optionDis4 = false
|
|
|
+ this.optionDis5 = true
|
|
|
+ this.optionDis6 = false
|
|
|
+ } else if (ids == 19) {
|
|
|
+ this.optionDis3 = false
|
|
|
+ this.optionDis4 = true
|
|
|
+ this.optionDis5 = false
|
|
|
+ this.optionDis6 = true
|
|
|
+ }
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
+ },
|
|
|
+ 'on-select': val => {
|
|
|
+ this.strItems2 = JSON.parse(val.value)
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
+ this.editData.lists.forEach(s => {
|
|
|
+ if (this.selData.length == 0) {
|
|
|
+ if (s.id == 1) {
|
|
|
+ this.selData.push(s)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selData.map(v => {
|
|
|
+ arrs1.push(v.id)
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
+ arrs.push(v)
|
|
|
+ }
|
|
|
+ if (v.id == 9119) {
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
+ } else if (v.id == 9120) {
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
+ } else if (v.id == 9121) {
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
+ } else if (v.id == 9122) {
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
+ } else if (v.id == 9123) {
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
+ } else {
|
|
|
+ this.sumSel = arrs
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr2[1]),
|
|
|
+ disabled: this.optionDis1
|
|
|
+ }
|
|
|
+ }, this.resArr2[1].s_name),
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr2[0]),
|
|
|
+ disabled: this.optionDis2
|
|
|
+ }
|
|
|
+ }, this.resArr2[0].s_name)
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ } else if (row.id == 9121) {
|
|
|
+ return h('Select', {
|
|
|
+ props: {
|
|
|
+ ref: 'optionRef2',
|
|
|
+ placeholder: '请选择企业情报监控',
|
|
|
+ value: this.value2,
|
|
|
+ clearable: true
|
|
|
+ },
|
|
|
+ on: {
|
|
|
+ 'on-change': (val) => {
|
|
|
+ const ids = JSON.parse(val).id
|
|
|
+ console.log(ids)
|
|
|
+ if (ids == 20) {
|
|
|
+ this.optionDis1 = false
|
|
|
+ this.optionDis2 = true
|
|
|
+ this.optionDis5 = false
|
|
|
+ this.optionDis6 = true
|
|
|
+ } else if (ids == 23) {
|
|
|
+ this.optionDis1 = true
|
|
|
+ this.optionDis2 = false
|
|
|
+ this.optionDis5 = true
|
|
|
+ this.optionDis6 = false
|
|
|
+ }
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
+ },
|
|
|
+ 'on-select': val => {
|
|
|
+ console.log(this.value1)
|
|
|
+ this.strItems3 = JSON.parse(val.value)
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
+ this.editData.lists.forEach(s => {
|
|
|
+ if (this.selData.length == 0) {
|
|
|
+ if (s.id == 1) {
|
|
|
+ this.selData.push(s)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selData.map(v => {
|
|
|
+ arrs1.push(v.id)
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
+ arrs.push(v)
|
|
|
+ }
|
|
|
+ if (v.id == 9119) {
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
+ } else if (v.id == 9120) {
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
+ } else if (v.id == 9121) {
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
+ } else if (v.id == 9122) {
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
+ } else if (v.id == 9123) {
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
+ } else {
|
|
|
+ this.sumSel = arrs
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr3[0]),
|
|
|
+ disabled: this.optionDis3
|
|
|
+ }
|
|
|
+ }, this.resArr3[0].s_name),
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr3[1]),
|
|
|
+ disabled: this.optionDis4
|
|
|
+ }
|
|
|
+ }, this.resArr3[1].s_name)
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ } else if (row.id == 9122) {
|
|
|
+ return h('Select', {
|
|
|
+ props: {
|
|
|
+ placeholder: '请选择企业中标动态',
|
|
|
value: '',
|
|
|
},
|
|
|
on: {
|
|
|
'on-change': (val) => {
|
|
|
+ const ids = JSON.parse(val).id
|
|
|
+ console.log(ids)
|
|
|
+ if (ids == 21) {
|
|
|
+ this.optionDis1 = false
|
|
|
+ this.optionDis2 = true
|
|
|
+ this.optionDis3 = false
|
|
|
+ this.optionDis4 = true
|
|
|
+ } else if (ids == 20) {
|
|
|
+ this.optionDis1 = true
|
|
|
+ this.optionDis2 = false
|
|
|
+ this.optionDis3 = true
|
|
|
+ this.optionDis4 = false
|
|
|
+ }
|
|
|
row.i_price_year = JSON.parse(val).i_price_year
|
|
|
row.i_price_month = JSON.parse(val).i_price_month
|
|
|
},
|
|
|
'on-select': val => {
|
|
|
- this.strItems1.push(JSON.parse(val.value))
|
|
|
- // const arrs = [], arrs1 = []
|
|
|
- // this.editData.lists.forEach(s => {
|
|
|
- // if (this.selData.length == 0) {
|
|
|
- // if (s.id == 1) {
|
|
|
- // this.selData.push(s)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // this.selData.map(v => {
|
|
|
- // arrs1.push(v.id)
|
|
|
- // if (v.id !== 9119 && v.id !== 9120) {
|
|
|
- // arrs.push(v)
|
|
|
- // }
|
|
|
- // })
|
|
|
- // if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1) {
|
|
|
- // this.sumSel = arrs.concat(this.strItems1)
|
|
|
- // } else {
|
|
|
- // this.sumSel = arrs
|
|
|
- // }
|
|
|
+ this.strItems4 = JSON.parse(val.value)
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
+ this.editData.lists.forEach(s => {
|
|
|
+ if (this.selData.length == 0) {
|
|
|
+ if (s.id == 1) {
|
|
|
+ this.selData.push(s)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selData.map(v => {
|
|
|
+ arrs1.push(v.id)
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
+ arrs.push(v)
|
|
|
+ }
|
|
|
+ if (v.id == 9119) {
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
+ } else if (v.id == 9120) {
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
+ } else if (v.id == 9121) {
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
+ } else if (v.id == 9122) {
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
+ } else if (v.id == 9123) {
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
+ } else {
|
|
|
+ this.sumSel = arrs
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- this.resArr2.map(item => {
|
|
|
- return h('Option', {
|
|
|
- props: {
|
|
|
- value: JSON.stringify(item)
|
|
|
+ [
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr4[1]),
|
|
|
+ disabled: this.optionDis5
|
|
|
+ }
|
|
|
+ }, this.resArr4[1].s_name),
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr3[0]),
|
|
|
+ disabled: this.optionDis6
|
|
|
+ }
|
|
|
+ }, this.resArr4[0].s_name)
|
|
|
+ ]
|
|
|
+ )
|
|
|
+ } else if (row.id == 9123) {
|
|
|
+ return h('Select', {
|
|
|
+ props: {
|
|
|
+ placeholder: '请选择项目进度监控',
|
|
|
+ value: '',
|
|
|
+ },
|
|
|
+ on: {
|
|
|
+ 'on-change': (val) => {
|
|
|
+ row.i_price_year = JSON.parse(val).i_price_year
|
|
|
+ row.i_price_month = JSON.parse(val).i_price_month
|
|
|
+ },
|
|
|
+ 'on-select': val => {
|
|
|
+ this.strItems5 = JSON.parse(val.value)
|
|
|
+ const arrs = [], arrs1 = [], strItems = []
|
|
|
+ this.editData.lists.forEach(s => {
|
|
|
+ if (this.selData.length == 0) {
|
|
|
+ if (s.id == 1) {
|
|
|
+ this.selData.push(s)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selData.map(v => {
|
|
|
+ arrs1.push(v.id)
|
|
|
+ if (v.id !== 9119 && v.id !== 9120 && v.id !== 9121 && v.id !== 9122 && v.id !== 9123) {
|
|
|
+ arrs.push(v)
|
|
|
+ }
|
|
|
+ if (v.id == 9119) {
|
|
|
+ strItems.splice(1,0,this.strItems1)
|
|
|
+ } else if (v.id == 9120) {
|
|
|
+ strItems.splice(1,0,this.strItems2)
|
|
|
+ } else if (v.id == 9121) {
|
|
|
+ strItems.splice(1,0,this.strItems3)
|
|
|
+ } else if (v.id == 9122) {
|
|
|
+ strItems.splice(1,0,this.strItems4)
|
|
|
+ } else if (v.id == 9123) {
|
|
|
+ strItems.splice(1,0,this.strItems5)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (arrs1.indexOf(9119) > -1 || arrs1.indexOf(9120) > -1 || arrs1.indexOf(9121) > -1 || arrs1.indexOf(9122) > -1 || arrs1.indexOf(9123) > -1) {
|
|
|
+ this.sumSel = arrs.concat(strItems)
|
|
|
+ } else {
|
|
|
+ this.sumSel = arrs
|
|
|
+ }
|
|
|
}
|
|
|
- }, item.s_name)
|
|
|
- })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr5[1])
|
|
|
+ }
|
|
|
+ }, this.resArr5[1].s_name),
|
|
|
+ h('Option',{
|
|
|
+ props: {
|
|
|
+ value: JSON.stringify(this.resArr5[0])
|
|
|
+ }
|
|
|
+ }, this.resArr5[0].s_name)
|
|
|
+ ]
|
|
|
)
|
|
|
} else {
|
|
|
return h('span', row.s_name ? row.s_name : '-')
|