Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yanshouyi-Minipro
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
yanshouyi-Minipro
Commits
cb9f5427
Commit
cb9f5427
authored
Aug 04, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 导出功能数据字段调整。用于客户演示。node-sass兼容性调整
parent
da787828
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
5 deletions
+52
-5
config.js
common/config.js
+2
-2
manifest.json
manifest.json
+1
-0
home.vue
pages/home/home.vue
+46
-1
project.config.json
project.config.json
+3
-2
No files found.
common/config.js
View file @
cb9f5427
const
BASEURL
=
'
http://192.168.2.14:8088
'
;
//
const BASEURL = 'https://ltpk.kuangshanzhixing.cn:8088';
//
const BASEURL = 'http://192.168.2.14:8088';
const
BASEURL
=
'
https://ltpk.kuangshanzhixing.cn:8088
'
;
const
REQUESTIMEOUT
=
30000
;
export
{
BASEURL
,
...
...
manifest.json
View file @
cb9f5427
...
...
@@ -5,6 +5,7 @@
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"sassImplementationName"
:
"node-sass"
,
"app-plus"
:
{
"usingComponents"
:
true
,
"nvueCompiler"
:
"uni-app"
,
...
...
pages/home/home.vue
View file @
cb9f5427
...
...
@@ -157,7 +157,7 @@
}
});
},
async
exportExcel
()
{
// 导出excel
async
exportExcel
Old
()
{
// 导出excel 该版本为原来的正式功能版本
let
res
=
await
getExportData
({
})
if
(
res
)
{
...
...
@@ -197,6 +197,51 @@
})
}
},
async
exportExcel
()
{
// 导出excel 检查专用版本
let
res
=
await
getExportData
({
})
if
(
res
)
{
console
.
log
(
'
export
'
,
res
)
const
ExcelData
=
res
.
map
((
item
)
=>
{
delete
item
.
userPhone
;
delete
item
.
productId
;
return
item
});
//列表数据
this
.
loading
=
false
const
fileName
=
'
炮孔测量数据导出
'
const
header
=
[
'
productName
'
,
'
artilleryAreaName
'
,
'
cannonHoleArrayNum
'
,
'
cannonHoleNum
'
,
'
expectedDepth
'
,
'
relDepth
'
,
'
waterDepth
'
,
'
chargeDepth
'
,
'
chargeWaterDepth
'
,
'
relTemperature
'
,
'
remark
'
,
];
const
headerName
=
{
productName
:
'
工程名称
'
,
artilleryAreaName
:
'
爆区名称
'
,
cannonHoleArrayNum
:
'
炮孔排号
'
,
cannonHoleNum
:
'
炮孔孔号
'
,
expectedDepth
:
'
设计孔深
'
,
relDepth
:
'
实测孔深
'
,
waterDepth
:
'
实测水深
'
,
chargeDepth
:
'
装药后孔深
'
,
chargeWaterDepth
:
'
装药后水深
'
,
relTemperature
:
'
实测温度
'
,
remark
:
'
备注
'
};
showCustomToast
({
title
:
"
导出中,请稍后...
"
,
duration
:
3000
,
})
XLSX
.
excel_exprot
(
ExcelData
,
header
,
headerName
,
fileName
)
}
else
{
showCustomToast
({
title
:
'
暂无数据
'
})
}
},
navTo
(
flag
)
{
if
(
flag
===
'
export
'
)
{
this
.
exportData2Excel
()
...
...
project.config.json
View file @
cb9f5427
{
"appid"
:
"wx41f6d06aca0687c3"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"3.
7.3
"
,
"libVersion"
:
"3.
9.0
"
,
"packOptions"
:
{
"ignore"
:
[],
"include"
:
[]
...
...
@@ -24,5 +24,6 @@
"editorSetting"
:
{
"tabIndent"
:
"insertSpaces"
,
"tabSize"
:
2
}
},
"isGameTourist"
:
false
}
\ No newline at end of file
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