Commit 6c8e8823 authored by 吴春's avatar 吴春

11

parent 9bda343f
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<template> <template>
<div class="VehicleManagement"> <div class="VehicleManagement">
<div class="head-title"> <div class="head-title">
载体管理 项目管理
<div> <div>
<el-button @click="checkAll=false,dialogVisible = true" style="float: right; margin-top: -25px" size="small" <el-button @click="checkAll=false,dialogVisible = true" style="float: right; margin-top: -25px" size="small"
type="primary"> type="primary">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
<div> <div>
<el-button type="primary" style="float: right; margin: -25px 10px 0px 0px" class="el-button--small" <el-button type="primary" style="float: right; margin: -25px 10px 0px 0px" class="el-button--small"
@click="CommonJump('editVehicle')">新增载体</el-button> @click="CommonJump('editVehicle')">新增项目</el-button>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
...@@ -288,14 +288,14 @@ ...@@ -288,14 +288,14 @@
msg.Id = 0; msg.Id = 0;
} }
this.downLoadLoading = true; this.downLoadLoading = true;
this.loadingText = "正在生成载体文件,请勿关闭或刷新页面..."; this.loadingText = "正在生成项目文件,请勿关闭或刷新页面...";
var that = this; var that = this;
this.download_timer = setInterval(function () { this.download_timer = setInterval(function () {
that.checkCarrierFile(msg) that.checkCarrierFile(msg)
}, 2000); }, 2000);
}, },
checkCarrierFile(msg) { checkCarrierFile(msg) {
var fileName = "载体信息.xls"; var fileName = "项目信息.xls";
var that = this; var that = this;
this.apipost( this.apipost(
"/api/Trade/CheckCarrierFile", "/api/Trade/CheckCarrierFile",
...@@ -304,7 +304,7 @@ ...@@ -304,7 +304,7 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
clearInterval(this.download_timer); clearInterval(this.download_timer);
this.checkedCities = []; this.checkedCities = [];
this.loadingText = "正在下载载体文件,请勿关闭或刷新页面..."; this.loadingText = "正在下载项目文件,请勿关闭或刷新页面...";
var fileUrl = res.data.data.fileUrl; var fileUrl = res.data.data.fileUrl;
var filepath = res.data.data.filePath; var filepath = res.data.data.filePath;
var key = res.data.message; var key = res.data.message;
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
responseType: 'arraybuffer', responseType: 'arraybuffer',
onDownloadProgress: (progressEvent) => { onDownloadProgress: (progressEvent) => {
const progress = Math.round((progressEvent.loaded / progressEvent.total) * 100); const progress = Math.round((progressEvent.loaded / progressEvent.total) * 100);
that.loadingText = `正在下载载体文件` + progress + `%,请勿关闭或刷新页面...`; that.loadingText = `正在下载项目文件` + progress + `%,请勿关闭或刷新页面...`;
// 在这里处理下载进度, 如更新界面上的进度条 // 在这里处理下载进度, 如更新界面上的进度条
} }
}).then((res) => { }).then((res) => {
......
<template> <template>
<div v-loading="pageloading" class="editVehicle"> <div v-loading="pageloading" class="editVehicle">
<div class="head-title"> <div class="head-title">
<span @click="CommonJump('VehicleManagement')" class="blue point">载体管理</span> <span @click="CommonJump('VehicleManagement')" class="blue point">项目管理</span>
/ 编辑载体 / 编辑项目
</div> </div>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="150px">
<el-card shadow="never" style="margin-top: 10px" class="box-card"> <el-card shadow="never" style="margin-top: 10px" class="box-card">
......
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
(isChecked = '/VehicleManagement'), (isChecked = '/VehicleManagement'),
CommonJump('VehicleManagement') CommonJump('VehicleManagement')
"> ">
<i class="el-icon-menu"></i><span>载体管理</span> <i class="el-icon-menu"></i><span>项目管理</span>
</li> </li>
<li class="menu_item" :class="{ Fchecked: isChecked == '/brandManagement' }" @click=" <li class="menu_item" :class="{ Fchecked: isChecked == '/brandManagement' }" @click="
(isChecked = '/brandManagement'), CommonJump('brandManagement') (isChecked = '/brandManagement'), CommonJump('brandManagement')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment