diff --git a/src/components/hzwlComponents/phone/PhoneScroll.vue b/src/components/hzwlComponents/phone/PhoneScroll.vue
index 8cbd30c10..632ccc387 100644
--- a/src/components/hzwlComponents/phone/PhoneScroll.vue
+++ b/src/components/hzwlComponents/phone/PhoneScroll.vue
@@ -17,17 +17,6 @@
-
- 加载中...
-
@@ -40,12 +29,23 @@
color="#3170A8"
style="text-align: center"
>加载中...
-
+
已加载全部数据
+
+
+ 加载中...
@@ -129,6 +129,10 @@ export default {
},
watch: {
data() {
+ if (this.data.length === 0) {
+ this.scrollTo(0,0)
+ this.isEmpty = true
+ }
this.refreshScroll()
}
},
@@ -191,6 +195,7 @@ export default {
// 下拉刷新回调
async pullingDownHandler () {
this.showPullDownText('pullDownLoading')
+ this.hidePullUpText()
// 从第一页获取数据
await this.getDataHandler(1)
@@ -201,8 +206,7 @@ export default {
},
showPullUpText () {
- this.isEmpty = false
- this.isShowAll = false
+ this.hidePullUpText()
if (this.data.length === 0) {
this.isEmpty = true
} else {
@@ -211,6 +215,10 @@ export default {
}
}
},
+ hidePullUpText () {
+ this.isEmpty = false
+ this.isShowAll = false
+ },
showPullDownText (key) {
this.isEnterThreshold = false
this.isLeaveThreshold = false
diff --git a/src/pages/details/meetingDetail/index.vue b/src/pages/details/meetingDetail/index.vue
index a7c42c6b9..737af2869 100644
--- a/src/pages/details/meetingDetail/index.vue
+++ b/src/pages/details/meetingDetail/index.vue
@@ -209,76 +209,7 @@ export default {
})
},
openFileInPdf (attId, fileName) {
- // 判断是否是图片格式,图片格式不预览,直接下载
- let index1 = fileName.lastIndexOf('.')
- let index2 = fileName.length
- let fileSuffix = fileName.substring(index1, index2)
- //把后缀转大写
- if(fileSuffix !== undefined && fileSuffix !== null){
- fileSuffix = fileSuffix.toUpperCase()
- }
- // 判断上传文件格式
- if (fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') {
- this.downloadFile(attId)
- return true
- }
- // 缺少文件
- if (this.$hasPermission('fd83032ae5f41a0021b00e93c88edbbg')) {
- if (fileSuffix === '.PDG' || fileSuffix === '.pdg') {
- this.getBusStandFileByAttId(attId)
- .then(res => {
- if(res){
- const editFileInfo = res
- if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
- window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
- }
- }
- }).catch(e => {
- this.$message.warning('文件不存在,预览失败')
- })
- }else {
- this.$http.get('att/attFile/getBusStandFileByAttId', {
- attId: attId
- }, {
- _this: this
- }, res => {
- if (res.data) {
- let fileObj = {}
- fileObj.fileId = res.data.attId
- fileObj.fileName = fileName
- let fileList = []
- let repeatData = 0
- if (sessionStorage.getItem('fileInfo')) {
- fileList = JSON.parse(sessionStorage.getItem('fileInfo'))
- if (fileList != null && fileList.length > 0) {
- for (let i = 0; i < fileList.length; i++) {
- if (fileList[i].fileId === res.data.attId) {
- repeatData = 1
- break
- }
- }
- if (repeatData === 0) {
- fileList.push(fileObj)
- fileList = JSON.stringify(fileList)
- sessionStorage.setItem('fileInfo', fileList)
- }
- }
- } else {
- fileList.push(fileObj)
- fileList = JSON.stringify(fileList)
- sessionStorage.setItem('fileInfo', fileList)
- }
- window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId))
- } else {
- this.$message.error('文档未转换成功或本地读取不到该文档')
- }
- }, e => {
- this.$message.error('文档未转换成功或本地读取不到该文档')
- })
- }
- } else {
- this.$message.error('没有在线预览文档权限!')
- }
+ this.$preview(attId)
},
}
}
diff --git a/src/pages/details/policyTopicsDetail/index.vue b/src/pages/details/policyTopicsDetail/index.vue
index b5be02180..5cfb6d883 100644
--- a/src/pages/details/policyTopicsDetail/index.vue
+++ b/src/pages/details/policyTopicsDetail/index.vue
@@ -365,76 +365,7 @@ export default {
})
},
openFileInPdf (attId, fileName) {
- // 判断是否是图片格式,图片格式不预览,直接下载
- let index1 = fileName.lastIndexOf('.')
- let index2 = fileName.length
- let fileSuffix = fileName.substring(index1, index2)
- //把后缀转大写
- if(fileSuffix !== undefined && fileSuffix !== null){
- fileSuffix = fileSuffix.toUpperCase()
- }
- // 判断上传文件格式
- if (fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') {
- this.downloadFile(attId)
- return true
- }
- // 缺少文件
- if (this.$hasPermission('fd83032ae5f41a0021b00e93c88edbbg')) {
- if (fileSuffix === '.PDG' || fileSuffix === '.pdg') {
- this.getBusStandFileByAttId(attId)
- .then(res => {
- if(res){
- const editFileInfo = res
- if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
- window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
- }
- }
- }).catch(e => {
- this.$message.warning('文件不存在,预览失败')
- })
- }else {
- this.$http.get('att/attFile/getBusStandFileByAttId', {
- attId: attId
- }, {
- _this: this
- }, res => {
- if (res.data) {
- let fileObj = {}
- fileObj.fileId = res.data.attId
- fileObj.fileName = fileName
- let fileList = []
- let repeatData = 0
- if (sessionStorage.getItem('fileInfo')) {
- fileList = JSON.parse(sessionStorage.getItem('fileInfo'))
- if (fileList != null && fileList.length > 0) {
- for (let i = 0; i < fileList.length; i++) {
- if (fileList[i].fileId === res.data.attId) {
- repeatData = 1
- break
- }
- }
- if (repeatData === 0) {
- fileList.push(fileObj)
- fileList = JSON.stringify(fileList)
- sessionStorage.setItem('fileInfo', fileList)
- }
- }
- } else {
- fileList.push(fileObj)
- fileList = JSON.stringify(fileList)
- sessionStorage.setItem('fileInfo', fileList)
- }
- window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId))
- } else {
- this.$message.error('文档未转换成功或本地读取不到该文档')
- }
- }, e => {
- this.$message.error('文档未转换成功或本地读取不到该文档')
- })
- }
- } else {
- this.$message.error('没有在线预览文档权限!')
- }
+ this.$preview(attId)
},
}
}
diff --git a/src/pages/details/regulatoryMaterialsDetail/index.vue b/src/pages/details/regulatoryMaterialsDetail/index.vue
index d7f85d936..917faf306 100644
--- a/src/pages/details/regulatoryMaterialsDetail/index.vue
+++ b/src/pages/details/regulatoryMaterialsDetail/index.vue
@@ -249,76 +249,7 @@ export default {
})
},
openFileInPdf (attId, fileName) {
- // 判断是否是图片格式,图片格式不预览,直接下载
- let index1 = fileName.lastIndexOf('.')
- let index2 = fileName.length
- let fileSuffix = fileName.substring(index1, index2)
- //把后缀转大写
- if(fileSuffix !== undefined && fileSuffix !== null){
- fileSuffix = fileSuffix.toUpperCase()
- }
- // 判断上传文件格式
- if (fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') {
- this.downloadFile(attId)
- return true
- }
- // 缺少文件
- if (this.$hasPermission('fd83032ae5f41a0021b00e93c88edbbg')) {
- if (fileSuffix === '.PDG' || fileSuffix === '.pdg') {
- this.getBusStandFileByAttId(attId)
- .then(res => {
- if(res){
- const editFileInfo = res
- if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){
- window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl)
- }
- }
- }).catch(e => {
- this.$message.warning('文件不存在,预览失败')
- })
- }else {
- this.$http.get('att/attFile/getBusStandFileByAttId', {
- attId: attId
- }, {
- _this: this
- }, res => {
- if (res.data) {
- let fileObj = {}
- fileObj.fileId = res.data.attId
- fileObj.fileName = fileName
- let fileList = []
- let repeatData = 0
- if (sessionStorage.getItem('fileInfo')) {
- fileList = JSON.parse(sessionStorage.getItem('fileInfo'))
- if (fileList != null && fileList.length > 0) {
- for (let i = 0; i < fileList.length; i++) {
- if (fileList[i].fileId === res.data.attId) {
- repeatData = 1
- break
- }
- }
- if (repeatData === 0) {
- fileList.push(fileObj)
- fileList = JSON.stringify(fileList)
- sessionStorage.setItem('fileInfo', fileList)
- }
- }
- } else {
- fileList.push(fileObj)
- fileList = JSON.stringify(fileList)
- sessionStorage.setItem('fileInfo', fileList)
- }
- window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId))
- } else {
- this.$message.error('文档未转换成功或本地读取不到该文档')
- }
- }, e => {
- this.$message.error('文档未转换成功或本地读取不到该文档')
- })
- }
- } else {
- this.$message.error('没有在线预览文档权限!')
- }
+ this.$preview(attId)
},
}
}
diff --git a/src/pages/phone/databaseSearch/index.vue b/src/pages/phone/databaseSearch/index.vue
new file mode 100644
index 000000000..62353cf64
--- /dev/null
+++ b/src/pages/phone/databaseSearch/index.vue
@@ -0,0 +1,241 @@
+
+
+
+
+ <
+ 全库搜索
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
标准类别:
+ 国内标准
+ 海外标准
+ 企业标准
+
+
发布日期: {{item.issue_time}}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/phone/domesticStand/index.vue b/src/pages/phone/domesticStand/index.vue
index de1706dbe..aab90e329 100644
--- a/src/pages/phone/domesticStand/index.vue
+++ b/src/pages/phone/domesticStand/index.vue
@@ -183,10 +183,10 @@ export default {
methods: {
onSearch () {
this.list = []
- this.searchQuery.page = 1
- // 返回顶部
- this.$refs.scroll.scrollTo(0, 0)
- this.getData()
+ // this.searchQuery.page = 1
+ // // 返回顶部
+ // this.$refs.scroll.scrollTo(0, 0)
+ this.getData(1)
},
getData (page) {
switch (this.$route.query.standType) {
diff --git a/src/pages/phone/standDynamics/components/DataCenter.vue b/src/pages/phone/standDynamics/components/DataCenter.vue
index 090e5c156..0a18981ce 100644
--- a/src/pages/phone/standDynamics/components/DataCenter.vue
+++ b/src/pages/phone/standDynamics/components/DataCenter.vue
@@ -67,8 +67,8 @@ export default {
setChecked (currentData) {
this.currentSearch = currentData
this.searchQuery.treeId = currentData.id || ''
- this.searchQuery.page = 1
- this.getData()
+ this.list = []
+ this.getData(1)
},
getData (page) {
return new Promise((resolve, reject) => {
diff --git a/src/pages/phone/standDynamics/components/folderPopup.vue b/src/pages/phone/standDynamics/components/folderPopup.vue
index 7f3d5f023..e5e4c5042 100644
--- a/src/pages/phone/standDynamics/components/folderPopup.vue
+++ b/src/pages/phone/standDynamics/components/folderPopup.vue
@@ -4,7 +4,8 @@
:style="{ height: '100%', width: '90%' }"
round
:close-on-click-overlay="false"
- @click-overlay="handleCancel">
+ @click-overlay="handleCancel"
+ get-container="body">