Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄媛媛
ElectricitySheep
Commits
a5a9eedf
Commit
a5a9eedf
authored
Aug 06, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
48e3c791
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
brandManagement.vue
src/components/tradePavilion/brandManagement.vue
+16
-4
main.js
src/main.js
+3
-1
No files found.
src/components/tradePavilion/brandManagement.vue
View file @
a5a9eedf
...
...
@@ -4,7 +4,8 @@
<span>
品牌列表
</span>
<div
style=
"display: flex; flex-direction: row; align-items: center"
v-if=
"!readonly"
>
<el-button
type=
"primary"
class=
"el-button--small"
@
click=
"addTopic"
>
新增
</el-button>
<el-button
class=
"el-button--small"
@
click=
"dialogVisible = true"
style=
"float: right"
type=
"primary"
>
批量导出
<el-button
class=
"el-button--small"
@
click=
"dialogVisible = true,checkAll=false"
style=
"float: right"
type=
"primary"
>
批量导出
</el-button>
</div>
</div>
...
...
@@ -195,8 +196,10 @@
<div
style=
"text-align: right; margin-top: 20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"downloadBrandFile"
>
导出
</el-button>
</div>
</div>
</el-dialog>
<a
id=
"downloadLink"
href=
""
download=
"品牌信息.xls"
style=
"display:none"
>
下载 Excel 文件
</a>
</div>
</template>
<
script
>
...
...
@@ -305,7 +308,7 @@
msg
.
Id
=
0
;
}
this
.
downLoadLoading
=
true
;
this
.
loadingText
=
"正在
下载
品牌文件,请勿关闭或刷新页面..."
;
this
.
loadingText
=
"正在
生成
品牌文件,请勿关闭或刷新页面..."
;
var
that
=
this
;
this
.
download_timer
=
setInterval
(
function
()
{
that
.
checkFile
(
msg
)
...
...
@@ -333,8 +336,17 @@
fileUrl
:
fileUrl
,
filepath
:
filepath
,
};
that
.
GetLocalFile
(
"/api/Trade/GetFile"
,
params
,
"品牌信息.xls"
,
null
,
// that.downLoadLoading = false;
// that.loadingText = "";
// that.dialogVisible = false;
// var newUrl = that.domainManager().DomainUrl + fileUrl;
// var linkObj = document.getElementById("downloadLink");
// linkObj.href = newUrl;
// linkObj.setAttribute("download", "品牌信息.xls");
// linkObj.click();
that
.
GetLocalFile
(
"/api/Trade/GetFile"
,
params
,
"品牌信息.xls"
,
null
,
()
=>
{
that
.
downLoadLoading
=
false
;
that
.
loadingText
=
""
;
...
...
src/main.js
View file @
a5a9eedf
...
...
@@ -27,7 +27,9 @@ Vue.commonUtils = Vue.prototype.$commonUtils = commonUtils
Vue
.
config
.
productionTip
=
false
Vue
.
http
=
Vue
.
prototype
.
$http
=
axios
axios
.
defaults
.
timeout
=
60000
;
//axios.defaults.timeout = 60000;
axios
.
defaults
.
timeout
=
300000
;
//5分钟
Vue
.
prototype
.
$echarts
=
echarts
Vue
.
use
(
ajaxPlug
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment