|
@@ -93,45 +93,19 @@ import { postAction } from '@api/manage'
|
|
// console.log(this.$refs.realForm.model.id)
|
|
// console.log(this.$refs.realForm.model.id)
|
|
var weituoId = this.$refs.realForm.model.id
|
|
var weituoId = this.$refs.realForm.model.id
|
|
|
|
|
|
- // weituoInfo.baseInfos = this.baseInfos
|
|
|
|
- // weituoInfo.yangpins = this.yangpinInfos
|
|
|
|
-
|
|
|
|
- // var pinShiYans = this.shiyanInfos
|
|
|
|
- // if(this.shiyanInfos.length > 0){
|
|
|
|
- // weituoInfo.pinShiYans = pinShiYans.map(item => {
|
|
|
|
- // item.standardRequirement = item.standardRequirementQ.toString()
|
|
|
|
- // return item
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
switch (this.$refs.realForm.currentTab) {
|
|
switch (this.$refs.realForm.currentTab) {
|
|
case 0:
|
|
case 0:
|
|
// console.log(this.$refs.realForm.$refs.data001.model)
|
|
// console.log(this.$refs.realForm.$refs.data001.model)
|
|
weituoInfo = this.$refs.realForm.$refs.data001.model
|
|
weituoInfo = this.$refs.realForm.$refs.data001.model
|
|
weituoInfo.yangpins = this.yangpinInfos
|
|
weituoInfo.yangpins = this.yangpinInfos
|
|
-
|
|
|
|
- if(this.shiyanInfos.length > 0){
|
|
|
|
- weituoInfo.pinShiYans = this.shiyanInfos.map(item => {
|
|
|
|
- item.standardRequirement = item.standardRequirement.toString()
|
|
|
|
- return item
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- weituoInfo.pinShiYans = this.shiyanInfos
|
|
|
|
- }
|
|
|
|
|
|
+ weituoInfo.pinShiYans = this.shiyanInfos
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
// console.log(this.$refs.realForm.$refs.ypxx.model)
|
|
// console.log(this.$refs.realForm.$refs.ypxx.model)
|
|
// weituoInfo = JSON.parse(sessionStorage.getItem('data'))
|
|
// weituoInfo = JSON.parse(sessionStorage.getItem('data'))
|
|
weituoInfo = this.baseInfos
|
|
weituoInfo = this.baseInfos
|
|
weituoInfo.yangpins = this.$refs.realForm.$refs.ypxx.model.data
|
|
weituoInfo.yangpins = this.$refs.realForm.$refs.ypxx.model.data
|
|
- if(this.shiyanInfos.length > 0){
|
|
|
|
- weituoInfo.pinShiYans = this.shiyanInfos.map(item => {
|
|
|
|
- item.standardRequirement = item.standardRequirement.toString()
|
|
|
|
- return item
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- weituoInfo.pinShiYans = this.shiyanInfos
|
|
|
|
- }
|
|
|
|
|
|
+ weituoInfo.pinShiYans = this.shiyanInfos
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
// console.log(this.$refs.realForm.$refs.syxx.model)
|
|
// console.log(this.$refs.realForm.$refs.syxx.model)
|
|
@@ -142,7 +116,6 @@ import { postAction } from '@api/manage'
|
|
var pinShiYans = this.$refs.realForm.$refs.syxx.model.list
|
|
var pinShiYans = this.$refs.realForm.$refs.syxx.model.list
|
|
weituoInfo.pinShiYans = pinShiYans.map(item => {
|
|
weituoInfo.pinShiYans = pinShiYans.map(item => {
|
|
item.standardRequirement = item.standardRequirementQ.join(',')
|
|
item.standardRequirement = item.standardRequirementQ.join(',')
|
|
- // item.standardRequirement = JSON.stringify(item.standardRequirementQ)
|
|
|
|
return item
|
|
return item
|
|
})
|
|
})
|
|
break;
|
|
break;
|