update code

dev-login
haha 2023-08-26 14:50:34 +08:00
parent 7915221e81
commit c3407477a9
3 changed files with 18 additions and 30 deletions

View File

@ -104,10 +104,10 @@
<el-col :span="8" class="col-img"> <el-col :span="8" class="col-img">
<template v-if="scheduleInfo && scheduleInfo.images && scheduleInfo.images.length > 0"> <template v-if="scheduleInfo && scheduleInfo.images && scheduleInfo.images.length > 0">
<div class="data-img" style="margin-top: 0px;"> <div class="data-img" style="margin-top: 0px;">
<img :src="scheduleInfo.images[0]"> <el-image :src="scheduleInfo.images[0]" :preview-src-list="scheduleInfo.images"/>
</div> </div>
<div class="data-img" v-if="scheduleInfo.images.length > 1"> <div class="data-img" v-if="scheduleInfo.images.length > 1">
<img :src="scheduleInfo.images[1]"> <el-image :src="scheduleInfo.images[1]" :preview-src-list="scheduleInfo.images" />
</div> </div>
</template> </template>
<div v-else style="text-align: center;"> <div v-else style="text-align: center;">

View File

@ -168,7 +168,8 @@
</div> </div>
<div class="acceptance-item" v-for="(it,idx) in acceptanceData" :key="idx" style="cursor: pointer;" @click="doShowChecking(it)"> <div class="acceptance-item" v-for="(it,idx) in acceptanceData" :key="idx" style="cursor: pointer;" @click="doShowChecking(it)">
<div class="row-1"> <div class="row-1">
<div class="div-img"><img :src="getProfileImage(it.mainImage)"></div> <div class="div-img">
<el-image :src="getProfileImage(it.mainImage)" :preview-src-list="[getBigProfileImage(it.mainImage)]"/></div>
<div class="div-text" style="width: 65%;"> <div class="div-text" style="width: 65%;">
<div class="row-3"> <div class="row-3">
<div v-if="it.checkResult=='1'" class="sp-lbl"></div> <div v-if="it.checkResult=='1'" class="sp-lbl"></div>
@ -294,6 +295,9 @@ export default {
}); });
}, },
methods: { methods: {
doShowChecking(it){
},
checkDetection(n){ checkDetection(n){
this.samplingNav=n; this.samplingNav=n;
if(!this.projectInfo){ if(!this.projectInfo){
@ -442,6 +446,12 @@ export default {
} }
return url; return url;
}, },
getBigProfileImage(url) {
if (url) {
return '/jhapi' + url;
}
return url;
},
}, },
}; };
</script> </script>

View File

@ -8,36 +8,14 @@ module.exports = defineConfig({
port: 3000, port: 3000,
open: true, open: true,
proxy: { proxy: {
// '/':{ '/jhapi':{
// target: `http://127.0.0.1/`, target: `http://62.234.3.186/jhapi/`,
// changeOrigin: true, //target: `http://127.0.0.1:8090/jhapi`,
// pathRewrite: {
// ['^/']:''
// }
// },
'/profile/upload':{
target: `http://62.234.3.186/profile/upload`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/profile/upload':'/' '^/jhapi':'/'
} }
},
'/jhapi/profile/upload':{
target: `http://62.234.3.186/jhapi/profile/upload`,
//target: `http://127.0.0.1:8090/jhapi/profile`,
changeOrigin: true,
pathRewrite: {
'^/jhapi/profile/upload':'/'
} }
},
[process.env.VUE_APP_BASE_API]: {
//target: `http://62.234.3.186/jhapi`,
target: `http://127.0.0.1:8090/jhapi`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
}
},
} }
}, },
pages:{ pages:{