From 4fb905d2af3a695a6720111e8ca3708fc6d2034f Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期二, 29 十二月 2020 18:40:09 +0800
Subject: [PATCH] 轨迹图人员筛选移除隐藏全部
---
src/pages/library/components/upload.vue | 53 ++---------------------------------------------------
1 files changed, 2 insertions(+), 51 deletions(-)
diff --git a/src/pages/library/components/upload.vue b/src/pages/library/components/upload.vue
index 37e34e2..e137709 100644
--- a/src/pages/library/components/upload.vue
+++ b/src/pages/library/components/upload.vue
@@ -46,7 +46,7 @@
</template>
<script>
import axios from 'axios'
-import { guid } from './util.js'
+import { guid } from '@/scripts/util.js'
export default {
name: 'upload',
@@ -295,59 +295,10 @@
this.progressValue = 0
this.showProgress = false
this.$emit('successFN', result)
- // let errorArr = []
- // // 鏍规嵁涓庡悗鍙扮害瀹歞ata鏁扮粍杩斿洖鐨勯兘鏄瓨鍦ㄤ笟鍔℃剰涔夐敊璇殑瀵硅薄
- // if (result.data && result.data.length) {
- // errorArr = result.data.map(file => {
- // // 閬嶅巻鍓嶅彴鎶涚粰鍚庡彴鐨刦ileList 杩涜姣斿璧嬪�糵ile鏂囦欢鍙妋essage
- // for (var i = 0; i < this.suFileList.length; i++) {
- // const iteam = this.suFileList[i]
- // if (
- // file.upload.fileName &&
- // iteam.name === file.upload.fileName
- // ) {
- // return {
- // uuId: guid(),
- // file: iteam,
- // photos: file.upload.path,
- // baseList: file.baseList ? file.baseList : null,
- // errorMsg: {
- // type: 'error',
- // errorType: '涓婁紶寮傚父',
- // message: file.reason ? file.reason : result.msg
- // }
- // }
- // }
- // }
- // })
- // }
- /* 鍥炶皟浼犲�� */
- // 澶勭悊閿欒鏂囦欢鍒楄〃 濡傛灉涓�0璇存槑鍏ㄩ儴鎴愬姛锛岋紙閫氳繃鏍¢獙锛屽苟鍦ㄥ悗鍙版垚鍔熷畬鎴愭敞鍐屾坊鍔狅級
- // let erFileList =
- // result && result.success
- // ? this.erFileList
- // : [...this.erFileList, ...errorArr]
- // // 鍏ㄩ儴鎴愬姛鏃犻渶鎵撳紑涓氬姟寮圭獥
- // if (erFileList.length > 0) {
- // this.$emit('addFilesBaBackFN', {
- // suFileList: result && result.success ? this.suFileList : [],
- // erFileList: erFileList,
- // fileList: this.fileList,
- // result: res
- // })
- // }
- // if (erFileList.length === 0) {
- // this.$emit('successFN')
- // }
}
} catch (error) {
- // this.$notify({
- // type: 'error',
- // message: '鏈嶅姟鍣ㄩ敊璇紒璇疯仈绯荤鐞嗗憳' // + error.message
- // })
this.progressValue = 0
this.showProgress = false
- console.log('catch---', error)
const errorArr = this.suFileList.map(file => {
return {
uuId: guid(),
@@ -355,7 +306,7 @@
errorMsg: {
type: 'error',
errorType: '涓婁紶鏈嶅姟鍣ㄩ敊璇�',
- message: '鍥剧墖涓嶆槸鍗曚汉鑴哥収鐗囷紝璇烽噸鏂颁笂浼�'
+ message: '涓婁紶鏈嶅姟鍣ㄩ敊璇�'
}
}
})
--
Gitblit v1.8.0