Merge branch 'fix_20240123_UAT' into 'master'

Fix 20240123 uat

See merge request laws-foton-slrs/foton-laws-system-front!155
This commit is contained in:
高嵩
2024-01-31 09:40:21 +00:00
3 changed files with 30 additions and 26 deletions
+3 -1
View File
@@ -3204,8 +3204,9 @@ export default {
}) })
}, },
openFileInPdf (attId, oldFileName) { openFileInPdf (attId, oldFileName) {
// this.$preview(attId) this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载 // 判断是否是图片格式,图片格式不预览,直接下载
const index1 = oldFileName.lastIndexOf('.') const index1 = oldFileName.lastIndexOf('.')
const index2 = oldFileName.length const index2 = oldFileName.length
@@ -3248,6 +3249,7 @@ export default {
} else { } else {
this.$message.warning('PDG文件,不支持手机端预览') this.$message.warning('PDG文件,不支持手机端预览')
} }
*/
}, },
getFileInfo (fileId) { getFileInfo (fileId) {
Axios({ Axios({
@@ -8,9 +8,10 @@
:loading="loading" :loading="loading"
pullUpLoad pullUpLoad
pullDownRefresh pullDownRefresh
:getDataHandler="getData"> :getDataHandler="getData"
>
<div style="padding-top: 10px"> <div style="padding-top: 10px">
<div class="card-content" v-for="item in list" :key="item.id" @click="jumpDetails(item)"> <div v-for="item in list" :key="item.id" class="card-content" @click="jumpDetails(item)">
<div class="standTitle"> <div class="standTitle">
<div class="title">{{ item.standard || '-' }}</div> <div class="title">{{ item.standard || '-' }}</div>
</div> </div>
@@ -24,7 +25,7 @@
<div class="timeFooter"> <div class="timeFooter">
<div style="width: 50%">发布日期: <span style="padding-left: 5px;">{{ convertTime(item.releaseDate) }}</span></div> <div style="width: 50%">发布日期: <span style="padding-left: 5px;">{{ convertTime(item.releaseDate) }}</span></div>
<div style="width: 50%">实施日期: <span style="padding-left: 5px;">{{ convertTime(item.renewTime) }}</span></div> <div style="width: 50%">实施日期: <span style="padding-left: 5px;">{{ convertTime(item.putTime) }}</span></div>
</div> </div>
</div> </div>
</div> </div>
@@ -32,10 +33,10 @@
</template> </template>
<script> <script>
import PhoneScroll from "@/components/hzwlComponents/phone/PhoneScroll"; import PhoneScroll from '@/components/hzwlComponents/phone/PhoneScroll';
export default { export default {
name: "Standard", name: 'Standard',
components: { components: {
PhoneScroll PhoneScroll
}, },
@@ -86,7 +87,7 @@ export default {
if (page) { if (page) {
this.searchQuery.page = page this.searchQuery.page = page
} }
this.$http._getData("lawss/NewsFeed/getNewsFeed", this.searchQuery, config).then(res => { this.$http._getData('lawss/NewsFeed/getNewsFeed', this.searchQuery, config).then(res => {
if (res.ok) { if (res.ok) {
this.total = res.data.total this.total = res.data.total
@@ -127,7 +128,7 @@ export default {
break break
} }
this.$router.push({ this.$router.push({
name: "domesticDetails", name: 'domesticDetails',
query: { query: {
id: item.standardId, id: item.standardId,
pageType pageType
@@ -138,7 +139,6 @@ export default {
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.root { .root {
height: 100%; height: 100%;
+3 -1
View File
@@ -1350,8 +1350,9 @@ export default {
}) })
}, },
openFileInPdf (attId, oldFileName) { openFileInPdf (attId, oldFileName) {
// this.$preview(attId) this.$preview(attId)
/*
// 判断是否是图片格式,图片格式不预览,直接下载 // 判断是否是图片格式,图片格式不预览,直接下载
const index1 = oldFileName.lastIndexOf('.') const index1 = oldFileName.lastIndexOf('.')
const index2 = oldFileName.length const index2 = oldFileName.length
@@ -1380,6 +1381,7 @@ export default {
}else { }else {
this.$message.warning('PDG文件,不支持手机端预览') this.$message.warning('PDG文件,不支持手机端预览')
} }
*/
}, },
showItemsModel (attField) { showItemsModel (attField) {
if (attField) { if (attField) {