|
@@ -4,7 +4,8 @@
|
|
<div v-for="(item,index) in controlarr" :key="index" class="formcollection-info">
|
|
<div v-for="(item,index) in controlarr" :key="index" class="formcollection-info">
|
|
<div class="formcollection-info-title">{{ item.fieldName }}:</div>
|
|
<div class="formcollection-info-title">{{ item.fieldName }}:</div>
|
|
<div v-if="item.fieldName=='出访国家(地、区)'||item.fieldName=='涉及城市'" class="formcollection-info-text">
|
|
<div v-if="item.fieldName=='出访国家(地、区)'||item.fieldName=='涉及城市'" class="formcollection-info-text">
|
|
- <span v-for="(items,index) in item.newValue" :key="index">{{items+','}}</span>
|
|
|
|
|
|
+ {{ item.newValue }}
|
|
|
|
+ <!-- <span v-for="(items,index) in item.newValue" :key="index">{{items+'、'}}</span> -->
|
|
</div>
|
|
</div>
|
|
<div v-else class="formcollection-info-text">{{ item.newValue }}</div>
|
|
<div v-else class="formcollection-info-text">{{ item.newValue }}</div>
|
|
</div>
|
|
</div>
|
|
@@ -149,6 +150,15 @@ export default {
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if (res.data.code==200) {
|
|
if (res.data.code==200) {
|
|
that.controlarr=res.data.data.items;
|
|
that.controlarr=res.data.data.items;
|
|
|
|
+ for(let i =0;i<that.controlarr.length;i++){
|
|
|
|
+ if(that.controlarr[i].fieldName=='出访国家(地、区)'||that.controlarr[i].fieldName=='涉及城市'){
|
|
|
|
+ var newValue=''
|
|
|
|
+ for(let y=0;y<that.controlarr[i].newValue.length;y++){
|
|
|
|
+ newValue+=that.controlarr[i].newValue[y]+'、'
|
|
|
|
+ }
|
|
|
|
+ that.controlarr[i].newValue=newValue.substring(0,newValue.length-1)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}else{
|
|
}else{
|
|
that.$message.error(res.data.msg);
|
|
that.$message.error(res.data.msg);
|
|
}
|
|
}
|
|
@@ -157,6 +167,13 @@ export default {
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.GroupOrderPreInfoList();
|
|
this.GroupOrderPreInfoList();
|
|
|
|
+ },
|
|
|
|
+ filters: {
|
|
|
|
+ filter_dd(value) {
|
|
|
|
+ if (value) {
|
|
|
|
+ return value.substring(0,value.length-1)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|