From eff92aec207a73c94bddafe4c8eaf3fa96f17dc2 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期五, 18 九月 2020 15:11:53 +0800 Subject: [PATCH] 直接访问桌面未登陆默认跳转登录页, 底库上传图片提示语 --- src/pages/library/components/upload.vue | 51 +-------------------------------------------------- 1 files changed, 1 insertions(+), 50 deletions(-) diff --git a/src/pages/library/components/upload.vue b/src/pages/library/components/upload.vue index 58585ed..e137709 100644 --- a/src/pages/library/components/upload.vue +++ b/src/pages/library/components/upload.vue @@ -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