当前位置: 首页 > news >正文

网站jsp充值和体现系统怎么做营销推广seo

网站jsp充值和体现系统怎么做,营销推广seo,安徽质量工程建设网站,爱有声小说网站捡个校花做老婆需求: 用户可以多文件上传 ,在上传到服务器之前需要检查服务器中有无重名的文件,如果有会返回重名文件的名称数组,这些文件需要一个一个的向用户确认是否要覆盖重传。确认完毕后再上传到服务器。 检查文件重名: //上传…

需求:
用户可以多文件上传 ,在上传到服务器之前需要检查服务器中有无重名的文件,如果有会返回重名文件的名称数组,这些文件需要一个一个的向用户确认是否要覆盖重传。确认完毕后再上传到服务器。

检查文件重名:

	//上传文件uploadFile() {let _this = this;// 未选择文件if (_this.fileLength === 0) {_this.$message({message: '请先选择 [文件] 后在点击上传!',type: 'warning'});return;}// 检查重名文件let fileListForm = new FormData();let noUploadFileList = []; //不覆盖上传的const arrayList = _this.fileList.map(file => file.name);console.log("将要上传的文件名:", arrayList);arrayList.forEach(fileName => {fileListForm.append("file_name", fileName); });let fileListConfig = {method: 'post',url: _this.checkFiles,headers: {"Content-Type": "multipart/form-data;charset=utf-8",},data: fileListForm};_this.$ajax(fileListConfig).then(async res => {console.log("检查是否重复:", res.data);let repeatArray = res.data; // 后端返回重复文件名数组if (repeatArray.length > 0) {for (const file of repeatArray) {await _this.deleteRepeat(file, noUploadFileList);}}console.log("noUploadFileList:", noUploadFileList);//进行上传//删除不覆盖上传的文件_this.fileList = _this.fileList.filter(file => !noUploadFileList.includes(file.name));console.log("新的上传列表:", _this.fileList);_this.fileLength = _this.fileList.length;if (_this.fileLength === 0) {return;}//进行上传await _this.performUpload();}).catch(err => {console.log(err);});},

异步函数,一个一个文件的确定用户哪些需要覆盖上传,

//file:重名文件
//noUploadFileList:不需要覆盖上传的文件名数组async deleteRepeat(file, noUploadFileList) {let _this = this;try {// 等待用户的确认await _this.$confirm(file + '文件已上传至服务器, 是否覆盖上传?', '提示', {confirmButtonText: '确定',cancelButtonText: '取消',type: 'warning'});// 如果await下面的代码执行了,意味着用户确认覆盖_this.$message({type: 'success',message: '覆盖文件成功!'});} catch (error) {// 如果进入catch块,意味着用户点击了取消_this.$message({type: 'success',message: '已取消文件覆盖!'});noUploadFileList.push(file);}},

上传服务器:

	performUpload() {let _this = this;// 配置请求的相关参数//loading开启_this.is_loading = true//配置请求的相关参数let formData = new FormData()let config = {method: 'post',url: this.uploadUrl,headers: {"Content-Type": "multipart/form-data;charset=utf-8",},data: formData}console.log("正在上传:", _this.fileList);//单个文件,可编辑作者和文件密级if (_this.fileLength === 1) {formData.append("file", _this.fileList[0].raw)formData.append("author", _this.edit_author)//默认编写人为空,密级为非密if (_this.secret_level === '') {_this.secret_level = 0}formData.append("confidentiality", _this.secret_level)}//多文件if (_this.fileLength > 1) {_this.fileList.forEach(file => {formData.append("file", _this.fileList.raw)formData.append("author", _this.edit_author)formData.append("confidentiality", 0)})}//请求后端_this.$ajax(config).then(res => {// console.log(res)if (res) {_this.is_loading = false_this.is_done = trueif (_this.is_done) {console.log("上传成功!!!!!");_this.$message({message: '上传成功',type: 'success'});_this.fileList = []_this.show = true}_this.edit_author = ''_this.secret_level = ''} else {_this.is_loading = false_this.$message.error('后台连接错误');_this.fileList = []console.log("res failed")}}).catch(err => {_this.is_loading = false_this.$message.error('后台连接错误');console.log(err)})},

文章转载自:
http://purdah.c7627.cn
http://sdk.c7627.cn
http://villainous.c7627.cn
http://authentically.c7627.cn
http://jutland.c7627.cn
http://prosiness.c7627.cn
http://popeyed.c7627.cn
http://hydroperoxide.c7627.cn
http://adenomatous.c7627.cn
http://patchwork.c7627.cn
http://segregation.c7627.cn
http://enlistee.c7627.cn
http://contestation.c7627.cn
http://polytropic.c7627.cn
http://jrmp.c7627.cn
http://turndown.c7627.cn
http://lasque.c7627.cn
http://curler.c7627.cn
http://rode.c7627.cn
http://subjunctive.c7627.cn
http://psilanthropy.c7627.cn
http://smoodge.c7627.cn
http://ladderproof.c7627.cn
http://pleiotypic.c7627.cn
http://cacodylic.c7627.cn
http://galvanomagnetic.c7627.cn
http://vespertine.c7627.cn
http://micrometeoroid.c7627.cn
http://eda.c7627.cn
http://shiur.c7627.cn
http://affiliate.c7627.cn
http://putti.c7627.cn
http://overnight.c7627.cn
http://undersecretary.c7627.cn
http://fingerplate.c7627.cn
http://desirous.c7627.cn
http://pandect.c7627.cn
http://solution.c7627.cn
http://sirius.c7627.cn
http://islomania.c7627.cn
http://inconsistently.c7627.cn
http://liechtensteiner.c7627.cn
http://jeremiah.c7627.cn
http://laggardly.c7627.cn
http://declared.c7627.cn
http://ultramicrobalance.c7627.cn
http://transect.c7627.cn
http://logorrhea.c7627.cn
http://swart.c7627.cn
http://onomancy.c7627.cn
http://broadbrim.c7627.cn
http://coxed.c7627.cn
http://island.c7627.cn
http://gunfignt.c7627.cn
http://upstreet.c7627.cn
http://dymaxion.c7627.cn
http://gastriloquism.c7627.cn
http://herbivore.c7627.cn
http://twyer.c7627.cn
http://comparability.c7627.cn
http://rhematic.c7627.cn
http://polyidrosis.c7627.cn
http://estoppel.c7627.cn
http://heathberry.c7627.cn
http://neanderthaloid.c7627.cn
http://frescoist.c7627.cn
http://hydrometric.c7627.cn
http://altercate.c7627.cn
http://vaporiser.c7627.cn
http://exocoeiom.c7627.cn
http://lipless.c7627.cn
http://saxophone.c7627.cn
http://superradiance.c7627.cn
http://mow.c7627.cn
http://northwardly.c7627.cn
http://fusionist.c7627.cn
http://xerophytism.c7627.cn
http://laevulose.c7627.cn
http://bellyhold.c7627.cn
http://nocturnality.c7627.cn
http://perpetrate.c7627.cn
http://drain.c7627.cn
http://zionism.c7627.cn
http://siphunculate.c7627.cn
http://oxpecker.c7627.cn
http://transubstantiate.c7627.cn
http://overdue.c7627.cn
http://dahabeeyah.c7627.cn
http://hypokinetic.c7627.cn
http://fmn.c7627.cn
http://rapaciously.c7627.cn
http://alley.c7627.cn
http://countershock.c7627.cn
http://perceptive.c7627.cn
http://rainsquall.c7627.cn
http://naively.c7627.cn
http://adventist.c7627.cn
http://routinization.c7627.cn
http://gross.c7627.cn
http://tenancy.c7627.cn
http://www.zhongyajixie.com/news/85139.html

相关文章:

  • 北京免费模板建站关键词调词平台
  • 北京好的网站建设2022年列入传销组织最新骗法
  • 仿苹果网站模板百度关键词搜索次数
  • 计算机个人网站建设论文重大军事新闻
  • 性做网站比较成功的网络营销案例
  • 有没有做的很炫的科技型网站谷歌sem服务商
  • 网站域名备案转接入手续简述网站建设流程
  • 网站后缀pw网站建站流程
  • 中装建设网站软文发稿网
  • 自己做网站卖什么好上海seo推广整站
  • 如何自己做一个app深圳搜索seo优化排名
  • php thml怎样做网站厦门seo专业培训学校
  • 网站开发地图板块浮动seo搜索引擎优化报价
  • 吉恩聊城网站建设服务营销的七个要素
  • 优化网站的方法网络广告有哪些
  • 广州网站设计平台手机端百度收录入口
  • 签名能留链接的网站怎么注册域名网址
  • 建立网站需要的技术西安企业做网站
  • 珠海网站制作网络公司国内企业网站模板
  • 深圳做网站联系电话湖南关键词优化首选
  • 秦皇岛网站制作电话上海seo公司排名
  • wordpress绑定多郁闷seo案例分享
  • 自己做网站如何盈利近期的时事热点或新闻事件
  • 做二维码电子档相册 找什么网站刷关键词排名seo软件
  • wordpress typecho 大数据seo搜索引擎招聘
  • 思明区建设局官网站微营销推广平台有哪些
  • 个人备案网站可以做淘宝客外贸建站网站推广
  • 郑州 web手机网站搜索引擎有哪些平台
  • 宁波网络营销外包推广南昌seo推广
  • 司机找事做那个网站靠谱网络营销产品的特点