Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
suidao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
suidao
Commits
aab20dfd
Commit
aab20dfd
authored
Mar 03, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:巡检计划模板导出问题处理
parent
2d3408c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
index.vue
src/views/system/checkPlan/index.vue
+18
-14
vue.config.js
vue.config.js
+2
-3
No files found.
src/views/system/checkPlan/index.vue
View file @
aab20dfd
...
@@ -370,21 +370,25 @@ export default {
...
@@ -370,21 +370,25 @@ export default {
},
},
exportExcl
()
{
exportExcl
()
{
exportModel
().
then
((
res
)
=>
{
this
.
download
(
'
slope/plan/export/model
'
,
{
this
.
$modal
},
`巡检计划导入模板.xlsx`
)
.
confirm
(
"
是否确认导出?
"
)
.
then
(
function
()
{
return
window
.
open
(
`
${
this
.
$store
.
getters
.
appPicApi
}
/excel/
${
res
.
msg
}
`
,
"
_blank
"
);
})
.
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
"
导出成功
"
);
})
.
catch
(()
=>
{});
});
},
},
// exportExcl() {
// exportModel().then((res) => {
// this.$modal
// .confirm("是否确认导出?")
// .then(function () {
// return window.open(
// `${this.$store.getters.appPicApi}/excel/${res.msg}`,
// "_blank"
// );
// })
// .then(() => {
// this.$modal.msgSuccess("导出成功");
// })
// .catch(() => {});
// });
// },
onChange
(
e
)
{
onChange
(
e
)
{
this
.
formData
=
new
FormData
();
this
.
formData
=
new
FormData
();
this
.
formData
.
append
(
"
file
"
,
e
.
raw
);
this
.
formData
.
append
(
"
file
"
,
e
.
raw
);
...
...
vue.config.js
View file @
aab20dfd
...
@@ -36,9 +36,8 @@ module.exports = {
...
@@ -36,9 +36,8 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://182.92.170.89:10086`,
target
:
`http://182.92.170.89:10086`
,
// 服务器
target
:
`http://192.168.2.16:10080`
,
// target: `http://192.168.2.16:10080`, // 张涛
// target: `http://60.212.188.152:12000`,//服务器
// target: `http://localhost:8080`,//服务器
// target: `http://localhost:8080`,//服务器
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
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