@zscreate/zhxy-app-component 1.0.335 → 1.0.336

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,9 @@ export default {
104
104
  this.$u.get('/dataset/getDatasetColumns', { id }).then(res => {
105
105
  if (!res.success) return
106
106
  this.header = res.result ? res.result : []
107
+ this.header=this.header.filter(item => {
108
+ return item.isHidden != 1
109
+ })
107
110
  if (!this.header.some(item => item.hWidth)) this.tableWidth()
108
111
  })
109
112
  },
@@ -250,10 +250,20 @@ export default {
250
250
 
251
251
  if(['doc', 'docx', 'xls', 'xlsx'].includes(ext)) {
252
252
  let preViewPdf = file.url
253
- this.$u.get('/sys/common/preViewPdf', {preViewPdf}).then((res) => {
253
+ this.$u.get('/sys/common/preViewPdf', {preViewPdf, type: '1'}).then((res) => { //type设置为1代表移动端预览
254
254
  if(res.success) {
255
255
  debugger
256
+ if(res.result) { //第三方文件预览地址
257
+ this.$Router.push({
258
+ path: '/pagesA/view/casepage/casepage',
259
+ query: {
260
+ title:res.result.name,
261
+ url: res.result.src
262
+ }
263
+ })
264
+ } else {
256
265
  window.open( process.uniEnv.imgUrl+ res.message + '?download=0')
266
+ }
257
267
  } else {
258
268
  uni.showToast({
259
269
  title: '当前状态不支持文件预览',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.335",
3
+ "version": "1.0.336",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",