Explorar el Código

优化

wulanhaote
庞东旭 hace 2 años
padre
commit
fb4a88a412
Se han modificado 6 ficheros con 63 adiciones y 60 borrados
  1. +17
    -19
      src/views/sunVillage_info/list_finance_detail.vue
  2. +2
    -2
      src/views/sunVillage_info/list_finance_edit.vue
  3. +20
    -18
      src/views/sunVillage_info/list_issues_detail.vue
  4. +2
    -2
      src/views/sunVillage_info/list_issues_edit.vue
  5. +20
    -17
      src/views/sunVillage_info/list_tourists_detail.vue
  6. +2
    -2
      src/views/sunVillage_info/list_tourists_edit.vue

+ 17
- 19
src/views/sunVillage_info/list_finance_detail.vue Ver fichero

@@ -113,27 +113,25 @@
methods: {
getDetail(id){
financePublicDetail(this.queryParams).then((res) => {
res.data.openFile = res.data.openFile.split(',')
res.data.openFile.map(rr=>{
let name = rr.substr(27,rr.length);
let type = '';
if (name.indexOf('.doc') > -1){
type = 'word';
}else if(name.indexOf('.xls') > -1){
type = 'excel';
}
this.openFileList.push({name:name,type:type})
})
if (res.data.openPic!=''){
this.openPic = res.data.openPic.split(',')
this.openPic2 = res.data.openPic.split(',')
this.openPic.map((rrr,i)=>{
this.openPic[i] = {url:'/api'+rrr}
if (res.data.openFile !='' && res.data.openFile != null && res.data.openFile != undefined){
res.data.openFile = res.data.openFile.split(',')
res.data.openFile.map(rr=>{
let name = rr.substr(27,rr.length);
let type = '';
if (name.indexOf('.doc') > -1){
type = 'word';
}else if(name.indexOf('.xls') > -1){
type = 'excel';
}
this.openFileList.push({name:name,type:type})
})
}
if (res.data.openPic !='' && res.data.openPic != null && res.data.openPic != undefined){
res.data.openPic = res.data.openPic.split(',')
res.data.openPic.map((rrr,i)=>{
this.openPic.push({url:'/api'+rrr})
})
}
// res.data.openPic.map((rrr,i)=>{
// this.openPic.push({url:this.$store.getters.baseRoutingUrl+rrr})
// })

this.form = res.data;
})


+ 2
- 2
src/views/sunVillage_info/list_finance_edit.vue Ver fichero

@@ -139,7 +139,7 @@
getDetail(id){
financePublicDetail(this.queryParams).then((res) => {
var that = this ;
if (res.data.openFile!=''){
if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){
this.openFile = res.data.openFile.split(',')
this.openFile2 = res.data.openFile.split(',')
this.openFile.map((rr,i)=>{
@@ -153,7 +153,7 @@
this.openFile[i] = {name:name,type:type}
})
}
if (res.data.openPic!=''){
if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){
this.openPic = res.data.openPic.split(',')
this.openPic2 = res.data.openPic.split(',')
this.openPic.map((rrr,i)=>{


+ 20
- 18
src/views/sunVillage_info/list_issues_detail.vue Ver fichero

@@ -30,7 +30,7 @@
</template>
</van-field>

<van-field required input-align="right" :border="false" >
<van-field readonly input-align="right" :border="false" >
<template #label>
<img src="../../assets/images/sunVillage_info/add_tit_icon_03.png" width="18">
<p style="margin-left: 5px;">公开图片</p>
@@ -119,23 +119,25 @@
methods: {
getDetail(id){
majorEventPublicDetail(this.queryParams).then((res) => {
res.data.openFile = res.data.openFile.split(',')
res.data.openPic = res.data.openPic.split(',')
res.data.openFile.map(rr=>{
let name = rr.substr(27,rr.length);
let type = '';
if (name.indexOf('.doc') > -1){
type = 'word';
}else if(name.indexOf('.xls') > -1){
type = 'excel';
}
this.openFileList.push({name:name,type:type})
})

res.data.openPic.map((rrr,i)=>{
this.openPic.push({url:'/api'+rrr})
})

if (res.data.openFile !='' && res.data.openFile != null && res.data.openFile != undefined){
res.data.openFile = res.data.openFile.split(',')
res.data.openFile.map(rr=>{
let name = rr.substr(27,rr.length);
let type = '';
if (name.indexOf('.doc') > -1){
type = 'word';
}else if(name.indexOf('.xls') > -1){
type = 'excel';
}
this.openFileList.push({name:name,type:type})
})
}
if (res.data.openPic !='' && res.data.openPic != null && res.data.openPic != undefined){
res.data.openPic = res.data.openPic.split(',')
res.data.openPic.map((rrr,i)=>{
this.openPic.push({url:'/api'+rrr})
})
}
this.form = res.data;
})
},


+ 2
- 2
src/views/sunVillage_info/list_issues_edit.vue Ver fichero

@@ -145,7 +145,7 @@
getDetail(id){
majorEventPublicDetail(this.queryParams).then((res) => {
var that = this ;
if (res.data.openFile!=''){
if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){
this.openFile = res.data.openFile.split(',')
this.openFile2 = res.data.openFile.split(',')
this.openFile.map((rr,i)=>{
@@ -159,7 +159,7 @@
this.openFile[i] = {name:name,type:type}
})
}
if (res.data.openPic!=''){
if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){
this.openPic = res.data.openPic.split(',')
this.openPic2 = res.data.openPic.split(',')
this.openPic.map((rrr,i)=>{


+ 20
- 17
src/views/sunVillage_info/list_tourists_detail.vue Ver fichero

@@ -30,7 +30,7 @@
</template>
</van-field>

<van-field required input-align="right" :border="false" >
<van-field readonly input-align="right" :border="false" >
<template #label>
<img src="../../assets/images/sunVillage_info/add_tit_icon_03.png" width="18">
<p style="margin-left: 5px;">公开图片</p>
@@ -113,22 +113,25 @@
methods: {
getDetail(id){
tempWorkerPublicDetail(this.queryParams).then((res) => {
res.data.openFile = res.data.openFile.split(',')
res.data.openPic = res.data.openPic.split(',')
res.data.openFile.map(rr=>{
let name = rr.substr(27,rr.length);
let type = '';
if (name.indexOf('.doc') > -1){
type = 'word';
}else if(name.indexOf('.xls') > -1){
type = 'excel';
}
this.openFileList.push({name:name,type:type})
})

res.data.openPic.map((rrr,i)=>{
this.openPic.push({url:'/api'+rrr})
})
if (res.data.openFile !='' && res.data.openFile != null && res.data.openFile != undefined){
res.data.openFile = res.data.openFile.split(',')
res.data.openFile.map(rr=>{
let name = rr.substr(27,rr.length);
let type = '';
if (name.indexOf('.doc') > -1){
type = 'word';
}else if(name.indexOf('.xls') > -1){
type = 'excel';
}
this.openFileList.push({name:name,type:type})
})
}
if (res.data.openPic !='' && res.data.openPic != null && res.data.openPic != undefined){
res.data.openPic = res.data.openPic.split(',')
res.data.openPic.map((rrr,i)=>{
this.openPic.push({url:'/api'+rrr})
})
}

this.form = res.data;
})


+ 2
- 2
src/views/sunVillage_info/list_tourists_edit.vue Ver fichero

@@ -139,7 +139,7 @@
getDetail(id){
tempWorkerPublicDetail(this.queryParams).then((res) => {
var that = this ;
if (res.data.openFile!=''){
if (res.data.openFile!='' && res.data.openFile != null && res.data.openFile != undefined){
this.openFile = res.data.openFile.split(',')
this.openFile2 = res.data.openFile.split(',')
this.openFile.map((rr,i)=>{
@@ -153,7 +153,7 @@
this.openFile[i] = {name:name,type:type}
})
}
if (res.data.openPic!=''){
if (res.data.openPic!='' && res.data.openPic != null && res.data.openPic != undefined){
this.openPic = res.data.openPic.split(',')
this.openPic2 = res.data.openPic.split(',')
this.openPic.map((rrr,i)=>{


Cargando…
Cancelar
Guardar